mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-30 12:49:19 +00:00
LibWeb: Add spec links to editing command definitions
This commit is contained in:
parent
cf57efd252
commit
e64766d54d
Notes:
github-actions[bot]
2025-01-10 22:39:58 +00:00
Author: https://github.com/gmta
Commit: e64766d54d
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3216
1 changed files with 6 additions and 1 deletions
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2024, Jelle Raaijmakers <jelle@ladybird.org>
|
||||
* Copyright (c) 2024-2025, Jelle Raaijmakers <jelle@ladybird.org>
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
*/
|
||||
|
@ -794,23 +794,28 @@ bool command_style_with_css_state(DOM::Document const& document)
|
|||
}
|
||||
|
||||
static Array const commands {
|
||||
// https://w3c.github.io/editing/docs/execCommand/#the-delete-command
|
||||
CommandDefinition {
|
||||
.command = CommandNames::delete_,
|
||||
.action = command_delete_action,
|
||||
},
|
||||
// https://w3c.github.io/editing/docs/execCommand/#the-defaultparagraphseparator-command
|
||||
CommandDefinition {
|
||||
.command = CommandNames::defaultParagraphSeparator,
|
||||
.action = command_default_paragraph_separator_action,
|
||||
.value = command_default_paragraph_separator_value,
|
||||
},
|
||||
// https://w3c.github.io/editing/docs/execCommand/#the-insertlinebreak-command
|
||||
CommandDefinition {
|
||||
.command = CommandNames::insertLineBreak,
|
||||
.action = command_insert_linebreak_action,
|
||||
},
|
||||
// https://w3c.github.io/editing/docs/execCommand/#the-insertparagraph-command
|
||||
CommandDefinition {
|
||||
.command = CommandNames::insertParagraph,
|
||||
.action = command_insert_paragraph_action,
|
||||
},
|
||||
// https://w3c.github.io/editing/docs/execCommand/#the-stylewithcss-command
|
||||
CommandDefinition {
|
||||
.command = CommandNames::styleWithCSS,
|
||||
.action = command_style_with_css_action,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue