ExtensionEngine / tailor

Content authoring platform
MIT License
31 stars 10 forks source link

Fix: Toolbar is not updated on element update #752

Closed ikovac closed 3 years ago

ikovac commented 3 years ago

When an element is updated, the toolbar still has an outdated version of the selected element. This PR fixes mentioned issue.

ikovac commented 3 years ago

I am closing this PR because it introduces some new issues with the tce-carousel element. The tce-carousel element uses embed elements which are stored as stringify json inside tce-carousel's data field instead as rows inside the content-element table. This approach is causing that getElementByUid(elementId) getter returns undefined as it can't find embed elements inside the element list. The final result is that toolbar is not shown when an element inside the-carousel is clicked.