How to use undo / redo in CKEditor without a toolbar?

I use CKEditor 4.2.2 without the default toolbar because I want to use my own toolbar.

CKEditor is UndoManager , which has 4 functions that I need: undo(), redo(), undoable(), redoable().

In my html, I:

<textarea id='doc'>

In javascript:

$('#' + textareaId).ckeditor();
m_Editor = CKEDITOR.instances[textareaId];

I tried using:

  • m_Editor.undo - undefined
  • m_Editor.plugins.undo

Here is a CKEditor instance for the current text area in the console: enter image description here

+4
source share
1 answer

CKEditor , CKEDITOR.editor.execCommand. , m_Editor.execCommand( 'undo' ) .

: m_Editor.commands, , .

+5

All Articles