Related Topics


[Video CMS v4]I want to insert "CKEditor" for "Description"  (Read 1125 times) Print

1 B


lucaphuoc  June 14, 2014, 04:23:30 PM

I want to insert "CKEditor" for "Description" in file: "com_share.php". How do that?
Please, help me! Thank you so much!

Logged


Alexander  June 14, 2014, 05:13:07 PM

You need to to link to the CKe css and js files.
Then all you need is to give the description the "ckeditor" class.
http://ckeditor.com/forums/Support/How-install-CKeditor

But the input is sanitized there so it will remove every bit of formatting from the editor when saving to Db.

Logged

lucaphuoc  June 14, 2014, 09:03:25 PM

i add code for com_share.php in "Description:". But when I post text into text box of ckeditor, it not saved to the database. Why?
Here code:

<div class="control-group">
   <label class="control-label">'._lang("Description:").'</label>
   <div class="controls">
   <textarea id="description" name="description" class="ckeditor">'.$details['description'].'</textarea>
   <script type="text/javascript" src="tools/ckeditor/ckeditor.js"></script> 
   </div>
   </div>


Please give me sample code. Thank you.

   

Logged


@Mario  June 14, 2014, 10:10:05 PM

Why are you trying to get your website hacked? Just my 2 cents.

Logged
Hello!
If you wish to learn how to start coding on the PHPVibe Video CMS head to the blog.

Please use the search before opening a new topic!


Alexander  June 14, 2014, 10:37:56 PM

i add code for com_share.php in "Description:". But when I post text into text box of ckeditor, it not saved to the database. Why?

But the input is sanitized there so it will remove every bit of formatting from the editor when saving to Db.

You need to remove the escaping, but this will get you hacked for sure...I can show you, but you do it on your own risk!

Logged