diff --git a/module/common/view/kindeditor.html.php b/module/common/view/kindeditor.html.php
index 382b70479a..fe4a6a062c 100755
--- a/module/common/view/kindeditor.html.php
+++ b/module/common/view/kindeditor.html.php
@@ -11,8 +11,7 @@ $editorLang = isset($editorLangs[$app->getClientLang()]) ? $editorLangs[$app->
/* set uid for upload. */
$uid = uniqid('');
?>
-
-
+
';
+ })
+ .replace(/
]*data-ke-noscript-attr="([^"]*)"[^>]*>([\s\S]*?)<\/div>/ig, function(full, attr, code) {
+ return '
';
+ })
+ .replace(/(<[^>]*)data-ke-src="([^"]*)"([^>]*>)/ig, function(full, start, src, end) {
+ full = full.replace(/(\s+(?:href|src)=")[^"]*(")/i, function($0, $1, $2) {
+ return $1 + _unescape(src) + $2;
+ });
+ full = full.replace(/\s+data-ke-src="[^"]*"/i, '');
+ return full;
+ })
+ .replace(/(<[^>]+\s)data-ke-(on\w+="[^"]*"[^>]*>)/ig, function(full, start, end) {
+ return start + end;
+ });
+ });
+ self.beforeSetHtml(function(html) {
+ if(_IE && _V <= 8) {
+ html = html.replace(/
]*>|<(select|button)[^>]*>[\s\S]*?<\/\1>/ig, function(full) {
+ var attrs = _getAttrList(full);
+ var styles = _getCssList(attrs.style || '');
+ if(styles.display == 'none') {
+ return '
';
+ }
+ return full;
+ });
+ }
+ return html.replace(/