Opened 16 years ago
Closed 15 years ago
#4048 closed Bug (fixed)
Context submenu lacks uiColor
Reported by: | Tobiasz Cudnik | Owned by: | Tobiasz Cudnik |
---|---|---|---|
Priority: | Normal | Milestone: | CKEditor 3.1 |
Component: | General | Version: | |
Keywords: | Kama Confirmed Review+ | Cc: |
Description
Context submenu lacks uiColor in Kama skin.
Attachments (3)
Change History (13)
comment:1 Changed 16 years ago by
Owner: | set to Tobiasz Cudnik |
---|---|
Status: | new → assigned |
Changed 16 years ago by
Attachment: | 4048.patch added |
---|
comment:2 Changed 16 years ago by
Keywords: | Review? added |
---|
comment:3 Changed 16 years ago by
Keywords: | Review- added; Review? removed |
---|---|
Milestone: | CKEditor 3.0 → CKEditor 3.1 |
comment:5 Changed 16 years ago by
@Frederico: It's not fully possible to move menu-related code to menu plugin, because CSS is skin-dependent, so it will have to stay inside skin files. Although keeping references inside menu objects and listening for an uiColorChanged
event may be a good solution.
@Artur: It's a know issue (there is a ticket somewhere i think). That's because missing reference to style element at some point. It needs deeper investigation.
Changed 16 years ago by
Attachment: | 4048_2.patch added |
---|
comment:6 Changed 16 years ago by
Keywords: | Review? added; Review- removed |
---|
Second patch changes relation with menu plugin to be event based, which resolves both submenu and sequential uiColor changes issues (mentioned by Artur). Also code is now more general purpose and can manage ui color more easily in any iframe document.
comment:7 follow-up: 8 Changed 15 years ago by
Keywords: | Review- added; Review? removed |
---|
The patch works for me in all browsers, while there're some issues noticed in codes:
- L160 - L170 of skin.js could be merged into 'updateStylesheets' function;
- It's better to use RegExp for global replacement;
- L176 - L192 should be merged within the guard condition at L195.
Changed 15 years ago by
Attachment: | 4048_3.patch added |
---|
comment:8 Changed 15 years ago by
Keywords: | Review? added; Review- removed |
---|
Replying to garry.yao:
The patch works for me in all browsers, while there're some issues noticed in codes:
- L160 - L170 of skin.js could be merged into 'updateStylesheets' function;
- It's better to use RegExp for global replacement;
- L176 - L192 should be merged within the guard condition at L195.
1 and 2 are fixed.
Although 3 is incorrect, because UI color functionality should be available independently from having a uiColor setting in a config. It can be set using editor.setUiColor() in any moment and we shouldn't block it.
comment:9 Changed 15 years ago by
Keywords: | Review+ added; Review? removed |
---|
These changes are a bit risky at this point. Let's delay it a bit.
In any case, i think we should find a solution where the other plugins can listen for the uiColor changes somehow, adapting themselves to the changes. In this way the menu plugin would have menu specific code for it, instead of having it in the skin files.