HTMLEditor does not work well with MVC view

Last post 06-29-2009 1:14 AM by obout_teo. 6 replies.

Sort Posts:

  • HTMLEditor does not work well with MVC view

    06-26-2009, 4:05 PM
    • Member
      5 point Member
    • JamesWang
    • Member since 06-26-2009, 7:59 PM
    • Posts 22

     When a HTMLEditor is put into a MVC view, when ever an event is triggered (For example, click mouse inside editing area or type some word inside it), the height of the control increase.

    If it's used in normal an asp.net webform, no such problem.

     

    Does anybody have some idea about this?

    Thanks.

     

    James

     

    Filed under:
  • Re: HTMLEditor does not work well with MVC view

    06-27-2009, 1:07 PM
    • Member
      52 point Member
    • ryandemelo
    • Member since 06-27-2009, 2:42 PM
    • Goa, India
    • Posts 12

    Hey check out  this solution found it pretty useful

    http://www.codeproject.com/KB/aspnet/fckeditor.aspx

  • Re: HTMLEditor does not work well with MVC view

    06-27-2009, 8:26 PM
    • Member
      5 point Member
    • JamesWang
    • Member since 06-26-2009, 7:59 PM
    • Posts 22

     Thank you for your information.

    But HTMLEditor may be different. I understand that all Ajax toolkit control has to be used with ScriptManager. For MVC, which scriptmanager should be used?

     

    James

  • Re: HTMLEditor does not work well with MVC view

    06-28-2009, 11:28 PM
    • Contributor
      2,196 point Contributor
    • obout_teo
    • Member since 05-21-2009, 9:25 PM
    • Posts 368

    The problem is in Content\Site.css file.
    When I have commented the following lines:


    /* TABLE
    ----------------------------------------------------------*/


    table
    {
      border: solid 1px #e8eef4;
      border-collapse: collapse;
    }

    table td
    {
      padding: 5px; 
      border: solid 1px #e8eef4;
    }

    table th
    {
      padding: 6px 5px;
      text-align: left;
      background-color: #e8eef4;
      border: solid 1px #e8eef4; 
    }


    Everything works OK.

    Don't forget to mark this post as "answer", if it helped you...
  • Re: HTMLEditor does not work well with MVC view

    06-28-2009, 11:30 PM
    Answer
    • Contributor
      2,196 point Contributor
    • obout_teo
    • Member since 05-21-2009, 9:25 PM
    • Posts 368

    The problem is in Content\Site.css file.

    When I have commented the following lines:


    /* TABLE
    ----------------------------------------------------------*/


    table
    {
      border: solid 1px #e8eef4;
      border-collapse: collapse;
    }

    table td
    {
      padding: 5px; 
      border: solid 1px #e8eef4;
    }

    table th
    {
      padding: 6px 5px;
      text-align: left;
      background-color: #e8eef4;
      border: solid 1px #e8eef4; 
    }


    Everything works OK.

    Don't forget to mark this post as "answer", if it helped you...
  • Re: HTMLEditor does not work well with MVC view

    06-28-2009, 11:58 PM
    • Member
      5 point Member
    • JamesWang
    • Member since 06-26-2009, 7:59 PM
    • Posts 22

    It works. Thank you so much. But could you let me know why the table style can cause the problem?

    James

  • Re: HTMLEditor does not work well with MVC view

    06-29-2009, 1:14 AM
    • Contributor
      2,196 point Contributor
    • obout_teo
    • Member since 05-21-2009, 9:25 PM
    • Posts 368

    You can see "padding" style that is applying to ALL tables in the page, it is not correct.
    There should be some class or element's ID...

    Editor uses tables and some styles there are not directly defined.

    Maybe it should be corrected...

    Don't forget to mark this post as "answer", if it helped you...
Page 1 of 1 (7 items)