如何重置ckeditor textArea

时间:2017-09-05 06:04:58

标签: html ckeditor

假设我有一个CKEditor

<div class="floor floor3">
    <dl class="">
        <dt>내용</dt>
        <dd>
            <%
                CKEditorConfig settings = new CKEditorConfig();
                settings.addConfigValue("height", 150);
                settings.addConfigValue("toolbar", "[[ 'Styles','Format','Font','FontSize' ],[ 'TextColor','BGColor' ],[ 'Bold','Italic','Underline','Strike','-','RemoveFormat' ],[ 'NumberedList','BulletedList','-','Outdent','Indent','-','Blockquote','-','JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock'],[ 'Link','Unlink']]");
            %>
            <textarea cols="128" rows="10" id="brdConts" name="brdConts"></textarea>
            <ckeditor:replace replace="brdConts" config="<%=settings %>" basePath="${pageContext.request.contextPath}/resources/ckeditor/"/>
            <script>
                CKEDITOR.config.removeDialogTabs = "link:upload;link:advanced;image:Upload";
            </script>
        </dd>
    </dl>
</div> 

如果我想在某些活动后重置TextArea 我应该如何重置它。

0 个答案:

没有答案