Skip to content
This repository was archived by the owner on Aug 18, 2025. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,15 @@ function isAnInteractiveElement(parent: Element, current: ?Element) {
return true;
}

// contenteditable="true" or contenteditable="" are valid ways
// contenteditable="true", contenteditable="" and contenteditable="plaintext-only" are valid ways
// of creating a contenteditable container
// https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/contenteditable
const attribute: ?string = current.getAttribute('contenteditable');
if (attribute === 'true' || attribute === '') {
if (
attribute === 'true' ||
attribute === '' ||
attribute === 'plaintext-only'
) {
return true;
}

Expand Down