相关疑难解决方法(0)

如何在CKEDITOR textarea中阻止对内容的某些部分进行编辑?

我的CKEDITOR表格预先填充了隐藏表格,该表格与用户输入的文本一起提交.这工作正常,但有时用户按退格太多次并删除隐藏的表.

有没有办法阻止ckeditor textarea里面这个隐藏表的编辑?因此,当用户按退格键时,隐藏的表不会受到影响并保持不变.

一旦CKEDITOR实例准备好,这个源(波纹管)就会被放入CkEditor Textarea(使用setData()属性),而User只能看到返回的<p></p>值.在这种情况下它<p>I really think I can do this!</p>.它描述了他的个人资料,他可以保留并编辑它.其余部分是隐藏的,只有在提交表单时才能在电子邮件中显示.奇怪的是<p></p>它位于顶部,但如果用户按下Backspace几次,表格将被删除,因此未提交.

    <span id="messageTemplate1" class="message">

<p>I really think I can do this!</p>

<table class="hide" style="font-size: 12px;">
    <tbody>
        <tr class="hide">
            <td>
            Application sent by <strong><a href="http://www.globalcastingcenter.com/talent/jack-bolton">Matt Faro</a></strong> for Audition: <a href="http://www.globalcastingcenter.com:80/CustomContentRetrieve.aspx?ID=4185493">Actors Needed</a>
            </td>
        </tr>
        <tr class="hide">
            <td>
            Reply to applicant directly: mantas@mantas.co or visit full profile: http://www.globalcastingcenter.com/talent/jack-bolton
            </td>
        </tr>
    </tbody>
</table>
<table class="hide" style="font-size: 12px;">
    <tbody>
        <tr class="hide">
            <td><strong>Short Profile Summary:</strong></td>
        </tr>
    </tbody>
</table>
<table class="hide" …
Run Code Online (Sandbox Code Playgroud)

javascript configuration plugins backspace ckeditor

5
推荐指数
1
解决办法
2万
查看次数

标签 统计

backspace ×1

ckeditor ×1

configuration ×1

javascript ×1

plugins ×1