If I insert a TextField(<INPUT Type=Text name=xxx value=''>) into ckeditor, and then I double click the textfield, it will display a default property dialogbox.
BUT, I want to display my own custom dialogbox when I double click the textfield, How can I do?
BUT, I want to display my own custom dialogbox when I double click the textfield, How can I do?
Re: I want to replace default dialog when dblclick a text fi
Check this guide and this sample page for examples how it can be done.
Customer and Community Manager, CKSource
Follow us on: Facebook, Twitter, LinkedIn
If you think you found a bug in CKEditor, read this!
Re: I want to replace default dialog when dblclick a text fi
But I want to complete replace default dialogbox, NOT modify default dialogbox.
I use this code:
CKEDITOR.on( 'dialogDefinition', function( ev )
{
var dialogName = ev.data.name;
var dialogDefinition = ev.data.definition;
if(dialogName=="textfield")
{
//open my custom page
window.open("url");
return false;
}
});
My custom page will open when I double click the textfield, but the CKEDITOR's default dialogbox will display too..... I just want my custom page display.