Open uwekoenig opened 7 years ago
No doubt it's something that can be added, but as it's not of our own interest, it's unlikely we'd get around to it anytime soon ourselves. If you want to add it and then provide the source code changes, we can incorporate it into a standard release.
I would like to contribute something but this task is too complex for me. I wrote a ckeditor-plugin "resetUndo" now and added it to the config file by config.addToExtraPlugins("resetUndo"). But how can I call the function of this plugin now from my Java code?
Being a ckeditor plugin, you'd likely only interact with it via javascript. As a plugin, that implies that it's doing something useful to the editor contents, but we've not done much ourselves with plugins, just the vaadin-save plugin. To use a plugin, you must have your plugin defined in the 'plugins' folder of ckeditor (when we compile this add-on, we put our plugins in that folder so they are bundled, but I'd guess you could add it manually in the resulting widgetset area). For compiling, the location in our project is: src/org/vaadin/openesignforms/ckeditor/widgetset/public/ckeditor/plugins For deployment in your webapp, it appears to be in: VAADIN/widgetsets/yourprojectWidgetset/ckeditor/plugins
Hi,
Is there a possibility to reset the undo state? It seems that ckeditor supports this by using editor.resetUndo() but this is not available in the current API. See https://docs.ckeditor.com/#!/api/CKEDITOR.editor-method-resetUndo for more details.
Regards, Uwe