Reputation: 47
I have managed to remove the dialog boxes allowing an image to be resized (in ckeditor image2 plugin). Is there a way to prevent the user from resizing an image with the corner handle?
EDIT:
Reinmar is right. And to use in config.js do:
CKEDITOR.editorConfig = function( config ) {
...
config.disallowedContent = 'img[width,height]';
}
This will also remove the height and width options from the dialog box in a functional way.
Upvotes: 0
Views: 2469
Reputation: 22013
If it's satisfactory for you to remove width
and height
attributes at all use:
CKEDITOR.replace( 'editor1', {
disallowedContent: 'img[width,height]'
} );
You can read more about disallowed content here and the Advanced Content Filter here.
If you want to hide only resizer but leave inputs in the image dialog and attrubtes in code, then I believe you need to hide it via CSS.
Upvotes: 1