Last active
November 22, 2017 06:27
-
-
Save devudit/f548993122b4c987d77b9354cd3d28d0 to your computer and use it in GitHub Desktop.
Run code before and after CkEditor Initilize
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <textarea name="editor"></textarea> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| * Will only work if called before 'replace' | |
| * because after 'replace' the instance of the editor | |
| * would have already been created and this won't run | |
| */ | |
| CKEDITOR.on("instanceCreated", function(event) { | |
| alert('Editor instance created'); | |
| }); | |
| CKEDITOR.replace( 'editor'); | |
| CKEDITOR.on("instanceReady", function(event) { | |
| alert('Editor instance ready'); | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment