TinyMce允许所有Html标签 [英] TinyMce Allow all Html tag

查看:1538
本文介绍了TinyMce允许所有Html标签的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用TinyMce,即使脚本攻击的危险,我需要使用编辑器启用所有html标记。

I'm using TinyMce and even though the danger of a script attack, I need to enable all html tags with the editor.

目前,我正在使用例如:

Currently, I'm use like:

valid_elements: "@[class],p[style],h3,h4,h5,h6,a[href|target],strong/b,"
              + "div[align],br,table,tbody,thead,tr,td,ul,ol,li,img[src]"

但是总是需要添加一些东西,我想要启用所有HTML标签和所有属性。有没有这样的开关,禁用HTML过滤?

But always need to add something, I want to enable ALL HTML tags with all attributes. Is there such switch that Disables the HTML filtering?

推荐答案

您可以设置

valid_elements : '*[*]',

允许所有html标签。

to allow all html tags.

这篇关于TinyMce允许所有Html标签的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