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

    Hi,

    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>
    03.$("#editor").kendoEditor({
    04.       tools: [
    05.            "bold",
    06.            "italic",
    07.            "insertUnorderedList",
    08.            "createLink",
    09.            "unlink",
    10.            "fontSize"
    11.        ],
    12.        value: message,
    13.        encoded: false
    14.     });

    Regards,

     

  2. Patrick
    Admin
    Patrick avatar
    171 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.

    Regards,
    Pat
    Telerik
     
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
     
  3. Kendo UI is VS 2017 Ready
Back to Top