如何禁用url在ckeditor插件
how to disable the url in ckeditor plugin?
我使用CKEditor插件的文本区域。
我不希望文本中有任何url。我不知道如何识别文本是否包含任何url或超链接。有什么办法可以做到吗?例如,我的代码如下:
text = "hi <br> this is something about <br> www.google.com. such a good web site. <br> <a href='www.google.com'>click</a> to go <br>";
我需要在上面的代码中识别url和href
。
如果您想禁用CKEditor中的链接,请使用最新的4.1。x构建并利用高级内容过滤器(ACF)。
你可以通过在配置中指定config.removePlugins = 'link'
来删除链接插件,或者限制config.allowedContent
不接受<a>
标签(参见ACF配置指南)。
这将通知你的编辑器链接是不需要的,它们将在编辑器的输出中被删除。
相关文章:
- Ckeditor插件功能在使用setData(“hai”)之后不起作用;
- 创建一个简单的CKEditor插件-选择下拉列表
- ckEditor插件iframe对话框设置html输入
- CKEditor 插件 - 当前文本区域的 ID
- CKEditor插件不在插件文件夹中
- CKEditor + 插件链接选择框
- 将事件侦听器添加到CKEDITOR插件
- CKEditor插件-如何以正确的方式启动DialogCommand
- CKEditor插件-为所选文本迭代多个DOM元素的正确方法
- rails 4与CKEditor-插件(codesnippet)没有'不起作用
- 当创建一个CKEditor插件时,我如何添加一个“;“颜色选择器”;到我的对话框
- 如何禁用url在ckeditor插件
- 如何在Rails 3应用程序中插入CKEditor插件
- vBulletin / CKEditor插件在源模式下被禁用
- Javascript在加载时移除ckeditor插件
- 如何在页面内调用CKEditor 4插件函数
- Ckeditor插件-在文本区域的特定元素上执行javascript函数
- Ckeditor插件对话框选择从选定的一个获取描述
- 如何在CKEDITOR插件中的图像上传中添加csrf令牌到post请求
- 在Ckeditor插件中输入字母