mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-31 21:29:06 +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
Notes:
sideshowbarker
2024-07-19 04:23:09 +09:00
Author: https://github.com/awesomekling
Commit: 07e13e9868
9 changed files with 107 additions and 70 deletions
|
@ -82,6 +82,8 @@ public:
|
|||
String inner_html() const;
|
||||
void set_inner_html(StringView);
|
||||
|
||||
virtual bool is_editable() const final;
|
||||
|
||||
protected:
|
||||
RefPtr<LayoutNode> create_layout_node(const CSS::StyleProperties* parent_style) override;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue