HI,
I'm working with CKEditor and I'd like to create a custom config for it. i did this :
CKEDITOR.editorConfig = function( config ) { config.toolbar = 'toolbarLight'; config.extraPlugins = "timestamp,abbr,lien,model,unlnk,cng,img"; config.removePlugins= "link"; config.toolbar_toolbarLight = [ ['Cut','Copy','Paste','PasteText','PasteFromWord'], ['Undo','Redo','-','Find','Replace','-','SelectAll','RemoveFormat'], ['Image','Table','HorizontalRule','SpecialChar'] , '/', ['Source','Bold','Italic','Underline','NumberedList','BulletedList','Outdent', 'TextColor'] ['Timestamp','Lien','Model','Unlnk','Img' ] ]; };
and I call the config like this :
<textarea id = "contenu_actualite" name="contenu_actualite" cols="200" rows="6" ><p>Initial value.</p></textarea> <script type="text/javascript"> CKEDITOR.replace( 'contenu_actualite', { customConfig : '../ckeditor1/js/ckeditor_config.js' } ); </script>
but this doesn't work for me i got this error from firebug :
TypeError: d is undefined [Stopper sur une erreur] ...f:f.name,!b||-1==CKEDITOR.tools.indexOf(b,f))(f=a.ui.create(f))&&a.addFeature(f)... ckeditor.js (ligne 631)
The probleme seems to be when i add my extra plugin since the thing work when i don't import them.
Any idea ?
forgot the comma.
forgot the comma.