From a4464e58c3e1c044b960ed969a4934b7103b3640 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8C=83=E5=BC=BA=E5=BC=BA?= <787203167> Date: Sun, 10 Mar 2024 13:18:09 +0800 Subject: [PATCH] =?UTF-8?q?=20=E6=96=87=E6=A1=A3=E6=8B=86=E5=88=86--?= =?UTF-8?q?=E6=9F=A5=E7=9C=8B--=E5=9B=BE=E7=89=87=E4=B8=8A=E4=BC=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- jero-web/public/ueditor/ADT/image/image.js | 4 ++- jero-web/public/ueditor/ueditor.all.js | 27 +++++++++++-------- .../documentSplit/modules/SplitAddForm.vue | 3 +++ .../modules/SplitClauseDetail.vue | 3 ++- .../modules/SplitDetailAddTable.vue | 11 +++++++- 5 files changed, 34 insertions(+), 14 deletions(-) diff --git a/jero-web/public/ueditor/ADT/image/image.js b/jero-web/public/ueditor/ADT/image/image.js index dee16bb..7817ecf 100644 --- a/jero-web/public/ueditor/ADT/image/image.js +++ b/jero-web/public/ueditor/ADT/image/image.js @@ -911,7 +911,9 @@ } })(img)); img.width = 113; - img.setAttribute('src', urlPrefix + list[i].url + (list[i].url.indexOf('?') == -1 ? '?noCache=':'&noCache=') + (+new Date()).toString(36) ); + + console.log(urlPrefix + list[i].url) + img.setAttribute('src', urlPrefix + list[i].url + (list[i].url.indexOf('?') == -1 ? '?noCache=':'&noCache=') + (+new Date()).toString(36) ); img.setAttribute('_src', urlPrefix + list[i].url); domUtils.addClass(icon, 'icon'); diff --git a/jero-web/public/ueditor/ueditor.all.js b/jero-web/public/ueditor/ueditor.all.js index 2976d1d..88ff65c 100644 --- a/jero-web/public/ueditor/ueditor.all.js +++ b/jero-web/public/ueditor/ueditor.all.js @@ -7336,15 +7336,14 @@ var fillCharReg = new RegExp(domUtils.fillChar, 'g'); * editor.setContent('
new text
', true); //插入的结果是old text
new text
* ``` */ + setContent: function (html, isAppendTo, notFireSelectionchange) { var me = this; - - me.fireEvent('beforesetcontent', html); + me.fireEvent('beforesetcontent', html); var root = UE.htmlparser(html); me.filterInputRule(root); html = root.toHtml(); - - me.body.innerHTML = (isAppendTo ? me.body.innerHTML : '') + html; + me.body.innerHTML = (isAppendTo ? me.body.innerHTML : '') + html; function isCdataDiv(node){ @@ -8078,14 +8077,14 @@ UE.Editor.defaultOptions = function(editor){ setTimeout(function(){ try{ me.options.imageUrl && me.setOpt('serverUrl', me.options.imageUrl.replace(/^(.*[\/]).+([\.].+)$/, '$1controller$2')); - - var configUrl = me.getActionUrl('config'), + console.log(me.options.imageUrl) + var configUrl = me.getActionUrl('config'), isJsonp = utils.isCrossDomainUrl(configUrl); /* 发出ajax请求 */ me._serverConfigLoaded = false; - configUrl && UE.ajax.request(configUrl,{ + configUrl && UE.ajax.request('http://localhost:8184/laws-sinotruk/sys/split/file/getImage?fileName=7DS756NXKGimage5.png',{ 'method': 'GET', 'dataType': isJsonp ? 'jsonp':'', 'onsuccess':function(r){ @@ -9378,7 +9377,7 @@ var filterWord = UE.filterWord = function () { * ``` */ -var htmlparser = UE.htmlparser = function (htmlstr,ignoreBlank) { + var htmlparser = UE.htmlparser = function (htmlstr,ignoreBlank) { //todo 原来的方式 [^"'<>\/] 有\/就不能配对上