How can I display the selected value from a dropdown in a text box at the current cursor position? I am currently using the following code:
enter code selectChangeHandler(event: any) {
this.selectedID = event.target.value;
// console.log("this.selectedID", this.selectedID);
this.arrayfordynamic += `<div>{{DV.Product.${this.selectedID}}}</div>`
console.log("this.arrayfordynamic", this.arrayfordynamic)
this.productDiscriptionArrayForID = `<div>${this.arrayfordynamic} </div> ${this.product.productDescription}`
// console.log("this.selectedIDwithDiscription-----", this.arrayfordynamic);
this.productForm.controls.des.setValue(this.productDiscriptionArrayForID);
}
I am currently inserting the dropdown value into an Angular Editor text. However, I would like to place this value at the cursor position when I click on a dropdown value. Can anyone provide guidance on how to achieve this?