How do I programmatically set default table properties for CKEditor?

Here you go. dialogDefinition event solves the problem: CKEDITOR.on( ‘dialogDefinition’, function( ev ) { var dialogName = ev.data.name; var dialogDefinition = ev.data.definition; if ( dialogName == ‘table’ ) { var info = dialogDefinition.getContents( ‘info’ ); info.get( ‘txtWidth’ )[ ‘default’ ] = ‘100%’; // Set default width to 100% info.get( ‘txtBorder’ )[ ‘default’ ] = ‘0’; … Read more

How do I customize a ckeditor 4.2 builtin plugin like links?

You got to observe dialogDefinition event to do this: CKEDITOR.on( ‘dialogDefinition’, function( evt ) { var dialog = evt.data; if ( dialog.name == ‘link’ ) { // Get dialog definition. var def = evt.data.definition; // Add some stuff to definition. def.addContents( { id: ‘custom’, label: ‘My custom tab’, elements: [ { id: ‘myField1’, type: ‘text’, … Read more

CKEditor unwanted   characters

After some research I might shed some light on this issue – unfortunately there is no out-of-the-box solution. In the CKEditor there are four ways a no-break space can occur (anybody know more?): Automatic filling of empty blocks. This can be disabled in the config: config.fillEmptyBlocks = false; Automatic insertion when pressing TAB-key. This can … Read more

How to configure ckeditor to not wrap content in block?

Add the following to your config.js file for CKEditor: config.enterMode = CKEDITOR.ENTER_BR; Example: … CKEDITOR.editorConfig = function (config) { config.enterMode = CKEDITOR.ENTER_BR; … }; Details The configuration setting that controls this behavior is based on what you want to happen when the user presses Enter. Just in case someone who’s new to working with HTML … Read more

Jquery validation not working with ckeditor

Finally i found the answer to my question… I changed the value of ignore property which by default holds :hidden value. as CKEDITOR hides the textarea jQuery validation doesn’t validate the element: ignore: [] Just i changed the validation script as follows.. $(document).ready(function(){ $(“#f3”).validate( { ignore: [], debug: false, rules: { cktext:{ required: function() { … Read more