mirror of
https://github.com/RGBCube/serenity
synced 2025-07-08 17:47:35 +00:00
LibWeb: Only allow editing of elements with contenteditable="true"
We now respect the contenteditable HTML attribute and only let you edit content inside explicitly editable elements.
This commit is contained in:
parent
8b16c61ff8
commit
07e13e9868
9 changed files with 107 additions and 70 deletions
|
@ -217,4 +217,9 @@ void Node::set_document(Badge<Document>, Document& document)
|
|||
m_document = &document;
|
||||
}
|
||||
|
||||
bool Node::is_editable() const
|
||||
{
|
||||
return parent() && parent()->is_editable();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue