{"id":5056,"date":"2023-02-07T13:46:11","date_gmt":"2023-02-07T13:46:11","guid":{"rendered":"https:\/\/info.documotor.com\/?page_id=5056"},"modified":"2023-03-21T09:52:35","modified_gmt":"2023-03-21T09:52:35","slug":"textelement","status":"publish","type":"page","link":"https:\/\/info.documotor.com\/?page_id=5056","title":{"rendered":"TextElement"},"content":{"rendered":"\n<p>Inserts a document into the template. The document can be a template and will be generated with the current scope as its starting scope. The entire paragraph of the content control will be replaced, so it is recommended that the binding is a line by itself in the template.<\/p>\n\n\n\n<h3>Syntax<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"json\" class=\"language-json\">{ \"BindingType\": \"TextElement\", \"BindingKey\": \"FilePath\" }<\/code><\/pre>\n\n\n\n<h3>Parameters<\/h3>\n\n\n\n<p><strong>BindingType:<\/strong> Static. Must be &#8220;TextElement&#8221;.<br><strong>FilePath<\/strong>: string, a string which is either a Base64 string or a public URL that can be used to download the text element.<\/p>\n\n\n\n<h3>Notes<\/h3>\n\n\n\n<p>It is possible to create a Base64 string of existing DocuMotor templates to use for the TextElement binding. See this <a href=\"https:\/\/info.documotor.com\/?page_id=4117\" data-type=\"page\" data-id=\"4117\" target=\"_blank\" rel=\"noreferrer noopener\">article<\/a> for more information.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Inserts a document into the template. The document can be a template and will be generated with the current scope as its starting scope. The entire paragraph of the content control will be replaced, so it is recommended that the binding is a line by itself in the template. Syntax Parameters BindingType: Static. Must be [&hellip;]<\/p>\n","protected":false},"author":5,"featured_media":0,"parent":148,"menu_order":2,"comment_status":"closed","ping_status":"closed","template":"","meta":[],"_links":{"self":[{"href":"https:\/\/info.documotor.com\/index.php?rest_route=\/wp\/v2\/pages\/5056"}],"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=5056"}],"version-history":[{"count":3,"href":"https:\/\/info.documotor.com\/index.php?rest_route=\/wp\/v2\/pages\/5056\/revisions"}],"predecessor-version":[{"id":5330,"href":"https:\/\/info.documotor.com\/index.php?rest_route=\/wp\/v2\/pages\/5056\/revisions\/5330"}],"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=5056"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}