{"id":5286,"date":"2023-03-10T14:36:18","date_gmt":"2023-03-10T14:36:18","guid":{"rendered":"https:\/\/info.documotor.com\/?page_id=5286"},"modified":"2023-03-10T14:36:18","modified_gmt":"2023-03-10T14:36:18","slug":"richhtmltext","status":"publish","type":"page","link":"https:\/\/info.documotor.com\/?page_id=5286","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 do need to be tagged. The string\u00a0<code>This is a text with &lt;b>bold&lt;\/b> text<\/code>\u00a0is not a valid format, but\u00a0<code>&lt;p>This is a text with &lt;b>bold&lt;\/b> text.&lt;\/p><\/code>\u00a0is valid.<\/p>\n\n\n\n<h3>Syntax<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code class=\" line-numbers\">&lt;&lt;RichHtmlText:HtmlPath>><\/code><\/pre>\n\n\n\n<h3>Parameters<\/h3>\n\n\n\n<p><strong>HtmlPath:<\/strong>\u00a0JSON path of the HTML document to insert into the slide.<\/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 used within a paragraph, such as &lt;b>. All style properties that can be set are listed below in the Style Properties section. The following user style makes the bold tag also add an underscore.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code class=\" line-numbers\">{ \u201cb\u201d: \n  { \u201cunderscore\u201d: true }\n}<\/code><\/pre>\n\n\n\n<p>The type &lt;Integer, String> 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 a 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 class=\"\">{ \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>\u00a0<\/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><br>A mapping of numbered list level, and what string to use as the bullet<\/li><li><strong>BulletStyle<\/strong>, &lt;integer, string><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>Mark the 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 do need to be tagged. The string\u00a0This is a text with &lt;b>bold&lt;\/b> text\u00a0is not a valid format, but\u00a0&lt;p>This is a text with &lt;b>bold&lt;\/b> text.&lt;\/p>\u00a0is valid. Syntax Parameters HtmlPath:\u00a0JSON path of the HTML document to insert into [&hellip;]<\/p>\n","protected":false},"author":12,"featured_media":0,"parent":4603,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":[],"_links":{"self":[{"href":"https:\/\/info.documotor.com\/index.php?rest_route=\/wp\/v2\/pages\/5286"}],"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\/12"}],"replies":[{"embeddable":true,"href":"https:\/\/info.documotor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=5286"}],"version-history":[{"count":2,"href":"https:\/\/info.documotor.com\/index.php?rest_route=\/wp\/v2\/pages\/5286\/revisions"}],"predecessor-version":[{"id":5299,"href":"https:\/\/info.documotor.com\/index.php?rest_route=\/wp\/v2\/pages\/5286\/revisions\/5299"}],"up":[{"embeddable":true,"href":"https:\/\/info.documotor.com\/index.php?rest_route=\/wp\/v2\/pages\/4603"}],"wp:attachment":[{"href":"https:\/\/info.documotor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=5286"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}