mirror of
https://github.com/ether/etherpad-lite.git
synced 2026-05-06 04:36:17 +02:00
new hook: aceSetAuthorStyle
This commit is contained in:
parent
eae9faa28c
commit
548f31a46a
@ -213,8 +213,22 @@ function Ace2Inner(){
|
||||
if (!dynamicCSS) {
|
||||
return;
|
||||
}
|
||||
|
||||
var authorSelector = getAuthorColorClassSelector(getAuthorClassName(author));
|
||||
|
||||
var authorStyleSet = hooks.callAll('aceSetAuthorStyle', {
|
||||
dynamicCSS: dynamicCSS,
|
||||
parentDynamicCSS: parentDynamicCSS,
|
||||
info: info,
|
||||
author: author,
|
||||
authorSelector: authorSelector,
|
||||
});
|
||||
|
||||
// Prevent default behaviour if any hook says so
|
||||
if (_.any(authorStyleSet, function(it) { return it }))
|
||||
{
|
||||
return
|
||||
}
|
||||
|
||||
if (!info)
|
||||
{
|
||||
dynamicCSS.removeSelectorStyle(authorSelector);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user