ng2-ckeditor icon indicating copy to clipboard operation
ng2-ckeditor copied to clipboard

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

Open dpasquali opened this issue 1 year ago • 0 comments

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

dpasquali avatar Nov 06 '23 11:11 dpasquali