Skip to content

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

@dpasquali

Description

@dpasquali

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions