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.
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

ejRTE seem to not register the last character that was typed

Thread ID:

Created:

Updated:

Platform:

Replies:

116127 Apr 7,2014 10:04 PM UTC Apr 8,2014 04:37 PM UTC JavaScript 1
loading
Tags: ejRTE
Xander van der Merwe
Asked On April 7, 2014 10:04 PM UTC

Using the following code:

f.ejRTE({
   "value": contentItem.value,
   change: function(args) {
      console.log("notes changed", args.htmlText);
      contentItem.value = args.htmlText;
   }
});

You will notice that the change() function will log the current contents of the editor every time that you type something. However, it will always be one character behind what you type, resulting in the last character typed to not be saved.

Example - you type: 

"The brown fox jumps"

You will save (the last "s" is not included):

"The brown fox jump"

A bug? Any work around?

Thanks

Harikrishnan P [Syncfusion]
Replied On April 8, 2014 04:37 PM UTC

Hi Xander,

Sorry for the inconvenience caused. We have identified this as a bug, and logged an issue report on this. Fix for this issue will be available in our upcoming release which is going to be rolled out in a week or two.

You can try like this as a workaround,

            var rteObj,contentItem = "The brown fox jumps";

            $(function () {

                $("#rteSample").ejRTE({

                    "value": contentItem,

                    keyup: function (args) { // Keyup event

                        console.log("notes changed", rteObj.getText());

                        contentItem = rteObj.getText();  //Gets the current value of RTE

                    }

                });

                rteObj = $("#rteSample").data("ejRTE");

            });

Log the values of the RTE in the Keyup event. Use the getText() method to get the current values in RTE.

 

Please Let us know if you have further queries,

Regards,

HariKrishnan.


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.

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

;