gregorwolf / bookshop-demo

Simple CDS bookshop
112 stars 76 forks source link

feat: use `RichTextEditorWithMetadata` in a custom control #127

Open marianfoo opened 2 months ago

marianfoo commented 2 months ago

wasnt easy but the control was created only with code, you can define the properties of the RichTextEditorWithMetadata in the creation of the control: https://ui5.sap.com/#/api/sap.fe.macros.RichTextEditorWithMetadata

https://github.com/gregorwolf/bookshop-demo/blob/7c39531383b7c0968a76ea8d0054a43f1d1db02f/app/webapp/controlRichTextEditor/RichTextEditorWithMetadata.js#L57-L73

It is possible to use resourceRoots to manifest or launchpad html:

https://github.com/gregorwolf/bookshop-demo/blob/7c39531383b7c0968a76ea8d0054a43f1d1db02f/app/webapp/ordersUI5latest/webapp/manifest.json#L82-L84

https://github.com/gregorwolf/bookshop-demo/blob/7c39531383b7c0968a76ea8d0054a43f1d1db02f/app/webapp/fiori-latest.html#L64-L66