# What is Panel plugin edits must be initiated from a supported UI event

**URL:** <https://forums.creativeclouddeveloper.com/t/what-is-panel-plugin-edits-must-be-initiated-from-a-supported-ui-event/1021>\
**Category:** UXP Plugin API\
**Tags:** javascript\
**Created:** [July 10, 2019, 2:35pm UTC](https://forums.creativeclouddeveloper.com/t/what-is-panel-plugin-edits-must-be-initiated-from-a-supported-ui-event/1021 "2019-07-10T14:35:40Z")\
**Posts on this page:** 1\
**Showing post:** 17

<div class="post-metadata">

**Author:** ![Velara](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/velara/32/1278_2.png) [@Velara](https://forums.creativeclouddeveloper.com/u/Velara)\
**Post date:** [September 3, 2019, 5:05pm UTC](https://forums.creativeclouddeveloper.com/t/what-is-panel-plugin-edits-must-be-initiated-from-a-supported-ui-event/1021/17 "2019-09-03T17:05:13Z")

</div>

Hi barryallen1337,

Welcome to the community. That’s a good point. Maybe the restrictions could be extended from:

> What is Panel plugin edits must be initiated from a supported UI event

to

> What is Panel plugin edits must be initiated from a supported UI event or design view UI event

Unless you are doing copy to clipboard you should be able to edit the plugin data at any time. Make sure you have wrapped the assignment in editDocument() as mentioned above.

_Just saw your last line. I’ve had it happen when creating an artboard._ I posted about it recently but I’ve fixed it,

> [@Error in panel after creating new artboard](http://forums.creativeclouddeveloper.com/t/error-in-panel-after-creating-new-artboard/1016):
>
> I have an auto export option that runs in the panel update() method. This works fine until I created a new artboard. Then I get the following error: Plugin Error: Plugin abc123 is not permitted to make changes from the background. Return a Promise to continue execution asynchronously. at convertPluginErrorToString (plugins/PluginErrorUtil.js:1:198) at internalFormatPluginError (plugins/PluginErrorUtil.js:1:1073) at internalReportPluginError (plugins/PluginErrorUtil.js:1:1180) at Object.rep…

If you can post any steps to reproduce it post it there. It might be you just need to wrap it in editDocument.

---

_[View the full topic](https://forums.creativeclouddeveloper.com/t/what-is-panel-plugin-edits-must-be-initiated-from-a-supported-ui-event/1021)._
