carbone icon indicating copy to clipboard operation
carbone copied to clipboard

[Feature Request]: Ability to insert rich text into template

Open exzizt opened this issue 3 years ago • 8 comments

Problem to solve It would be nice to be able to (or is it already possible somehow?) insert blocks of rich text into a template.

Proposed solution A function, maybe named "convRichText()", to render the passed-in chunk of rich text into the document.

Describe alternatives you've considered It might be possible to somehow achieve this outside of Carbone by injecting the rich text into the DOCX template before passing it to Carbone for rendering.

Additional context N/A

exzizt avatar Mar 16 '21 19:03 exzizt

Hello @exzizt, the rich text is mainly HTML content?

steevepay avatar Mar 16 '21 20:03 steevepay

Hello @exzizt, the rich text is mainly HTML content?

Yes, I think the rich text form input we plan on using returns the rich text as HTML markup. We will likely be using this library.

exzizt avatar Mar 16 '21 21:03 exzizt

The Carbone Enterprise Edition already provides an HTML conversion for DOCX and ODT reports. We don't plan to open source it. We didn't update the website documentation yet but reach us if you are interested.

steevepay avatar Mar 25 '21 08:03 steevepay

The Carbone Enterprise Edition already provides an HTML conversion for DOCX and ODT reports. We don't plan to open source it. We didn't update the website documentation yet but reach us if you are interested.

To clarify, we would like to render richtext from HTML inside of a DOCX template. Is this not possible? Or only possible if using the Enterprise edition?

We may end up rolling our own, similar to what we had to do to achieve dynamic image insertion/replacement.

exzizt avatar Mar 29 '21 16:03 exzizt

It is only possible with the Carbone Enterprise Edition.

steevepay avatar Mar 30 '21 07:03 steevepay

What if rich text means "markdown"? This means, the JSON have a text in Markdown, and Carbone renders it inside the ODT file. Thanks.

txinto avatar Apr 01 '21 02:04 txinto

We're also interested. Where can we find some documentation on it? Can we test it before with the free account and/or on the carbone studio?

alstarace avatar Apr 01 '21 15:04 alstarace

That is also interesting for me. It would be important to test it in advance. Are there any possibilities?

cjk2 avatar Apr 26 '21 06:04 cjk2