Dotclear

source: plugins/dcCKEditor/js/_post_editor.js @ 3978:909bbeed5d33

Revision 3978:909bbeed5d33, 513 bytes checked in by franck <carnet.franck.paul@…>, 6 years ago (diff)

mergeDeep is not necessary here

Line 
1/*global dotclear, getData */
2/*exported CKEDITOR_GETURL */
3'use strict';
4
5// Get context
6Object.assign(dotclear, getData('ck_editor_ctx'));
7// Get messages
8Object.assign(dotclear.msg, getData('ck_editor_msg'));
9// Get CK Editor variables
10Object.assign(window, getData('ck_editor_var'));
11
12var 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.

Sites map