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