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

bold, italics cannot be cancelled in the same line when typing Chinese

Open yichengq opened this issue 3 years ago • 1 comments

https://user-images.githubusercontent.com/2976232/125726126-10b34830-dd5d-485d-99d4-cf39941676fc.MP4

Bug is showed in the video. Only when starting a new line, you get the chance to cancel bold/italics.

yichengq avatar Jul 15 '21 03:07 yichengq

I found a way to fix this problem: node_modules/react-native-pell-rich-editor/src/editor.js Line 252 Change to bold: { state: function() { return queryCommandState('bold'); }, result: function() { if (queryCommandState('bold')) { exec('bold'); return exec('insertHTML', '‌'); } else { exec('bold'); } }},

doubler1125 avatar Jan 24 '23 04:01 doubler1125