page/post editor modifies closing anchor tag in visual mode
-
On a page, I have edited the HTML myself in the editor.
If I update the page while in HTML mode of the editor, the page retains my code.
If I click back to visual mode, and then update the page, my code has been changed (not for the better).
Here is the specific code fragment in HTML mode, which is from this page:
http://rooseveltcs.org/courses/intro-to-cs/assignments/<h3><img src=”http://rooseveltcs.files.wordpress.com/2011/02/top.gif” alt=”” /> Assignment 10: Chat Bot
A “chat bot” is a software program that is designed to (attempt to) carry on a conversation with a human being.If I switch back to VISUAL mode, the code gets changed to this:
<h3>
Assignment 10: Chat Bot
A “chat bot” is a software program that is designed to (attempt to) carry on a conversation with a human being.The closing anchor tag has been moved before the <img …> tag.
This is not what I want, since the anchor then anchors nothing. I want the img to have the link to go back to the top of the page.
Thanks.
Blog url: http://rooseveltcs.wordpress.com/ -
I think the forum software may have eaten some of my HTML code example, so it may not be displaying as I typed it!
-
Do you have any luck if you click on the image, then link it in the Visual editor, as opposed to the HTML editor?
-
Yes, that does appear to preserve the link. Now let me see if I can put all the other HTML back around it.
Thanks.
-
- The topic ‘page/post editor modifies closing anchor tag in visual mode’ is closed to new replies.