Tryton - Issues

 

Issue8004

Title HTML editor
Priority feature Status resolved
Superseder Nosy List ced, reviewbot, roundup-bot
Type feature request Components sao, tryton, trytond
Assigned To ced Keywords review
Reviews 54481002
View: 54481002

Created on 2019-01-16.18:20:20 by ced, last changed by roundup-bot.

Messages
New changeset d92f130b40a0 by Cédric Krier in branch 'default':
Add HTML editor
https://hg.tryton.org/tryton-env/rev/d92f130b40a0
New changeset 0c6cf104c008 by Cédric Krier in branch 'default':
Add HTML editor
https://hg.tryton.org/trytond/rev/0c6cf104c008
New changeset baf8965e135f by Cédric Krier in branch 'default':
Add HTML editor
https://hg.tryton.org/tryton/rev/baf8965e135f
New changeset 25ba98274e26 by Cédric Krier in branch 'default':
Add HTML editor
https://hg.tryton.org/sao/rev/25ba98274e26
review54481002 updated at https://codereview.tryton.org/54481002/#ps273181003
review54481002 updated at https://codereview.tryton.org/54481002/#ps273181002
review54481002 updated at https://codereview.tryton.org/54481002/#ps259241002
review54481002 updated at https://codereview.tryton.org/54481002/#ps267091002
review54481002 updated at https://codereview.tryton.org/54481002/#ps100001
review54481002 updated at https://codereview.tryton.org/54481002/#ps80001
review54481002 updated at https://codereview.tryton.org/54481002/#ps60001
review54481002 updated at https://codereview.tryton.org/54481002/#ps40001
review54481002 updated at https://codereview.tryton.org/54481002/#ps20001
review54481002 updated at https://codereview.tryton.org/54481002/#ps1
msg45991 (view) Author: [hidden] (ced) (Tryton committer) (Tryton translator) Date: 2019-01-16.18:33:54
Following https://discuss.tryton.org/t/poc-html-descriptions-for-products/858, I have implemented HTML editor in review54481002.
It provide at the url <database>/ir/html/<model>/<id>/<field> a tinyMCE editor with the content of the field. Credentials are checked using Basic authentication. The content is saved using a POST form. It is protected against CSRF using the write_date of the record (and by the same way against concurrent modification).
The editing page have two extra buttons to save (post the form) and to close/logout.
By default it uses the CDN of tiny.cloud to provide the javascript but it is configurable.
The plugins to activate are also configurable. By fullscreen and autosave are always activated to use the all page and avoid closing the window without saving.
Some default CSS files can be configured but also per model and per model-field.
I implemented also in the clients an HTML widget which display a link button pointing to the url of the editor for the field.
History
Date User Action Args
2019-03-30 16:05:10roundup-botsetmessages: + msg48134
2019-03-30 16:05:05roundup-botsetmessages: + msg48133
2019-03-30 16:05:03roundup-botsetmessages: + msg48132
2019-03-30 16:05:00roundup-botsetstatus: testing -> resolved
nosy: + roundup-bot
messages: + msg48131
2019-03-24 19:41:52reviewbotsetmessages: + msg48003
2019-03-24 18:44:59reviewbotsetmessages: + msg48002
2019-03-24 18:17:59reviewbotsetmessages: + msg48001
2019-03-17 14:10:54reviewbotsetmessages: + msg47701
2019-02-09 10:39:14reviewbotsetmessages: + msg46887
2019-02-09 02:09:57reviewbotsetmessages: + msg46886

Showing 10 items. Show all history (warning: this could be VERY long)