admin管理员组文章数量:1122846
Hi there I want to disable automatic formatting of table/td/tr widths and heights in WordPress TinyMCE.
I create the table, literally type the data in (not copying it from word or anything like that) and it adds in width and heights to my table cells. Then I copy the code into a text editor and remove the widths and heights, then paste it back in and it adds the widths and heights again.
Its giving me a headache. The table is responsive using bootstrap classes so no need for widths and heights.
If I want widths and heights I will manually put them there.
How to disable this??
Hi there I want to disable automatic formatting of table/td/tr widths and heights in WordPress TinyMCE.
I create the table, literally type the data in (not copying it from word or anything like that) and it adds in width and heights to my table cells. Then I copy the code into a text editor and remove the widths and heights, then paste it back in and it adds the widths and heights again.
Its giving me a headache. The table is responsive using bootstrap classes so no need for widths and heights.
If I want widths and heights I will manually put them there.
How to disable this??
Share Improve this question edited Jul 16, 2017 at 4:32 Johansson 15.4k11 gold badges43 silver badges79 bronze badges asked Sep 20, 2016 at 1:57 RRowanRRowan 1231 silver badge6 bronze badges 4- tinyMCE is not exhibiting this behavior for me. Are you using a plugin such as tinyMCE Advanced or some kind of table plugin? The only way I'm able to get tinyMCE to add width and height attributes to the table markup is if I enter the HTML in the text editor, then switch to the Visual editor and drag the handles on the table to resize it. – Dave Romsey Commented Sep 20, 2016 at 2:51
- Yes I am using tinyMCE Advanced - does this exhibit this behaviour? Thx – RRowan Commented Sep 20, 2016 at 3:15
- Sorry, I don't use it. I just had a hunch that you were :) Questions on third party plugins and themes are off topic here on WPSE, but you can try you luck over on the plugin's support forums: wordpress.org/support/plugin/tinymce-advanced – Dave Romsey Commented Sep 20, 2016 at 3:18
- 1 I disabled this plugin as a solution – RRowan Commented Apr 13, 2018 at 1:42
1 Answer
Reset to default 0The general recommendation seems to be to downgrade TinyMCE Advanced to version 4.6.7. I just did this myself and it solved the problem.
I needed to clean up the HTML of the affected tables by hand though.
There's a topic on the plugin's support page with some other suggestions.
本文标签: Disable TinyMCE Table formatting widthheight
版权声明:本文标题:Disable TinyMCE Table formatting widthheight 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1736282163a1926555.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论