Decoded String as Value

2 posts, 0 answers
  1. Luis
    Luis avatar
    2 posts
    Member since:
    Aug 2014

    Posted 23 Oct 2015 Link to this post


    I'm setting up an inline editor as follow, but I'm having challenges setting its default value.

    I'm receiving an HTML value and it should be displayed formatted in the editor, please address me what I'm doing wrong:


    01.var message = '<p>123</p><p>1<strong>2</strong>3</p>';
    02.<div id="editor"></div>
    04.       tools: [
    05.            "bold",
    06.            "italic",
    07.            "insertUnorderedList",
    08.            "createLink",
    09.            "unlink",
    10.            "fontSize"
    11.        ],
    12.        value: message,
    13.        encoded: false
    14.     });



  2. Patrick
    Patrick avatar
    151 posts

    Posted 26 Oct 2015 Link to this post

    Hi Luis,

    Take a look at my sample illustrating how to use some formatted html with an editor.

    I believe the placement of your div and no script tags were the issue.

    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Back to Top