I am developing an app which has rich text editor feature. On top of ZSSRichTextEditor I have written my editor code. Here my editor is UIWebView which will be injected by javascript code to support/edit the rich text content.
ZSSRichTextEditor has undo/redo feature but it does not comply with my requirement. So i started to implement undo/redo feature by own.
After I went through UndoManager I came to know that implementing undo/redo will not be a that much headache as Apple helps lot for us. If we register it in proper place then UndoManager
will take care of all other thing. But here I am struggling how/where to register UndoManger
for editable UIWebView
.
There are so many examples to implement undo/redo in UITextView
but I don’t find anything for editable UIWebView
Can you some one please guide me on this?
JSContext
would make it trivial to inject some custom javascript to accomplish what you need. – Pietism