.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
david stephan
Gaurav Pal
Post New Web Links

CKEditor in MVC

Posted By:      Posted Date: September 29, 2010    Points: 0   Category :ASP.Net

Has anyone setup the CKeditor in MVC for uploading files and images?

Please could you give me your sample project or code?

View Complete Post

More Related Resource Links

Ckeditor will not work in FireFox.


I'm using ckeditor in my page and it's work fine, except when I'm sending email. The mailbody is empty in FireFox, in IE it works fine. What can it be? Here is my code

protected void btnSend_Click(object sender, EventArgs e)
        string senderMail = txtSenderMail.Text;
        string subject = txtSubject.Text;
        string mess = Request.Form["editor1"];
        mess = HttpUtility.HtmlEncode(mess);

        bool isValid = Utilities.CheckString("^[a-z0-9_\\+-]+(\\.[a-z0-9_\\+-]+)*@[a-z0-9-]+(\\.[a-z0-9-]+)*\\.([a-z]{2,4})$", senderMail);

        if (!isValid)
            lblMailStatus.Text = "<ul><li>Din epost stämmer inte!</li></ul>";
            lblMailStatus.CssClass = "boldText redText";
            bool success = Utilities.SendMail(txtSenderMail.Text, SiteConfig.MailReceiver, txtSubject.Text, Request.Form["editor1"]);

            if (success)
                lblMailStatus.Text = "<p></p>Ditt meddelande är skickat och vi kommer att svara så fort vi kan.<p></p>Tack för du använder vår hemsida<br />ImmWebb.se";
                lblMailStatus.CssClass = "boldText greenText";
                lblMailForm.Visible = false;

asp.net mvc ckeditor in jquery dialog


how can i load a ckeditor in jquery UI dialog . can someone specify anything

$(document).ready(function () {
            CKEDITOR.replace('header1', {
                contentsLangDirection: 'ltr'

asp.net mvc ckeditor second time real value post problem


I have added ckeditor on my page. the thing is that when i make changes in the value in the ckeditor and post the value to the controller the new posted value is not there (the previous value is coming). the new value comes on posting it second time.the cycle goes on(the changes in the value in the ckeditor comes on the second posting). if i remove the createsuccess call and use html.beginform it work fine(but i have to return the value from the controller). what i am doing wrong

<script type="text/javascript" >

       function createSuccess(context)

$(function(e) {  $('#editor1').ckeditor();



<% using (Ajax.BeginForm("Index" , new AjaxOptions {OnSuccess="createSuccess"})) { %>
<textarea cols="20" rows="20" id="editor1" name="editor1">Abcdedfghijklmnopqrst</textarea>
<input type="submit"  />

<% } %>


 public ActionResult Index(FormCollection frm)

        string a = frm["editor1"];

        var data = new { PreviousValues = a };
        return Json(data);

ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend