JSFiddle - React, Tailwind, and code Playground
HTML
<textarea rows="8" id="my-editor" cols="80"></textarea>
<script type="text/javascript" src="http://ckeditor.com/apps/ckeditor/3.6.2/ckeditor.js"></script>
JavaScript
CKEDITOR.on( 'dialogDefinition', function( ev )
{
var dialogName = ev.data.name;
var dialogDefinition = ev.data.definition;
// Set default table width during creation.
if(dialogName == 'table')
{
var infoTab = dialogDefinition.getContents( 'info' );
txtWidth = infoTab.get( 'txtWidth' );
txtWidth['default'] = '100%';
}
if ( dialogName == 'tableProperties' )
{
var infoTab = dialogDefinition.getContents( 'info' );
var tab = dialogDefinition.getContents( 'advanced' );
tab.remove ('advLangDir');
tab.remove ('advStyles');
tab.remove ('advCSSClasses');
}
});
window.x = CKEDITOR.editor.replace('my-editor', {
removePlugins : 'button,div,filebrowser,flash,format,forms,horizontalrule,indent,justify,liststyle,pagebreak,showborders,stylescombo,templates',
toolbar :
[
['Source', 'Table']
],
});