Rich Text Editing with QFCKEditor
Mon, 02/08/2010 - 13:53
Hello, All..
have a great day ahead...
I m running below example and i want to implement it to my site.. www.jobspert.com...
example: http://examples.qcu.be/assets/plugins/QFCKEditor/example/fckeditor.php
but how do i get that class QFCKeditor.class.php =>(new QFCKeditor($this));
i spent a whole day to implement it. but no success.... can any body provide me the link....
or give me suggestion how to implement it...
with out this FCKEditor my site is dumb.... :(
thanx and regards...

jobspert,
Are you just asking about how to download the QFCKEditor plugin? That plugin comes with the QFCKEditor.class.php inside. Go to the plugin directory (http://trac.qcu.be/projects/qcubed/wiki/plugins) and download the plugin bits. Then use your QCubed 1.1+ plugin manager to install the plugin.
If you'd like a video instruction on how to install plugins, look here: http://www.screencast.com/t/ZGQ2MWMzNzg
Versions of QCubed earlier than 1.1 (i.e. 1.0 series) do not support plugins.
Thanks Alex you always understand me... and replying according to my need...
thanks a lot for this grate tutorial... and links...
thanks...
My pleasure. Best of luck with your QCubed work, and we're always here to help you!
Thanks a lot....
Hello, Alex, Once again i need your help....
For implementing QFCKEditor if suppose some one copy text from word file(MS Word,or any other)and past it in the body of QFCKEditor. And press the button in which there is a server action.. it gives me error(or through exception)... like "Cross Scripting Violation -- SCRIPT EMBED OBJECT LINK APPLET STYLE IFRAME BODY and JavaScript not allowed in"...
for this if i do $strText = strtolower( htmlentities($this->strText)); in class file before checking for cross script.... will it be fine...or should i also use addslashes..will it be fine it does not harm my database...
or any other method would you suggest me... better then this... really i m very much worry about cross scripting...
sorry for late i was busy in another work...
thanks alex for your grate help and time...
QfckEditor has a toolbar option called pasteWord that might help you here.
check in QFCKeditor/js/editor/dialog/fck_paste.html and see if that is what you are looking for. I believe that it can be used to clean up text pasted from word but i havent used it.
hope this helps
Hello, fa7ll7en...
Thanks for your reply...i got the solution... and i defiantly provide the link for you people to check it out....
thanks a lot.... for this humble help...
Hello Everyone. gr8 work...
I m using htmlpurifier to purify my QFCKEditor content. It woks fine on localhost and as soon as i run the same file on my sit www.jobspert.com it dissolve the formatting. for example:
visit: http://jobspert.com/JobSeeker_Editor.php
And copy any content form word file(any word formate) and past it in body of QFCKEditor... and press the button(Submit Resume)
which is below the QFCKEditor... and wait .... it gives the result on same page(down) .... and compare the input and output.... i.e formatting are gone...
and
when you do the same thing on http://examples.qcu.be/assets/plugins/QFCKEditor/example/fckeditor.php
it also give you the unformatted output of formatted word content...
can any body have the solution!
i already spend two valuable day on it.... but no result...
My Site is on Linux....
and i m testing it on windows its working fine....
giving result as desired...
Hello jobspert,
i am not sure exactly what you are trying to accomplish.
If you add
'PasteWord'into your fckeditor_config the pastFromWord tool will do a good job of getting rid of the markup generated by word documents.
is that not what you are after?
Thanks for reply, fa7ll7en
'PasteWord' Only works in IE not in Other browser.... thats why i m using 'HtmlPurifier' ... Thats purify my code....
because of magic_quotes My example(http://jobspert.com/JobSeeker_Editor.php) was not working.... when i off it from .htaccess ... its working like a charm....
thanks for your help....
Help Ever Hurts Never....
Just so you know, pasteWord works fine with Firefox 3.0 which happens to be my browser of choice, and I am running on linux.
glad you got it working and good luck with the site :)
Thanks a lot fa7ll7en .....
You people are very helpful...
Help Ever Hurts Never
Hello everyone!
i would like to ask if anyone knows if there is some event that can be setup when the fckeditor is loaded. by that i mean exactly something like the $(document).ready() function. i tried with $(document).ready() but it triggers before the fckeditors on the page are fully loaded. i assume that this is because fckeditors are loaded in iframes. And I am also interested in some editor that does not use iframes, if you know a good one please let me know. I think there is a newer version of fckeditor, CKEditor, which is running with jquery, but you have to pay for the file manager... tell me if i am mistaken.
thank you all for your help in advance
best regards
ivan lackovic
We generally use TinyMCE ourselves, though I'm not sure what you're thinking of in way of file manager.