Jump to content

How to add the ability to edit html (with TinyCME) in the description of the manufacturer.


Chisla

Recommended Posts

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...