[CLOSED] Html Editor bug

  1. #1

    [CLOSED] Html Editor bug

    Hello support

    I think there is a bug in the html editor component.

    When you type somthing in the edit at the first line

    it automaticly sets in a <p></p> around the first line and its move down

    But the error is that the text get doublicated and the entered text is in editor twice see the images for a better understanding.

    We are using the release version of 2.2 and not trunk.


    Ex. code to reproduce is here

    
    <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Demo.aspx.cs" Inherits="LIA.APP.WEB.LinkItAll.Demo" %>
    
    <%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
    <!DOCTYPE html>
    
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head runat="server">
        <title></title>
    </head>
    <body>
        <form id="form1" runat="server">
             <ext:ResourceManager ID="ResourceManager1" runat="server" ViewStateMode="Disabled"
            EnableViewState="false" />
        <div>
            <ext:Window runat="server" ID="wndDemo" Title="Html Editor Demo" Layout="FitLayout">
                <Items>
                    <ext:Panel ID="pnlBody" runat="server" Layout="FitLayout">
                        <Items>
                            <ext:HtmlEditor runat="server"></ext:HtmlEditor>
                        </Items>
                    </ext:Panel>
                </Items>
            </ext:Window>
        </div>
        </form>
    </body>
    </html>
    Attached Thumbnails Click image for larger version. 

Name:	HtmlEditorBug.png 
Views:	35 
Size:	5.4 KB 
ID:	6435  
    Last edited by Daniil; Jul 02, 2013 at 4:01 AM. Reason: [CLOSED]
  2. #2
    Hi @Akpenob,

    I cannot reproduce. Please describe detailed steps. Also I might be reproducible in IE only (what version?). Could you confirm it trying to reproduce in. for example, FireFox and Chrome?
  3. #3
    Quote Originally Posted by Daniil View Post
    Hi @Akpenob,

    I cannot reproduce. Please describe detailed steps. Also I might be reproducible in IE only (what version?). Could you confirm it trying to reproduce in. for example, FireFox and Chrome?
    Hi @Danill

    I have just tested it in several different browsers and it seems that i can only reproduce the error in IE

    My version of IE is currently 10.0.9200.16618

    I have tested in..
    - Chrome
    - Firefox
    - Opera
    - Safari
    - IE

    All above are fine except IE and do not make the same error "bug"

    To reproduce the error do as following

    Step 1.

    Open a brand new html edtor ("my above code does this")

    Type in some random text of choise and then push enter.

    After this the error should apeare as the image that i have uploaded.

    I might not have mention it, but its only on the first line in the htmleditor it makes the error, everything else is as excepted..

    :-)

    UPDATE..!!!

    i have upload a image to demostraite what the source code is when you have entered the text and pushed enter

    UPDATE UPDATE...!!

    There seems to be a difference in the html code that editor produces depending on what browser you use, dont know if its related, but for the sake of this post i have uploaded an image thats shows the difference

    Hope this helps

    Regards

    Akpenob
    Attached Thumbnails Click image for larger version. 

Name:	HtmlEditorBugSourceCode.png 
Views:	24 
Size:	7.4 KB 
ID:	6439   Click image for larger version. 

Name:	HtmlEditorDifference.png 
Views:	25 
Size:	24.2 KB 
ID:	6440  
    Last edited by Akpenob; Jun 24, 2013 at 2:11 PM.
  4. #4
    Thank you for the details.

    Unfortunately, that behavior is out of our control (neither Ext.NET or ExtJS). An HtmlEditor uses on iframe in edit mode which is totally under browser control. In some cases workarounds are possible, but they are very quirky and, again, not possible in all the cases.

    If you need more solid HTML editor, you might need to use another one, for example:
    http://ckeditor.com/
  5. #5
    Quote Originally Posted by Daniil View Post
    Thank you for the details.

    Unfortunately, that behavior is out of our control (neither Ext.NET or ExtJS).
    No need :-)
    The html editor incoorporated in Ext.Net / ExtJS suit us very fine :-)

    OT:

    Any idea what to do about the doublicated text in the editor..?

    Regards

    Akpenob
    Last edited by Akpenob; Jun 25, 2013 at 7:17 AM.
  6. #6
    Quote Originally Posted by Akpenob View Post
    Any idea what to do about the doublicated text in the editor..?
    Well, I cannot reproduce duplicating of text, but I can reproduce adding
    <p>&nbsp;</p>
    for a new line, i.e. on Enter.

    It is how IE behaves. Unfortunately, we cannot affect on that.

Similar Threads

  1. [CLOSED] Cke Editor HTML
    By canbay in forum 1.x Legacy Premium Help
    Replies: 3
    Last Post: Feb 22, 2013, 1:48 PM
  2. Replies: 9
    Last Post: Oct 08, 2012, 7:49 AM
  3. Html Editor Help.
    By ozayBK in forum 1.x Help
    Replies: 13
    Last Post: Apr 28, 2010, 10:42 PM
  4. html editor
    By [WP]joju in forum 1.x Help
    Replies: 3
    Last Post: Dec 21, 2009, 9:23 AM
  5. 0.82 html editor bug
    By [WP]joju in forum Bugs
    Replies: 3
    Last Post: Dec 21, 2009, 1:48 AM

Tags for this Thread

Posting Permissions