One line of code saves the content submitted by the fckeditor editor to the file (connected to a blog), fckeditor Editor

Source: Internet
Author: User

One line of code saves the content submitted by the fckeditor editor to the file (connected to a blog), fckeditor Editor

Connect to a blog, and on the light open platform,Only one line of code is requiredYou can save the content submitted by fckeditor to a file.

<file value="@{pPage:content}">@{sys:curPath}editor_fck_new_content.htm</file>

Or

<file bag=pPage key=content>@{sys:curPath}editor_fck_new_content.htm</file>

Explanations:
File: File function tag
Value = "@ {pPage: content}": content to be saved (the content field value submitted on the previous page)
Bag = pPage: the bag from which the content is saved
Key = content: field name of the content to be saved
@ {Sys: curPath}: directory of the current file
Editor_fck_new_content.htm: name of the file to save the content

Complete code

<chtml><file value="@{pPage:content}">@{sys:curPath}editor_fck_new_content.htm</file><to>@{sys:path}@{sys:curPath}editor_fck_new_content.htm</to></chtml>

(Example file: _ samples/editor/editor_fck_save.chtml) in the _ samples/editor directory of the Light-Open Platform

Download Easy Do IT resources
Platform and the latest development manual free download: http://download.csdn.net/detail/tx18/8721317
Development example: light open B2C e-commerce website, free download: http://download.csdn.net/detail/tx18/8318585
Light Open Platform will occasionally upgrade to provide you with more powerful and Easy functions, please pay attention to download the latest version: http://download.csdn.net/user/tx18

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.