|
@@ -2794,6 +2794,16 @@ U.MD.D.I.openApplicationJie = function (str, cid, stage, task, tool) {
|
|
|
_iframe.contentWindow.document.body.appendChild(script2);
|
|
|
_iframe.contentWindow.document.body.appendChild(script4);
|
|
|
})
|
|
|
+ } else if (str == 'MindMap') {
|
|
|
+ U.UF.DL.iframeLoad(_iframe, async function () {
|
|
|
+ let _content = await U.MD.D.I.getContent(cid, stage, task, tool, _userid, '2')
|
|
|
+ _iframe.contentWindow.editor.minder.importData('json', _content).then(function(data){
|
|
|
+ $(fileInput).val('');
|
|
|
+ });
|
|
|
+ _iframe.contentWindow.document.body.appendChild(script1);
|
|
|
+ _iframe.contentWindow.document.body.appendChild(script2);
|
|
|
+ _iframe.contentWindow.document.body.appendChild(script4);
|
|
|
+ })
|
|
|
} else {
|
|
|
_iframe.onload = () => {
|
|
|
_iframe.contentWindow.document.body.appendChild(script1);
|
|
@@ -2881,4 +2891,17 @@ U.MD.D.I.getEditorContent = function(iframe){
|
|
|
resolve(content)
|
|
|
});
|
|
|
});
|
|
|
+}
|
|
|
+
|
|
|
+U.MD.D.I.getContent = async function (cid, s, task, t, uid, type) {
|
|
|
+ return new Promise((resolve, reject) => {
|
|
|
+ U.A.Request(US.Config.pbl + "selectWord2?uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t + "&type=" + type, [], function (res) {
|
|
|
+ if (res.value[0].length > 0) {
|
|
|
+
|
|
|
+ resolve(res.value[0][0].text);
|
|
|
+
|
|
|
+
|
|
|
+ }
|
|
|
+ }, [], { "type": "GET", "withCredentials": true });
|
|
|
+ });
|
|
|
}
|