8000 html.insert always adds at end of text when editor looses focus · Issue #3881 · froala/wysiwyg-editor · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
8000
html.insert always adds at end of text when editor looses focus #3881
Closed
@rekna1

Description

@rekna1
Expected behavior.

I expect text to insert at last cursor position even when editor loses focus

Actual behavior.

I have a list of items (outside the editor) from which I want to choose. When one of those items is clicked I want to insert the corresponding text at the last cursor position of the editor. However as soon as the editor looses focus it's cursor position seems to move at the end, so text is also inserted at the end.

Steps to reproduce the problem.

Create an editor
create a list of items (eg. unordered list outside the editor)
in click event of li try to add the text to the editor using html.insert

Editor version.

latest

OS.

windows

Browser.

chrome

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0