jQWidgets Forums

jQuery UI Widgets Forums Editors Editor jqxEditor content is wrong when there is "/>"

This topic contains 2 replies, has 3 voices, and was last updated by  valyuch 10 years ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author

  • wureka
    Participant

    I am using jqWidget 3.7.1.

    For example that I have an editor named $(‘#editor’) and the content is below:

    When I call $(‘#editor’).val(), it returns as
    you can see that it remove the slash in “/>”.
    When the content is <br/>, <hr/> and so on, the same situation happens.
    Is that a bug ?
    Thank you


    Peter Stoev
    Keymaster

    Hi wureka,

    No, it’s not a bug. The Editor is for inputting Text. If you want to input Tags, do that in its Source mode and Input tags correctly in well-formatted manner. Otherwise, the editor will try to format and tidy up your poorly formatted tags.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com


    valyuch
    Participant

    Hi!

    It does not work:
    html:
    <textarea id=”editor”></textarea>
    <input id=”button” value=”refresh” type=”button” />

    jq:
    $(‘#editor’).jqxEditor({
    height: 400,
    width: 800,
    theme: ‘base’,
    tools: ‘html’
    });
    $(‘#editor’).jqxEditor(‘setMode’, true);
    $(‘#button’).jqxButton().on(‘click’, function(){
    $(‘#editor’).val( ‘<ParameterCollection></ParameterCollection>’ );
    });

    Help me, whats wrong?
    Thx,
    L

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

You must be logged in to reply to this topic.