Opened 14 years ago
Closed 14 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)
Change History (2)
Changed 14 years ago by
Attachment: | testplugin-example.zip added |
---|
comment:1 Changed 14 years ago by
Resolution: | → worksforme |
---|---|
Status: | new → 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 ); }) } } } );
Test plugin that displays the problem