How to preset Text of WYSIWYG Editor plugin


Topic: How to preset Text of WYSIWYG Editor plugin

Lustig pro premium priority asked 4 years ago

after purchased and installed the wysiwyg-plugin i am disappointed about its usage. I thought that a simple two-way binding liko on textareas is possibe:

[(ngModel)]="mytextvariable"

but its not :-( its also not possible to hide unwanted styling features (e.g. insert image)

Expected behavior simple two-way binding like on a textarea

Actual behavior its not possible- just an observation via

Resources (screenshots, code snippets etc.) very "thin" documentation https://mdbootstrap.com/plugins/angular/wysiwyg/

could you please tell me how i could set the Editor Text? Maybe there is a hidden way to hide unwanted formatting functions (e.g. i want to prevent the user to insert a link)

best regards Thomas


Arkadiusz Idzikowski staff answered 4 years ago

I just tested text initialization with ngModel and it looks like everything is working correctly. In case of any further problems, please try to add Angular FormsModule to the modules import list.

It is possible to hide specific buttons by setting their display style to none. Please take a look at this thread:

https://mdbootstrap.com/support/angular/wysiwyg-hide-disable-buttons/


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: Pro
  • Premium support: Yes
  • Technology: MDB Angular
  • MDB Version: 9.3.1
  • Device: Desktop
  • Browser: Chrome
  • OS: Windows
  • Provided sample code: No
  • Provided link: Yes
Tags