Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: When you add an image to the editor, it displaces the image and under a different set of elements. #312

Closed
ZoltanAtFlyte opened this issue Apr 4, 2020 · 2 comments
Labels

Comments

@ZoltanAtFlyte
Copy link

ZoltanAtFlyte commented Apr 4, 2020

The steps to reproduce.

  1. I created the editor
  2. With no text present in the editor AND without focusing on the editor, I inserted an image.
  3. The image was misplaced into my sidebar on the left hand side of the page.

More information (sorry)
My settings included all the plugins (provided with the import plugins from '{path}' code that the documentation provided.

plugins: plugins,
        buttonList: [
            ['undo', 'redo'],
            ['font', 'fontSize', 'formatBlock'],
            ['paragraphStyle', 'blockquote'],
            ['bold', 'underline', 'italic', 'strike', 'subscript', 'superscript'],
            ['fontColor', 'hiliteColor', 'textStyle'],
            ['removeFormat'],
            // '/', // Line break
            ['outdent', 'indent'],
            ['align', 'horizontalRule', 'list', 'lineHeight'],
            ['table', 'link', 'image', 'video', /** 'math' */], // You must add the 'katex' library at options to use the 'math' plugin.
            ['fullScreen', 'showBlocks', 'codeView'],
            ['preview', 'print'],
        ],
        width:"100%",
        height:"200px",
        showPathLabel: false,
        imageFileInput : false,
        imageWidth: "300px",
        imageHeight: "300px",

image

Edit 2: The bug does not seem to reproduce if I select any direction other than 'basic'

Edit 3: Upon further experimentation, it seems to happen when there is no focus on the editor itself. It seems to replace an existing image / icon I have on the left side nav

@ZoltanAtFlyte ZoltanAtFlyte changed the title When you add an image to the editor, it displaces the image and under a different set of elements. Bug: When you add an image to the editor, it displaces the image and under a different set of elements. Apr 4, 2020
@JiHong88 JiHong88 added the bug label Apr 5, 2020
@JiHong88
Copy link
Owner

JiHong88 commented Apr 5, 2020

@ZoltanAtFlyte
The issue is not reproduced.
What browser have you tested and editor version?

@JiHong88
Copy link
Owner

JiHong88 commented Apr 5, 2020

The 2.28.3 version has been updated.
If this issue has not been resolved, please reopen this issue.
Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants