HTML editor inserts white space into table cells.

Re: HTML editor inserts white space into table cells.

by Mauno Korpelainen -
Number of replies: 0

These complete="true" tags are strange - I installed and tested the latest moodle 1.9.5+ to check if it is some new feature but my editor does not add any such tags - could they come from some filter etc (that is not on by default) or some custom script (hack???)

I visited your site as a guest and it looks like your editor adds those tags to all images you add with editor - but why?

In tables images are vertically aligned to top in your theme css (in standard theme styles_layout.css unless it's changed in custom theme css) by

#course-view .section td{
vertical-align: top;
}

and to the middle in editor text area (no css in your theme for this)

If you add to all those td tags

style="vertical-align: middle;"

they should be vertically aligned to middle. You can add other style attributes manually ( HTML )  or try that Enlarge editor button Enlarge editor and set vertical alignment of all elements in your table to "middle" using different Table/Cell settings/buttons/options

I suppose it is a css problem but if the origin of complete="true" is unclear some script might feed whitespaces as well to your code. thoughtful