Opened 5 years ago

Closed 5 years ago

#6224 closed Bug (worksforme)

Some browsers seem to ignore editor.on('mode') if startupMode : 'source' is set

Reported by: tony Owned by:
Priority: Normal Milestone:
Component: General Version: 3.4
Keywords: Cc:


Unsure if the title correctly describes it but I've attached a test case. Basically, when ckeditor is set to use startupMode : 'source', opera and firefox won't recognise that an editor.on( 'mode' ) event has occured. Chrome will.

I've attached a plugin and test page which reproduces it. The test.html file goes in the _samples directory and the testplugin folder goes in the plugins directory.

In Chrome you will see an alert every time you refresh the test.html page, in firefox you will usually see no alert but sometimes it appears and in opera there is no alert ever.

Should startupMode : 'source' be registering as an editor on mode switch? I was looking for that feature but found this bug.

Attachments (1) (2.3 KB) - added by tony 5 years ago.
Test plugin that displays the problem

Download all attachments as: .zip

Change History (2)

Changed 5 years ago by tony

Test plugin that displays the problem

comment:1 Changed 5 years ago by garry.yao

  • Resolution set to worksforme
  • Status changed from new to closed

WFM with the following:

CKEDITOR.replace( 'editor1', {
	startupMode : 'source',
	on: {
	'instanceReady' : function( evt )
		var editor = evt.editor;
		editor.on('mode', function()
			alert( editor.mode );
} } );
Note: See TracTickets for help on using tickets.
© 2003 – 2015 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy