MasterPages in VS 2005 and CuteEditor 5.2

Last post 02-27-2006, 5:59 AM by GwynneR. 7 replies.
Sort Posts: Previous Next
  •  02-22-2006, 2:57 AM 16268

    MasterPages in VS 2005 and CuteEditor 5.2

    I have big problem in this combination. All is working well (examples, my implementation of the CuteEditor), in case I'm not using masterPages. In case Im using masterPage, and the CuteEditor is implemented as part of a page that is using masterPage, the CuteEditor wont to show me toolbars with tables creation, forms and lists of CSSStyles, Fonts, etc.
     
    Config files are working well. I have tried to change AutoConfigure to another configuration than Full (to minimal) and I have got right response from CuteEditor. It shows only minimal toolbox config.
     
    Adam, could you help me?
     
     
    (I have developer licence bought, but I cannot develop. That is weird.)
     
     
     
     
     
  •  02-22-2006, 3:26 AM 16271 in reply to 16268

    Re: MasterPages in VS 2005 and CuteEditor 5.2

    Endys,
     
    The editor has been tested in the masterPages enviroments.
     
    This is an example (using the Personal Web Site Starter Kit):
     
    <%@ Page Language="C#" MasterPageFile="~/Default.master" Title="Your Name Here | Home"
     CodeFile="Default.aspx.cs" Inherits="Default_aspx" %>
    <%@ Register Assembly="CuteEditor" Namespace="CuteEditor" TagPrefix="CE" %>
    <asp:content id="Content1" contentplaceholderid="Main" runat="server">
     <div class="shim column"></div>
     
     <div class="page" id="home">
      <div id="sidebar">
       <asp:loginview id="LoginArea" runat="server">
        <AnonymousTemplate>
         <asp:login id="Login1" runat="server">
          <layouttemplate>
           <div class="login">
            <h4>Login to Site</h4>
            <asp:label runat="server" id="UserNameLabel" CssClass="label" associatedcontrolid="UserName">User Name</asp:label>
            <asp:textbox runat="server" id="UserName" cssclass="textbox" accesskey="u" />
            <asp:requiredfieldvalidator runat="server" id="UserNameRequired" controltovalidate="UserName" validationgroup="Login1" errormessage="User Name is required." tooltip="User Name is required." >*</asp:requiredfieldvalidator>
            <asp:label runat="server" id="PasswordLabel" CssClass="label" associatedcontrolid="Password">Password</asp:label>
            <asp:textbox runat="server" id="Password" textmode="Password" cssclass="textbox" accesskey="p" />
            <asp:requiredfieldvalidator runat="server" id="PasswordRequired" controltovalidate="Password" validationgroup="Login1" tooltip="Password is required." >*</asp:requiredfieldvalidator>
            <div><asp:checkbox runat="server" id="RememberMe" text="Remember me next time"/></div>
            <asp:imagebutton runat="server" id="LoginButton" CommandName="Login" AlternateText="login" skinid="login" CssClass="button"/>
            or
            <a href="register.aspx" class="button"><asp:image id="Image1" runat="server"  AlternateText="create a new account" skinid="create"/></a>
            <p><asp:literal runat="server" id="FailureText" enableviewstate="False"></asp:literal></p>
           </div>
          </layouttemplate>
         </asp:login>
        </anonymoustemplate>
        <LoggedInTemplate>
         <h4><asp:loginname id="LoginName1" runat="server" formatstring="Welcome {0}!" /></h4>
        </LoggedInTemplate>
       </asp:loginview>
       <hr />
       <asp:formview id="FormView1" runat="server" datasourceid="ObjectDataSource1" ondatabound="Randomize" cellpadding="0" borderwidth="0" enableviewstate="false">
        <ItemTemplate>
         <h4>Photo of the Day</h4>
         <table border="0" cellpadding="0" cellspacing="0" class="photo-frame">
          <tr>
           <td class="topx--"></td>
           <td class="top-x-"></td>
           <td class="top--x"></td>
          </tr>
          <tr>
           <td class="midx--"></td>
           <td><a href='Details.aspx?AlbumID=<%# Eval("AlbumID") %>&Page=<%# Container.DataItemIndex %>'>
            <img src="Handler.ashx?PhotoID=<%# Eval("PhotoID") %>&Size=M" class="photo_198" style="border:4px solid white" alt='Photo Number <%# Eval("PhotoID") %>' /></a></td>
           <td class="mid--x"></td>
          </tr>
          <tr>
           <td class="botx--"></td>
           <td class="bot-x-"></td>
           <td class="bot--x"></td>
          </tr>
         </table>
         <p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod </p>
         <p><a href='Download.aspx?AlbumID=<%# Eval("AlbumID") %>&Page=<%# Container.DataItemIndex %>'>
          <asp:image runat="Server" id="DownloadButton" AlternateText="download photo" skinid="download"/></a></p>
         <p>See <a href="Albums.aspx">more photos </a></p>
         <hr />
        </ItemTemplate>
       </asp:formview>
       <h4>My Latest Piece of Work</h4>
       <p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat.</p>
      </div>
      <div id="content">
       <h3>Welcome to My Site</h3>
       <p>This is my personal site. In it you will find lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore
                    <CE:Editor ID="Editor2" runat="server">
                    </CE:Editor>
                </p>
       <hr />
       <div id="whatsnew">
        <h4>What's New</h4>
        <p>Lorem <a href="#">ipsum</a> dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod.</p>
        <p>Lorem <a href="#">ipsum</a> dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod.</p>
       </div>
       <div id="coollinks">
        <h4>Cool Links</h4>
        <ul class="link">
         <li><a href="#">Lorem ipsum dolositionr</a></li><li><a href="#">Lorem ipsum dolositionr</a></li><li><a href="#">Lorem ipsum dolositionr</a></li><li><a href="#">Lorem ipsum dolositionr</a></li><li><a href="#">Lorem ipsum dolositionr</a></li></ul>
       </div>
       <hr />
       <h4>What's Up Lately </h4>
       <p>Lorem ipsum dolor sit amet, <a href="#">consectetuer</a> adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exercitation consequat. Duis autem veleum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel willum.</p>
       <p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh <a href="#">euismod tincidunt ut</a> laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exercitation consequat. Duis autem veleum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel willum.</p>
       <p>Lorem<a href="#"> ipsum dolor sit amet</a>, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exercitation consequat. Duis autem veleum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel willum.</p>
       <p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exercitation consequat. <a href="#">Duis autem veleum</a> iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel willum.</p>
       <p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exercitation consequat. <a href="#">Duis autem veleum</a> iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel willum.</p>
      </div>
     </div>
     <asp:ObjectDataSource ID="ObjectDataSource1" Runat="server" TypeName="PhotoManager"
      SelectMethod="GetPhotos">
     </asp:ObjectDataSource>
    </asp:content>

    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

  •  02-22-2006, 3:27 AM 16273 in reply to 16271

    Re: MasterPages in VS 2005 and CuteEditor 5.2

    Can you make your master page as simple as possible then test again?
     
    Keep me posted
     
     

    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

  •  02-22-2006, 5:31 AM 16279 in reply to 16273

    Re: MasterPages in VS 2005 and CuteEditor 5.2

    Adam!!!
     
    Great!!! I have found that...
    If you will set StyleSheet property for masterPage, the toolbars arent visible, when you remove the stylesheet definition from the masterPage, the toolbars are visible. Weird... what to do, if i need to set stylesheet there, because I cannot define stylesheet for the page that is using masterPage. Maybe I have to use StyleSheetThemes...
     
     
  •  02-24-2006, 3:17 AM 16371 in reply to 16279

    Re: MasterPages in VS 2005 and CuteEditor 5.2

    Any other solution?
  •  02-24-2006, 3:42 AM 16376 in reply to 16371

    Re: MasterPages in VS 2005 and CuteEditor 5.2

    Hi Endys, is it possible that there's something in your style sheet that's causing this? What happens if you link to an empty style sheet (no style definitions) in the master page? I'm using master pages with style sheets and it seems to be working fine withe CuteEditor.
  •  02-27-2006, 4:49 AM 16439 in reply to 16376

    Re: MasterPages in VS 2005 and CuteEditor 5.2

     GwynneR wrote:
    Hi Endys, is it possible that there's something in your style sheet that's causing this? What happens if you link to an empty style sheet (no style definitions) in the master page? I'm using master pages with style sheets and it seems to be working fine withe CuteEditor.
     
    Yeah GwynneR
     
    Thanks a lot for this idea... problem is in CSS .... something for developers of the great CuteEditor.
     
    this part of the style made the problem:
     

    body {

    table-layout: fixed;

    display: block;

    border-collapse: collapse;

     

    padding-right: 0px;

    padding-bottom: 0px;

    padding-left: 0px;

    padding-top: 0px;

     

    font-family: Verdana;

    font-size: 8pt;

    letter-spacing: 1px;

     

    color: #404040;

    line-height: normal;

     

    position: relative;

    }
    In case I removed this body style, all was working well... I tried remove line by line and here is result:
    Problem is here: letter-spacing: 1px;

    In case I remove only this line from body style, it starts working well.
     
    Thanks a lot!!!

     

  •  02-27-2006, 5:59 AM 16442 in reply to 16439

    Re: MasterPages in VS 2005 and CuteEditor 5.2

     Endys wrote:
    Thanks a lot for this idea... problem is in CSS .... something for developers of the great CuteEditor.
     
    No worries
View as RSS news feed in XML