We use CKEditor in a few forms, but in a specific form, I need to hide the toolbar. Not being a coder, I tried this on the Onload event:
function hidetoolbar() {
var editor = CKEDITOR.inline( 'editable', {
removePlugins: 'toolbar',
allowedContent: 'p h1 h2 strong em; a[!href]; img[!src,width,height];'
} );
}
I then get the message: ReferenceError: CKEDITOR is not defined at hidetoolbar
I guess I need to define CKEDITOR, but how would I do that in code?
*This post is locked for comments