We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Appending new value to current value and emitting change event.

Hello

How to properly update value in RTE? I would like to append new text to current value in editor and after that manually emit change event.
Currently I coded it like this:

this.rteObj.value += predefinedContent;

but unfortunately this wraps every new value to <p></p> which is unwanted behaviour in my case. I also could not find in API any method to manually emit change event.

Best regards

1 Reply

PM Pandiyaraj Muniyandi Syncfusion Team November 28, 2019 06:22 PM UTC

Hi Andrzej 
 
Query 1:  this wraps every new value to <p></p> which is unwanted behaviour in my case. 
 
As per component behavior, direct text child nodes are wrapped by <p></p>. Because parent based stylings are won’t work in direct text nodes, so we will wrap it by <p> tag. 
 
Query 2: I also could not find in API any method to manually emit change event. 
 
Currently, we don’t have API for this requirement from our end.

Regards,
 
Pandiyaraj 


Loader.
Live Chat Icon For mobile
Up arrow icon