You must Sign In to post a response.
  • Category: ASP.Net MVC

    How to add ckeditor in mvc

    Unable to add ckeditor in mvc (.aspx engine)

    Below is my code:


    <!DOCTYPE html>

    <html>
    <head runat="server">
    <meta name="viewport" content="width=device-width" />
    <title>Index</title>

    <script src="../../Scripts/ckeditor/ckeditor.js"></script>
    <script src="../../Scripts/ckeditor/adapters/jquery.js"></script>
    <script>
    $(function () {
    $('#my-textarea').ckeditor();
    });
    </script>
    </head>
    <body>
    <div>
    <%:ViewBag.Title = "Content Entry"%>
    <h2>Content Input</h2>
    <form method="post" action="/Content/Submit">
    <textarea id="my-textarea"></textarea>
    <p><input type="submit" value="Submit" /></p>
    </form>
    </div>
    </body>
    </html>
  • #761765
    Can you try to add those scripts in the bundle?.

    <script src="../../Scripts/ckeditor/ckeditor.js"></script>
    <script src="../../Scripts/ckeditor/adapters/jquery.js"></script>

    By Nathan
    Direction is important than speed

  • #761789
    Hi

    Go through below links for integrating ckeditor in mvc application.

    www.adambielecki.com/2013/02/ckeditor-example-in-aspnet-mvc-3-mvc-4.html?m=1

    stackoverflow.com/questions/1856350/how-to-integrate-ckeditor-into-asp-net-mvc

    https://m.youtube.com/watch?v=uJ_BeZUO0rg

    Regards

    Sridhar Thota.
    If you learn't from defeat..
    You haven't really lost..

    Sridhar Thota.
    Editor: DNS Forum.


Sign In to post your comments