silverstripe/silverstripe-framework — pull request #2497 by expouic (2013-10-04 15:54:34+00:00)
Title: Added more options to configuration of tinyMCE

Added more options to configuration of tinyMCE.
Need this to using URLs absolute to another area from my site.

_config.php

HtmlEditorConfig::get('cms')->setOption('verify_html', 'false'); // turn off html validation
HtmlEditorConfig::get('cms')->setOption('relative_urls', 'false'); // turn off html validation
HtmlEditorConfig::get('cms')->setOption('remove_script_host', 'false'); // turn off html validation
HtmlEditorConfig::get('cms')->setOption('document_base_url', Director::baseURL()); // set document base url same like baseURL