Open
Bug 895510
Opened 12 years ago
Updated 4 months ago
execCommand("createLink") with no selection does not insert a text
Categories
(Core :: DOM: Editor, defect)
Tracking
()
UNCONFIRMED
People
(Reporter: cwolfe, Unassigned)
References
Details
(Keywords: parity-chrome, parity-safari)
Attachments
(1 file)
|
223 bytes,
text/html
|
Details |
User Agent: Mozilla/5.0 (X11; Linux i686) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/27.0.1453.110 Safari/537.36
Steps to reproduce:
An example site
http://www-archive.mozilla.org/editor/midasdemo/
go to create link, enter url
This is not my code, but it shows that execCommand is not working for createlink
Actual results:
nothing shows up, on chrome we get a link
Expected results:
link should have been inserted into text feild
Comment 1•11 years ago
|
||
I am experiencing same issue on Firefox 25 on Ubuntu.
+1. I'm seeing this on your demo page in FF 31 on my mac. I've seen this issue in both the Mozilla demo, as well as some other rich text editing platforms. Both work in Chrome.
Note: Create link works if you enter text, select it, and then add a link. It's only when adding a link without selecting text first.
Mozilla link:
http://www-archive.mozilla.org/editor/midasdemo/
Comment 3•10 years ago
|
||
Yes, it's weird, it seems it needs to lose somehow focus before working
anyway this is easily done with insertHTML
Comment 4•5 years ago
•
|
||
Chrome behaves here in an undocumented and inconsistent way. It should really about adding anchor to existing text, not creating a new one.
Edit: Filed https://bugs.chromium.org/p/chromium/issues/detail?id=1089725
Updated•5 years ago
|
Summary: createlink execcommand not working → execCommand("createLink") with no selection does not insert a text
Updated•3 years ago
|
Severity: normal → S3
Comment 5•4 months ago
|
||
At this point maybe we should follow others, as we ended up being the only browser engine not doing this after Edge abandoned its engine.
Keywords: parity-chrome,
parity-safari
See Also: → https://issues.chromium.org/issues/40696675
Updated•4 months ago
|
OS: Linux → All
Hardware: x86 → All
You need to log in
before you can comment on or make changes to this bug.
Description
•