Post by Qphoria » Fri Nov 12, 2010 10:35 am

Supported OpenCart Versions:
================
v1.4.7, v1.4.8, v1.4.9.x


What does it do:
================
This will allow you to use TinyMCE as your wysiwyg editor instead of ckeditor. Only have to add 3 lines to one file.


How to Install:
================
1. Upload included admin folder to your store root, preserving directory structure (No files are overwritten)
2. EDIT: admin/view/template/common/footer.tpl
3. FIND:
-----------------------------------
</body>
-----------------------------------

4. BEFORE, ADD:
-----------------------------------
<script type="text/javascript" src="view/javascript/wysiwyg/tiny_mce/tiny_mce_gzip.js"></script>
<script type="text/javascript" src="view/javascript/wysiwyg/tiny_mce/tiny_mce.js"></script>
<script type="text/javascript" src="view/javascript/wysiwyg/oc_tinymce.js"></script>
-----------------------------------

5. Now when you load pages that used to have ckeditor, they should have tinymce.


Additional Features:
=====================
- Uses the full "advanced" theme and includes most plugins
- Uses a dynamic trigger. To make any editor use TinyMCE, just add class="editor" to the <textarea> tag


Limitations:
=====================
- I haven't figured out how to make the opencart image manager work with tinymce yet. So it just uses the default tinymce image manager.

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by Johnathan » Fri Nov 12, 2010 12:15 pm

Nice! I'll have to try this out later on my site where I've completely disabled CKEditor.

Image Image Image Image Image


User avatar
Administrator

Posts

Joined
Fri Dec 18, 2009 3:08 am


Post by Qphoria » Fri Nov 12, 2010 1:18 pm

On a related note.... I've made it so that the script will just remove the ckeditor and replace it with the TinyMCE editor for those that don't want to get rid of it manually

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by OSWorX » Fri Nov 12, 2010 8:34 pm

Nice work - but a replacement for the buggy CKEditor with TinyMCE exists already since 07.2010: http://osworx.net/en/downloads/cat_view ... ns?start=5

And has no limitation (use the OpenCart image manager).

Full Stack Web Developer :: Dedicated OpenCart Development & Support DACH Region
Contact for Custom Work / Fast Support.


User avatar
Administrator

Posts

Joined
Mon Jan 11, 2010 10:52 pm
Location - Austria

Post by burrito » Fri Nov 12, 2010 8:39 pm

OSWorX wrote:Nice work - but a replacement for the buggy CKEditor with TinyMCE exists already since 07.2010: http://osworx.net/en/downloads/cat_view ... ns?start=5

And has no limitation (use the OpenCart image manager).
actually I tried yours and it doesn't work for me... :(

Image
Opencart specialist | Our website | Our modules


User avatar
Active Member

Posts

Joined
Tue Dec 15, 2009 6:10 pm
Location - Amsterdam, The Netherlands

Post by Qphoria » Fri Nov 12, 2010 9:01 pm

OSWorX wrote:Nice work - but a replacement for the buggy CKEditor with TinyMCE exists already since 07.2010: http://osworx.net/en/downloads/cat_view ... ns?start=5
Oh yea? well i had mine first since 11.2008 for the old opencart:
http://forum.opencart.com/viewtopic.php ... mce#p11781

and then again for 1.3.4 in 08.2009
http://forum.opencart.com/viewtopic.php ... mce#p28699

So there :) ;D ;D

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by burrito » Fri Nov 12, 2010 9:08 pm

jerry! jerry! fight fight :P hahaha

Image
Opencart specialist | Our website | Our modules


User avatar
Active Member

Posts

Joined
Tue Dec 15, 2009 6:10 pm
Location - Amsterdam, The Netherlands

Post by burrito » Fri Nov 12, 2010 11:30 pm

Cool, im away for the weekend... Ill try this on monday and let you know if it worked. ..

Image
Opencart specialist | Our website | Our modules


User avatar
Active Member

Posts

Joined
Tue Dec 15, 2009 6:10 pm
Location - Amsterdam, The Netherlands

Post by Qphoria » Fri Nov 12, 2010 11:34 pm

I've updated the file to change the readme to use footer now instead of header. That seems to have fixed it on both of my sites so I will just change this thread to reflect that and remove all the indices of the double editor

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by burrito » Mon Nov 15, 2010 5:51 am

Qphoria wrote:I've updated the file to change the readme to use footer now instead of header. That seems to have fixed it on both of my sites so I will just change this thread to reflect that and remove all the indices of the double editor
hmm it still had some issues on one of my pages but I removed the links to the MCEditor... so now it's all good... :D I'm happy! :D

Image
Opencart specialist | Our website | Our modules


User avatar
Active Member

Posts

Joined
Tue Dec 15, 2009 6:10 pm
Location - Amsterdam, The Netherlands

Post by designbuyers » Sat Jan 08, 2011 3:46 pm

Is it working with latest version ?

OpenCart :
The best Open Source Cart for eCommerce


User avatar
Active Member

Posts

Joined
Tue Nov 09, 2010 4:25 pm

Post by marc_cole » Sun Jan 09, 2011 1:18 am

Very nice, Q. I like the full screen mode!
Qphoria wrote: I've made it so that the script will just remove the ckeditor and replace it with the TinyMCE editor for those that don't want to get rid of it manually
It didn't work for me. I had both editors showing, so I had to rename the ckeditor folder.

Also, where do the styles come from in the pull-down menu? I was hoping that they'd be from the stylesheet, but it doesn't look like it. Is there a way to see our own CSS styles while working in TinyMCE?

Thanks,
Marc

OpenCart v1.4.9.4
VQMod | Categories Home | Cleaner By Default - 2 Column | Speak Good English


Active Member

Posts

Joined
Tue Dec 14, 2010 11:26 am
Location - Seattle, WA

Post by jcgadgets » Fri Jan 14, 2011 6:30 am

Hey all,

Would someone mind elaborating on why this is something I want to do? I just don't know much about either. What are the pros / cons of TinyMCE vs. the current editor?

Also - anyone know if it is working fully with the supplied code for 1.4.9.3?


Thank you,
Jared

Active Member

Posts

Joined
Sun Oct 31, 2010 4:49 pm

Post by Xsecrets » Fri Jan 14, 2011 7:09 am

honestly I prefer the default ckeditor to tinymce. I've had nothing but headaches out of tinymce through the years. I'm rather supprised to see Q putting out tinymce since I though he was more fond of the newer breed of ultra lightweight editors.

OpenCart commercial mods and development http://spotonsolutions.net
Layered Navigation
Shipment Tracking
Vehicle Year/Make/Model Filter


Guru Member

Posts

Joined
Sun Oct 25, 2009 3:51 am
Location - FL US

Post by OSWorX » Sat Jan 15, 2011 10:08 pm

jcgadgets wrote:Hey all,

Would someone mind elaborating on why this is something I want to do? I just don't know much about either. What are the pros / cons of TinyMCE vs. the current editor?

Also - anyone know if it is working fully with the supplied code for 1.4.9.3?


Thank you,
Jared
Basically CKEditor is quite good - if you have only one (1) language installed.
But if more - you are getting in troubles (as discussed in this forum many times long ago).

Read why here: http://osworx.net/en/development/43-ope ... f-ckeditor
and also the working solution (TinyMCE plus replacement of core files for 1.4.9.3).

Full Stack Web Developer :: Dedicated OpenCart Development & Support DACH Region
Contact for Custom Work / Fast Support.


User avatar
Administrator

Posts

Joined
Mon Jan 11, 2010 10:52 pm
Location - Austria

Post by jcgadgets » Sun Jan 16, 2011 5:57 am

Hi,

Thank you for the replies. I just have one language installed, and don't really have a problem with the current editor and don't want to be doing any more hacking than I have need to do, so I'll be sticking with the default.


Thanks!
Jared

Active Member

Posts

Joined
Sun Oct 31, 2010 4:49 pm

Post by Qphoria » Fri Jan 21, 2011 12:47 pm

Xsecrets wrote:honestly I prefer the default ckeditor to tinymce. I've had nothing but headaches out of tinymce through the years. I'm rather supprised to see Q putting out tinymce since I though he was more fond of the newer breed of ultra lightweight editors.
It was something I did a while back.. it was after I made it work that I realized it was too much of a PITA to have all this bloat. I'm trying to get NicEdit to work but the project is all but dead and while I did manage to modify the code to add support for getting elements by class, there is still the issue of it not working when you submit the form with an external button. If you have an input type="submit" it saves fine, but most forms in the admin use the "save" button at the top in the button bar that is really just an anchor link that calls a jquery submit function. This works fine for ckeditor and tinymce.. but not for nicedit... so its unfortunately likely too far dead of a project to keep up with.

http://www.wyzz.info/ is a nice light one at 10k.. but there are of course missing perks some claim to need.

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by ratnalaurentina » Mon Mar 07, 2011 2:18 am

What files do I have to edit to enable my site fully support TinyMCE? In which files do I have to add class="editor" to the <textarea> tag? Thanks


Posts

Joined
Sun Mar 06, 2011 10:45 pm

Post by OSWorX » Mon Mar 07, 2011 3:36 pm

ratnalaurentina wrote:What files do I have to edit to enable my site fully support TinyMCE? In which files do I have to add class="editor" to the <textarea> tag? Thanks
Inside any *.tpl (xyz_form.tpl) at the backend you like to use the TinyMCE.

Full Stack Web Developer :: Dedicated OpenCart Development & Support DACH Region
Contact for Custom Work / Fast Support.


User avatar
Administrator

Posts

Joined
Mon Jan 11, 2010 10:52 pm
Location - Austria

Post by webpie it. » Thu May 05, 2011 4:41 am

I used this for (Qs) for a while, worked great and i much preferred it to the original however my client uses IE:(, and for some reson it was coming up with a java script error about "tiny_mc gzip" and basically through IE they could not always see the description text appear on the front end.

I scrtached my head on it for a while debugging and i just tried it, taking away the jquery in the amdin footer so it would revert back to the old and after that the data was passing through normally.

Didn't have the time to look at it too much becuase it was a live site so pressure was on to just get it done.

I told the client get CHROME, FIREFOX anything but non techy people think it will take days to install a new browser so they just asked me to fix it,that is my job, but a frustrating moment.

just a shame i couldn;t get it to work too well, maybe there were some conflicts, i do have some .cufon and zoom, vqmods so maybe they all just fought againts it, anyway, thought after experiencing that i would post this on here for people to read over my experience.

But this is a great job and i recommedn trying it becuase i did find the word looking layout much easier for a client to understand.

Thanks Q for the contribution, it is very much appreciated.

Chris

Regards

Chris


Active Member

Posts

Joined
Mon Jan 31, 2011 7:28 pm
Who is online

Users browsing this forum: No registered users and 1 guest