{"id":626,"date":"2014-01-06T07:23:55","date_gmt":"2014-01-06T07:23:55","guid":{"rendered":"http:\/\/www.advancedwebhelp.com\/blog\/?p=626"},"modified":"2014-01-06T07:27:33","modified_gmt":"2014-01-06T07:27:33","slug":"silverstripe-editor-need-more-tags-fix-it","status":"publish","type":"post","link":"https:\/\/www.advancedwebhelp.com\/blog\/2014\/silverstripe-editor-need-more-tags-fix-it","title":{"rendered":"SilverStripe editor need more Tags? Fix it!"},"content":{"rendered":"<p><img loading=\"lazy\" decoding=\"async\" width=\"150\" height=\"150\" class=\"size-full wp-image-597 \" alt=\"SilverStripe\" src=\"http:\/\/www.advancedwebhelp.com\/blog\/wp-content\/uploads\/2013\/12\/SilverStripe-Logo.png\" style=\"width: 150px ; height: 150px ; float: right\" srcset=\"https:\/\/www.advancedwebhelp.com\/blog\/wp-content\/uploads\/2013\/12\/SilverStripe-Logo.png 150w, https:\/\/www.advancedwebhelp.com\/blog\/wp-content\/uploads\/2013\/12\/SilverStripe-Logo-148x148.png 148w, https:\/\/www.advancedwebhelp.com\/blog\/wp-content\/uploads\/2013\/12\/SilverStripe-Logo-31x31.png 31w, https:\/\/www.advancedwebhelp.com\/blog\/wp-content\/uploads\/2013\/12\/SilverStripe-Logo-38x38.png 38w\" sizes=\"auto, (max-width: 150px) 100vw, 150px\" \/><\/p>\n<p>If you are having the problem that SilverStripe editor is striping out tags that you would like to use, <strong>fix it<\/strong>.<\/p>\n<p>This article explains. SilverStripe uses the TinyMCE editor.   SilverStripe has set up to permit you to add content to the \/mysite\/_config.php file and extend the tags that are accepted by the SilverStripe editor.<\/p>\n<p>In the <strong>\/mysite\/_config.php<\/strong> file, add the following statement:<\/p>\n<p><code><\/p>\n<pre>\r\n\r\n  HtmlEditorConfig::get('cms')->setOption(\r\n    'extended_valid_elements',\r\n    'img[id|class|src|alt|title|hspace|vspace|width|height|' .\r\n    'align|onmouseover|onmouseout|name|usemap],' .\r\n    'iframe[id|class|src|name|width|height|title|align|allowfullscreen|' .\r\n    'frameborder|marginwidth|marginheight|scrolling],' .\r\n    'object[classid|codebase|width|height|data|type],' . \r\n    'embed[id|class|src|type|pluginspage|width|height|autoplay],' .\r\n    'param[name|value],' .\r\n    'map[class|name|id],' .\r\n    'area[shape|coords|href|target|alt],' . \r\n    'article[id|class|name|width|style],' .\r\n    'section[id|class|name|width|style],' .\r\n    'aside[id|class|name|width|style],' .\r\n    'article[id|class|name|width|style],' .\r\n    'ol[id|class|start|type]') ;\r\n\r\n<\/pre>\n<p><\/code><\/p>\n<p>Use the format above to extend the editor to use any tags and tag attributes that you would like available to the editor.  Above you see various tags and attributes being included, including HTML5 tags and attributes.   You can include just the tags and attributes you believe you&#8217;ll need to support your use of the SilverStripe editor.<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>If you are having the problem that SilverStripe editor is striping out tags that you would like to use, fix it. This article explains. SilverStripe uses the TinyMCE editor. SilverStripe has set up to permit you to add content to the \/mysite\/_config.php file and extend the tags that are accepted by the SilverStripe editor. In [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,5,26],"tags":[],"class_list":["post-626","post","type-post","status-publish","format-standard","hentry","category-html5","category-php","category-silverstripe"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.advancedwebhelp.com\/blog\/wp-json\/wp\/v2\/posts\/626","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.advancedwebhelp.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.advancedwebhelp.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.advancedwebhelp.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.advancedwebhelp.com\/blog\/wp-json\/wp\/v2\/comments?post=626"}],"version-history":[{"count":2,"href":"https:\/\/www.advancedwebhelp.com\/blog\/wp-json\/wp\/v2\/posts\/626\/revisions"}],"predecessor-version":[{"id":633,"href":"https:\/\/www.advancedwebhelp.com\/blog\/wp-json\/wp\/v2\/posts\/626\/revisions\/633"}],"wp:attachment":[{"href":"https:\/\/www.advancedwebhelp.com\/blog\/wp-json\/wp\/v2\/media?parent=626"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.advancedwebhelp.com\/blog\/wp-json\/wp\/v2\/categories?post=626"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.advancedwebhelp.com\/blog\/wp-json\/wp\/v2\/tags?post=626"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}