开源软件名称(OpenSource Name):JonasDoebertin/kirby-visual-markdown开源软件地址(OpenSource Url):https://github.com/JonasDoebertin/kirby-visual-markdown开源编程语言(OpenSource Language):JavaScript 41.7%开源软件介绍(OpenSource Introduction):Based on CodeMirror. Inspired by MirrorMark. This Panel field plugin for Kirby 2 enables you to use an intuitive and visual markdown editor without any hazzle. Just drop in the plugin and you're good to go! Important Note (Please Read)Generally, this extension is free to use on both personal and commercial Kirby powered sites. You don't have to pay for it. However, please always keep in mind that developing this extension took place in my spare time (and maybe a little bit of the time I should have spend on other work related stuff) and up until now, quite some hours have been spent on it.. If you like what I'm doing for the community and you want to support further development of this and future extensions & plugins for Kirby CMS, please consider purchasing a moral license. This is especially appreciated whenever you use one of the extensions in a project that you get payed for. Cheers, Jonas Requirements
InstallationCopy & PastingIf not already existing, add a new
Git SubmoduleIf you are an advanced user and know your way around Git and you already use Git to manage you project, you can make updating this field extension to newer releases a breeze by adding it as a Git submodule. $ cd your/project/root
$ git submodule add https://github.com/JonasDoebertin/kirby-visual-markdown.git site/fields/markdown Updating all your Git submodules (eg. the Kirby core modules and any extensions added as submodules) to their latest version, all you need to do is to run these two Git commands. $ cd your/project/root
$ git submodule foreach --recursive git checkout master
$ git submodule foreach --recursive git pull UsageWithin your blueprintsUsing the field in your blueprint couldn't be easier. After installing the plugin like explained above, all you need to do is change the
Fields related part of the blueprint for the setup shown in the screenshot. Within your templatesYou don't have to change your templates in order to support this field. Just use content created with this field like any regular <article>
<h1>
<?php echo $page->title()->html() ?>
</h1>
<?php echo $page->text()->kirbytext() ?>
</article> OptionstoolbarShow / hide the editor toolbar. Set this to
toolsWith this option you may select which tools you want to show up in the toolbar. Specify a list of all tools you want to show up. Please note that there are two toolbar items that will always shown: the help menu and the fullscreen mode icon.
Available tools:
header1 & header2Specify the header levels to be used with the H1 and H2 toolbar buttons (
If you have any suggestions for further configuration options, please let me know. |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论