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

[Solved] How to work with MVC Editor

0 Answers 98 Views
Editor
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Yalamarty
Top achievements
Rank 1
Yalamarty asked on 18 Oct 2011, 09:39 AM
Hi,

I have included the dlls required and added the CSS and Js stuff into my project. I am trying to use the editor in my application. But i am not able to enter any text into the editor. can some one please help me..

<p>
        <% Html.Telerik().Editor()
                .Name("editor")
                .Encode(false)
                .HtmlAttributes(new { style = "height:400px" })
                .Value(() =>
                {%> Hi Welcome to Editor <%})
                .Render();
                %>
    </p>

This is how i am calling the editor in my page. Even I am unable to see Hi Welcome to Editor  as I have specified in the value.

For CSS:
 
<%: Html.Telerik().StyleSheetRegistrar().DefaultGroup(group => group.Add("telerik.common.css").Add("telerik.windows7.css").Combined(false).Compress(true))%>
 
For JS:
 
<% Html.Telerik().ScriptRegistrar().DefaultGroup(group => group
                         .Combined(false).Compress(true))
                     .OnDocumentReady(() => { %>prettyPrint();<% })
                     .Render(); %>

I have added the above tags in my site. master

I have added the namespace in web.config as well.. what else i need to do to use the editor completely..

I would be very thankful if some one is providing me with  a prototype of editor.

Please help me with this as i am new to both MVC as well as Telerik.
Tags
Editor
Asked by
Yalamarty
Top achievements
Rank 1
Share this question
or