Browse Source

Move cash

pull/3934/head
Artur Arseniev 4 years ago
parent
commit
9431e58440
  1. 1
      package.json
  2. 3
      src/editor/model/Editor.js
  3. 6
      src/index.js
  4. 1436
      src/utils/cash-dom.js

1
package.json

@ -18,7 +18,6 @@
"dependencies": {
"backbone": "1.3.3",
"backbone-undo": "^0.2.5",
"cash-dom": "^2.3.9",
"codemirror": "^5.63.0",
"codemirror-formatting": "^1.0.0",
"promise-polyfill": "^8.1.3",

3
src/editor/model/Editor.js

@ -8,12 +8,11 @@ import {
bindAll
} from 'underscore';
import Backbone from 'backbone';
import $ from 'utils/cash-dom';
import Extender from 'utils/extender';
import { getModel, hasWin } from 'utils/mixins';
import Selected from './Selected';
const cash = hasWin() ? require('cash-dom') : null;
const $ = (cash && cash.default) || cash;
Backbone.$ = $;
const deps = [

6
src/index.js

@ -1,15 +1,13 @@
import Editor from './editor';
import { isElement, isFunction } from 'underscore';
import $ from 'utils/cash-dom';
import Editor from './editor';
import polyfills from 'utils/polyfills';
import PluginManager from './plugin_manager';
import { hasWin } from 'utils/mixins';
polyfills();
const plugins = new PluginManager();
const editors = [];
const cash = hasWin() ? require('cash-dom') : null;
const $ = (cash && cash.default) || cash;
const defaultConfig = {
// If true renders editor on init
autorender: 1,

1436
src/utils/cash-dom.js

File diff suppressed because it is too large
Loading…
Cancel
Save