mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-09 00:42:36 +00:00
Fixed #2829 - Editor | new selection-change event
This commit is contained in:
parent
62c8299319
commit
33a259d657
4 changed files with 83 additions and 7 deletions
|
@ -64,13 +64,38 @@ const EditorEvents = [
|
|||
]
|
||||
},
|
||||
{
|
||||
name: "input",
|
||||
description: "Callback to invoke when text of editor changes.",
|
||||
name: "selection-change",
|
||||
description: "Callback to invoke when selection of the text changes.",
|
||||
arguments: [
|
||||
{
|
||||
name: "event",
|
||||
name: "event.range",
|
||||
type: "object",
|
||||
description: "Representation of the selection boundaries."
|
||||
},
|
||||
{
|
||||
name: "event.oldRange",
|
||||
type: "string",
|
||||
description: 'Representation of the previous selection boundaries.'
|
||||
},
|
||||
{
|
||||
name: "event.source",
|
||||
type: "string",
|
||||
description: 'Source of change. Will be either "user" or "api".'
|
||||
},
|
||||
{
|
||||
name: "event.htmlValue",
|
||||
type: "string",
|
||||
description: "Current value as html."
|
||||
},
|
||||
{
|
||||
name: "event.textValue",
|
||||
type: "string",
|
||||
description: "Current value as text."
|
||||
},
|
||||
{
|
||||
name: "event.instance",
|
||||
type: "object",
|
||||
description: "Text editor instance."
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue