<tr><td class="tdLeft">请填写</td><td>#{Editor}</td></tr>
public void EditorSimple() {
editor( "simpleContent", "", "280px" ); // 因为没有提供编辑器名称,所以客户端使用#{Editor}
target( EditorSimpleSave );
}
// 获取编辑器的值
public void EditorSimpleSave() {
// 只能使用 ctx.PostHtml 方法获取html的值;ctx.Post等其他方法不允许任何html标签(为了安全)
String html = ctx.PostHtml( "simpleContent" );
if (strUtil.IsNullOrEmpty( html )) {
echoRedirect( "请填写simpleContent内容" );
}
else {
actionContent( "simpleContent
" + html );
}
}