Opened 10 years ago

Closed 10 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:

Description

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)

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

Download all attachments as: .zip

Change History (2)

Changed 10 years ago by Tony

Attachment: testplugin-example.zip added

Test plugin that displays the problem

comment:1 Changed 10 years ago by Garry Yao

Resolution: worksforme
Status: newclosed

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