This is a migrated thread and some comments may be shown as answers.

Decoded String as Value

1 Answer 44 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Luis
Top achievements
Rank 1
Luis asked on 24 Oct 2015, 01:32 AM

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,

 

1 Answer, 1 is accepted

Sort by
0
Patrick | Technical Support Engineer, Senior
Telerik team
answered on 26 Oct 2015, 02:48 PM
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!
 
Tags
Editor
Asked by
Luis
Top achievements
Rank 1
Answers by
Patrick | Technical Support Engineer, Senior
Telerik team
Share this question
or