We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 05715a3 commit 41cd87dCopy full SHA for 41cd87d
src/setValue.js
@@ -18,6 +18,12 @@ HTMLHeadingElement.prototype.setValue = function(value) {
18
const setValue = (el, value) => {
19
if (value === null || value === undefined) return;
20
let valueType = el.getAttribute('value-type');
21
+ let prefix = el.getAttribute('value-prefix') || "";
22
+ let suffix = el.getAttribute('value-suffix') || "";
23
+ if (prefix)
24
+ value = text.replace(prefix, "");
25
+ if (suffix)
26
+ value = text.replace(suffix, "");
27
28
if (el.tagName == 'INPUT' || el.tagName == 'TEXTAREA' || el.tagName == 'SELECT') {
29
let {isCrdt} = getAttributes(el)
0 commit comments