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

rich_editor.js fails if some action performed while there is no selection #114

Open
zoopolitic opened this issue May 11, 2017 · 0 comments

Comments

@zoopolitic
Copy link

zoopolitic commented May 11, 2017

If activity was recreated (for instance if Do not keep activities option enabled) and you try to perform some action, for example insert image, editor fails in line:

range.setStart(RE.currentSelection.startContainer, RE.currentSelection.startOffset);

and nothing is inserted. Fix w/o modifying .js file is to call editor.focusEditor() before actions:

        editor.focusEditor();
        editor.insertImage("url", "image");

How to reproduce issue: add pick image feature where image is returning in onActivityResult and enable Do not keep activities option under Developer options.

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

No branches or pull requests

1 participant