tinymce / tinymce-react

Offical TinyMCE React component
MIT License
938 stars 151 forks source link

Text underlining shows an error #414

Closed pangzongla closed 1 year ago

pangzongla commented 1 year ago

Hi:

Underline the middle of a text, use the ’currenContent‘ event to obtain html, and then reassign it to ’initialValue‘. The underlined display will have errors.

for example(Underline with bold text): aaaaaaaaaaa =》 aaaaaaaaaaa

html like: <p>aaaaa<span style="text-decoration: underline;">aaaaaaa</span>aaaaa</p>

use the ’currenContent‘ event: <p>aaaaa<span style="text-decoration: underline;" data-mce-style="text-decoration: underline;">aaaaaaaaaaaa</span></p>

at tinymce-react (Latest or old version)

exalate-issue-sync[bot] commented 1 year ago

Ref: INT-3067