Application of FCKeditor smarty Editor php_ Web page Editor

Source: Internet
Author: User
Thank Csdn Community Hsboy User's post

Original:

6/F Hsboy (PHP it!) reply to 2006-03-05 18:44:07 score 60

Assume
1, you want to use FCKeditor edited content through $smarty->assign (' content ', $content) passed to the template
2. The FCKeditor editor is placed in the directory where the currently invoked PHP program is located (note that the directory where the template file is located) is FCKeditor

The template can only be written like this:
Copy Code code as follows:

<script type= "Text/javascript" src= "Fckeditor/fckeditor.js" ></script>
<form method= "POST" >
<script type= "Text/javascript" >
var ofckeditor = new FCKeditor (' content ');
Ofckeditor.basepath = "fckeditor/";
Ofckeditor.height = 300;
Ofckeditor.value = ' {$content} ';
Ofckeditor.create ();
</script>
</form>

It's easy to solve your problem by carefully studying it yourself. This is not a very difficult task. In fact, many of these are rookie level.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.