Failure Switching to HTML view

I primarily work with Firefox and have not seen this problem, it is with IE7. After posting if I go back to re-edit the post and switch to HTML view, the html page fails to come up. Steps to reproduce

1) Respond to a post and submit in IE.

2) Edit the recently submitted post.

3) Switch to HTML mode. The text shown is not shown with HTML tags.

As mentioned I have never seen this with Firefox 2.0 but only in IE 7.

[484 byte] By [OmegaMan] at [2008-1-9]
# 1
The same problem is reported here. From what I've seen, the editor's Javascript bombs when selecting HTML that contains a <font> tag. I didn't look too hard, quickly switched back to Firefox.
nobugz at 2007-10-2 > top of Msdn Tech,Feedback for forums and MSDN websites,Bug Reports for Forums website...
# 2
Okay, I forgot, my posts trigger this bug. Just try to edit them. Here's the debug info:

Line #585, function getCursorPos() in one of the WebResource.asx scripts.
Statement: tempText.setEndPoint("EndToStart",sText);
Error message: "htmlfile: Invalid argument".
tempText, sText.htmlText and sText.text are blank strings.

This code path appears to be only taken by IE. When you skip past the line with the error, the attributes of the <div> and <font> tags show up without quotes. I've learned 1000% more than I knew about Javascript and the DOM since this misery started. Can't hurt I guess.

nobugz at 2007-10-2 > top of Msdn Tech,Feedback for forums and MSDN websites,Bug Reports for Forums website...
# 3

I'll follow up with the RTE team to investigate. Thanks!

PennyP at 2007-10-2 > top of Msdn Tech,Feedback for forums and MSDN websites,Bug Reports for Forums website...
# 4

Hi everybody,

I also got the error. It said 'Error on page'.

I also want to know how can I manually (using HTML tags) say that I want the following block to be code block?

Often when I try to copy some code from another place and then apply code block button, everything gets messed up and I have to use Back button of the browser, retype my message and paste block of code without using Code block button.

I tried to switch to HtmlView and use < code > tags (no spaces), but they then appear as is in the post.

Is there a way to apply code block correctly?

Thanks in advance.

NaomiNosonovsky at 2007-10-2 > top of Msdn Tech,Feedback for forums and MSDN websites,Bug Reports for Forums website...
# 5
Naomi Nosonovsky wrote:

I also want to know how can I manually (using HTML tags) say that I want the following block to be code block?

The easiest way to see a code block is to do a test post highlight a letter then view it in HTML. Here is the code block in html:

<div class="codeseg">
 <div class="codecontent">
 <div class="codesniptitle">
 <span style="width: 100%;">Code Snippet</span>
 </div>
 <br>Put Code Here<br>
 </div>
</div>

I personnally like it without the title like this

<div class="codeseg">
 <div class="codecontent">
 <br/>Place Text Here<br/>
 </div>
</div>
OmegaMan at 2007-10-2 > top of Msdn Tech,Feedback for forums and MSDN websites,Bug Reports for Forums website...
# 6

I see, thanks. I'll try that next time if the button would not work.

NaomiNosonovsky at 2007-10-2 > top of Msdn Tech,Feedback for forums and MSDN websites,Bug Reports for Forums website...
# 7

Just to follow up, this will be fixed in SP5. Thanks!

PennyP at 2007-10-2 > top of Msdn Tech,Feedback for forums and MSDN websites,Bug Reports for Forums website...
# 8
PennyP wrote:

Just to follow up, this will be fixed in SP5. Thanks!

As long as the fix is not

"Disable html mode"

<g> I am all for it. Although I have work exclusively in Firefox. The other editor allows for undo/html edit where IE is way different.

OmegaMan at 2007-10-2 > top of Msdn Tech,Feedback for forums and MSDN websites,Bug Reports for Forums website...
# 9

We double checked and he HTML view is being fixed and not disabled in SP5. Thanks!

allends at 2007-10-2 > top of Msdn Tech,Feedback for forums and MSDN websites,Bug Reports for Forums website...