Opened 16 years ago
Closed 16 years ago
#3437 closed Bug (fixed)
Show blocks command state is not correctly preserved across mode changes.
Reported by: | Martin Kou | Owned by: | Garry Yao |
---|---|---|---|
Priority: | Normal | Milestone: | CKEditor 3.0 |
Component: | UI : Toolbar | Version: | SVN (CKEditor) - OLD |
Keywords: | Confirmed Review+ | Cc: |
Description
To reproduce:
- Open replacebyclass.html.
- Press "Show Blocks" button.
- Switch to Source mode.
- Switch back to WYSIWYG mode.
- The blocks are still shown, but the state of the show blocks button is wrong.
This bug can be reproduced on all browsers.
Attachments (2)
Change History (8)
comment:1 Changed 16 years ago by
Keywords: | Confirmed added |
---|---|
Owner: | set to Garry Yao |
Status: | new → assigned |
Changed 16 years ago by
Attachment: | 3437.patch added |
---|
comment:2 Changed 16 years ago by
Keywords: | Review? added |
---|
comment:3 Changed 16 years ago by
Keywords: | Review- added; Review? removed |
---|
comment:4 Changed 16 years ago by
Keywords: | Review? added; Review- removed |
---|
The editor will restore all command that registered as activating within wysiwyg mode back to 'OFF' state with L383:
this.on( 'mode', updateCommandsMode );
Two special commands which don't fall into this case were 'Maximize' and 'Showblock', which are required to preserve their states across mode switch.
I'm coming with a new patch which fix those two spots by listening to the 'mode' event at the very last .
Changed 16 years ago by
Attachment: | 3437_2.patch added |
---|
comment:5 Changed 16 years ago by
Keywords: | Review+ added; Review? removed |
---|
Please replace the strict equality operator (===) at line 127 with a simple equality operator and go ahead committing it.
comment:6 Changed 16 years ago by
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Other than coding style issues, the fix is actually to be done at line 127, which is supposed to do exactly what the patch is proposing.