From 8f262d0eded8798967efb8d1b2d6ec414316a9e9 Mon Sep 17 00:00:00 2001 From: Chia-liang Kao Date: Sat, 15 Jun 2013 11:07:13 +0800 Subject: [PATCH] document aceSetAuthorStyle --- doc/api/hooks_client-side.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/doc/api/hooks_client-side.md b/doc/api/hooks_client-side.md index 919859417..80dcc52ac 100644 --- a/doc/api/hooks_client-side.md +++ b/doc/api/hooks_client-side.md @@ -261,3 +261,18 @@ This hook is provided to allow whether a given line should be deliniated with mu Multiple authors in one line cause the creation of magic span lines. This might not suit you and now you can disable it and handle your own deliniation. The return value should be either true(disable) or false. + +## aceSetAuthorStyle +Called from: src/static/js/ace2_inner.js + +Things in context: + +1. dynamicCSS - css manger for inner ace +2. outerDynamicCSS - css manager for outer ace +3. parentDynamicCSS - css manager for parent document +4. info - author style info +5. author - author info +6. authorSelector - css selector for author span in inner ace + +This hook is provided to allow author highlight style to be modified. +Registered hooks should return 1 if the plugin handles highlighting. If no plugin returns 1, the core will use the default background-based highlighting.