Details
-
Type:
Bug
-
Status: Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: 3.4
-
Fix Version/s: 4.0-milestone-1, 3.5.1
-
Component/s: WYSIWYG Editor
-
Labels:None
-
Difficulty:Unknown
-
Similar issues:
Description
The undo history is limited to 10 items. Can this be made unlimited and/or configurable?
From historyplugin.java:
/**
- {@inheritDoc}
- @see AbstractPlugin#init(RichTextArea, Config)
*/
public void init(RichTextArea textArea, Config config)
{
super.init(textArea, config);
// Register custom executables.
History history = new DefaultHistory(textArea, 10); // <-------------------- ?
getTextArea().getCommandManager().registerCommand(Command.REDO, new RedoExecutable(history));
getTextArea().getCommandManager().registerCommand(Command.UNDO, new UndoExecutable(history));