Skip to content

Commit 1ce6d16

Browse files
fixed one line selection
1 parent 21b263e commit 1ce6d16

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

web/jsLib/joint.js

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17198,10 +17198,10 @@ if ( typeof window === "object" && typeof window.document === "object" ) {
1719817198
textNode = textPath.node;
1719917199
}
1720017200

17201-
if (lines.length === 1) {
17202-
textNode.textContent = content;
17203-
return this;
17204-
}
17201+
//if (lines.length === 1) {
17202+
// textNode.textContent = content;
17203+
// return this;
17204+
//}
1720517205

1720617206
for (; i < lines.length; i++) {
1720717207

@@ -17213,7 +17213,6 @@ if ( typeof window === "object" && typeof window.document === "object" ) {
1721317213
if (!lines[i]) {
1721417214
tspan.addClass('empty-line');
1721517215
}
17216-
//tspan.node.style.textDecoration = "underline";
1721717216
if (lines[i].indexOf("\x1b") !== -1) {
1721817217
jj = lines[i].split("\x1b");
1721917218
lines[i] = jj[0];

0 commit comments

Comments
 (0)