简体   繁体   English

Tinymce在元素中去除了$和'{'

[英]Tinymce Stripped out $ and '{' in elements

I am using Codemirror to view the source code in tinymce , The problem is 我正在使用Codemirror在tinymce中查看源代码,问题是

This source code 这个源代码

<div name="Default" linespacing="22.34pt" style="text-align: center;" ${TEST}>

gets converted into- you can see. 转换成-您可以看到。 the attribute ${TEST} is replaced with test="" 将属性$ {TEST}替换为test =“”

 <div name="Default" linespacing="22.34pt" style="text-align: center;" test="">

So I don't want this to happen. 所以我不希望这种情况发生。

on your initialization try setting verify_html to false , like: 在初始化时,尝试将verify_html设置为false ,例如:

tinymce.init({
    ...
    verify_html : false,
    ....
});

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM