When adding a link to a table, a user can specify the title and whether to open the link a new window or not:
This is currently not respected and silently ignored.
This is for two distinct reasons.
The title is ignored, because title is not passed in the Javascript (while target is):
|
valid_elements += ",a[href|target|rel]"; |
The target experiences the opposite problem. It is passed in the JavaScript, but not passed in the backend sanitisation (while title is):
|
attributes["a"] = {"href", "rel", "title"} |
Solution: Unify the attribute list so that all for attributes are included: href, rel, title and target.
When adding a link to a table, a user can specify the title and whether to open the link a new window or not:
This is currently not respected and silently ignored.
This is for two distinct reasons.
The title is ignored, because
titleis not passed in the Javascript (whiletargetis):wagtail-tinytableblock/src/wagtail_tinytableblock/static/wagtail_tinytableblock/js/tiny-table-block.js
Line 20 in 09e100d
The
targetexperiences the opposite problem. It is passed in the JavaScript, but not passed in the backend sanitisation (whiletitleis):wagtail-tinytableblock/src/wagtail_tinytableblock/utils.py
Line 26 in 09e100d
Solution: Unify the attribute list so that all for attributes are included:
href,rel,titleandtarget.