Jump to content

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

 

 


App created for phoenix
TinyMCE editor for admin

 

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

Thanks for your addon.
Easy and quick to install.
Installed locally on the test site Phoenix and added responsive_filemanager as a module.
It is very convenient to work, especially with images.

 


Support forum for osCommerce in russian language - from Ashkelon. Support since 2002.

Best regards,

Fredi

Share this post


Link to post
Share on other sites
18 minutes ago, Heatherbell said:

Thanks for this addon - was working great until latest upgrade to 1.0.3.0 - now does not show on products description.
Any advice appreciated :)

does it work on the categories description?

 

i have just tried it myself  in 1.0.30 and it works

image.thumb.png.077375be5618cda28664a8cf3f3b0f5d.png


App created for phoenix
TinyMCE editor for admin

 

Share this post


Link to post
Share on other sites
21 minutes ago, puddlec said:

i have just tried it myself  in 1.0.30 and it works

Many thanks for your reply - I can confirm that it does work on my clean install of 1.0.3.0.
So sorry for my mistake - it is a problem with my upgrade on old categories file. (shame face).

Share this post


Link to post
Share on other sites
32 minutes ago, Heatherbell said:

Many thanks for your reply - I can confirm that it does work on my clean install of 1.0.3.0.
So sorry for my mistake - it is a problem with my upgrade on old categories file. (shame face).

Have you figured out how the old add-on affected TinyMCE?  I had the same issue previously and it turned out the javascript of the other add-on loaded too early and thus the issue.

Eddy

Share this post


Link to post
Share on other sites
Just now, Moxamint said:

Have you figured out how the old add-on affected TinyMCE?

All fixed now and this addon works great (thanks again @puddlec) - I found I had some old TinyMCE addon code still in application_top (head slap) - my categories.php is ancient!
Love the new 1.0.3.0!

Share this post


Link to post
Share on other sites

That's the advantage with the hook system that was used ( as well as using modules to add new features) , less chance of things going wrong. as well as so much simpler to install as well

I've managed to break all sorts of things in the past when installing / updating addons in the past.

 i will of course check against future releases of phoenix, to make sure everything still works

 

 


App created for phoenix
TinyMCE editor for 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

×