• Hello all, I’m having a very annoying problem with WordPress.

    I have a page with a pretty detailed table, its 30 rows and 7 columns. I was able to get everything set up and running fine, but I’m running into some formatting problems when I make changes to the table.

    There are a few rows that have been merged and consist only of headings. When I use <center></center> tags around the text and save the page in HTML view, it looks great. However, when I switch to visual view the tags get removed and the text reverts to being aligned to the left. This wouldn’t be a problem if the page was static, but I need to update the data every day, so I either have to make changes in HTML view (quite laborious) or make changes in visual view and then add the <center> tags in HTML view before saving. Is there a workaround for this/is it a known bug? Or should I just use CSS to center the text?

    I’m also having a similar problem embedding Google maps into the page. When I paste this link in using HTML view, it works fine:

    <iframe width="425" height="350" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="http://maps.google.com/maps?f=q&amp;hl=en&amp;geocode=&amp;q=2252+Bellfield,+Cleveland,+OH+44106&amp;sll=41.489678,-81.560719&amp;sspn=0.009017,0.023432&amp;ie=UTF8&amp;ll=41.507613,-81.590309&amp;spn=0.036059,0.093727&amp;z=14&amp;iwloc=addr&amp;output=embed&amp;s=AARTsJpGAtyvui5FCIHDMzDGFAAWzPZc5g"></iframe><br /><small><a href="http://maps.google.com/maps?f=q&amp;hl=en&amp;geocode=&amp;q=2252+Bellfield,+Cleveland,+OH+44106&amp;sll=41.489678,-81.560719&amp;sspn=0.009017,0.023432&amp;ie=UTF8&amp;ll=41.507613,-81.590309&amp;spn=0.036059,0.093727&amp;z=14&amp;iwloc=addr&amp;source=embed" style="color:#0000FF;text-align:left">View Larger Map</a>

    But when I switch to visual view, the link is automatically truncated to:

    <a style="color:#0000FF;text-align:left" href="http://maps.google.com/maps?f=q&amp;hl=en&amp;geocode=&amp;q=2252+Bellfield,+Cleveland,+OH+44106&amp;sll=41.489678,-81.560719&amp;sspn=0.009017,0.023432&amp;ie=UTF8&amp;ll=41.507613,-81.590309&amp;spn=0.036059,0.093727&amp;z=14&amp;iwloc=addr&amp;source=embed">View Larger Map</a>

    So again I have to paste the link in HTML view and save it there, otherwise it won’t work. Is there a way around this?

    Thanks so much.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter gauntletxg

    (@gauntletxg)

    I was able to work around the Google Maps problems with the Inline Google Maps plugin. I had troubles with it before because of some CSS issues, but it works now. Still can’t figure out the centering issue though.

    I’m currently experiencing exactly the same problem with google maps.

    Is it possible to force the editor to accept the <iframe> tag which it is stripping out? Also I couldn’t get the Inline Google Maps plugin to work for me.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Problem with visual editor truncating HTML tags (and Google maps)’ is closed to new replies.