This is an automated email from the ASF dual-hosted git repository. riemer pushed a commit to branch rel/0.67.0 in repository https://gitbox.apache.org/repos/asf/incubator-streampipes.git
commit c0f8d3dca713ae9afb5f021ba4b4ef3bb3d2acd5 Author: Dominik Riemer <[email protected]> AuthorDate: Sat Sep 12 01:49:05 2020 +0200 [hotfix] Fix placeholder in free text static property renderer --- .../static-free-input/static-free-input.component.ts | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/ui/src/app/core-ui/static-properties/static-free-input/static-free-input.component.ts b/ui/src/app/core-ui/static-properties/static-free-input/static-free-input.component.ts index 0cb54bb..b886824 100644 --- a/ui/src/app/core-ui/static-properties/static-free-input/static-free-input.component.ts +++ b/ui/src/app/core-ui/static-properties/static-free-input/static-free-input.component.ts @@ -92,7 +92,12 @@ export class StaticFreeInputComponent } applyPlaceholder(runtimeName) { - let currentIndex = this.quillEditorComponent.quillEditor.selection.savedRange.index; - this.quillEditorComponent.quillEditor.insertText(currentIndex, "#" + runtimeName + "#", "user"); + let valueToInsert = "#" + runtimeName + "#"; + if (this.quillEditorComponent) { + let currentIndex = this.quillEditorComponent.quillEditor.selection.savedRange.index; + this.quillEditorComponent.quillEditor.insertText(currentIndex, valueToInsert, "user"); + } else { + this.parentForm.controls[this.fieldName].setValue(this.parentForm.controls[this.fieldName].value + " " +valueToInsert); + } } } \ No newline at end of file
