编辑器验证(编辑器名称:postContent)
请填写
#{Editor}
 
客户端代码
    <tr><td class="tdLeft">请填写</td><td>#{Editor}</td></tr>
    
说明:使用编辑器非常简单,客户端只有一个变量 #{Editor}
服务端代码
    
        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 ); } }