Opened 6 years ago

Last modified 5 years ago

#10197 confirmed Bug

CKE 4.x Inline Can't disable object resizing

Reported by: Sean Kelly Owned by:
Priority: Normal Milestone:
Component: General Version: 4.0 Beta
Keywords: Cc:

Description (last modified by Jakub Ś)

  1. Put below code into inlinebycode sample
    CKEDITOR.disableAutoInline = true;
    
    var editor = CKEDITOR.inline( 'editable', {
    	disableObjectResizing : true
    });
    
  2. You can also try putting disableObjectResizing into config.js

It is still possible to resize images with inline editor in Firefox or IE (Please do not confuse with #9317).

Change History (3)

comment:1 Changed 6 years ago by Jakub Ś

Description: modified (diff)
Status: newconfirmed
Version: 4.0.14.0 Beta

comment:2 Changed 6 years ago by Alexander Ebert

This issue affects the divarea-Plugin too and I have found a dirty solution as seen below. Please note that everytime the WYSIWYG-mode is enabled again, the fix needs to be reapplied as shown in the example.

function fixFirefox() {
	document.designMode = 'on';
	document.execCommand('enableObjectResizing', false, false);
	document.execCommand('enableInlineTableEditing', false, false);
	document.designMode = 'off';
}

if ($.browser.mozilla) {
CKEDITOR.on('instanceReady', function(event) {
	event.editor.on('mode', function(ev) {
		if (ev.editor.mode === 'wysiwyg') {
			// gets executed everytime the editor switches from source -> WYSIWYG
			fixFirefox();
		}
	});
	
	// this gets executed on init
	fixFirefox();
}

comment:3 Changed 6 years ago by Jakub Ś

Other issues that concern objectResizing #10252, #9317, #12184, #12772.

Last edited 5 years ago by Jakub Ś (previous) (diff)
Note: See TracTickets for help on using tickets.
© 2003 – 2019 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy