ace editor bug fixed

This commit is contained in:
lealife
2018-06-13 16:37:10 +08:00
parent 5eba524bfc
commit c4bb20fd12

View File

@ -1030,7 +1030,7 @@ LeaAce = {
var classes = $pre.attr('class') || '';
var isHtml = classes.indexOf('brush:html') != -1;
if($pre.attr('style') ||
(!isHtml && $pre.html().indexOf('style') != -1)) { // 如果是html就不用考虑了, 因为html格式的支持有style
(!isHtml && $pre.html().indexOf('<style>') != -1)) { // 如果是html就不用考虑了, 因为html格式的支持有style
$pre.html($pre.text());
}
$pre.find('.toggle-raw').remove();