Get contents of the text area and convert to an image?


Topic: Get contents of the text area and convert to an image?

smachesney pro asked 4 months ago

Hi

I'm looking to get the contents of the WYSIWYG area and convert it to an image. Using html2canvas doesn't work with your configuration.

Any idea how I can accomplish this?

Thanks


Marcin Luczak staff answered 4 months ago

Hi,

You have probably been using html2canvas on the initial WYSIWYG element instead of its output .mdb-wysiwyg-textarea element. Please see my snippet showing how to use html2canvas on our WYSIWYG https://mdbootstrap.com/snippets/jquery/marcin-luczak/2836897

I've used here html2canvas cdn: https://cdnjs.cloudflare.com/ajax/libs/html2canvas/0.5.0-beta4/html2canvas.min.js

Regards, Marcin


Please insert min. 20 characters.
Status

Answered

Specification of the issue
  • User: Pro
  • Premium support: No
  • Technology: jQuery
  • MDB Version: 4.19.2
  • Device: Desktop
  • Browser: Chrome
  • OS: Windows
  • Provided sample code: No
  • Provided link: No