Search code examples
apostrophe-cms

Editor controls load


I'm currently developing a website in apostrophe when I came across this bug:

Apostrophe cms - inline editing of rich text in custom widgets?

The workaround that occurred to me was to create the piece as a simple widget, then and then add them in a apostrophe-page. To access to the widget like a piece using a slug, I intercept the request in the apostrophe-express, then load the widget querying the database and I render a view which includes widget.html.

This works pretty well, the only problem is that the editing controls are not loaded, so I can only edit them in the apostrophe-page.

I searched the source code of some modules, pages, widgets, pieces, pieces-pages trying to find where the editor controls where loaded but I had no luck.

I was wondering if anybody had a similar problem or knows how to load the controls can help me a little bit with this.

Thanks!


Solution

  • The fix to this original problem has been patched in master and will land in the npm registry next publish.

    https://github.com/apostrophecms/apostrophe/