This topic is locked
[SOLVED]

 CKEditor and CKFinder Configuration

3/11/2010 11:24:51 AM
PHPRunner General questions
K
kwebb author

Does anyone have any experience on how to configure CKEditor along with CKFinder with PHPRunner 5.2?

V
VonDuck 3/27/2010



Does anyone have any experience on how to configure CKEditor along with CKFinder with PHPRunner 5.2?


I have the same question. Can anyone help us on this, please??
Thanks in advance

M
mdorren 5/16/2010



I have the same question. Can anyone help us on this, please??
Thanks in advance



Same question here! Thanks

Sergey Kornilov admin 5/16/2010

PHPRunner manual->Advanced topics->Rich Text Editor plugins->CKEditor.

M
mdorren 5/18/2010



PHPRunner manual->Advanced topics->Rich Text Editor plugins->CKEditor.


The documentation does NOT say anything about the original question. I'm sure that we all have checked the documentation.... I know I have.

Sergey Kornilov admin 5/18/2010

Make sure you run the latest PHPRunner build. All required CKFinder info is in PHPRunner manual that comes with PHPRunner.

C
chaintm 5/20/2010

what do you want to configure? If you are using this editor, nothing in php needs to be touched once you add it. All configerations are done within the CKE program files. File manipulations, server settings, format of page, etc is all there. Most if all my work to customize this for a client was done on the following few pages...
dbcommon.php

phpfunction.php

header.php

fckconfig.php

config.php

fcktemplates1.php

style1.php

styleIE.php

styleprin.php
some are custom here but all are copies of their originals. You use dbcommon to setup your database connections, functions to add functionality beyond what is given. header and footer are obvious, fckconfig is very important along with fcktemplete, both of these are really your look and format of the editor and what you can do with it. Styles, allows you to change formats, so in the end each of these files are unique to their locations.
Sadly there is no easy way to make a manual for this, not like phprunner, this editor is an excellent free open source editor but you really need to know code or be well versed in it. Once you are, making the look and how it works is streight forward. The hardest part was just given to you, knowing where to look.
fck files are located in the editor file, styles are the ones located in your php program include folder etc... you have to back these up and copy them back to your project as each time you generate the php project most of these will be over-written. If there are particular things you are looking for let me know I will try to help.. most what people ask are the following...
How do i change the menu system within the editor?
file: fckconfig.js
what to change?
line 101 and below...
FCKConfig.ToolbarSets["Default"] = [

['Templates'],

['Cut','Copy','Paste','PasteText','PasteWord','-','Print','SpellCheck'],

['Undo','Redo','-','Find','Replace','-','SelectAll'],

['Bold','Italic','Underline','StrikeThrough'],

['Link','Unlink'],

['Style','FontFormat','FontName','FontSize'],

['TextColor','BGColor'] // No comma for the last row.

] ;
this whole file pretty much defines the look of the editor.
How do I make custom templets?
This is described very well in the readme files, but the simple version is fcktemplates.xml
<Templates imagesBasePath="/chicagofuncoupons/output/customtemplates/">

<Template title="2 For 1 Special" image="">

<Description>Coupon Added Benifits:

Special promotional instructions are usually added here. For excample, "Using this coupon Monday and Thursdays gives 5 dollar added discount! Making your savings $15.00!"

</Description>

<Html>

<![CDATA[

2 For 1 Special

]]>

</Html>

</Template>

<Template title="Up To 25% Off" image="">

<Description>Coupon Added Benifits:

Special promotional instructions are usually added here. For excample, "Using this coupon Monday and Thursdays gives 5 dollar added discount! Making your savings $15.00!"</Description>

<Html>

<![CDATA[

Up To 25% Off

]]>

</Html>

</Template>

<Template title="Prefferred Pricing" image="">

<Description>Coupon Added Benifits:

Special promotional instructions are usually added here. For excample, "Using this coupon Monday and Thursdays gives 5 dollar added discount! Making your savings $15.00!"

</Description>

<Html>

<![CDATA[

Prefferred Pricing

]]>

</Html>

</Template>

<Template title="$35 Off" image="">

<Description>Coupon Added Benifits:

Special promotional instructions are usually added here. For excample, "Using this coupon Monday and Thursdays gives 5 dollar added discount! Making your savings $15.00!"

</Description>

<Html>

<![CDATA[

<table height="1023" cellspacing="1" cellpadding="1" width="819" align="center" summary="Hot Summer Deals" background="/chicagofuncoupons/output/customtemplates/Hotdeals.jpg" border="0">

<caption></caption>

$35 Off

]]>

</Html>

</Template>
</Templates>
is an excample of how I made mine, now you can do what you want here, but I recommend as the readme file does, not using the default fcktempletes.xml but making a copy, edit the fckconfig.js to point to your new fcktempletes.xml in my case fcktempletes1.xml and go that rout.
How do I change my styles of my actual phprunner page to fit this?
Style.css in the include file of your php project folder.
again all of these things can be manually edited. I use dreamweaver for all this work described as it is an easy html etc editor for coding purposes.
Hope this helps, again if you need more help or particular help, just let me know, I check in once and awhile, but many times I am too busy to , hit me up at nbohac@amjse.com and I will try to help you out.
dbcommon path:
D:\vhosts\coupons\output\plugins\fckeditor\editor\filemanager\connectors\php
style path:
D:\vhosts\coupons\output\oldinclude
print path:
D:\vhosts\coupons\output\oldinclude
Super header location:
D:\vhosts\coupons\output\images
image location path: ( I made this and used the config file to ID the file location)
D:\vhosts\coupons\output\userfiles\image
fcktempletes install path:
D:\vhosts\coupons\output\plugins\fckeditor
those are my location on this particular project, but you can refer to yours in the same manner, just rename coupons with whatever your folder name is and it will be there <img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=reply&id=49973&image=1&table=forumreplies' class='bbc_emoticon' alt=':)' /> Hope this all helps! ps the fckfinder is the same config as the image location setup for fckeditor, same concepts, you need to point the correct files above described to your own folder. In my excamples, userfiles\image is where i have everything.