The forum operates in read-only mode. Please head to StackOverflow for support.
function replaceDiv( div ) { if ( editor ) editor.destroy(); editor = CKEDITOR.replace( div, { sharedSpaces : { top : 'topSpace' } } ); }
<div id="topSpace"></div>
<div id="invisibleEditor"/> <script type="text/javascript"> var editor = CKEDITOR.replace( 'invisibleEditor', { sharedSpaces : { top : 'topSpace' }, height : '1px' } ); editor.on('instanceReady', function(e) { e.editor.container.$.setAttribute('style', 'visibility:hidden'); }); </script>
Re: SharedSpaces and toolbar
function replaceDiv( div ) { if ( editor ) editor.destroy(); editor = CKEDITOR.replace( div, { sharedSpaces : { top : 'topSpace' } } ); }You have to setto your body before.
Re: SharedSpaces and toolbar
Re: SharedSpaces and toolbar
<div id="invisibleEditor"/> <script type="text/javascript"> var editor = CKEDITOR.replace( 'invisibleEditor', { sharedSpaces : { top : 'topSpace' }, height : '1px' } ); editor.on('instanceReady', function(e) { e.editor.container.$.setAttribute('style', 'visibility:hidden'); }); </script>Re: SharedSpaces and toolbar