New issue
Advanced search Search tips

Issue 759994 link

Starred by 2 users

Issue metadata

Status: Duplicate
Merged: issue 505683
Owner: ----
Closed: Aug 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Mac
Pri: 2
Type: Bug



Sign in to add a comment

Styled link in contenteditable loose style when new text is append at the end of link.

Reported by m.sam...@cksource.com, Aug 29 2017

Issue description

UserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.101 Safari/537.36

Steps to reproduce the problem:
1. Open test page: https://github.com/ckeditor/ckeditor-dev/issues/531
2. Put caret after red link.
3. Start to type text.

What is the expected behavior?
Text will append as a link and preserve its style.

What went wrong?
Typed text is not a link, but it get red style. Unfortunately reddish style is removed from link.

Did this work before? N/A 

Does this work in other browsers? No
 Safari: https://bugs.webkit.org/show_bug.cgi?id=176049

Chrome version: 60.0.3112.101  Channel: n/a
OS Version: OS X 10.12.6
Flash Version: 

I found similar issue already reported. Reason which cause this behaviour seems to be the same here and there: https://bugs.chromium.org/p/chromium/issues/detail?id=505683
 
I cannot edit description so I remain additional info here.
Problem occures on Safari also, but it's not present in Firefox. Firefox detect from which side caret is put and either attach properly style or not. 

Comment 2 by yosin@chromium.org, Aug 30 2017

Mergedinto: 505683
Status: Duplicate (was: Unconfirmed)
Duplicate to 505683.

Here is demonstration of this in assert_selection.js[1]

assert_selection(
  '<div contenteditable><a href="..."><b>foo|</b></a></div>',
  'insertText x',
  '<div contenteditable><b><a href="...">foo</a></b>x|</div>',
  'Type "x" at end of anchor text);

[1] https://cs.chromium.org/chromium/src/third_party/WebKit/LayoutTests/editing/assert_selection.js

Sign in to add a comment