tui.editor icon indicating copy to clipboard operation
tui.editor copied to clipboard

getHTML() throw exception!!

Open csd998aaa opened this issue 3 years ago • 4 comments

Describe the bug

getHTML() throw exception!!

Hello, When I use the writing character <p, listening for the change event and called getHTML () threw an exception!! As far as I know, this is not the case with other characters, eg: <span>

Exception: image

Version: image

csd998aaa avatar Dec 29 '21 10:12 csd998aaa

<div resolution failed too.😺

csd998aaa avatar Dec 29 '21 10:12 csd998aaa

@csd998aaa I checked issue. You can just type in plain text. Is there a reason why you use it like this?

js87zz avatar Jan 05 '22 01:01 js87zz

@js87zz Hello, I want to write HTML syntax on the markdown editor. And call the getHTML() in real time when the form is embedded. Because I put value onchange attach to the form.

csd998aaa avatar Jan 12 '22 07:01 csd998aaa

@js87zz Hello, I also have one use case for this.

I want to count the character which will be displayed once it gets renderd on the page

for this I am calling the getHtml method when content is changed, and getting this exception if user enters the "<p" block.

HardikSLathiya avatar Sep 04 '23 09:09 HardikSLathiya