- Jan Grasnick
This days I got a call from clients asking me if there is a way to add html descriptions to product templates. After reading a bit source code of the richtext widget and searching for gtk browser widgets I have deicided to write a quick and dirty proof of concept for an external editor. Lot of people know TinyMCE which already does the job. So why not use that?
What I have done yet:
Added a route to the external editor.
Added fields to Producttemplate:
description (fields.Text - the description)
edit_path (fields.Function - the path to the external editor which opens in a browser)
It has two configuration fields in product.configuration:
editor_path (fields.Char - absolute path to a tinymce editor js-file)
content_css (fields.Char - absolute path to a css file to format the content)
TODO: add support for translations
As this is a tiny contribution but possibly helpful for others I ask for review of the security:
How to secure a route? You can see my approach here link
Greetings from Leipzig