Source of file _config.php
Size: 0,778 Bytes - Last Modified: 2021-12-24T06:39:22+00:00
/var/www/docs.ssmods.com/process/src/_config.php
12345678910111213141516171819 | <?php Deprecation::notification_version('1.0', 'retinaimages'); define('RETINA_MODULE_DIR', dirname(__FILE__)); SS_Object::useCustomClass('Image', 'RetinaImage'); SS_Object::useCustomClass('Image_Cached', 'RetinaImage_Cached'); // SiteTree uses new HtmlEditorField() instead of HtmlEditorField::create() // as a result if you want retina images in your WYSIWYG editor you'll need to // recreate the HtmlEditorField. SS_Object::useCustomClass('HtmlEditorField', 'RetinaImageHtmlEditorField'); // tinyCMS additional HTML5 elements $wysiwyg = HtmlEditorConfig::get('cms')->getOption('valid_elements'); $wysiwyg .= ',-img[id|dir|longdesc|usemap|class|src|border|alt=|title|width|height|align|data*|srcset]'; HtmlEditorConfig::get('cms')->setOption('valid_elements', $wysiwyg); |