mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-26 12:21:36 +03:00
Koenig - Increase undo depth to 50
refs https://github.com/TryGhost/Ghost/issues/9505
This commit is contained in:
parent
9e1e6ca0c9
commit
55645e9dd5
@ -22,6 +22,8 @@ import {copy} from '@ember/object/internals';
|
||||
import {getContentFromPasteEvent} from 'mobiledoc-kit/utils/parse-utils';
|
||||
import {run} from '@ember/runloop';
|
||||
|
||||
const UNDO_DEPTH = 50;
|
||||
|
||||
export const ADD_CARD_HOOK = 'addComponent';
|
||||
export const REMOVE_CARD_HOOK = 'removeComponent';
|
||||
|
||||
@ -184,6 +186,7 @@ export default Component.extend({
|
||||
let editorOptions = this.get('editorOptions');
|
||||
editorOptions.mobiledoc = mobiledoc;
|
||||
editorOptions.showLinkTooltips = false;
|
||||
editorOptions.undoDepth = UNDO_DEPTH;
|
||||
|
||||
let componentHooks = {
|
||||
// triggered when a card section is added to the mobiledoc
|
||||
|
Loading…
Reference in New Issue
Block a user