Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

TinyMCE editor for admin


puddlec

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

 

 

Phoenix support now at https://phoenixcart.org/forum/
App created for phoenix
TinyMCE editor for admin

 

Link to comment
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?

Link to comment
Share on other sites

  • 1 month later...

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

Link to comment
Share on other sites

  • 3 weeks later...
On 9/8/2019 at 4:14 PM, puddlec said:

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

 

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 :)

Link to comment
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

Phoenix support now at https://phoenixcart.org/forum/
App created for phoenix
TinyMCE editor for admin

 

Link to comment
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).

Link to comment
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

Link to comment
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

 

 

Phoenix support now at https://phoenixcart.org/forum/
App created for phoenix
TinyMCE editor for admin

 

Link to comment
Share on other sites

  • 1 year later...
On 10/30/2020 at 5:22 AM, puddlec said:

just tried it it works perfectly fine, just make sure you are uploading to the correct place

It does show up in the product description editor, like it should. It does work, as far as using the toolbar, but I have a problem where I cannot save the product with add-on installed. If I remove the add-on, everything works as it should. I just tested it on a brand new installation of phoenix on a different domain and your add-on is the only one installed, and it still does not work. If you create a new product, fill in every required field, and try to save, the button will not work.

Edited by jonwix
Link to comment
Share on other sites

10 hours ago, jonwix said:

It does show up in the product description editor, like it should. It does work, as far as using the toolbar, but I have a problem where I cannot save the product with add-on installed. If I remove the add-on, everything works as it should. I just tested it on a brand new installation of phoenix on a different domain and your add-on is the only one installed, and it still does not work. If you create a new product, fill in every required field, and try to save, the button will not work.

it does do that for some unkown reason, on new products,, but is perfectly fine on existing products, and works on creating new categories

Phoenix support now at https://phoenixcart.org/forum/
App created for phoenix
TinyMCE editor for admin

 

Link to comment
Share on other sites

7 hours ago, Heatherbell said:

A quicker workaround is to use "Copy to" > "Duplicate product" of an existing product and then edit that.

Just from personal experience, in a prior job, people wanted to set up filled-in templates to make the creation of a new job easier. What I found was that there were so many details in the creation of that job, that inevitably people missed one (or more) details, resulting in the job having the 'default' template detail. Personally, I found it better to just create the new job from scratch, that way, unwanted details were not being accidentally entered.

That said, why doesn't TinyMCE work when entering a new product? What's the root-cause of the problem (instead of trying to find a patch)?

Just my two cents ...

Malcolm

Link to comment
Share on other sites

6 hours ago, puddlec said:

I think I found a fix, could not do much about it as my work internet connection, is terrible, it was barely useable today's should have a fix out Tomorrow

That's good news. Looking forward to the update.

Link to comment
Share on other sites

9 hours ago, ArtcoInc said:

Just from personal experience, in a prior job, people wanted to set up filled-in templates to make the creation of a new job easier. What I found was that there were so many details in the creation of that job, that inevitably people missed one (or more) details, resulting in the job having the 'default' template detail.

Just from my personal experience, in a prior job, if personnel continually did not double check their data entry, they would inevitably end up with no job! :D

Link to comment
Share on other sites

@jonwix @Heatherbell

try the version i have attached, should be fixed now, also added support for the information pages

TinyMCE 1.0.5.zip

Edited by puddlec

Phoenix support now at https://phoenixcart.org/forum/
App created for phoenix
TinyMCE editor for admin

 

Link to comment
Share on other sites

18 hours ago, jonwix said:

try the version i have attached

thank you, seems to work ok now, new products are saved

osC CE live - developing osC Phoenix adding modules with no core changes(awesome and easy!)

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...