TinyMCE 中的限制粘贴 [英] Limit Paste in TinyMCE
本文介绍了TinyMCE 中的限制粘贴的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个 TinyMCE 小部件,它仅限于 标签和非块级元素.因此,用户无法插入诸如
或
之类的标签.哪个是所需的行为.但是,用户可以从任何网页复制任何内容并将其粘贴到 TinyMCE.有没有办法防止在那里粘贴,或者更好的是,将粘贴限制为仅一组标签?
解决方案 查看 粘贴插件 随 TinyMCE 一起提供.
I have a TinyMCE widget that is limited to only <p>
tags and non-block-level elements. Thus, the user is unable to insert tags like <div>
or <table>
. Which is the desired behavior.
However, the user can copy any content from any web page and paste it to TinyMCE. Is there a way to prevent pasting there, or better yet, limit paste to only a set of tags?
解决方案 Have a look at the paste plugin shipped with TinyMCE.
这篇关于TinyMCE 中的限制粘贴的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文
登录
关闭
扫码关注1秒登录
发送“验证码”获取
|
15天全站免登陆