Forums / Customization from the Admin / TinyMCE plugin for v1.3.5

TinyMCE plugin for v1.3.5

Locked

Started by boylan on 7 Sep 2006, 12:31 AM · Views: 10,564

Results 1 to 20 of 28
This thread is locked. New replies are disabled.
7 Sep 2006, 12:31 AM
#1
boylan avatar

boylan

New Zenner

Join Date:
Sep 2006
Location:
Gillette, NJ, USA
Posts:
35
Plugin Contributions:
0

TinyMCE plugin for v1.3.5

I uploaded the TinyMCE plugin from the downloads section to my fresh 1.3.5 install - but I don't know how to make it available. In the My Store configuration section - I only have HTMLAREA and NONE available as options.

When I go to "define pages", all I get is HTMLAREA. After uploading are there any other edits or something else I have to do? The download pages seems to indicate it's just upload and go.

Thanks.

7 Sep 2006, 12:39 AM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,511
Plugin Contributions:
176

Re: TinyMCE plugin for v1.3.5

did you upload the /admin/includes/init_includes/overrides/init_html_editor.php file?

If this file is uploaded, then the pulldown will include the additional editor choice, even though the My Store options won't include it.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

7 Sep 2006, 5:47 AM
#3
boylan avatar

boylan

New Zenner

Join Date:
Sep 2006
Location:
Gillette, NJ, USA
Posts:
35
Plugin Contributions:
0

Re: TinyMCE plugin for v1.3.5

Ugh - dumb mistake on my part. I changed the name of the admin directory for security purposes, and then uploaded the plugin to /admin where it couldn't be found.

Thanks for the reply, it jogged my brain to realize what I did wrong.

Thanks.

20 Sep 2006, 7:34 AM
#4
heavenlynights avatar

heavenlynights

Zen Follower

Join Date:
Jan 2006
Location:
Australia
Posts:
303
Plugin Contributions:
0

Re: TinyMCE plugin for v1.3.5

Hey doc or anyone who can help.

I just uploaded the FCKeditor and tinymce plugin to my 1.3.5 cart (which is a fresh install but including all my customised pages from 1.3.2) but have problems getting all the options that come with editor. I only see a box where I can type with no formating options at all. I am sure that this is not right.

Now after saying that, I have a quick question! in the download description for this (tinymce) plugin it says to

(If also uploading FCKeditor plugin, you WILL have to edit the /admin/includes/init_includes/overrides/init_html_editor.php and uncomment the lines for FCKeditor and TinyMCE )

What exactly is meant by

uncomment the lines for FCKeditor and TinyMCE

and also there is mention that you need to copy files over to the new path being catalog/editor/htmlarea as in the v1.3.2 the path for htmlarea is catalog/htmlarea

Which files are we talking about? and is this necessary if you are working on a fresh install with customised pages from a v1.3.2 cart?

Any help would be appreciated

Cheers Heavenlynights
http://www.heavenlynightslingerie.com.au
Warning: Adult Content - Zen 1.3.8a

20 Sep 2006, 8:06 AM
#5
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: TinyMCE plugin for v1.3.5

What exactly is meant by uncomment the lines for FCKeditor and TinyMCE
this is the code from that file ant the redhighlighted // are the comment indicators...remove these the resemble the two above it to enable these after you have installed them.

  $editors_list['NONE']      = array('desc' => EDITOR_NONE,      'handler' => '',              'special_needs' => '');
  $editors_list['HTMLAREA']  = array('desc' => EDITOR_HTMLAREA,  'handler' => 'htmlarea.php',  'special_needs' => '');
