mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-20 07:35:05 -04:00
chat: Allow chatNewMessage
hook to modify more values
This commit is contained in:
parent
1ad134a538
commit
74554d36a5
2 changed files with 26 additions and 23 deletions
|
@ -294,6 +294,11 @@ Things in context:
|
|||
|
||||
This hook is called on the client side whenever a chat message is received from
|
||||
the server. It can be used to create different notifications for chat messages.
|
||||
Hoook functions can modify the `author`, `authorName`, `duration`, `sticky`,
|
||||
`text`, and `timeStr` context properties to change how the message is processed.
|
||||
The `text` and `timeStr` properties may contain HTML, but plugins should be
|
||||
careful to sanitize any added user input to avoid introducing an XSS
|
||||
vulnerability.
|
||||
|
||||
## collectContentPre
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue