You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Example of customization of editors configuration.
In bootCallback function or var fm = $('#elfinder').elfinder('instance');
fm.bind('editEditorPrepare',function(e){vardata=e.data||{},node=data.node,id=data.id,editorObj=data.editorObj,instance=data.instance,opts=data.opts,customOpts;if(id){if(id==='aceeditor'){instance.setOptions({// custom config options of ACE Editor});}elseif(id==='codemirror'){customOpts={// custom config options of CodeMirror};Object.assign(opts,customOpts);}elseif(id==='ckeditor'){customOpts={// custom config options of CKEditor};Object.assign(opts,customOpts);}elseif(id==='ckeditor5'){customOpts={// custom config options of CKEditor5};Object.assign(opts,customOpts);}elseif(id==='tinymce'){customOpts={// custom config options of TinyMCE};Object.assign(opts,customOpts);}// show `data` into browser console for debuggingfm.log(data);}});
Trigger event "editEditorPrepare" to make preparatory action possible before editor instance creation.
The text was updated successfully, but these errors were encountered: