We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

Disable/Enable Modules

Hello,

I 'm destroying to all modules by "documenteditor.destroyDependentModules();". 

How can i ,enable or add modules again?



3 Replies

HC Harini Chellappa Syncfusion Team December 6, 2019 06:43 AM UTC

Hi Mustafa,

 

You can enable all the modules by using following API of documenteditor.

 

documenteditor.enableAllModules()

 

Regards,

Harini C



MK Mustafa Kaya December 6, 2019 08:12 AM UTC

I tried it before you say, but after call "enableAllModules", editor isnt working. I cant write to editor.


HC Harini Chellappa Syncfusion Team December 9, 2019 12:19 PM UTC

Hi Mustafa,

 

DestroyDependentModules is a private method of document editor. Hence using this for destroying and trying to enable modules with enableAllModules creates error.  Document editor provides API only to destroy the whole component.

 

To unload modules, you can disable module properties and enable it again to load. Please refer the below documentation for more details.

https://ej2.syncfusion.com/documentation/document-editor/feature-module/?no-cache=1#feature-modules

 

Regards,

Harini C


Loader.
Live Chat Icon For mobile
Up arrow icon