jQuery UI Widgets Forums Editors Editor Reformatting HTML

This topic contains 6 replies, has 2 voices, and was last updated by  EricK 3 years, 11 months ago.

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
  • Reformatting HTML #94274

    EricK
    Participant

    Hello to all,
    This may be a lack of understanding the editor….

    Why does the editor reformat the html code I paste into the editor.
    I have a simple html code the begins with <html> and ends with </html>
    I paste this into the view source while in html mode window. Then I unselect the view source to show me the page.
    When I select the view source again it has removed the <html> tags.
    I want to save the raw html code so I set the ‘setMode’ to true and pull the editor val and save. The save code does not include the <html> tags.
    How do I set the editor NOT to reformat?

    Reformatting HTML #94287

    Hristo
    Participant

    Hello EricK,

    I tested this example and it seems to work fine.
    Could you provide us more details, how to simulate this issue?

    Best Regards,
    Hristo Hristov

    jQWidgets team
    http://www.jqwidgets.com

    Reformatting HTML #94312

    EricK
    Participant

    Try pasting this into the editor. I am using the Chrome browser if that matters.

    <!DOCTYPE HTML>
    <html>
    <head>
    	<meta http-equiv="content-type" content="text/html" />
    	<title>Test</title>
    </head>
    <body>
        <p>Hello World</p>
    </body>
    </html>

    The editor will freeze
    When I pull the val() from the editor it is not the same identical code that I pasted.
    <a href="https://www.jseditor.io/?key=jqxeditor-pull-value"></a>

    • This reply was modified 3 years, 11 months ago by  EricK.
    Reformatting HTML #94314

    EricK
    Participant

    I you open the example and then click the view source the window locks.

    Reformatting HTML #94332

    Hristo
    Participant

    Hello EricK,

    Thank you for the interest and for this assistance. We will investigate this scenario.
    I would like to suggest you try to use the Editor with HTML tags that are visual (that are using in-between the <body />).

    Best Regards,
    Hristo Hristov

    jQWidgets team
    http://www.jqwidgets.com

    Reformatting HTML #94371

    EricK
    Participant

    Clarification on one thing.
    When pasting html code into the editor should the mode be in the default or should it be in the source view.

    Thanks again
    Eric

    Reformatting HTML #94404

    EricK
    Participant

    Simple enough,
    I would have thought the editor could maintain the raw html code pasted into the source view. This is not the case with this editor.
    It converts the code to character encoding and strips parts of the html.

    The editor can only use the editor for coding and displaying of any html entered.
    If I wanted to create a simple email document that was html this editor is unable to export the correct html code to complete the email.
    Not sure why the editor can not keep the raw code pasted. I had to use the jqxAreaText to accomplish the the email scenario.
    That’s to bad the editor can not work in this way, because it is truly an awesome module.
    Thanks
    Eric

Viewing 7 posts - 1 through 7 (of 7 total)

You must be logged in to reply to this topic.