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 - Firefox only: Insert a Link (Hyperlink) doesn't stop editing of the link it self #644

Open
mnp-mid opened this issue Jan 29, 2018 · 1 comment · May be fixed by #807
Open

Bug - Firefox only: Insert a Link (Hyperlink) doesn't stop editing of the link it self #644

mnp-mid opened this issue Jan 29, 2018 · 1 comment · May be fixed by #807
Labels

Comments

@mnp-mid
Copy link

mnp-mid commented Jan 29, 2018

Insert a Link (Hyperlink) doesn't stop editing of the link it self
Firefox only. (Tested with version: 58.0)

  1. Remove the content of the editor
  2. Type in some text like "abc"
  3. Click on 'Insert a link' and type in some text like "http://example.com", leave description empty
  4. Click on "Insert" to insert the link
  5. DON'T CLICK ANYWHERE ELSE
  6. Just continue typing with the text "def".

=> Result:
abc[url=http://example.com]http://example.comdef[/url]

=> Expected result:
abc[url=http://example.com]http://example.com[/url]def

Works perfectly in chrome!

@chrisbetson
Copy link

chrisbetson commented Feb 16, 2018

find in sceditor.min.js
t.wysiwygEditorInsertHtml('<a href="'+e+'">'+n+"</a>")
and add &nbsp; to the end of the link after the </a>

t.wysiwygEditorInsertHtml('<a href="'+e+'">'+n+"</a> &nbsp; ")
cures the problem

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

Successfully merging a pull request may close this issue.

3 participants