I need a sample code Solved

User's avatar
Jun O. L.
05:21 Dec 27, 2014
I read the document, but failed to apply..
I want the sample code is applied to ckeditor
Help me please..
User's avatar
Jun O. L.
05:26 Dec 27, 2014
config.extraPlugins = 'doksoft_easy_image';

config.doksoft_uploader_url = 'path-to-ckeditor/plugins/doksoft_uploader/uploader.php'; 

config.toolbarGroups = [
    {name : 'doksoft_easy_image'}
];

console :
Uncaught TypeError: Cannot read property 'id' of undefined
Support team avatar
JS+
07:02 Dec 27, 2014
toolbarGroups
only defines a buttons in the groups, not the buttons on toolbar.
To define a toolbar use this code:
config.toolbar = [
      { name: 'some_toolbar_area', items: [ 'doksoft_easy_image'] }
];

Read more about CKEditor's toolbar definition here: http://ckeditor.com/latest/samples/plugins/toolbar/toolbar.html
User's avatar
Jun O. L.
23:20 Dec 31, 2014
Thank You :D