mockup
mockup copied to clipboard
Modal docs TinyMCE example fails without workaround (registry issue)
dev/#pattern/modal example with TinyMCE fails, because registry does not contain the pattern for TinyMCE. The workaround is to click the TinyMCE example first, then modal.
Intially, when loading just the modal pattern examples:
>>> require("pat-registry").patterns
Object {backdrop: function, plone-modal: function}
After loading the TInyMCE example:
>>> require("pat-registry").patterns
Object {backdrop: function, plone-modal: function, autotoc: function, tooltip: function, select2: function…}
And after clicking the latter example, then back to the modal, the docs "Modal with TinyMCE" example actually works.
Via/ref: https://community.plone.org/t/mockup-docs-what-loads-patterns-into-registry/4103