[hotfix] Fix placeholder in free text static property renderer
@@ -92,8 +92,13 @@ export class StaticFreeInputComponent
}
applyPlaceholder(runtimeName) {
+ let valueToInsert = "#" + runtimeName + "#";
+ if (this.quillEditorComponent) {
let currentIndex = this.quillEditorComponent.quillEditor.selection.savedRange.index;
- this.quillEditorComponent.quillEditor.insertText(currentIndex, "#" + runtimeName + "#", "user");
+ this.quillEditorComponent.quillEditor.insertText(currentIndex, valueToInsert, "user");
+ } else {
+ this.parentForm.controls[this.fieldName].setValue(this.parentForm.controls[this.fieldName].value + " " +valueToInsert);
+ }
}
formatLabel(value: number) {
