WYSIWYG Editor - Angular


Topic: WYSIWYG Editor - Angular

AgentEnder pro premium asked 8 months ago

How should I use this component in a form? I have it working with value valueChanges currently, but would like to also be able to set the value programmatically.

Is there a way to use ngmodel or formControlName with the component?


UPDATE I have it working now with formControlName, but doing this.form.reset() does not set the value to empty, as would likely be the intention.

UPDATE 2 Using this.form.get('controlName').setValue('') does not clear it either, rather you have to at least set it to a 1 char long string. I am currently setting it to a space as a workaround, but this should probably be fixed and documented.


Konrad Stępień staff commented 8 months ago

Hi @AgentEnder,

Can you send me an example to check the problem?

We'll look at it and try to remedy it.


Konrad Stępień staff answered 7 months ago

Hi @AgentEnder,

I fixed bug with set empty string value for component.

Is there anything I can do for you?

Best, Konrad.


Please insert min. 20 characters.
Status

Answered

Specification of the issue
  • User: Pro
  • Premium support: Yes
  • Technology: Angular
  • MDB Version: 8.8.0
  • Device: Desktop
  • Browser: Chrome
  • OS: Win10
  • Provided sample code: No
  • Provided link: No