removeFormat is not working
Hi please help me how to remove heading1 formatting.
This line applying h1 ritchText.current.sendAction("heading1", result);
but not sure how to remove h1 formatting. I tried this but nothing happening. ritchText.current.sendAction("removeFormat", result); or ritchText.current.sendAction("removeFormat", result, "heading1");
I have drop down Normal, Heading 1, Heading 2, Heading3 but not sure how to back from h1/h2 to normal
I appreciate for any help.
CC: @amaralflavio Flávio Amaral
removeFormat is only useful when selected the text。maybe u can replace origin removeFormat function with ‘removeFormat: { result: function() { return exec('formatBlock', 'div'); }} ’
Thanks @xuanweiH I will check and update on this.
Hi @xuanweiH do you have any idea what is fix of the following issue? Today I raised this issue. https://github.com/wxik/react-native-rich-editor/issues/297