Ticket #4345 (closed New Feature: fixed)
Fire a "langLoaded" event after the languages have been loaded.
| Reported by: | niek | Owned by: | fredck |
|---|---|---|---|
| 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
Change History
Changed 3 years ago by niek
- Attachment 4345.patch added
comment:1 Changed 3 years ago by fredck
- Milestone CKEditor 3.x deleted
Milestone CKEditor 3.x deleted
comment:3 Changed 2 years ago by fredck
- Owner set to fredck
- Status changed from new to review
Nice tiny patch. I've updated it to the current trunk.
Note: See
TracTickets for help on using
tickets.

Patch adding the proposed line + documentation at the bottom