mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-07 08:39:22 +00:00
LibWeb: Implement "plaintext-only" state for contenteditable
This commit is contained in:
parent
7e406ac668
commit
217567981a
Notes:
github-actions[bot]
2024-12-02 23:21:14 +00:00
Author: https://github.com/gmta
Commit: 217567981a
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2697
Reviewed-by: https://github.com/awesomekling
Reviewed-by: https://github.com/tcl3
5 changed files with 104 additions and 14 deletions
|
@ -105,9 +105,11 @@ private:
|
|||
// https://html.spec.whatwg.org/multipage/custom-elements.html#attached-internals
|
||||
GC::Ptr<ElementInternals> m_attached_internals;
|
||||
|
||||
// https://html.spec.whatwg.org/#attr-contenteditable
|
||||
enum class ContentEditableState {
|
||||
True,
|
||||
False,
|
||||
PlaintextOnly,
|
||||
Inherit,
|
||||
};
|
||||
ContentEditableState m_content_editable_state { ContentEditableState::Inherit };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue