react-native-rich-editor icon indicating copy to clipboard operation
react-native-rich-editor copied to clipboard

removeFormat is not working

Open vijay-dadhich09 opened this issue 3 years ago • 3 comments

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

vijay-dadhich09 avatar Jan 18 '23 20:01 vijay-dadhich09

removeFormat is only useful when selected the text。maybe u can replace origin removeFormat function with ‘removeFormat: { result: function() { return exec('formatBlock', 'div'); }} ’

xuanweiH avatar Feb 06 '23 03:02 xuanweiH

Thanks @xuanweiH I will check and update on this.

vijay-dadhich09 avatar Feb 16 '23 20:02 vijay-dadhich09

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

vijay-dadhich09 avatar Feb 16 '23 20:02 vijay-dadhich09