Zen Cart Logo
Forums / All Other Contributions/Addons / Creating Manufacturers Description V1.50 how to load HTML Editor

Creating Manufacturers Description V1.50 how to load HTML Editor

Views: 1,626

Results 1 to 6 of 6
10 Jan 2013, 9:06 PM
#1
bn17311 avatar

bn17311

Zen Follower

Join Date:
Apr 2010
Posts:
319
Plugin Contributions:
0

Creating Manufacturers Description V1.50 how to load HTML Editor

Hi,
i have created Manufacturers Description for V1.50 and just need to find out how to properly load the html editor,

at the minute i am just loading it using the following code in admin/manufacturers.php

include('includes/ckeditor.php'); 

this works but is not the proper way to load it as if i turn off html editor it still loads or if a different editor was used it wont be right

i am editing /admin/manufacturers.php to insert the code for my manufacturers description

Attachment 11746

any help appreciated

thanks
Bryan

10 Jan 2013, 9:09 PM
#2
drbyte avatar

drbyte

Sensei

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

Re: Creating Manufacturers Description V1.50 how to load HTML Editor

You can see examples of the editor code implementation in the many other files that use it, such as mail.php and define_pages_editor.php and ezpages.php and collect_info.php and many more.

10 Jan 2013, 10:26 PM
#3
bn17311 avatar

bn17311

Zen Follower

Join Date:
Apr 2010
Posts:
319
Plugin Contributions:
0

Re: Creating Manufacturers Description V1.50 how to load HTML Editor

i do see some stuff but dont understand it

any other clues

thanks
Bryan

10 Jan 2013, 10:31 PM
#4
drbyte avatar

drbyte

Sensei

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

Re: Creating Manufacturers Description V1.50 how to load HTML Editor

There are two parts to it: displaying the pulldown menu for selecting editors, and then the actual textarea fields.

Displaying the pulldown is simple. If I recall correctly it's just a handful of lines of code to display that. Copy and paste.

As for the textarea fields, what you're attempting to do is very different from any other implementation of the editor, since yours is all in a sidebox and not in the main page content section ... so there might be some hurdles there. Haven't tried it myself.

10 Jan 2013, 10:38 PM
#5
bn17311 avatar

bn17311

Zen Follower

Join Date:
Apr 2010
Posts:
319
Plugin Contributions:
0

Re: Creating Manufacturers Description V1.50 how to load HTML Editor

thanks

so there would be a separate drop down on the actual page rather than if someone has html editor selected under configuration - my store - html editor it defaults to this choice

i have the text field part all working ok as long as i use ```php
include('includes/ckeditor.php');



thanks
Bryan
10 Jan 2013, 10:43 PM
#6
drbyte avatar

drbyte

Sensei

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

Re: Creating Manufacturers Description V1.50 how to load HTML Editor

The pulldown on the page will allow them to change the editor used on that page, instead of forcing them to only use the one selected in the configuration menu.