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:
User clicks a button related to a specific region they'd like to edit
I initialize the editor that region
I immediately enter editing mode with $('.ct-ignition__button--edit').click()
I handle the 'saved' event and call editor.destroy()
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!
The error comes from line 8965 of content-tools.js version 1.6.9:
If I simply ignore the exception, it seems to work fine enough.
Use case:
$('.ct-ignition__button--edit').click()
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!