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>
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)