Open johnkhor0216 opened 2 months ago
Hi, @johnkhor0216! Those ⁠
characters are called a block filler which is inserted automatically to the editable to make the selection more manageable.
However, I think that your issue is related to the fact that you set the content in the custom field using the onChange
function. All changes in the editor content should be made directly on the model, so first, try to modify the model using Writer, then call onChange
to update the field. This way you should synchronize changes between the editor and the field in Strapi.
I'm trying to replace the keywords found in the editor into tag. But for some unknown reasons, there are multiple ⁠ added to the end of my content, making my cursor to move to the next line where I have to press on backspace twice to delete a character and a lot more issues that extend from here. It's a plugin in
Strapi
but i think the problem originated from ckeditor.The code below is how I'm replacing the content: