WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
7156
TinyMCE: Links are actually activated in editable area, not editable.
https://bugs.webkit.org/show_bug.cgi?id=7156
Summary
TinyMCE: Links are actually activated in editable area, not editable.
Moxiecode Systems
Reported
2006-02-09 06:33:02 PST
Expected Results: Text that is a link should be marked at as a link but not activated in any way inside an editable area (also includes events). What I got: The link is opened inside the iframe editor! Steps to reproduce: 1) Go to
http://tinymce.moxiecode.com/example.php?example=true
2) Click on the link inside the editable area.
Attachments
Testcase
(527 bytes, text/html)
2006-02-14 04:13 PST
,
Joost de Valk (AlthA)
no flags
Details
Patch with simple fix
(7.94 KB, patch)
2006-05-11 20:10 PDT
,
Timothy Hatcher
darin
: review+
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Aldo Hoeben
Comment 1
2006-02-10 04:43:19 PST
See
http://hoeben.net/files/webkit/repro7156.html
for a simple repro document. Clicking the anchor opens the specified uri. This makes it tricky to select the link in order to manipulte it (eg removing the link, changing the linked url). Anchors should be disabled in designmode.
Joost de Valk (AlthA)
Comment 2
2006-02-14 04:13:50 PST
Created
attachment 6482
[details]
Testcase Added Aldo's testcase to the bug itself.
Justin Haygood
Comment 3
2006-02-28 21:07:30 PST
( (In reply to
comment #1
)
> See
http://hoeben.net/files/webkit/repro7156.html
for a simple repro document. > > Clicking the anchor opens the specified uri. This makes it tricky to select the > link in order to manipulte it (eg removing the link, changing the linked url). > > Anchors should be disabled in designmode.
> To match Firefox & Internet Explorer's behavior, you should be able to navigate to the link by pressing ctrl-clicking (or the Mac equivalent) it.
Dave Hyatt
Comment 4
2006-02-28 21:37:18 PST
This is very easy to fix if someone wants to take a shot at it. You just have to patch the defaultEventHandler for the anchorelement and check to see if the link is editable. If so, do the right thing. You should be able to just check the links user-modify style, assuming the concept of making a whole WebView editable has been fixed to properly adjust all the style property values for elements. (It probably hasn't though.)
Timothy Hatcher
Comment 5
2006-05-11 20:10:51 PDT
Created
attachment 8257
[details]
Patch with simple fix Links in editable areas will not activate or perform a navigation change (on par with WinIE and Firefox.) To visit the link you can shift-click. Manual test added. * css/cssstyleselector.cpp: (WebCore::CSSStyleSelector::adjustRenderStyle): * html/html_inlineimpl.cpp: (WebCore::HTMLAnchorElement::defaultEventHandler): (WebCore::HTMLAnchorElement::setActive): * html/html_inlineimpl.h: * manual-tests/contenteditable-link.html: Added. * page/FrameView.cpp: (WebCore::selectCursor): A more complex fix to allow editing of the href is being talked about, but this lets us behave like IE and Firefox.
Darin Adler
Comment 6
2006-05-11 21:27:24 PDT
Comment on
attachment 8257
[details]
Patch with simple fix I understand all of this except for the HTMLAnchorElement::setActive part. Why doesn't it need a check for the shift key? r=me, in any case
Timothy Hatcher
Comment 7
2006-05-11 21:33:09 PDT
Is there a way to change the current event in setActive? If so I agree, checking for the shift key there would be correct.
Timothy Hatcher
Comment 8
2006-05-11 21:41:12 PDT
That should read: Is there a way to check the current event...
Timothy Hatcher
Comment 9
2006-05-12 19:40:35 PDT
Landed in
r14346
.
Ted Rust
Comment 10
2006-06-07 13:32:00 PDT
Not sure if this is what was meant by
>A more complex fix to allow editing of the href is being talked about, >but this lets us behave like IE and Firefox.
but, it does not appear that it is possible to select a portion of a link now. Is the click event being "eaten" by the new code? You can start a selection from outside the link and continue into it, but you cannot start a selection *in* the link itself.
Timothy Hatcher
Comment 11
2006-06-07 13:46:55 PDT
In the test case attached to this bug that is not the case. The TinyMCE example page seems to have a event listener that they do not allow to propagate, preventing the click (this is mentioned in
bug 8817
).
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug