{"id":12555,"date":"2024-07-10T16:45:59","date_gmt":"2024-07-10T13:45:59","guid":{"rendered":"https:\/\/dhtmlx.com\/blog\/?p=12555"},"modified":"2026-01-23T15:06:01","modified_gmt":"2026-01-23T12:06:01","slug":"dhtmlx-richtext-1-2","status":"publish","type":"post","link":"https:\/\/dhtmlx.com\/blog\/dhtmlx-richtext-1-2\/","title":{"rendered":"DHTMLX RichText 1.2 with Adjustable Default Settings in Toolbar and Other Improvements"},"content":{"rendered":"<p>Today we are happy to announce the release of DHTMLX RichText v1.2. This minor release includes a single but helpful feature for web developers and end-users. From now on, it is possible to set the required default values in the toolbar controls of the editor, thereby freeing end-users from the necessity to do it manually. Whether you prefer Georgia, Verdana, or any other popular font for your work, RichText&#8217;s new features ensure that your text appears just the way you want it right from the start. Apart from that, we also prepared a pack of fixes that will enhance your experience with our <a href=\"https:\/\/dhtmlx.com\/docs\/products\/dhtmlxRichText\/\" target=\"_blank\" rel=\"noopener\">JavaScript Rich Text Editor<\/a>.<\/p>\n\n\t\t<div class='post-banner'>\n\t\t    <div class='post-banner__inside'>\n\t\t        <div>\n\t\t            <div class=\"post-banner__title\">Download DHTMLX RichText v1.2<\/div>\n\t\t            <div class=\"post-banner__text\">Estimate the updated functionality for editing content<\/div>\n                <\/div>\n\t\t            \n                \n            <div class='post-banner__btn'>\n                <a href='https:\/\/dhtmlx.com\/docs\/products\/dhtmlxRichText\/download.shtml' title='' class='button-secondary'>Get free trial<\/a>\n            <\/div>\n        \n            <\/div>\n\t\t<\/div>\n\t\n<p>In this blog post, we offer a detailed overview of this update.<\/p>\n<h5>Changing Default Settings for Editor&#8217;s Toolbar Controls<\/h5>\n<p>This feature is a cornerstone of this release. Starting from v1.2, you can preset default values for various text parameters such as font, font size, etc. during the initial setup. Thus, you can create a visually consistent and user-friendly text editing environment.<\/p>\n<p>Programmatically, it can be done in the newly added <strong><a href=\"https:\/\/docs.dhtmlx.com\/richtext\/api\/config\/default-styles\/\" target=\"_blank\" rel=\"noopener\">defaultStyle<\/a><\/strong> config:<\/p>\n<div class=\"codecolorer-container javascript default\" style=\"overflow:auto;white-space:nowrap;\"><div class=\"javascript codecolorer\"><span class=\"kw1\">const<\/span> richtext <span class=\"sy0\">=<\/span> <span class=\"kw1\">new<\/span> dhx.<span class=\"me1\">Richtext<\/span><span class=\"br0\">&#40;<\/span><span class=\"st0\">&quot;richtext&quot;<\/span><span class=\"sy0\">,<\/span> <span class=\"br0\">&#123;<\/span><br \/>\ndefaultStyle<span class=\"sy0\">:<\/span> <span class=\"br0\">&#123;<\/span><br \/>\n<span class=\"st0\">&quot;font-family&quot;<\/span><span class=\"sy0\">:<\/span> <span class=\"st0\">&quot;Georgia&quot;<\/span><span class=\"sy0\">,<\/span> <span class=\"co1\">\/\/&quot;Roboto&quot;, &quot;Arial&quot;, &quot;Georgia&quot;, &quot;Tahoma&quot;, &quot;Times New Roman&quot;, &quot;Verdana&quot;<\/span><br \/>\n<span class=\"st0\">&quot;font-size&quot;<\/span><span class=\"sy0\">:<\/span> <span class=\"st0\">&quot;28px&quot;<\/span><span class=\"sy0\">,<\/span><br \/>\n<span class=\"st0\">&quot;color&quot;<\/span><span class=\"sy0\">:<\/span> <span class=\"st0\">&quot;#fff&quot;<\/span><span class=\"sy0\">,<\/span><br \/>\n<span class=\"st0\">&quot;background&quot;<\/span><span class=\"sy0\">:<\/span> <span class=\"st0\">&quot;#0288d1&quot;<\/span><span class=\"sy0\">,<\/span><br \/>\n<span class=\"st0\">&quot;bold&quot;<\/span><span class=\"sy0\">:<\/span> <span class=\"kw2\">true<\/span><span class=\"sy0\">,<\/span><br \/>\n<span class=\"st0\">&quot;italic&quot;<\/span><span class=\"sy0\">:<\/span> <span class=\"kw2\">false<\/span><span class=\"sy0\">,<\/span><br \/>\n<span class=\"st0\">&quot;strike&quot;<\/span><span class=\"sy0\">:<\/span> <span class=\"kw2\">false<\/span><span class=\"sy0\">,<\/span><br \/>\n<span class=\"st0\">&quot;underline&quot;<\/span><span class=\"sy0\">:<\/span> <span class=\"kw2\">true<\/span><span class=\"sy0\">,<\/span><br \/>\n<span class=\"st0\">&quot;align&quot;<\/span><span class=\"sy0\">:<\/span> <span class=\"st0\">&quot;center&quot;<\/span><span class=\"sy0\">,<\/span> <span class=\"co1\">\/\/&quot;left&quot;, &quot;center&quot;, &quot;right&quot;<\/span><br \/>\n<span class=\"br0\">&#125;<\/span><br \/>\n<span class=\"br0\">&#125;<\/span><span class=\"br0\">&#41;<\/span><span class=\"sy0\">;<\/span><\/div><\/div>\n<p><a href=\"https:\/\/snippet.dhtmlx.com\/wt6uqwpo?tag=richtext&amp;mode=wide\" target=\"_blank\" rel=\"noopener\">Check the sample &gt;<\/a><\/p>\n<p>What is the benefit of this feature for end-users? Let us imagine, for instance, that an organization uses our library in a corporate app for preparing documents. It is common for businesses to have specific guidelines related to the paperwork, including text formatting. And what if multiple users start simultaneously working on the same document and some of them forget to change text formatting settings? It will certainly turn out to be a mess. With the new feature, end-users can be sure that the required settings are applied by default and forget about the risk of errors and inconsistencies in text formatting.<\/p>\n<p>As a result, web developers get more control over the editor\u2019s behavior and can quickly change default settings for specific use cases. End-users won\u2019t have to repeatedly adjust settings each time they start a new document, which optimizes their workflow and enhances productivity.<\/p>\n<h5>New Bug Fixes<\/h5>\n<p>We also did not forget to address the bugs reported by current users of DHTMLX RichText. In v1.2, we introduced the following fixes and improvements:<\/p>\n<ul>\n<li>Cross-widget localization<\/li>\n<li>Scripts to deploy npm-pro and npm trial packages<\/li>\n<li>Corrected HTML parsing<\/li>\n<li>Retyping the text with an embedded link does not cause an error anymore<\/li>\n<li>When changing the font, the previous character no longer appears before the text<\/li>\n<\/ul>\n<p>In the &#8220;<a href=\"https:\/\/docs.dhtmlx.com\/richtext\/news\/whats_new\/\" target=\"_blank\" rel=\"noopener\">What\u2019s new<\/a>&#8221; section of our documentation, you can find a quick revision of all the novelties included in DHTMLX RichText 1.2.<\/p>\n<p>If you want to test the new version of our RichText right now, you are welcome to download a <a href=\"https:\/\/dhtmlx.com\/docs\/products\/dhtmlxRichText\/download.shtml\" target=\"_blank\" rel=\"noopener\">free 30-day trial version<\/a> and get down to it. For our current clients, v1.2 is available in their <a href=\"https:\/\/dhtmlx.com\/clients\/\" target=\"_blank\" rel=\"noopener\">Client\u2019s Area<\/a>.<\/p>\n<h5>Related Materials:<\/h5>\n<ul>\n<li><a href=\"https:\/\/docs.dhtmlx.com\/richtext\/news\/whats_new\/\" target=\"_blank\" rel=\"noopener\">What\u2019s new in v1.2<\/a><\/li>\n<li><a href=\"https:\/\/docs.dhtmlx.com\/richtext\/\" target=\"_blank\" rel=\"noopener\">DHTMLX RichText documentation<\/a><\/li>\n<li><a href=\"https:\/\/snippet.dhtmlx.com\/wt6uqwpo?tag=richtext&amp;mode=wide\" target=\"_blank\" rel=\"noopener\">DHTMLX RichText code snippets<\/a><\/li>\n<li><a href=\"https:\/\/dhtmlx.com\/docs\/products\/dhtmlxRichText\/download.shtml\" target=\"_blank\" rel=\"noopener\">Free 30-day trial version<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Today we are happy to announce the release of DHTMLX RichText v1.2. This minor release includes a single but helpful feature for web developers and end-users. From now on, &#8230;<\/p>\n","protected":false},"author":101014,"featured_media":12559,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[70],"tags":[33,61],"class_list":["post-12555","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-releases","tag-all-posts","tag-richtext"],"_links":{"self":[{"href":"https:\/\/dhtmlx.com\/blog\/wp-json\/wp\/v2\/posts\/12555","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/dhtmlx.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/dhtmlx.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/dhtmlx.com\/blog\/wp-json\/wp\/v2\/users\/101014"}],"replies":[{"embeddable":true,"href":"https:\/\/dhtmlx.com\/blog\/wp-json\/wp\/v2\/comments?post=12555"}],"version-history":[{"count":7,"href":"https:\/\/dhtmlx.com\/blog\/wp-json\/wp\/v2\/posts\/12555\/revisions"}],"predecessor-version":[{"id":14973,"href":"https:\/\/dhtmlx.com\/blog\/wp-json\/wp\/v2\/posts\/12555\/revisions\/14973"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/dhtmlx.com\/blog\/wp-json\/wp\/v2\/media\/12559"}],"wp:attachment":[{"href":"https:\/\/dhtmlx.com\/blog\/wp-json\/wp\/v2\/media?parent=12555"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dhtmlx.com\/blog\/wp-json\/wp\/v2\/categories?post=12555"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dhtmlx.com\/blog\/wp-json\/wp\/v2\/tags?post=12555"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}