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

smachesney free asked 2 years 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 2 years 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.

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 jQuery
  • MDB Version: 4.19.2
  • Device: Desktop
  • Browser: Chrome
  • OS: Windows
  • Provided sample code: No
  • Provided link: No