diff options
author | Thomas Muehlichen <ext_github_tm@linkwerk.com> | 2015-03-31 10:50:20 +0200 |
---|---|---|
committer | Thomas Muehlichen <ext_github_tm@linkwerk.com> | 2015-03-31 10:50:20 +0200 |
commit | 1e8e64d675691b4c8dc0f461958a439ec33d6154 (patch) | |
tree | e352943704f75f6de326c567931102f6b79c4b4d /doc | |
parent | 1c05933dc91c9669a2f8407ab471c204f6975e98 (diff) | |
download | etherpad-lite-1e8e64d675691b4c8dc0f461958a439ec33d6154.zip |
feature #2567 added documentation
Diffstat (limited to 'doc')
-rw-r--r-- | doc/api/hooks_client-side.md | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/doc/api/hooks_client-side.md b/doc/api/hooks_client-side.md index 8e2d3da7..f9ad9147 100644 --- a/doc/api/hooks_client-side.md +++ b/doc/api/hooks_client-side.md @@ -203,6 +203,13 @@ Things in context: This hook is called before the content of a node is collected by the usual methods. The cc object can be used to do a bunch of things that modify the content of the pad. See, for example, the heading1 plugin for etherpad original. +E.g. if you need to apply an attribute to newly inserted characters, +call cc.doAttrib(state, "attributeName") which results in an attribute attributeName=true. + +If you want to specify also a value, call cc.doAttrib(state, "attributeName:value") +which results in an attribute attributeName=value. + + ## collectContentImage Called from: src/static/js/contentcollector.js |