StyleDropDown Items Not Functioning

Last post 06-30-2005, 5:12 PM by dklauk. 8 replies.
Sort Posts: Previous Next
  •  06-27-2005, 3:22 PM 8066

    StyleDropDown Items Not Functioning

    I have put the following code into the Editor asp page so that a client can apply different styles on text.
     
    editor
    .StyleDropDownMenuNames="Normal,Heading 1,Heading 2,Heading 3,Heading 4,Heading 5,Heading 6,Head,Subhead,NormalRed,Comment"
    editor
    .StyleDropDownMenuList="Normal,Heading 1,Heading 2,Heading 3,Heading 4,Heading 5,Heading 6,Head,Subhead,NormalRed,Comment"
    I can see the items in the list on the host, but they are non-functional when I save, upload, and then view the [expected] style changes.
     
    What am I missing here?
     
    Darold
  •  06-27-2005, 4:07 PM 8068 in reply to 8066

    Re: StyleDropDown Items Not Functioning

     
    Darold,

    For the paragraph dropdown, you need to specify the valid block format tag.

    For exampls:

    Definition
    Definition Term
    Directory List
    Formatted
    Heading 1
    Heading 2
    Heading 3
    Heading 4
    Heading 5
    Heading 6
    Menu List
    Normal
    Numbered List
    "Head,Subhead,NormalRed" should be put into the Class dropdown.
     
    Hoep it helps.
     
     

    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

  •  06-27-2005, 4:14 PM 8070 in reply to 8068

    Re: StyleDropDown Items Not Functioning

    Ah yes.  I forgot that the StylesDropDwon is used for custom styles and that the paragraph formatting dropdowns determined text styles--typically found in Word.
     
    Right?
     
    Thanks for getting back to me quickly.
     
    Darold
  •  06-27-2005, 4:20 PM 8071 in reply to 8070

    Re: StyleDropDown Items Not Functioning

    Yes.
     
    This is an example:
     
    editor.StyleDropDownMenuNames = "redcolor,boldgreen,highlight"
    editor.StyleDropDownMenuList = "redcolor,boldgreen,highlight"
     
    editor.ParagraphsList = "Normal,Heading 1,Heading 2,Heading 3,Heading 4,Heading 5,Heading 6,Address,Formatted,Definition Term"

    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

  •  06-27-2005, 4:31 PM 8072 in reply to 8070

    Re: StyleDropDown Items Not Functioning

    Well...I thought I understood your comment, but I don't. The paragraph styles work okay, but the Style dropdown items don't. 
     
    I am not sure what you mean by putting the Head,SubHead,... into the class?  Can you be more specific?
  •  06-27-2005, 4:37 PM 8073 in reply to 8072

    Re: StyleDropDown Items Not Functioning

    Here's the HTML after applying the "recolor" Style.
     
    <DIV><FONT class=redcolor>This page</FONT> should be helpful to Bible students desiring to do more in-depth research into God's Word. Here you will find tips on Bible Interpretation and also links to trusted Christian websites that focus on exploratory Biblical research. </DIV>
    When I view the page, nothing changes in the applied text.  The text is not changed to red.
  •  06-28-2005, 9:08 AM 8101 in reply to 8066

    Re: StyleDropDown Items Not Functioning

    diesen code in den editor
               
    editor.StyleDropDownMenuNames = "headline, subheadline"
    editor.StyleDropDownMenuList = "headline, subheadline"
     
    diesen code in das css
     
    .headline {
     font-family: Arial, Helvetica, sans-serif;
     font-size: 15px;
     font-weight: bold;
     color: #000099;
    }
    .subheadline {
     font-family: Arial, Helvetica, sans-serif;
     font-size: 11px;
     font-weight: bold;
     color: #000099;
    }
    grüße
    wilfried wittmann
  •  06-30-2005, 4:08 PM 8232 in reply to 8101

    Re: StyleDropDown Items Not Functioning

    Thanks for the answer!
  •  06-30-2005, 5:12 PM 8236 in reply to 8232

    Re: StyleDropDown Items Not Functioning

    oops.  I thought I had the answer.
     
    I placed the editor. lines in the .asp that sets up the editor parameters.  I then added the styles to the khaki.css.
     
    I then highlighted a few words of text in the editor and clcked the healine item from the StylesDropdown list.  I expected the text to change size, but it didn't. 
     
    Looks like I'm not understanding how to use the Style feature from within the editor window.
     
    (Please respond in English, thanks).
View as RSS news feed in XML