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. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Appending new value to current value and emitting change event.

Thread ID:

Created:

Updated:

Platform:

Replies:

149488 Nov 27,2019 02:08 PM UTC Nov 28,2019 06:22 PM UTC Angular - EJ 2 1
loading
Tags: RichTextEditor
Piotr Strychalski
Asked On November 27, 2019 02:08 PM UTC

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

Pandiyaraj Muniyandi [Syncfusion]
Replied On 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 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon