* fix the error of pcre.backtrack_limit for preg_match.

This commit is contained in:
wyd621
2013-07-29 14:56:38 +08:00
parent fb1b8520a3
commit fa8937eff4
2 changed files with 11 additions and 10 deletions
+2 -2
View File
@@ -77,7 +77,7 @@ $(document).ready(function()
var contentType = arr[0].split(";")[0].split(":")[1];
html = '<img src="' + result + '" alt="" />';
$.post(createLink('file', 'ajaxEditorImage'), {editor: html}, function(data){cmd.inserthtml(data);});
$.post(createLink('file', 'ajaxPasteImage'), {editor: html}, function(data){cmd.inserthtml(data);});
};
reader.readAsDataURL(file);
@@ -94,7 +94,7 @@ $(document).ready(function()
var html = K(doc.body).html();
if(html.search(/<img src="data:.+;base64,/) > -1)
{
$.post(createLink('file', 'ajaxEditorImage'), {editor: html}, function(data){K(doc.body).html(data);});
$.post(createLink('file', 'ajaxPasteImage'), {editor: html}, function(data){K(doc.body).html(data);});
}
}, 80);
});