New issue
Advanced search Search tips

Issue 633810 link

Starred by 2 users

Issue metadata

Status: Available
Owner: ----
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Windows , Chrome , Mac
Pri: 3
Type: Feature



Sign in to add a comment

Different <br> behaviour for divs with contenteditable="true" and contenteditable="plaintext-only"

Project Member Reported by n...@chromium.org, Aug 3 2016

Issue description

Version: M51, M54
OS: Mac

There's an old trick to get a single-line <div contenteditable> by hiding the generated <br>s: http://jsbin.com/sukelu/edit?html,output.

This does not work if contenteditable="plaintext-only" (but works if contenteditable="true"). On Safari, it works in both cases

What steps will reproduce the problem?
(1) Type multiline text in both textboxes.

What is the expected output?
Both textboxes should be single-line.

What do you see instead?
The div with contenteditable="plaintext-only" is multiline.

 

Comment 1 by yosin@chromium.org, Aug 3 2016

Labels: -Type-Bug OS-Windows Type-Feature
Status: Available (was: Untriaged)
Since "plaintext-only" value is Blink/WebKit specific value, I don't recommend to use it.

Should we make "plaintext-only" as standard value?

To implement INPUT and TEXTAREA with "contenteditable", we need to disable formatting shortcut keys, Ctrl+B, Ctrl+I, Ctrl+U, ..., context menu in mobile Safari, pasting, etc.

# "plaintext-only"
<div contenteditable="plaintext-only"><div>foo</div></div>

# "true"
<div contenteditable>"foo"<div>br</div></div>



Project Member

Comment 2 by sheriffbot@chromium.org, Aug 3 2017

Labels: Hotlist-Recharge-Cold
Status: Untriaged (was: Available)
This issue has been Available for over a year. If it's no longer important or seems unlikely to be fixed, please consider closing it out. If it is important, please re-triage the issue.

Sorry for the inconvenience if the bug really should have been left as Available. If you change it back, also remove the "Hotlist-Recharge-Cold" label.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot

Comment 3 by yosin@chromium.org, Aug 7 2017

Status: Available (was: Untriaged)

Comment 4 by ojan@chromium.org, May 8 2018

Cc: -ojan@chromium.org

Sign in to add a comment