1. 程式人生 > >Ask HN: Need a layman friendly template system with WYSIWYG editor

Ask HN: Need a layman friendly template system with WYSIWYG editor

What’s a viable way to achieve the above?

The system was for admins to use where they will build a survey using SurveyJS then build a templates to be filled in with answers from the survey. The tricky part is the template has to be rich text, with table support and input by a layman admin. We tried quill, then pass the html generated and the variables to handlebars to form the final output. For simple usage it’s fine but it breaks down when we render a table with dynamic rows, because we were naively wrapping .each on the table generated by quill. It’ll be very easy done if the admins were able to write proper handlebars template.

And so we believe we need to look for a rich text editor with template support. Any suggestions?