ace editor bug fixed
This commit is contained in:
@ -1030,7 +1030,7 @@ LeaAce = {
|
|||||||
var classes = $pre.attr('class') || '';
|
var classes = $pre.attr('class') || '';
|
||||||
var isHtml = classes.indexOf('brush:html') != -1;
|
var isHtml = classes.indexOf('brush:html') != -1;
|
||||||
if($pre.attr('style') ||
|
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.html($pre.text());
|
||||||
}
|
}
|
||||||
$pre.find('.toggle-raw').remove();
|
$pre.find('.toggle-raw').remove();
|
||||||
|
Reference in New Issue
Block a user