RFC 0026 Block in the Rich Text Editor #42
Replies: 6 comments 15 replies
-
Consider the Portable text format - it works really well in Sanity: https://github.com/portabletext/portabletext |
Beta Was this translation helpful? Give feedback.
-
I fully agree with @deanleigh that you shouldn't build complex pages in the RTE - but we still need some macro-like functionality, for inserting non-trivial stuff, like buttons, icons, tooltips etc. in an RTE. The proposal seems like a good solution for replacing macros without adding too much. In this part: https://github.com/umbraco/rfcs/blob/0026-blocks-in-the-rte/cms/0026-blocks-in-the-rte.md#show-the-block-in-the-rte, it says that blocks by default will be inline, but the mockup implys that it's a block level element (the full width). If it was inline, it should only take up space matching the width of the content. In #13556 the point for inline macros is made. Also buttons, icons etc. would mostly need to be inline or inline block. |
Beta Was this translation helpful? Give feedback.
-
One thing thats missing from the current macro implementation to this, is the ability to cache the output. But I don't think it should be a setting on the macro/block anyway, so I'm good with keeping that out. |
Beta Was this translation helpful? Give feedback.
-
I think that the RFC looks good! I do agree with arguments that point out that it's better to create specific blocks for stuff but that only works if the RTE is used inside a Block Grid or a Block List. When the RTE is placed directly on the Content Type, something similar to macros is valuable. We have several sites that have been around for 5-10 years with many thousands of nodes, some of them just do not make sense to re-implement and migrate to a block-based structure. I think that it's important to be able to have different cshtml-files (if needed) for the frontend rendering of blocks in the RTE - I did not see this explicitly pointed out but I assume that this is the plan. Keep up the good work! |
Beta Was this translation helpful? Give feedback.
-
I've discussed the inline functionality a bit with @nielslyngsoe and we suggest adding an inline property on the blocktype settings so that the implementer has a chance to control the look within the RTE. However, if this setting is set to inline it will behave like explained above, where the editor can still choose to place it on its own line. The main purpose is to enable implementors to enforce a Block not to appear inline and as well avoiding unnecessary HTML when seeking a non-inline style. |
Beta Was this translation helpful? Give feedback.
-
Thanks for the comments. |
Beta Was this translation helpful? Give feedback.
-
Request for Comments: Blocks in the RTE
Read the full RFC document here.
This RFC discusses adding Blocks in the Rich Text Editor. We would love your feedback on the described feature.
How do I contribute?
Most importantly, we don’t want to miss anything, so everything goes in terms of clarifications, questions, suggestions, etc.
Please do the following things if you want to contribute:
Beta Was this translation helpful? Give feedback.
All reactions