Open
Bug 1655713
Opened 5 years ago
Updated 5 years ago
Firefox does not support document.execCommand("indent") on code-tags with contenteditable="true"
Categories
(Core :: DOM: Editor, defect)
Tracking
()
UNCONFIRMED
People
(Reporter: kolya33, Unassigned)
Details
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.105 Safari/537.36
Steps to reproduce:
I created a code area and gave it the attribute contenteditable="true".
Then I wrote Javascript to indent the content of this code area.
jsfiddle.net/KolyaKorruptis/zsa5u176/4/
Actual results:
The content is not indented. The same works for a div with contenteditable="true" but not on a code tag. See my jsfiddle above.
Expected results:
The content should get indented on pressing the tabulator key.
Comment 1•5 years ago
|
||
Bugbug thinks this bug should belong to this component, but please revert this change in case of error.
Component: Untriaged → DOM: Editor
Product: Firefox → Core
Updated•5 years ago
|
Severity: -- → S4
You need to log in
before you can comment on or make changes to this bug.
Description
•