Topic: Not able to turn off LinksSection of WYSIWYG editor

DashMarketingGroup priority asked 11 months ago


I am trying to turn off the links section of the WYSIWIG editor, because I don't want people embedding links or pictures in their posts. According to the API, I should only need to set wysiwygLinksSection to false to do this. I have tried both in the HTML code and using jQuery, but neither works.

HTML Code:

<div class="col-md-6 offset-md-3">
    <div class="wysiwyg" id="editor" data-mdb-wysiwyg="wysiwyg"></div>
</div>

jQuery Method:

$("#editor").attr('wysiwygLinksSection', 'false');

I can't find any examples of the proper usage to solve this. Could you give me some guidelines please?


Grzegorz Bujański staff answered 11 months ago


Try this code:

<div class="wysiwyg" data-mdb-wysiwyg-links-section="false" data-mdb-wysiwyg="wysiwyg">

</div>


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

  • ForumUser: Priority
  • Premium support: Yes
  • Technology: MDB Standard
  • MDB Version: MDB5 6.4.0
  • Device: Laptop
  • Browser: Chrome
  • OS: Win11
  • Provided sample code: No
  • Provided link: No