Opened 15 years ago
Closed 14 years ago
#4345 closed New Feature (fixed)
Fire a "langLoaded" event after the languages have been loaded.
Reported by: | Niek Kouwenberg | Owned by: | Frederico Caldeira Knabben |
---|---|---|---|
Priority: | Normal | Milestone: | CKEditor 3.6.1 |
Component: | UI : Language | Version: | 3.0 |
Keywords: | HasPatch | Cc: |
Description
Currently almost every stage of the loading process will fire an event when completed, like "customConfigLoaded", "configLoaded", "pluginsLoaded".
Only the loadLang() method doesn't fire a "langLoaded" event, which might come in handy for custom language manipulation.
I want to add some custom translation-texts, and need to do it before my plugin loads. Since it is not (yet) possible to add these translations via the config (bug #1032), I want to use the "langLoaded" event.
Implementation is nothing more than adding one line:
144. editor.fire( 'langLoaded' ); 145. loadPlugins( editor );
Attachments (2)
Change History (7)
Changed 15 years ago by
Attachment: | 4345.patch added |
---|
comment:2 Changed 14 years ago by
Keywords: | HasPatch added |
---|
Changed 14 years ago by
Attachment: | 4345_2.patch added |
---|
comment:3 Changed 14 years ago by
Owner: | set to Frederico Caldeira Knabben |
---|---|
Status: | new → review |
Nice tiny patch. I've updated it to the current trunk.
comment:4 Changed 14 years ago by
Status: | review → review_passed |
---|
Just change the documentation:
CKEDITOR#langLoaded
=> CKEDITOR.editor#langLoaded
.
comment:5 Changed 14 years ago by
Milestone: | → CKEditor 3.6.1 |
---|---|
Resolution: | → fixed |
Status: | review_passed → closed |
Fixed with [6989].
Patch adding the proposed line + documentation at the bottom