images within list elements show in kupu editor, but not in forms/preview/public preview
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Silva |
Invalid
|
Medium
|
Andy Altepeter |
Bug Description
<span class="
in the source code of output html pages from preview, public preview, forms
editor, however in Kupu editor screen, the images display correctly.
This seems to happen if the image ends up within a <p ...> ... </p> block in the
list. The image seems to be displayed OK if placed after </p> eg
<ul type="disc"><li><p class="
target="_self" alignment="" title=""></li></ul>
<ul type="disc"><li><p class="
target="_self" alignment="" title="
The second list image won't display, while the first will.
I'm not sure if the unacceptable lists were generated by Kupu or by my own
hand-editing of Kupu code. Will endeavour to determine this over time if a
cause/solution does not become obvious to you.
Changed in silva: | |
assignee: | nobody → aaltepet |
The cause of the bug is that only a restricted set of HTML-elements
is allowed in paragraphs when rendered via the public view of Silva.
(Note that I do not speak of the HTML standard, but about what Silva does ;-)
Image are not "allowed" in paragraphs. Either kupu should have this restriction
either, or the public renderer must be able to handle images inside paragraphs.
Sure this breaks the forms editor, unless soemone has an idea how to show images
in textareas ;-)
Erm, maybe one can allow a simplisitc <img src=".."> markup here either.