fishme / kirby_ckeditor

Visual Editor for Kirby2
GNU General Public License v2.0
10 stars 1 forks source link

Kirby2 ckeditor

Description

This is the WYSIWYG Editor for Kirby2. I used the powerful http://ckeditor.com/ for this plugin.

How to use?

clone inside your project /site/fields/ (maybe rename directory to "ckeditor")

git clone https://github.com/fishme/kirby_ckeditor.git

or download/paste

Still now I did't fix the problem with the .htaccess. That everything is working, you have to turnoff the rule for the site inside the .htaccess (maybe you will have then a security issue, but don't worry I will find a way "in the future")

# block all files in the site folder from being accessed directly
#RewriteRule ^site/(.*) error [R=301,L]

what I need here is an exception for this url "/site/fields/ckeditor/assets/*" If you can fix that, please make a pullrequest.

so back to the description.

How to call the ckeditor inside your blueprint file?

  text:
    label: Text
    type: ckeditor

That was it. :)

To see the editor click inside the Textarea field. Image of Yaktocat

update/change ckeditor

If you want to change the setup from the ckeditor go to the page http://ckeditor.com/download and choose "customize". After the easy setup download the package directly inside /site/ckeditor/assets/js/

Why?

I know that Kirby2 works with Markdown and I like that. But in some cases it is necessary to have a simple Visual Editor for HTML Code.

Todos

there are some todos :)