New issue
Advanced search Search tips

Issue 848912 link

Starred by 1 user

Issue metadata

Status: WontFix
Owner: ----
Closed: Jun 2018
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Windows
Pri: 2
Type: Bug



Sign in to add a comment

Disabling underlining does not work if the content of the contenteditable is empty (WYSIWYG)

Reported by a.kol...@gmail.com, Jun 1 2018

Issue description

UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.62 Safari/537.36

Steps to reproduce the problem:
1. Create WYSIWYG Editor with contenteditable like https://ngx-editor.stackblitz.io/
2. Click to Underline button and type one letter then delete it with backspace.
3. Click to Underline button again to disable underline and then type some letters.

What is the expected behavior?
Ordinary the symbol, not underlined

What went wrong?
Underlined symbol, not ordinary

Did this work before? N/A 

Does this work in other browsers? Yes

Chrome version: 67.0.3396.62  Channel: stable
OS Version: 10.0
Flash Version: 

Bold, italic, strikeThrough works as expected.
Works as expected in Microsoft EDGE.
 

Comment 1 by a.kol...@gmail.com, Jun 1 2018

strikeThrough not working too... ((

Comment 2 by a.kol...@gmail.com, Jun 1 2018

Subscript and superscript add span <span style="font-size: 12px;">jjj</span> when backspasing and typing again.
Cc: pbomm...@chromium.org
Labels: Needs-Triage-M67

Comment 4 by a.kol...@gmail.com, Jun 2 2018

My main goal is to get the exact state of the buttons of the editor at the given position of the cursor in the contenteditable. Is it possible?
Thanks!
https://github.com/kolkov/angular-editor
https://github.com/kolkov/angular-editor/blob/master/src/lib/angular-editor.component.ts#L218

Comment 6 by yosin@chromium.org, Jun 4 2018

Components: -Blink>Editing Blink>Editing>Command
Status: WontFix (was: Unconfirmed)
Mark WontFix since it is application issue instead of Chrome.

queryCommandState() checks computed style for containing element of selection
start.

Demo: https://jsfiddle.net/46mssfsc/2/


HTML editor application may want to hold style for inserting character and updates
it by selection change or menu.











Hi! What news about fixing this bug?!

Sign in to add a comment