Rev | Line | |
---|
[3978] | 1 | /*global dotclear, getData */ |
---|
[3977] | 2 | /*exported CKEDITOR_GETURL */ |
---|
| 3 | 'use strict'; |
---|
| 4 | |
---|
| 5 | // Get context |
---|
| 6 | Object.assign(dotclear, getData('ck_editor_ctx')); |
---|
| 7 | // Get messages |
---|
[3978] | 8 | Object.assign(dotclear.msg, getData('ck_editor_msg')); |
---|
[3977] | 9 | // Get CK Editor variables |
---|
| 10 | Object.assign(window, getData('ck_editor_var')); |
---|
| 11 | |
---|
| 12 | var CKEDITOR_GETURL = function(resource) { |
---|
| 13 | // If this is not a full or absolute path. |
---|
| 14 | if (resource.indexOf(":/") == -1 && resource.indexOf("/") !== 0) { |
---|
| 15 | resource = this.basePath + resource; |
---|
| 16 | } |
---|
| 17 | return resource; |
---|
| 18 | }; |
---|
Note: See
TracBrowser
for help on using the repository browser.