Jump to content

CKEditor - add own widget


cappuccino
 Share

Recommended Posts

Hello

I'm trying to creat a widget and add it to ckeditor. I found this tutorial, but something I make wrong.

First I downloaded this plugin (https://ckeditor.com/cke4/addon/widget). I extracted the downloaded plugin in site\modules\InputfieldCKEditor\plugins. Then I started with the simplebox tutorial. I added a new folder ("simplebox") in site\modules\InputfieldCKEditor\plugins and followed the steps in the tutorial. But I'm struggeling with the part "CKEditor Initialization". I selected "simplebox" and "widget" in the 'extra plugins' section of the field config, but there are no extra toolbar buttons. If I open the page with the textarea there is only a empty field (s. picture). Could you help me?

 

empty_field.JPG

extra_plugins.JPG

CKEditor Settings.JPG

Link to comment
Share on other sites

7 hours ago, cappuccino said:

If I open the page with the textarea there is only a empty field

This is most likely caused by a Javascript error. Open the JS console in your browser dev tools and you should see an error message that sheds some light on the problem.

Looking at your Extra Plugins screenshot, it looks like you have not included the required dependencies for the Widget plugin:

2017-12-31_092821.png.a37ceef5c41082108812caf846ce08cb.png

  • Like 2
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...