Skip to content

Commit 252c456

Browse files
Ability to add new text and tags at the beginning of the tag
1 parent 83cde39 commit 252c456

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

web-forms.js

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1341,6 +1341,22 @@ function cb_SetValueToInput(ActionOperation, ActionFeature, ActionValue)
13411341
else
13421342
CurrentElement.appendChild(document.createElement(Value));
13431343
break;
1344+
case "ut":
1345+
if (Value.Contains("|"))
1346+
{
1347+
var TagName = Value.GetTextBefore("|");
1348+
var TagId = Value.GetTextAfter("|");
1349+
var TmpTag = document.createElement(TagName);
1350+
TmpTag.id = TagId;
1351+
CurrentElement.prepend(TmpTag);
1352+
}
1353+
else
1354+
CurrentElement.prepend(document.createElement(Value));
1355+
break;
1356+
case 'pt':
1357+
CurrentElement.innerHTML = Value.Replace("$[ln];", "\n").toDOM() + CurrentElement.innerHTML;
1358+
cb_Initialization(CurrentElement);
1359+
break;
13441360
case "lu": GetBack(Value, ElementPlace);
13451361
}
13461362
}

0 commit comments

Comments
 (0)