{"id":4930,"date":"2023-02-03T10:19:58","date_gmt":"2023-02-03T10:19:58","guid":{"rendered":"https:\/\/info.documotor.com\/?page_id=4930"},"modified":"2023-02-03T10:21:29","modified_gmt":"2023-02-03T10:21:29","slug":"richhtmltext","status":"publish","type":"page","link":"https:\/\/info.documotor.com\/?page_id=4930","title":{"rendered":"RichHtmlText"},"content":{"rendered":"\n<p>Inserts text formatted using html into the document. The html doesn\u2019t need to be a full document, but paragraphs does need to be tagged. The string&nbsp;<code>This is a text with &lt;b&gt;bold&lt;\/b&gt; text.<\/code>&nbsp;Is not a valid format, but&nbsp;<code>&lt;p&gt;This is a text with &lt;b&gt;bold&lt;\/b&gt; text.&lt;\/p&gt;<\/code>&nbsp;is valid.<\/p>\n\n\n\n<h3>Syntax<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"json\" class=\"language-json\">{ \"BindingType\": \"RichHtmlText\", \"BindingKey\": \"RichTextPath\" }<\/code><\/pre>\n\n\n\n<h3>Parameters<\/h3>\n\n\n\n<p><strong>BindingType:<\/strong> Static. Must be &#8220;RichHtmlText&#8221;.<br><strong>BindingKey<\/strong>: string, The html string to insert. See below for valid html elements.<\/p>\n\n\n\n<h3>Supported HTML tags<\/h3>\n\n\n\n<ul><li>&lt;b&gt;<\/li><li>&lt;br\/&gt;<\/li><li>&lt;font face=\u201d\u201d size=\u201d\u201d color=\u201d\u201d&gt;<ul><li>Face<br>Optional attribute, name of the font family<\/li><li>Size<br>Optional attribute, size of the font, integer from 1 to 7, 3 being the normal size<\/li><li>Color<br>Optional attribute, the color of the text. Can be a name, ex: \u2018Red\u2019, hex value, or RGB format, ex \u2018rgb(255,0,0)\u2019.<\/li><\/ul><\/li><li>&lt;h1&gt;<\/li><li>&lt;h2&gt;<\/li><li>&lt;h3&gt;<\/li><li>&lt;h4&gt;<\/li><li>&lt;h5&gt;<\/li><li>&lt;h6&gt;<\/li><li>&lt;i&gt;<\/li><li>&lt;li&gt;<\/li><li>&lt;ol start=\u201d\u201d&gt;<ul><li>Start<br>Optional attribute, the value of the first list item in the list<\/li><\/ul><\/li><li>&lt;p&gt;<\/li><li>&lt;sub&gt;<\/li><li>&lt;sup&gt;<\/li><li>&lt;u&gt;<\/li><\/ul>\n\n\n\n<h3>User Style<\/h3>\n\n\n\n<p>It is possible to overwrite how tags change the style of a paragraph and introduce new inline tags. Inline tags are tags used within a paragraph, such as &lt;b&gt;. All style properties that can be set is listed below in the Style Properties section. The following user style makes the bold tag also add underscore.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"json\" class=\"language-json\">{ \u201cb\u201d: \n  { \u201cunderscore\u201d: true }\n}<\/code><\/pre>\n\n\n\n<p>The type &lt;Integer, String&gt; is a dictionary with Integer as key and String as value. It is used when mapping the level of a list to a specific style or string\/symbol. The level of a list starts at 0, with no indent. The following user style sets the style of numbered list to use Arabic numbers at no indent, Roman numbers at one indent and alphabetic letters at two indents.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"json\" class=\"language-json\">{ \u201col\u201d: \n  { \u201cbulletStyle\u201d: \n    { \n      \u201c0\u201d: \u201c1.\u201d, \n      \u201c1\u201d: \u201di.\u201d,\n      \u201c2\u201d: \u201ca.\u201d \n    } \n  }\n}<\/code><\/pre>\n\n\n\n<h4>Style Properties<\/h4>\n\n\n\n<p>The following properties can be used to override HTML styling.<\/p>\n\n\n\n<ul><li><strong>Alignment<\/strong><ul><li><strong>L<\/strong><br>Left<\/li><li><strong>Ctr<\/strong><br>Center<\/li><li><strong>R<br><\/strong>Right<\/li><\/ul><\/li><li><strong>BackgroundColor<\/strong>, string<br>The color behind the text, same format as TextColor<\/li><li><strong>BaseLine<\/strong>,<strong>&nbsp;<\/strong>number<br>Moves text down if negative, and up if positive. Default for Subscript and Superscript is -25000 and 30000 respectively.<\/li><li><strong>Bold<\/strong>, boolean<br>Makes text bold if true<\/li><li><strong>BulletChar<\/strong>, &lt;integer, string&gt;<br>A mapping of numbered list level, and what string to use as the bullet<\/li><li><strong>BulletStyle<\/strong>, &lt;integer, string&gt;<br>A mapping of numbered list level and what style to use for bullets. The following types of bullets are supported:<ul><li><strong>l.<\/strong><\/li><li><strong>l)<\/strong><\/li><li><strong>i.<\/strong><\/li><li><strong>i)<\/strong><\/li><li><strong>I.<\/strong><\/li><li><strong>I)<\/strong><\/li><li><strong>a.<\/strong><\/li><li><strong>a)<\/strong><\/li><li><strong>A.<\/strong><\/li><li><strong>A)<\/strong><\/li><\/ul><\/li><li><strong>DefaultFontSize<\/strong>, decimal number<br>The size of the text at a factor of 1. Usually only set int he body, and then factor is used in the remaining tags, but it is not a requirement.<\/li><li><strong>Font<\/strong>, text<br>Name of the font to use. Write it as displayed in Powerpoint.<\/li><li><strong>FontSizeFactor<\/strong>, decimal number<br>The size of teh text in a tag is by default some % of the default font size. A factor of 1 means that size is unchanged.<\/li><li><strong>Indent<\/strong>, number<br>Adds a margin to the left side of the first line of a paragraph.<\/li><li><strong>IsNumbered<\/strong>, boolean<br>Marks paragraph as a numbered list item.<\/li><li><strong>Italic<\/strong>, boolean<br>Makes text italic if true<\/li><li><strong>LineSpace<\/strong>, decimal number<br>Multiplier of line space in a paragraph. So 2 is 200% and 1.5 is 150%<\/li><li><strong>MarginLeft<\/strong>, number<br>Adds a margin to the left side of the entire paragraph.<\/li><li><strong>NumberStart<\/strong>, number<br>The number of the first list item in a numbered list.<\/li><li><strong>ShowBullet<\/strong>, boolean<br>Markrs paragraph as a bullet list item.<\/li><li><strong>SpaceAfter<\/strong>, decimal number<br>Points of empty space to add after a paragraph.<\/li><li><strong>SpaceBefore<\/strong>, decimal number<br>Points of empty space to add before a paragraph.<\/li><li><strong>TextColor<\/strong>, text<br>The color of the text. Can either use a name \u2018red\u2019, Hex value \u2018#ff0000\u2019, or rgb format \u2018rgb(255,0,0)\u2019.<\/li><li><strong>Underscore<\/strong>, boolean<br>Adds a single line of underscore to the text if true.<\/li><\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Inserts text formatted using html into the document. The html doesn\u2019t need to be a full document, but paragraphs does need to be tagged. The string&nbsp;This is a text with &lt;b&gt;bold&lt;\/b&gt; text.&nbsp;Is not a valid format, but&nbsp;&lt;p&gt;This is a text with &lt;b&gt;bold&lt;\/b&gt; text.&lt;\/p&gt;&nbsp;is valid. Syntax Parameters BindingType: Static. Must be &#8220;RichHtmlText&#8221;.BindingKey: string, The html string [&hellip;]<\/p>\n","protected":false},"author":5,"featured_media":0,"parent":148,"menu_order":3,"comment_status":"closed","ping_status":"closed","template":"","meta":[],"_links":{"self":[{"href":"https:\/\/info.documotor.com\/index.php?rest_route=\/wp\/v2\/pages\/4930"}],"collection":[{"href":"https:\/\/info.documotor.com\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/info.documotor.com\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/info.documotor.com\/index.php?rest_route=\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/info.documotor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=4930"}],"version-history":[{"count":3,"href":"https:\/\/info.documotor.com\/index.php?rest_route=\/wp\/v2\/pages\/4930\/revisions"}],"predecessor-version":[{"id":4933,"href":"https:\/\/info.documotor.com\/index.php?rest_route=\/wp\/v2\/pages\/4930\/revisions\/4933"}],"up":[{"embeddable":true,"href":"https:\/\/info.documotor.com\/index.php?rest_route=\/wp\/v2\/pages\/148"}],"wp:attachment":[{"href":"https:\/\/info.documotor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4930"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}