//  $editors_list['FCKEDITOR'] = array('desc' => EDITOR_FCKEDITOR, 'handler' => 'fckeditor.php', 'special_needs' => '');
//  $editors_list['TINYMCE']   = array('desc' => EDITOR_TINYMCE,   'handler' => 'tinymce.php',   'special_needs' => '');
```So that it looks like this and save your edited copy to the /overides folder that is there.

$editors_list['NONE'] = array('desc' => EDITOR_NONE, 'handler' => '', 'special_needs' => '');
$editors_list['HTMLAREA'] = array('desc' => EDITOR_HTMLAREA, 'handler' => 'htmlarea.php', 'special_needs' => '');
$editors_list['FCKEDITOR'] = array('desc' => EDITOR_FCKEDITOR, 'handler' => 'fckeditor.php', 'special_needs' => '');
$editors_list['TINYMCE'] = array('desc' => EDITOR_TINYMCE, 'handler' => 'tinymce.php', 'special_needs' => '');

Zen-Venom Get Bitten

20 Sep 2006, 10:37 AM
#6
heavenlynights avatar

heavenlynights

Zen Follower

Join Date:
Jan 2006
Location:
Australia
Posts:
303
Plugin Contributions:
0

Re: TinyMCE plugin for v1.3.5

Thanks Kobra

Done!! Helped my problem!!

Cheers Heavenlynights
http://www.heavenlynightslingerie.com.au
Warning: Adult Content - Zen 1.3.8a

20 Sep 2006, 2:08 PM
#7
oceano avatar

oceano

New Zenner

Join Date:
Aug 2006
Posts:
50
Plugin Contributions:
0

Re: TinyMCE plugin for v1.3.5

I've been trying to decypher instructions for getting some styles loaded intot he dropdown on the tinymce editor, could someone describe how I could get this styles dropdown to function like the fck editor does?

20 Sep 2006, 11:49 PM
#8
heavenlynights avatar

heavenlynights

Zen Follower

Join Date:
Jan 2006
Location:
Australia
Posts:
303
Plugin Contributions:
0

Re: TinyMCE plugin for v1.3.5

ok back again with the problem. uncommenting those lines allowed fckeditor to work but I when choose the tinymce editor I still have no HTML options available. Just comes up with a box to type in and thats it.

Anyone have any ideas???? Please

Oops take that back, it seems to be working now!! Go figure - Sorry!!!

Cheers Heavenlynights
http://www.heavenlynightslingerie.com.au
Warning: Adult Content - Zen 1.3.8a

21 Sep 2006, 3:37 AM
#9
oceano avatar

oceano

New Zenner

Join Date:
Aug 2006
Posts:
50
Plugin Contributions:
0

Re: TinyMCE plugin for v1.3.5

Good to hear_

6 Oct 2006, 6:49 PM
#10
rued avatar

rued

Zen Follower

Join Date:
Oct 2005
Location:
Finland
Posts:
186
Plugin Contributions:
0

Re: TinyMCE plugin for v1.3.5

DrByte:

the pulldown will include the additional editor choice, even though the My Store options won't include it.

Hope there will be an choice for having TinyMCE as default in later versions, it's bad that we need to chose the editor every time we are writing something.. ;)

6 Oct 2006, 6:53 PM
#11
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,511
Plugin Contributions:
176

Re: TinyMCE plugin for v1.3.5

rued:

Hope there will be an choice for having TinyMCE as default in later versions, it's bad that we need to chose the editor every time we are writing something.. ;)
It's being considered.

Note, you only need to choose the choice once per login session. It remembers it across all screens.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

6 Oct 2006, 7:11 PM
#12
rued avatar

rued

Zen Follower

Join Date:
Oct 2005
Location:
Finland
Posts:
186
Plugin Contributions:
0

Re: TinyMCE plugin for v1.3.5

BTW! An easy workaround "all" can do is of course to change some code in admin/includes/init_includes/overrides/init_html_editor.php

  $editors_list['NONE']      = array('desc' => EDITOR_NONE,      'handler' => '',              'special_needs' => '');
  $editors_list['HTMLAREA']  = array('desc' => EDITOR_HTMLAREA,  'handler' => 'htmlarea.php',  'special_needs' => '');
//  $editors_list['FCKEDITOR'] = array('desc' => EDITOR_FCKEDITOR, 'handler' => 'fckeditor.php', 'special_needs' => '');
  $editors_list['TINYMCE']   = array('desc' => EDITOR_TINYMCE,   'handler' => 'tinymce.php',   'special_needs' => '');

change to:

  $editors_list['NONE']      = array('desc' => EDITOR_NONE,      'handler' => '',              'special_needs' => '');
  $editors_list['HTMLAREA']  = array('desc' => EDITOR_TINYMCE,  'handler' => 'tinymce.php',  'special_needs' => '');
//  $editors_list['FCKEDITOR'] = array('desc' => EDITOR_FCKEDITOR, 'handler' => 'fckeditor.php', 'special_needs' => '');
//  $editors_list['TINYMCE']   = array('desc' => EDITOR_TINYMCE,   'handler' => 'tinymce.php',   'special_needs' => '');

Not the best solution, but it's something most of the users easy can do themself. :)

6 Oct 2006, 7:14 PM
#13
rued avatar

rued

Zen Follower

Join Date:
Oct 2005
Location:
Finland
Posts:
186
Plugin Contributions:
0

Re: TinyMCE plugin for v1.3.5

DrByte:

It's being considered.

Nice to hear.. :)

Note, you only need to choose the choice once per login session. It remembers it across all screens.

Ok, wasn't aware of that - it's makes life a little more easy.

6 Oct 2006, 8:12 PM
#14
rued avatar

rued

Zen Follower

Join Date:
Oct 2005
Location:
Finland
Posts:
186
Plugin Contributions:
0

Re: TinyMCE plugin for v1.3.5

I have been digging into the new Zen Cart v1.3.5, and testing some solutions to fix small workarounds - this is how I got TinyMCE as default editor.

Go to Admin -> Tools -> Install SQL Patches
Copy and past this code into the text field and click send:

UPDATE `configuration` SET `last_modified` = NULL ,
`use_function` = NULL ,
`set_function` = 'zen_cfg_select_option(array(''HTMLAREA'', ''TINYMCE'', ''NONE''),' ;

NOTE! If you want to use FCKeditor you need to add "FCKEDITOR" into the code, or replace "TINYMCE" with it.

Then go to Configuration -> My Store -> HTML Editor -> Change to TinyMCE / FCKeditor

Worked for me, hope it works for you to.

PS! REMEMBER BACKUP FIRST! ;)

6 Oct 2006, 8:27 PM
#15
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,511
Plugin Contributions:
176

Re: TinyMCE plugin for v1.3.5

Yes, this SQL hack of the configuration table will set your default preference as long as you don't override it by making an alternate choice in Admin->Config->My Store

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

6 Oct 2006, 8:37 PM
#16
rued avatar

rued

Zen Follower

Join Date:
Oct 2005
Location:
Finland
Posts:
186
Plugin Contributions:
0

Re: TinyMCE plugin for v1.3.5

DrByte:

Yes, this SQL hack of the configuration table will set your default preference as long as you don't override it by making an alternate choice in Admin->Config->My Store

You now speek about the code change first posted I guess?!
The SQL-patch will be better for all I think, and maybe the code-hack could be deleted from the tread? Sorry for being to fast publishing it, but I would have replaced it if it was possible to edit that post.. ;)

17 Oct 2006, 5:43 PM
#17
phid avatar

phid

Totally Zenned

Join Date:
Nov 2005
Location:
Narnia
Posts:
696
Plugin Contributions:
0

Re: TinyMCE plugin for v1.3.5

Rued, thank you for posting the sql fix to making an alternate default editor. I had been searching for a way to make FCKeditor the default one and I'm glad you had already been working on the problem. :)

19 Oct 2006, 5:30 PM
#18
phid avatar

phid

Totally Zenned

Join Date:
Nov 2005
Location:
Narnia
Posts:
696
Plugin Contributions:
0

Re: TinyMCE plugin for v1.3.5

Strangely enough, I just noticed that in my Admin > Tabbed Products Config area (I have the Tabbed Products mod installed) I see some rather curious options. For example:

Global Product Description Tab
Please make any necessary changes

Global Product Description Tab
Set this to 1 if you want all products to have the Main Product Description on its own tab

HTMLAREA
FCKEDITOR
NONE

So where there used to be a "0" and "1" I'm getting the HTML area configuration options! I suppose I could re-run the sql command and include options for 0, 1, and 2, but there must be a better fix somewhere along the line.

19 Oct 2006, 7:27 PM
#19
phid avatar

phid

Totally Zenned

Join Date:
Nov 2005
Location:
Narnia
Posts:
696
Plugin Contributions:
0

Re: TinyMCE plugin for v1.3.5

Oh, crap, I just realized that it affects more than just the Tabbed Products configuration, but a lot of core configuration options in admin. I would hold off on installing this sql patch for the time being...

19 Oct 2006, 11:55 PM
#20
phid avatar

phid

Totally Zenned

Join Date:
Nov 2005
Location:
Narnia
Posts:
696
Plugin Contributions:
0

Re: TinyMCE plugin for v1.3.5

rued:

I have been digging into the new Zen Cart v1.3.5, and testing some solutions to fix small workarounds - this is how I got TinyMCE as default editor.

Go to Admin -> Tools -> Install SQL Patches
Copy and past this code into the text field and click send:

UPDATE configuration SET last_modified = NULL ,
use_function = NULL ,
set_function = 'zen_cfg_select_option(array(''HTMLAREA'', ''TINYMCE'', ''NONE''),' ;

> 
> NOTE! If you want to use FCKeditor you need to add "FCKEDITOR" into the code, or replace "TINYMCE" with it.
> 
> Then go to Configuration -> My Store -> HTML Editor -> Change to TinyMCE / FCKeditor
> 
> Worked for me, hope it works for you to.
> 
> PS! REMEMBER BACKUP FIRST! ;)

I think you are missing a WHERE statement in your patch.