yabab-dev / ng2-ckeditor

Angular2 CKEditor component
MIT License
358 stars 96 forks source link

ng2-ckeditor ("^1.3.0") often adds "&ZeroWidthSpace" (repeated 7 times) after the <img> tag when you paste an image #337

Open dpasquali opened 1 year ago

dpasquali commented 1 year ago

When you paste an image inside the editor area Ckeditor often adds "&ZeroWidthSpace" (repeated 7 times) after the \<img> tag. By inspecting the Elements (hmtl) with Chrome, seraching inside the editor area immediately after copying an image, inside a paragraph of the CKEditor you will find two lines: firt line has the image tag (\<img src="data:image/ jpeg;base64,/9j/4AAQSkZJRg ect....) and immediately below in the second line there is the string "&ZeroWidthSpace&ZeroWidthSpace&ZeroWidthSpace&ZeroWidthSpace&ZeroWidthSpace&ZeroWidthSpace&ZeroWidthSpace" (which subsequently, after saving and reloading the page, transforms into a string of 7 question marks "???????") copy_and_paste_image