GetSimple Support Forum
CKEditor other buttons? - Printable Version

+- GetSimple Support Forum (http://get-simple.info/forums)
+-- Forum: GetSimple (http://get-simple.info/forums/forumdisplay.php?fid=3)
+--- Forum: General Questions and Problems (http://get-simple.info/forums/forumdisplay.php?fid=16)
+--- Thread: CKEditor other buttons? (/showthread.php?tid=347)



CKEditor other buttons? - tommy - 2010-02-02

sorry, noob question i think but i can't find any answer from the forum.
how do i enable the others buttons (like insert image, flash) for GS version 2 editor toolbar?

thanks!


CKEditor other buttons? - n00dles101 - 2010-02-02

in the file gsconfig.php in the root of the install.

uncomment line 29 which enables all the advanced buttons in CkEditor.

Mike.


CKEditor other buttons? - tommy - 2010-02-02

yes, i did that and it only revealed few extra drop down styling button and no insert image/flash/etc buttons.

maybe i have corrupted my install, will try a fresh install again.

thanks for the help!


CKEditor other buttons? - superyms - 2010-02-03

hi,

i am trying the last stable version 2.0.
yes even if we choose the advanced toolbar, we do not have access to the image button, so we could not insert images or files uploaded in the file manager (in which file do you configure teh toolbars, maybe the image plugin in ckeditor is not called to be dispalyed at all ?).

besides, it seems you used ckeditor 3.0 but there is a new release 3.1 with many bug fixes.

thank you to propose us a solution...

PS: i think it would be great if we could choose the elments of our toolbars, i mean maybe my advanced toolbar will be different from the standard one proposed by GS, could you say me where could i change that ?


CKEditor other buttons? - superyms - 2010-02-03

uncomment of line 32 #define('GSEDITORLANG', 'fr'); in gsconfig.php and changing langauge to fr, ar, de, it...cause not display the editor !
i think there is a problem.

please to check and solve.


CKEditor other buttons? - vsky - 2010-02-03

to superyms

of course there is a problem Smile you need to download CKEditor french language file and put it here
Code:
admin\template\js\ckeditor\lang



CKEditor other buttons? - superyms - 2010-02-03

vsky Wrote:to superyms

of course there is a problem Smile you need to download CKEditor french language file and put it here
Code:
admin\template\js\ckeditor\lang

Thank you,

Finaly i have installed all languages i may use : french, arabic, spanish, italian and german.

But until now there is no way to insert files or images from the editor ?? May be it will be developped for the next GS version i hope !

Bye.


CKEditor other buttons? - princemac - 2010-02-04

Also looking for the insert Image button.

I have the advance option in the GS config file on, the other buttons appear but no the insert image button.
Is there a problem with allowing it?


Thanks.

Heres a screenshot:
[Image: ckedit.jpg]


CKEditor other buttons? - superyms - 2010-02-04

princemac Wrote:Also looking for the insert Image button.

I have the advance option in the GS config file on, the other buttons appear but no the insert image button.
Is there a problem with allowing it?


Thanks.

Heres a screenshot:
[Image: ckedit.jpg]

Hi,

I think as the browser file for CKEditor is not already coded or integrated so i don't think we will see that button until it will be done!

As the CKEditor do not include an open source browser...we have to achieve a replacement... maybe KFM - Kae's File Manager http://kfm.verens.com/

Bye.


CKEditor other buttons? - princemac - 2010-02-04

Not sure what you mean superyms, but thanks nevertheless for your reply.

I was just thinking of a insert image button like what TinyMCE had, where you put the url of the image in, then select the justification (Main reason I want it) and border etc.

Thanks again.


CKEditor other buttons? - superyms - 2010-02-04

princemac Wrote:Not sure what you mean superyms, but thanks nevertheless for your reply.

I was just thinking of a insert image button like what TinyMCE had, where you put the url of the image in, then select the justification (Main reason I want it) and border etc.

Thanks again.

Ok normally it is ready to be used in CKEditor, we have just to call it for the configuration file of the advanced tool-bar, but i ignore where is this file is placed in GS 2.0, i asked already about it but not any answer...may be someone will do...i will search for it meanwhile!


CKEditor other buttons? - superyms - 2010-02-04

superyms Wrote:
princemac Wrote:Not sure what you mean superyms, but thanks nevertheless for your reply.

I was just thinking of a insert image button like what TinyMCE had, where you put the url of the image in, then select the justification (Main reason I want it) and border etc.

Thanks again.

Ok normally it is ready to be used in CKEditor, we have just to call it for the configuration file of the advanced tool-bar, but i ignore where is this file is placed in GS 2.0, i asked already about it but not any answer...may be someone will do...i will search for it meanwhile!

Found, look in the file \admin\edit.php and there in the line 275 to 280 you have :

Code:
if ($EDTOOL == 'advanced') {
                $toolbar = "
                        ['Bold', 'Italic', 'Underline', 'NumberedList', 'BulletedList', 'JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock', 'Table', 'TextColor', 'BGColor', 'Link', 'Unlink', 'RemoveFormat', 'Source'],
              '/',
              ['Styles','Format','Font','FontSize']
          ";

you have just to add : Image, so it will become :

Code:
if ($EDTOOL == 'advanced') {
                $toolbar = "
                        ['Bold', 'Italic', 'Underline', 'NumberedList', 'BulletedList', 'JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock', 'Table', 'TextColor', 'BGColor', 'Link', 'Unlink', 'Image', 'RemoveFormat', 'Source'],
              '/',
              ['Styles','Format','Font','FontSize']
          ";

if you need to add Flash files you have to add Flash to call the flash button.

there also you could choose your buttons for the Basic one !

Bye.


CKEditor other buttons? - princemac - 2010-02-04

I Love You!!

Now Get-Simple is PERFECT!

Thanks again


CKEditor other buttons? - ccagle8 - 2010-02-04

SuperYMS, have you ever used the KFM browser before?


CKEditor other buttons? - superyms - 2010-02-04

ccagle8 Wrote:SuperYMS, have you ever used the KFM browser before?
Yes, i have...but not in very large way..i mean just once!


CKEditor other buttons? - tyee - 2010-02-04

Very Nice, thanks a lot!

But how come I can't paste with formatting included?? A window opens that wants to paste in plain text, how come?? In other CMSs using html editors I can paste with formatting. I had to use "Xinha Here" to paste with formatting and I don't really want to do that all the time. I must be missing something??

Thanks and keep up the great work!!


CKEditor other buttons? - superyms - 2010-02-04

tyee Wrote:Very Nice, thanks a lot!

But how come I can't paste with formatting included?? A window opens that wants to paste in plain text, how come?? In other CMSs using html editors I can paste with formatting. I had to use "Xinha Here" to paste with formatting and I don't really want to do that all the time. I must be missing something??

Thanks and keep up the great work!!

Hi,

I didn't remember why ? (i suppose that a bug in CKEditor 3.0 normally corrected in the new version or maybe something else) ...you could ask on the forum/community of CKEditor...maybe you will find why!

Bye.


CKEditor other buttons? - tommy - 2010-02-04

thanks superyms for finding the edit.php line...

just curious, may i know the reason why those buttons (esp image) are not included?
i am re-skining the ckeditor buttons to make them looks nicer (minimal greyscale)


CKEditor other buttons? - tyee - 2010-02-05

I found it here - http://docs.cksource.com/ckeditor_api/symbols/CKEDITOR.config.html#.forcePasteAsPlainText

Whether to force all pasting operations to insert on plain text into the editor, loosing any formatting information possibly available in the source text.
Defined in: plugins/pastetext/plugin.js.

config.forcePasteAsPlainText = true;

Default Value:
false

It is false in GetSimple but acts like it is true, so must be a bug in CKEditor. I'll keep looking.


So does anyone know how to incorporate a fresh download of CKEditor into Get Simple? I'm guessing but it can't be as easy as just downloading and overwriting files is it??


CKEditor other buttons? - rfuller - 2011-01-25

I could use a little help.

I am trying to add the Image Button, so I can add pictures from the editor, but this thread has gotten so fragmented it is hard to keep up with.

Could someone explain how to add the Image Button?

Thanks in advance.

Bob