How to integrate correctly CKeditor?

kalanta

No avatar

2009-10-18 14:28

http://fckeditor.net was upgrated to http://ckeditor.com/. How to install CKeditor to Quick.Cart/Quick.Cms software?

» Quick.Cart v3.x

Makaron

Avatar: Makaron

2009-10-19 12:03

Ok I have solution to integrate this editor but don't treat this solution like official manual.
I will show You how to use this editor to edit pages descriptions in the same way You should prepare product's page.
First You have to download this editor and You should upload it in main folder (where You have index.php and admin.php files). Default name of folder is "ckeditor" leave this name.
Next You have to add line:

<script type="text/javascript" src="ckeditor/ckeditor.js"></script>


in file templates/admin/container.tpl in head section.
Next You have to edit file actions_admin/p.php and change two lines:

  $sDescriptionShort  htmlEditor 'sDescriptionShort''120''100%'$aData['sDescriptionShort'], Array( 'aOptions' => Array( 'ToolbarStartExpanded' => false ), 'ToolbarSet' => 'Basic' ) ) ;
  
$sDescriptionFull   htmlEditor 'sDescriptionFull''280''100%'$aData['sDescriptionFull'], Array( 'ToolbarSet' => 'DescriptionFull' ) ) ;


to:

  $sDescriptionShort  "<textarea name=\"sDescriptionShort\">".$aData['sDescriptionShort']."</textarea>";
  
$sDescriptionFull   "<textarea name=\"sDescriptionFull\">".$aData['sDescriptionFull']."</textarea>";


And last thing You have to do is to edit file templates/admin/pages.tpl and after variable $sDescriptionFull in FORM_MAIN block You shold add this code:

<script type="text/javascript">
    
window.onload = function()
    {
        
CKEDITOR.replace'sDescriptionShort' );
        
CKEDITOR.replace'sDescriptionFull' );
    };
</script>

Makaron

Avatar: Makaron

2009-12-08 08:32

Also when You want to use CKEditor also in products descriptions You should do the same operations in file actions_admin/products.php and templates/admin/products.tpl.

etemorom

Avatar: etemorom

2009-12-25 17:36

And for version 2.x ???. The file structure and names are different that in version 3.x , in 2.x version there is no container.tpl, p.php, and so on...

kuzco

Avatar: kuzco

2011-03-02 22:06

Hello,
has someone already tried ckeditor 3.5.2 with QC 4.0 ?
Have tested it with QC 3.7 and it was working perfectly.

Now I have tried it with QC4.0. It is working, BUT when i.e. I am editing pages and click of one of the options on the right side (Options, View, Files, SEO), no subpage will be opened. All options (Status, Position, Products, Parent Page, Menu, Adress, Subpages, ..) will be shown in the same subpage.

Any hint is welcome.

thx

monty_

Avatar: monty_

2011-03-15 13:32

witam
czy na quick cart v4 działa ckeditor 3.5.2 ponieważ zrobiłem wszystko co tu jest napisane i edytuje mi strony ale jak chce edytować produkt już się nie włączy więc mam ten sam problem co kolega<b> kuzco</b>

kuzco

Avatar: kuzco

2011-03-15 20:48

@monty_:
Unfortunately I do not understand polish.
Can you please send your answer in english.

monty_

Avatar: monty_

2011-03-16 15:07

@kuzco ;

I cannot write in English but the Makaron gave good hints

boboo

Avatar: boboo

2011-03-16 15:47

monty,
nie działa na produktach, bo zamieniłeś tylko w plikach (p.php i pages.tpl)
Trzeba jeszcze zrobić to w products.php i products.tpl

kuzco,
monty wrote, that his problem is the editor works only when he is editing pages. Does not work by products. The reason was: he changed only the pages-relevant files.

http://it-service.kimla.de QC- & QCMS-plugins

kuzco

Avatar: kuzco

2011-03-16 17:29

@boboo:
thanks for translations.
unfortunaltely I do not know if monty_ has the same issue like me.

baronjon

Avatar: baronjon

2011-07-03 17:02

ckeditor doesn't work on v4. please give us the full instruction and update your manual. fckeditor is not available any more...

!

Makaron

Avatar: Makaron

2011-07-11 12:21

You can still download FCKEditor from website in archive section so You can use it. On this forum there were already few description how to integrate CKEditor with Quick.Cart please try to implement all of them.

I helped? Like it: www.facebook.com/makwebpl

Back to top
about us | contact