{"id":15272,"date":"2019-11-05T21:44:46","date_gmt":"2019-11-05T21:44:46","guid":{"rendered":"http:\/\/www.glitnir.com\/?page_id=15272"},"modified":"2019-11-05T22:05:42","modified_gmt":"2019-11-05T22:05:42","slug":"why-does-text-lose-its-formatting","status":"publish","type":"page","link":"https:\/\/www.glitnir.com\/index.php\/using-the-editor\/why-does-text-lose-its-formatting\/","title":{"rendered":"Why does text lose its formatting?"},"content":{"rendered":"<div id=\"pl-15272\"  class=\"panel-layout\" ><div id=\"pg-15272-0\"  class=\"panel-grid panel-no-style\" ><div id=\"pgc-15272-0-0\"  class=\"panel-grid-cell\" ><div id=\"panel-15272-0-0-0\" class=\"so-panel widget widget_sow-editor panel-first-child panel-last-child\" data-index=\"0\" ><div\n\t\t\t\n\t\t\tclass=\"so-widget-sow-editor so-widget-sow-editor-base\"\n\t\t\t\n\t\t>\n<div class=\"siteorigin-widget-tinymce textwidget\">\n\t<p><span class=\"wysiwyg-font-size-large\">What the issue is<\/span><\/p>\n<p>You may have noticed that in some cases, if you highlight text in the\u00a0<strong>Text Editor<\/strong>\u00a0within a\u00a0<strong>Text<\/strong>\u00a0content block, delete it, and start typing, the text loses its previous formatting.<\/p>\n<p>This can be frustrating and we have received many support requests about it.<\/p>\n<p>This article provides some context about this issue and some simple tips to get around it.<\/p>\n<p>&nbsp;<\/p>\n<p><span class=\"wysiwyg-font-size-large\">Why it exists<\/span><\/p>\n<p>This is not a bug in BEE, but rather a default behavior in the text editor that BEE uses in the Text content block, called\u00a0<a href=\"https:\/\/www.tinymce.com\/\" target=\"_blank\" rel=\"noopener noreferrer\">TinyMCE<\/a>. Specifically:<\/p>\n<ol>\n<li>If there is only one paragraph (e.g. a title with a large font), when you highlight all the text and start typing, the behavior is the one described. The formatting is lost.<\/li>\n<li>If there are two or more paragraphs (e.g. same title, but followed by other paragraphs with other formatting), then the issue does not occur: the formatting of the title is preserved.<\/li>\n<li><\/li>\n<\/ol>\n<p>In other words, in this scenario...<\/p>\n<p><img src=\"https:\/\/support.beefree.io\/hc\/article_attachments\/360005685612\/bee_text_editor_scenario1.PNG\" alt=\"bee_text_editor_scenario1.PNG\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>... if the users were to start typing after selecting \"BOOK YOUR NEXT VISIT TODAY\", the formatting of the title would be lost. Notice that the\u00a0<em>Text<\/em>\u00a0content block here only contains one paragraph, the large title.<\/p>\n<p>On the other hand, in this other scenario, where there is a second paragraph in the same Text content block, below the large title...<\/p>\n<p><img src=\"https:\/\/support.beefree.io\/hc\/article_attachments\/360005727431\/bee_text_editor_scenario2.PNG\" alt=\"bee_text_editor_scenario2.PNG\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>... the title formatting will NOT be lost.<\/p>\n<p>&nbsp;<\/p>\n<p><span class=\"wysiwyg-font-size-large\">How to avoid the problem<\/span><\/p>\n<p>So, to avoid losing the formatting of paragraph of text that you are selecting and need to replace with new text, you have a few options:<\/p>\n<ol>\n<li>Don't remove the entire text in the paragraph. Keep a bit of it,\u00a0type what you need, then remove the text that should not be there.<\/li>\n<li>Press \"Enter\" to create a new paragraph, highlight and type. Then remove the new paragraph (an empty paragraph is fine).<\/li>\n<\/ol>\n<p>We hope this helps!<\/p>\n<\/div>\n<\/div><\/div><\/div><\/div><\/div>","protected":false},"excerpt":{"rendered":"<p>What the issue is You may have noticed that in some cases, if you highlight text in the\u00a0Text Editor\u00a0within a\u00a0Text\u00a0content block, delete it, and start typing, the text loses its previous formatting. This can be frustrating and we have received many support requests about it. This article provides some context about this issue and some [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":15226,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":[],"_links":{"self":[{"href":"https:\/\/www.glitnir.com\/index.php\/wp-json\/wp\/v2\/pages\/15272"}],"collection":[{"href":"https:\/\/www.glitnir.com\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.glitnir.com\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.glitnir.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.glitnir.com\/index.php\/wp-json\/wp\/v2\/comments?post=15272"}],"version-history":[{"count":2,"href":"https:\/\/www.glitnir.com\/index.php\/wp-json\/wp\/v2\/pages\/15272\/revisions"}],"predecessor-version":[{"id":15291,"href":"https:\/\/www.glitnir.com\/index.php\/wp-json\/wp\/v2\/pages\/15272\/revisions\/15291"}],"up":[{"embeddable":true,"href":"https:\/\/www.glitnir.com\/index.php\/wp-json\/wp\/v2\/pages\/15226"}],"wp:attachment":[{"href":"https:\/\/www.glitnir.com\/index.php\/wp-json\/wp\/v2\/media?parent=15272"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}