jantman / jiveapi

ABANDONED - Simple and limited Python client for Jive collaboration software ReST API v3, along with utilities for massaging HTML to display better on Jive.
http://jiveapi.readthedocs.io/
GNU Affero General Public License v3.0
2 stars 1 forks source link

Macros? #3

Closed jantman closed 6 years ago

jantman commented 6 years ago

Stuff about Editable Content and RTE Macros

https://developers.jivesoftware.com/api/v3/cloud/rest/ContentService.html#updateEditableContent(String, String, boolean, boolean, String)

Table of Contents macro:

replace(
    '<!--- INSERT TABLE OF CONTENTS HERE -->',
    '<p style="color: #24292e; margin-top: 0; margin-bottom: 16px;"><img '
    'alt="Table of contents" class="jive_macro jive_macro_toc" src="/images/'
    'tiny_mce4/themes/advanced/img/toc.png" jivemacro="toc" /></p>'
)
<!-- TOC -->
<p style="color: #24292e; margin-top: 0; margin-bottom: 16px;"><img alt="Table of contents" class="jive_macro jive_macro_toc" src="https://assets2.jiveon.com/core/2016.3.9.0.b96715f/images/tiny_mce4/themes/advanced/img/toc.png" jivemacro="toc" /></p>

<!-- Alerts -->
<pre class="jive_text_macro jive_macro_alert" jivemacro="alert" ___default_attr="info" _alert="info" _modifiedtitle="true">
<p>This is an informational alert.</p>
</pre>
<pre class="jive_text_macro jive_macro_alert" jivemacro="alert" ___default_attr="success" _alert="success" _modifiedtitle="true">
<p>This is a green check mark success alert.</p>
</pre>
<pre class="jive_text_macro jive_macro_alert" jivemacro="alert" ___default_attr="warning" _alert="warning" _modifiedtitle="true">
<p>This is an orange triangle warning alert.</p>
</pre>
<pre class="jive_text_macro jive_macro_alert" jivemacro="alert" ___default_attr="danger" _alert="danger" _modifiedtitle="true">
<p>This is a red lightning bolt danger alert.</p>
</pre>
jantman commented 6 years ago

Fixed in 28eeb69