• Welcome to PHPVIBE Forums. Please log in.

[ Video Sharing CMS v4 ] I want to insert "CKEditor" for "Description"

Started by lucaphuoc,

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

lucaphuocTopic starter

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

PHPVibe A.

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.

lucaphuocTopic starter

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.

   
  •  

Marius P.

Why are you trying to get your website hacked? Just my 2 cents.
Happy with my help? Buy me a coffee.
Please, always use the search before opening a new topic! We're all here on our (limited) free time! Make sure you help yourself too!
  •  

PHPVibe A.

Quote from: lucaphuoc on
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?

Quote from: Alexander on
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!

Similar topics (7)