WYSIWYG Editor - Angular


Topic: WYSIWYG Editor - Angular

AgentEnder asked 5 years 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 5 years 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 5 years 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.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Answered

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