How to use undo/redo in CKEditor without toolbar?

I’m using CKEditor 4.2.2 without default toolbar, because I want to use my own toolbar.

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

  • CK Editor's Edit Content change into readonly for specific words
  • Calling UI button externally
  • CKEditor stripping out div class, despite it being specified in extraAllowedContent
  • CKeditor skins, good ones and how to build them?
  • Rails ckeditor gem js error when precompiled on Heroku production
  • CKEditor and jQuery serialize() issue
  • In my html I have:

    <textarea id='doc'>

    In javascript:

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

    I have tried to to use:

    • m_Editor.undoundefined
    • m_Editor.plugins.undo

    Here is a CKEditor instance for current textarea in console:
    enter image description here

  • How to disable CKEditor to auto add tag 'a'
  • How to add class or attribute automatically to img tags in CKEditor?
  • Is there anyway to stop CKEditor 4 from filtering my anchor tag attributes?
  • CKEditor: How to hide the spell checker button
  • Javascript a4 paper size
  • CKEDITOR - Apply bold to numbered list including numbers
  • One Solution collect form web for “How to use undo/redo in CKEditor without toolbar?”

    CKEditor registers commands which can be executed with CKEDITOR.editor.execCommand. I think that m_Editor.execCommand( 'undo' ) should do the trick for you.

    Bonus: Inspect m_Editor.commands to know what commands are under the hood.