This is a migrated thread and some comments may be shown as answers.

Apply Class Dropdown Broken

1 Answer 54 Views
WebParts for SharePoint
This is a migrated thread and some comments may be shown as answers.
Brad
Top achievements
Rank 1
Brad asked on 12 May 2009, 02:11 PM
Hello,
   I just installed Rad Editor Lite and I got it working just fine. I also added the Ajax Spell Check, and it is awesome! I am having an issue though:

I added the ApplyClass tool in the ListToolsFile.xml and now the ApplyClass dropdown appears on the wiki editor like i wanted, except that it is broken. It shows a "bad image" like a webpage would when it cannot find an image, and the function does not work. I followed the guidelines and created the CssEditor.css file in the proper location (_wpresources/RadEditorSharePoint/4.5.6.0__1f131a624888eeed/RadControls/Editor/), and i even added the line to the CORE.CSS file that is outlined in the "Defining Custom CSS Styles" guide in the .chm file.

I think i put it in the right place, but is there a specific place to put the @import url("/_wpresources/RadEditorSharePoint/4.5.6.0__1f131a624888eeed/RadControls/Editor/CssEditor.css"); line? It is near the top after the comment of the version: 

/* _lcid="1033" _version="12.0.4518"
@import url("/_wpresources/RadEditorSharePoint/4.5.6.0__1f131a624888eeed/RadControls/Editor/CssEditor.css");
_LocalBinding */


After doing this, i added classes to the ListToolsFile.xml such as this:

<classes>
        <class name="Filename" value=".GUI-Filename" />
        <class name="Menu" value=".GUI-Menu" />
        <class name="Button" value=".GUI-Button" />
 <class name="User Input" value=".GUI-UserInput" />
 <class name="Prompt" value=".GUI-Prompt" />
 <class name="Icon" value=".GUI-Icon" />
    </classes>

which matches what is in my CssEditor.css file:

.GUI-Filename { font-family: Courier; text-decoration: underline }
.GUI-Menu    { font-weight: bold }
.GUI-Button  { text-decoration: underline; font-weight: bold }
.GUI-UserInput { font-family: Courier; font-style: italic }
.GUI-Prompt  { font-family: Courier; font-weight: bold }
.GUI-Icon {
 font-style: oblique;
 font-weight: bold;
}

Is this not the correct setup that i need? Are there any steps i am missing? Is my CSS set up wrong? Also, I noticed that the HtmlEditorTableFormats.css and HtmlEditorCustomStyles.css files do not exist in my installation, but I am running Windows Sharepoint Services 3.0 on a Windows Server 2003 environment. The .chm file says they should be located here: /Program Files/Common Files/Microsoft Shared/web server extensions/12/Template/Layouts/1033/Styles

Any help would be useful. Some links in other forum threads for Telerik guides are broken now.

-Brad

1 Answer, 1 is accepted

Sort by
0
Brad
Top achievements
Rank 1
answered on 12 May 2009, 03:01 PM
Turns out I had everything set up just fine, except I wasn't Case Sensitive in my adding of the ApplyClass tool to the ListToolsFile.xml. Note to self, check capital letters!

-Brad
Tags
WebParts for SharePoint
Asked by
Brad
Top achievements
Rank 1
Answers by
Brad
Top achievements
Rank 1
Share this question
or