Pages:

Html editor in description area

squidi

No avatar

2005-08-29 04:02

What must i do , to change the html-editor to SPAW ?

Please help !! squidi

Mark

No avatar

2005-08-29 07:54

I'am also looking for this integration! Will it work fine with flat files? Which editor will work also table function without bigger problems with flat files?

Andr2005ru

No avatar

2006-03-06 12:56

How we can integrate http://www.fckeditor.net to Quick cart?

weblinks

Nick

No avatar

2006-03-06 14:12

This is how I added the FCKeditor. It was easier than I anticipated.

- Download from http://www.fckeditor.net.
- Unzip and upload the FCKeditor dir with contents to the "root" level of QC. The same directory where you find admin.php.
- Add the following line to admin.php

require_once ('FCKeditor/fckeditor.php') ;       // FCKeditor


- Replace the content of the function htmlEditor in file plugins\edit\htmleditor.php with the following code:


function htmlEditor$sName 'tresc'$iH '300'$iW '400'$sContent '' ) {
  
// http://wiki.fckeditor.net/Developer%27s_Guide/Integration/PHP
  
$oFCKeditor = new FCKeditor($sName) ;                // FCKEditor
  
$oFCKeditor->BasePath 'FCKeditor/';                // FCKEditor
  
$oFCKeditor->Value $sContent;                      // FCKEditor
  
$oFCKeditor->Width  '100%';                        // FCKEditor
  
$oFCKeditor->Height $iH;                           // FCKEditor
  
return $oFCKeditor->CreateHtml();                    // FCKEditor
}


nam

Avatar: nam

2006-03-08 09:33

Hi Nick,
Does your integration of the FCKeditor work with version 1.2 of QC?

I've wanted to change the HTML editor ever since v0.3.1 because it was always tricky to use and not consistent with every use, so it would be great if FCKeditor worked well with QC.

I'll try your code and report back with any problems.

do, or do not - there is no try (Yoda)

nam

Avatar: nam

2006-03-08 10:14

Excellent - worked first time.
This brings a whole new range of functionality and power to QC which was, in my opinion, lacking.

Now, I can insert tables, lists (without the previous problems), special characters, etc. I haven't tried adding Flash and image files, but if that works that would be a bonus.

And the main advantage - what you see in the FCKeditor is EXACTLY what you get when you view the web site - sorted!

do, or do not - there is no try (Yoda)

wallace

No avatar

2006-03-08 16:48

wow.... i tried some things with tinymcs.. that worked fine for content pages...
but not for the productpages...

Now i am trying your solution and see that it loads the Editor BUT
not the sata from that page..
It loads only shows the number 650 in the edit area that probably comes from:
$sHtmlEditor = htmlEditor ( 'sContent', '', '300', '650', $aSite['sContent'] ) ;

( admin.php )

Maybe i am using an "too old" version of QC? i use the early QCloaded from wizzud.
Any idea?? And can we use FCkEditor in product descriptions too?

merci!

Nick

No avatar

2006-03-09 10:38

You are using another version of the function htmlEditor with a different set of parameters. The one above has 4 parameters and the one you have has 5.

If you examine the parameter signature the htmlEditor above has and the one you have I think you should be able to figure out how to map your parameters.

About the products page you cannot get whats not there. You have to do some programming to convert the product textarea to an FCKeditor.

wallace

No avatar

2006-03-20 11:59

somebody has this working in older QC version?? 0.3.0 of 0.2.5
i tried to fix the function but with no "luck" ...

thanks.

Magnus J

No avatar

2006-03-21 11:00

Nick! Can you please help us with this? You seem to know what to do!

M :-)

Magnus J

No avatar

2006-03-21 11:15

Neber mind.
Figured it out... here is how Wallace:

in "actions_admin/categories.php"

change

$sHtmlEditor = htmlEditor ( 'sFullDescription', '', '300', '650', $aPage['sFullDescription'] ) ;

to

$sHtmlEditor = htmlEditor ( 'sFullDescription', '300', '650', $aPage['sFullDescription'] ) ;

Good luck!

wallace

No avatar

2006-03-23 10:03

great thanks!!...
one thingie for others maybe:

THIS : //$sHtmlEditor = htmlEditor ( 'sFullDescription', '', '300', '650', $aPage['sFullDescription'] ) ;

Should be this" $sHtmlEditor = htmlEditor ( 'sFullDescription', '300', '650', $aCategory['sFullDescription'] ) ;

this is when using QC loaded from Wizzud!

thanks alot .... maybe i am going to retry this with TinyMice too :)


Magnus J

No avatar

2006-03-23 17:02

Oh yea... sorry. I am in the process of converting this script to work as a CMS.

Newbie

No avatar

2006-03-25 17:56

I have managed to integrate FCKeditor on the products form and categories forms OK but I am having trouble with the layout. Changed the config file so that it inserts <br /> instead of<p> but once I save my text and info, if I go back to edit it, it loses all it's formatting and I have to format it all again . . . . . :-(

Should I dump everything in a table??? Any ideas guys??

Thanx

Andr2005ru

No avatar

2006-03-26 21:02

Hello Nick,
Thank you for your help.
I have tested v1.2 Editor working perfect for this version .
--
What about 0.2.5.tek ? I use this version because it can support stock information.

Andr2005ru

Nick

No avatar

2006-03-27 12:33

I looked at the 0.2.5.tek version and it seems that it doesn't even have the htmlEditor support on contents and procducts. This will require more programming than just replacing the content of the function htmlEditor().

Luke

No avatar

2006-03-27 13:36

In fck editor I cant paste image. help me pls
Is this function supported?

Lws

No avatar

2006-04-04 16:20

Hi,
In FireFox fckeditor is function... but in IE nothing editor. There is only text area.
help me pls.

12345

No avatar

2006-04-15 02:30

use FF then :]. Some version of TinyMC doesynt like IE, maybe fckeditor too ...

Guest

Avatar: Guest

2006-04-15 21:06

Hi i got this error, when I try to add category:

Fatal error: Call to undefined function htmlEditor() in USER/shop/actions_admin/categories.php on line 44

Pages:
Back to top
about us | contact