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

徘徊边缘 提交于 2019-12-02 09:28:02

One of Apostrophe's subtleties is that any property beginning with an underscore (_) (except _id) is not actually part of the parent object and changes don't go back to the database

These are properties attached for convenience by Apostrophe somewhere in the retrieval process.

I don't thinkg modifying the piece from the widget is something baked in by default (typically piece-widgets are single-serving views for content) but it is possible to set up custom backend functionality.

Not a total 1:1 of your issue but if you look at the comments and comments-widgets module in this (rough) example, you can see we're modifying the piece's content via the widget.

https://github.com/stuartromanek/apostrophe-comment-system/tree/master/lib/modules

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!