Hi,
I'm running into a javascript error. I hope someone here can help.
I've loaded ckeditor_source.js instead of ckeditor.js to see the error.
I define a custom toolbar, but when using it I get the following error:
toolbar is undefined
http://localhost/symfony/web/bundles/ckeditor/_source/plugins/toolbar/plugin.js
Line 191
I'm using CKeditor v3.6.2 with the jquery plugin.
if (CKEDITOR != undefined) { CKEDITOR.editorConfig = function(config) { config.toolbar = 'Standard'; config.toolbar_Standard = [ { name: 'basicstyles', items : [ 'Format','-','Bold','Italic','Underline','Strike','-','RemoveFormat' ] }, { name: 'list', items : [ 'NumberedList','BulletedList','-','Table','HorizontalRule' ] }, { name: 'paragraph', items : [ 'JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock' ] }, { name: 'insert', items : [ 'Link','Unlink','-','Image','SpecialChar' ] }, ]; }; $(function () { $('textarea.editor').each(function() { $(this).ckeditor( { toolbar : $(this).attr('data-editor-toolbar') ? $(this).attr('data-editor-toolbar') : 'Standard' } ); }) }); }
Thanks a bundle
- Arnold