Koenig - Increase undo depth to 50

refs https://github.com/TryGhost/Ghost/issues/9505
This commit is contained in:
Kevin Ansfield 2018-04-25 12:46:50 +01:00
parent 9e1e6ca0c9
commit 55645e9dd5

View File

@ -22,6 +22,8 @@ import {copy} from '@ember/object/internals';
import {getContentFromPasteEvent} from 'mobiledoc-kit/utils/parse-utils'; import {getContentFromPasteEvent} from 'mobiledoc-kit/utils/parse-utils';
import {run} from '@ember/runloop'; import {run} from '@ember/runloop';
const UNDO_DEPTH = 50;
export const ADD_CARD_HOOK = 'addComponent'; export const ADD_CARD_HOOK = 'addComponent';
export const REMOVE_CARD_HOOK = 'removeComponent'; export const REMOVE_CARD_HOOK = 'removeComponent';
@ -184,6 +186,7 @@ export default Component.extend({
let editorOptions = this.get('editorOptions'); let editorOptions = this.get('editorOptions');
editorOptions.mobiledoc = mobiledoc; editorOptions.mobiledoc = mobiledoc;
editorOptions.showLinkTooltips = false; editorOptions.showLinkTooltips = false;
editorOptions.undoDepth = UNDO_DEPTH;
let componentHooks = { let componentHooks = {
// triggered when a card section is added to the mobiledoc // triggered when a card section is added to the mobiledoc