mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-24 23:48:13 -05:00
Koenig - Increase undo depth to 50
refs https://github.com/TryGhost/Ghost/issues/9505
This commit is contained in:
parent
9e1e6ca0c9
commit
55645e9dd5
1 changed files with 3 additions and 0 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Reference in a new issue