• Welcome to WooUSEFUL by PHPVIBE . 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

Why are you trying to get your website hacked? Just my 2 cents.
If this helped, consider buying me a coffee.
20 years coding, tweaking, building in PHP. Still creating!
  •  

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)