Skip to content

Commit 6ad8dc7

Browse files
save file
1 parent f423d64 commit 6ad8dc7

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

utils/editors/text-diff/v3.0/text-diff-v3.0.html

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@
4949
var hdr;
5050
var primary = {};
5151
var secondary = {};
52+
var output;
5253

5354

5455

@@ -66,6 +67,7 @@
6667
primary.editor = mod.editor1;
6768
secondary.filemod = mod.file2;
6869
secondary.editor = mod.editor2;
70+
output = mod.output;
6971

7072
mod.base.add({});
7173

@@ -92,7 +94,7 @@
9294
</script>
9395

9496

95-
<link rel=stylesheet href='/utils/css/utils.css'>
97+
<link rel=stylesheet href='/utils/css/utils.css' crossorigin=anonymous>
9698

9799
<style>
98100

@@ -212,7 +214,7 @@ <h4 slot=version>v3.0</h4>
212214
<div id=slider-2 style='height:10px;cursor:ns-resize'></div>
213215

214216

215-
<web-editor id=output component mode=text></web-editor>
217+
<web-editor component id=output mode=text></web-editor>
216218
<!--
217219
<div id=output-hldr>
218220
<web-editor id=output component></web-editor>
@@ -478,7 +480,7 @@ <h4 slot=version>v3.0</h4>
478480

479481
});
480482

481-
output.editor.setValue(txt,-1);
483+
output.setValue(txt,-1);
482484

483485
list.forEach(part=>{
484486
console.log(part);

0 commit comments

Comments
 (0)