GetmeUK / ContentTools

A JS library for building WYSIWYG editors for HTML content.
http://getcontenttools.com
MIT License
3.95k stars 393 forks source link

EditorApp.destroy() raises Uncaught TypeError: Cannot read property 'hide' of null #518

Open ajselvig opened 5 years ago

ajselvig commented 5 years ago

The error comes from line 8965 of content-tools.js version 1.6.9:

this._toolbox.hide();

If I simply ignore the exception, it seems to work fine enough.

Use case:

This is because I want to be able to initialize the editor for a different region later. I don't want the user to be able to edit all regions at once, only one at a time using buttons that are a part of my own UI. If there's a better way to do this, I guess I'm open.

Thanks for work on this library, it really stands out in a crowded field!