Ticket #6224 (closed Bug: worksforme)

Opened 5 years ago

Last modified 5 years ago

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.


testplugin-example.zip (2.3 KB) - added by tony 5 years ago.
Test plugin that displays the problem

Change History

Changed 5 years ago by tony

Test plugin that displays the problem

comment:1 Changed 5 years ago by garry.yao

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

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 – 2012 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy