Welcome Guest Search | Active Topics | Sign In | Register

HTMLEditor issues/problems Options
Duane
Posted: Thursday, October 1, 2009 4:45:48 PM
Rank: Advanced Member
Groups: Member

Joined: 9/4/2007
Posts: 114
Hello,

After using the HTML Editor for a while in a few different browsers (Windows and Mac) our users are reporting some features and functionality that do not work, or produce unexpected results.
Some of these issues were addressed in the past and appeared to have been corrected, but now seem to have resurfaced:

1. Additional <p> and <span> tags are inserted for no apparent reason. Sometimes they are empty tags (no content text or attributes) and sometimes there are additional tags with font-family and font-size style information.

2. "Shift-Enter" does not produce a <br> tag as one would expect when using Firefox on Windows or Firefox and Safari on Mac. Firefox and Safari will always insert a <p> tag.

2. The "Clear format" feature does not work on Mac (Firefox and Safari) or Windows (Firefox), and IE also fails to clear the format intermittently. The "Clear Word Format" does not seem to work on any browser.

3. Highlighting and applying fonts and font sizes to text seems to fail intermittantly. Periodically, the font-size attributes are not saved, but instead, stripped out of the style information. This seems to fail most often using Firefox and Safari on either Windows or Mac.

4. The "Paste" and "Paste as text" commands do not work in Firefox on either Windows or Mac.

5. The "Preview" mode fails most of the time in Firefox, and occasionally in IE. Is this a bug? Can the Preview be disabled completely?

Thanks for your support.
Duane

eo_support
Posted: Monday, October 5, 2009 11:07:06 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi,

Thank you very much for the information. Do you have steps for any of these issues except for #2 and #4? #2 is tricky because "shfit-enter" = <br> is an IE implementation and if FireFox choose not to do so, it's probably not a good idea for us to intervene. #4 appears to be a bug.

I believe you can disable preview by setting PreviewTabButtonHtml to blank.

Thanks!

Duane
Posted: Monday, October 5, 2009 12:31:51 PM
Rank: Advanced Member
Groups: Member

Joined: 9/4/2007
Posts: 114
Hello,
Thanks for the reply.

#1:
There doesn't seem to be any real consistent steps to reproduce this effect. I am preloading the editor with a couple "templates" that user's use as a starting point for their messages. But it seems to occur even it the user deletes all the template markup/text and starts fresh. The below templates were produced using the Editor.

Here are two template markup html I am inserting into the editor (two separate editor templates):

Message with photo:
Code: HTML/ASPX
<b><span style="FONT-FAMILY: Verdana; FONT-SIZE: 12pt">Message from ...( add name or title here)</span></b><br />  <hr />  <p><img width="70" height="75" tabIndex="0" style="PADDING-RIGHT: 10px; FLOAT: left" alt="Sample Librarian" src="/Images/Fundraiser/sample-librarian.jpg" complete="complete" complete="complete" /></p>  <p>Ut lore modigni smolent euisim atie ecte facipsum volor sum adignis nos at er aute modolorem dunt at. Sequis augait luptatu msandio dunt wisit in hendreet aliquis ciduis dit ametuercidui ercilit lumsand reraesecte minim velit erilla feugait in ullandre vent lut praessi. Gait luptat, quat incil dolore consed et nos eugiam, vulla cortie do odiat la feum do cortis num zzrit adit vendre ming et utem dolobor aliquisim vulla facip euis aci et, conse tat. Ut auguer in volore tat, veratet eniam, sequi erit, veraessi euguerat niscing eros am ver iriure eugait ex eum nons.</p>


Message without photo:
Code: HTML/ASPX
<span style="FONT-FAMILY: Verdana; FONT-SIZE: 12pt"><strong>Message from ...( add name or title here)</strong></span><br /><hr /><p>Gait luptat, quat incil dolore consed et nos eugiam, vulla cortie do odiat la feum do cortis num zzrit adit vendre ming et utem dolobor aliquisim vulla facip euis aci et, conse tat. Ut auguer in volore tat, veratet eniam, sequi erit, veraessi euguerat niscing eros am ver iriure eugait ex eum nons!</p>



#2
I agree if "Shift-Enter" is an IE implementation only, it is best to not address it. I'll deal with this one with our staff and customers.

#2
(looks like I used #2 twice) Clear format - no steps, just doesn't seem to work.

#3
Again, there doesn't seem to be consistent reproduceable steps. It happens randomly.

#4
Let me know when this is resolved. I don't use this feature often myself, but my users will complain if it doesn't work as expected.

Setting: Editor1.PreviewTabButtonText = ""; // hides the Editor Preview button.

Thanks.


Duane
Posted: Tuesday, November 24, 2009 6:24:06 PM
Rank: Advanced Member
Groups: Member

Joined: 9/4/2007
Posts: 114
Hello,

Have you had any recent updates to address formatting issues in the HTMLEditor? We are using EOWeb_70_27.

Some of our admin users are still experiencing problems with setting fonts, colors, sizes and having them not hold when switching between Design view and HTML view.

My current implementation is using the editor inside of a dialog. Have you any known issues with the Editor inside of a dialog ?

Thanks,
Duane
eo_support
Posted: Wednesday, November 25, 2009 7:15:38 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi,

There have been a few build afterwards. The latest is 70_38. So you may want to give that a try. Editor inside the dialog should be fine.

Thanks!
Mackin
Posted: Wednesday, November 25, 2009 10:15:20 AM
Rank: Advanced Member
Groups: Member

Joined: 6/1/2007
Posts: 31
Hello,
Ok, downloaded and installed the 70_38 build.

I am now getting the following erorr when applying a color using the color picker in the editor:

Microsoft JScript runtime error: 'childNodes' is null or not an object

This is the line it is stopped on in the eo_web.ashx file:
for(var d=0;d<a.childNodes.length;d++){var e=a.childNodes[d];

Here are the steps to reproduce the error:
Open the editor (mine is in a dialog)
Enter some text.
Insert a line break.
Insert a horizontal rule.
Isert another line break.
Enter some text.
Highlight the text and select the color picker and apply a different color.
-- Mcrosoft Visual Studio --
! Microsoft JScript runtime error: 'childNodes' is null or not an object


What would be causing this?

Thanks

eo_support
Posted: Wednesday, November 25, 2009 10:28:40 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi,

We tested it and it works fine. Would you be able to provide a full test page?

Thanks!
Mackin
Posted: Wednesday, November 25, 2009 10:50:34 AM
Rank: Advanced Member
Groups: Member

Joined: 6/1/2007
Posts: 31
It seems intermittant and errors at different locations in the script. But happens frequently for me.

The site/page I am developing would be diffiicult and time-consuming to reproduce for testing.

I am going to build to a location you can access from the web. Where can I send the link and login information? I don't want to open this to all users on this site.

Thanks
eo_support
Posted: Wednesday, November 25, 2009 10:55:43 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi,

You can send it to us through private message by clicking "PM ME" under any of our post.

Thanks!
eo_support
Posted: Wednesday, November 25, 2009 3:26:25 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi,

We have looked into the issue and successfully reproduced the problem in our test environment. The issue can be triggered when both HR and bold font are present. The error occurs while the code tries to save/restore selections.
Unfortunately the problem seems to be a related to IE trying to reformat its DOM trees. For some reason IE would first produce "<p><br /></p>" and then try to convert it into "<p><br><p></p>" (which is invalid) and turn a single node into three nodes. We would patch the code for this scenario so that no script error would occur but you may still see problems while two empty paragraphs are being inserted before and after the HR.

Thanks
Duane
Posted: Wednesday, November 25, 2009 3:57:25 PM
Rank: Advanced Member
Groups: Member

Joined: 9/4/2007
Posts: 114
Hello.
Thanks for the reply.

The same kind of error is produced in Firefox as well. I have not tried Safari yet, but we need to suppport IE (7, 8) on windows, Firefox (3.5.x) on windows and Mac, Safari 5 on Mac (maybe windows) and Chrome.

Let me know when you will have a patched version available.

Here is the code that was created when setting the hr and bold [strong] tags and color selection in Firefox and IE 7 on XP


-------- Firefox on XP:

<p><span style="font-size: 16pt; color: #a80202">Blooming Prairie High School</span></p>
<p>
</p>
<hr />
<span style="font-family: Tahoma; font-size: 12pt; color: #ad0909">Help it happens in Firefox too!</span>
<p> </p>
<p> </p>
<p>
</p>
<span style="font-family: Verdana; font-size: 12pt;">
<p> </p>
<p> </p>
</span>



--------
IE 7 on XP

Notice the p tags increase you repeatedley switch between design and html
Also, the opening and closing br and repeated <//> tags.
--

<p><span style="FONT-SIZE: 16pt; COLOR: #a80202; FONT-FAMILY: Verdana">Blooming Prairie High School<br /></p>
<p>&nbsp;</p> </p>
<p>&nbsp;</p> </p>
<p>&nbsp;</p> </p>
<p>&nbsp;</p> </p>
<p>&nbsp;</p> </p>
<p>&nbsp;</p> </p>
<p>&nbsp;</p> </p>
<p>&nbsp;</p> </p>
<hr /> </hr><//hr><//><//>
<p>&nbsp;</p> </p>
<p>&nbsp;</p> </p>
<p>&nbsp;</p> </p>
<p>&nbsp;</p> </p>
<p>&nbsp;</p> </p>
<p>&nbsp;</p> </p>
<p>&nbsp;</p> </p>
<p>&nbsp;</p> </p>
<p><span style="COLOR: #0407b5">This is IE 7 on XP.</span></p>
</span>
eo_support
Posted: Wednesday, November 25, 2009 4:03:51 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi,

We will have a patched version that fixes the script error shortly. However the new <p> element is something that we are still researching about and we do not expect it to be fixed in this new build. We do not see repeated <hr> tags yet, but I would think it is related to the repeating <p> element.

Thanks


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.