Not able to use WYSIWYG editor


Topic: Not able to use WYSIWYG editor

maheshbasapur pro premium asked 5 months ago

Expected behavior WYSIWYG editor should appear in the page

Actual behavior Editor is not appearing and seeing following error in the console

ReferenceError: Can't find variable: WYSIWYG

Resources (screenshots, code snippets etc.)

I am using

"MDB5-Standard-UI-KIT-Pro-Essential-3.9.0"

included:

<link rel="stylesheet" href="/css/mdb/mdb.min.css" />

Html:

<div class="wysiwyg" data-mdb-wysiwyg="wysiwyg"></div>

JS:

const wysiwygElement = document.getElementsByClassName('wysiwyg')[0];

const wysiwygInstance = WYSIWYG.getInstance(wysiwygElement);


Michał Duszak staff answered 5 months ago

You didn't load the wysiwyg plugin, and mdb.min.js file. Here's an instruction on how to load plugins: https://mdbootstrap.com/docs/standard/pro/plugins-installation/. Also, dont forget to load mdb.min.js script into your project.


maheshbasapur pro premium commented 5 months ago

Hi Included

Everything else works fine. Only WYSIWYG editor is not appearing and getting error "ReferenceError: Can't find variable: WYSIWYG"


maheshbasapur pro premium commented 5 months ago

Also, in following zip file I am downloading, there is no plugins folder "MDB5-Standard-UI-KIT-Pro-Essential-3.9.0"


Michał Duszak staff commented 5 months ago

Did you buy WYSIWYG plugin? As far as I know, Pro Essential doesn't contain plugins.


maheshbasapur pro premium commented 5 months ago

I didn't buy anything extra.

Is every plugin being sold as add on? where do I see the price of components to buy?


Adam Jakubowski staff commented 5 months ago

Hello @maheshbasapur,

The support forum is dedicated to technical questions.

All questions regarding MDB licensing, products, partnerships and other non-technical queries - it should be asked directly to contact@mdbootstrap.com

I've reached out to you via email address assigned to your mdbootstrap account.

Keep coding,

Adam From MDB


maheshbasapur pro premium commented 5 months ago

Hi Adam

It is a technical question end up as licensing one.

I wouldn't have posted a licensing question here for sure.

I want you guys to please pass my feedback to your team. "Once I am logged in as a licensed user, things that are not in my license should be separated out so that I don't struggle and come back to you"

Thanks


Adam Jakubowski staff commented 5 months ago

Hello @maheshbasapur,

I've reached out to you via email address assigned to your mdbootstrap account.

Keep coding,

Adam From MDB


Status

Closed

Specification of the issue
  • User: Pro
  • Premium support: Yes
  • Technology: MDB Standard
  • MDB Version: MDB5 3.9.0
  • Device: Mackbook
  • Browser: Safari
  • OS: Mac
  • Provided sample code: No
  • Provided link: No