Chisla Posted October 24, 2015 Share Posted October 24, 2015 To add the ability to edit html (TinyCME, RTE) in the description of the manufacturer: 1. Allow html. In \classes\Manufacturer.php replace with 81 > 'description' => array('type' => self::TYPE_HTML, 'lang' => true, 'validate' => 'isString'),82 > 'short_description' => array('type' => self::TYPE_HTML, 'lang' => true, 'validate' => 'isString', 'size' => 4096), to 81 > 'description' => array('type' => self::TYPE_HTML, 'lang' => true, 'validate' => 'isCleanHtml'),82 > 'short_description' => array('type' => self::TYPE_HTML, 'lang' => true, 'validate' => 'isCleanHtml', 'size' => 4096), 2. Activate wysiwyg editor. In \controllers\admin\AdminManufacturersController.php In function renderForm() add "'autoload_rte' => true," into array 'Short description:' & 'Description:' Example 1.5 Everything is very simple.Enjoy Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now