Jump to content
Sign in to follow this  
puddlec

TinyMCE editor for admin

Recommended Posts

This addon adds support for the TinyMCE editor within the admin section.

what does this addon do?

it will add the editor to the following textarea's 

category description, manufacturers description, product description

works with multi languages stores.

requirements
Phoenix

How to install

  1. Upload the files

yes it is easy as that.

no files need to be edited it uses the hook system, to add the code needed.

How to change what appears on the toolbars, and plugins used

Just go to the tinymce.php hook file

located at catalog\includes\hooks\admin\siteWide\

you will see a block of code for plugins (line 61)

and for toolbar 1 & 2 (line 67 & 68)

the settings provided are what i use myself.

Got an TinyMCE API key?

just change the script source (line 53)

How to add extra textarea's

example add TinyMCE to the order comments box

add orders.php  to (line 44)

like so

var $good_pages = ['categories.php', 'manufacturers.php', 'orders.php'];

then add the name of the textarea (comments) to the selector (line 52)

selector: 'textarea[name^="products_description"], textarea[name^="categories_description"],  textarea[name^="manufacturers_description"], textarea[name^="comments"]', // what textarea's do we want to load TinyMCE on

 

 

Share this post


Link to post
Share on other sites
1 hour ago, puddlec said:

This addon adds support for the TinyMCE editor within the admin section.

what does this addon do?

it will add the editor to the following textarea's 

category description, manufacturers description, product description

works with multi languages stores.

requirements
Phoenix

How to install

  1. Upload the files

yes it is easy as that.

no files need to be edited it uses the hook system, to add the code needed.

How to change what appears on the toolbars, and plugins used

Just go to the tinymce.php hook file

located at catalog\includes\hooks\admin\siteWide\

you will see a block of code for plugins (line 61)

and for toolbar 1 & 2 (line 67 & 68)

the settings provided are what i use myself.

Got an TinyMCE API key?

just change the script source (line 53)

How to add extra textarea's

example add TinyMCE to the order comments box

add orders.php  to (line 44)

like so


var $good_pages = ['categories.php', 'manufacturers.php', 'orders.php'];

then add the name of the textarea (comments) to the selector (line 52)


selector: 'textarea[name^="products_description"], textarea[name^="categories_description"],  textarea[name^="manufacturers_description"], textarea[name^="comments"]', // what textarea's do we want to load TinyMCE on

 

 

Next step to allow control of API, Pages etc from admin?

Share this post


Link to post
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
Sign in to follow this  

×