Hello,
i'm trying to load templates from a external function, i want to list them in a separate DIV, then the user can easylly click on them and use them.
i'm using these funcitons:
But, this return an "undefined", also, trying to use
return "undefined" :/
when i use this other funcion, return also "undefined"...
it returns "undefined, BUT, if i click first on the icon "templates" from the editor, then executes this same function, it returns the templates objects correctly...
what i'm doing wrong?? i cant load that file programatically??
i'm executing all these functions externally (from chrome console), and using the funciton "CKEDITOR.on('instanceReady'"
.. thanks for any help, and sorry my BAD english.
i'm trying to load templates from a external function, i want to list them in a separate DIV, then the user can easylly click on them and use them.
i'm using these funcitons:
CKEDITOR.loadTemplates(['/path/to/my/templates.js']);
But, this return an "undefined", also, trying to use
CKEDITOR.scriptLoader.load( [ '/path/to/my/templates.js' ], funciton(){});
return "undefined" :/
when i use this other funcion, return also "undefined"...
CKEDITOR.getTemplates('my_templates');
it returns "undefined, BUT, if i click first on the icon "templates" from the editor, then executes this same function, it returns the templates objects correctly...
what i'm doing wrong?? i cant load that file programatically??
i'm executing all these functions externally (from chrome console), and using the funciton "CKEDITOR.on('instanceReady'"
.. thanks for any help, and sorry my BAD english.