Font color not updating correctly on certain text

I encountered another strange behavior with the rich text editor font color, it is not updating correctly, and this is reported by our client. They have this sample text (Provided in the steps below) and this text is probably copied from some source somewhere. I was only able to replicate this issue when I copied the exact text and pasted it onto a rich text editor field.

Steps:

  1. Copy the exact text below
    • Sample4
    • Sample5
  2. Paste it into a rich text editor field (I use the preview/sample on stackblitz) Image_9490_1731523742895
  3. Highlight both rows and change the font color to something random. I selected Yellow, and noticed that the font color is not changing for the entire highlighted textImage_5729_1731523835804
  4. Interestingly if I only highlighted the first row ("Sample4"), that seems to work fine, but not the second row ("Sample5")

Appreciate the help if you have any insights as to why this behaves the way it is.

7 Replies

KP Kokila Poovendran Syncfusion Team November 14, 2024 06:46 AM UTC

Hi Hans Christian,


We have reviewed your query and created a sample to try and replicate the issue on our end. However, we were unable to reproduce the issue you described.


Please refer to the sample and video link below:


Samplehttps://stackblitz.com/edit/mugbfx-juwgoa?file=index.html,index.js



To assist you further, could you please share the complete code snippet that replicates the exact issue you encountered? Additionally, if possible, a video demonstrating the issue would be helpful. These details will allow us to provide a more prompt and accurate solution.






HC Hans Christian November 14, 2024 03:07 PM UTC

Hi Kokila


I was able to reproduced it by going to the provided stackblitz link. For the code, there is nothing fancy, it's just simple initialization like you did with the toolbar items.

Here is my recording:

https://app.screencast.com/bLn0cOJoOOwpt


The only thing I see that may differ in our step is that you have probably pasted the text to a word doc and then did another copy into the rich text field. Try copying the text directly from this thread into the rich text field on the stackblitz link you provided. 





KP Kokila Poovendran Syncfusion Team November 15, 2024 12:13 PM UTC

Hi Hans Christian,


We have considered the reported issue Font Color Not Updating Correctly on Certain Text" as a bug from our end and the fix for the issue will be included with our upcoming patch release , which is expected to be rolled out in the first week of December, 2024.

Now you can track the status of the reported issue through the feedback below,


Feedback Link
:  https://www.syncfusion.com/feedback/63136/font-color-not-updating-correctly-on-certain-text


Disclaimer
: Inclusion of this solution in the weekly release may change due to other factors including but not limited to QA checks and works reprioritization.





HC Hans Christian November 18, 2024 05:01 PM UTC

Thanks.



YV Yaswin Vikhaash Rajaretenam Syncfusion Team December 5, 2024 10:59 AM UTC

Hi Hans Christian,

 

Query: "Font Color Not Updating Correctly on Certain Text"

Feedback:  Font Color Not Updating Correctly on Certain Text in JavaScript | Feedback Portal

We have included the fix for the issue "Font Color Not Updating Correctly on Certain Text" with our package version 27.2.5. So, can you please upgrade your package to the latest to resolve the issue from your end?

 

Sample: 9i9avx (forked) - StackBlitz

 

Regards

Yaswin Vikhaash



HC Hans Christian December 5, 2024 03:25 PM UTC

Thank you Yaswin. We will give it a try with the updated version.



VY Vinothkumar Yuvaraj Syncfusion Team December 6, 2024 03:06 AM UTC

Hi Hans Christian,


You're welcome. Please feel free to reach out if you have any questions or concerns.


Loader.
Up arrow icon