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

Adding tools to the toolsfile.xml - icon issue

4 Answers 57 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Gordon
Top achievements
Rank 1
Gordon asked on 03 Aug 2009, 09:35 AM
I'm customising the toolsfile.xml with my own tool;

  <tools name="My Toolbar" enabled="true"
    <tool name="MyTool" text="My Tool Text" showicon="true" showtext="false" /> 
  </tools> 

I'm customising the icon with the stylesheet, which works without issue.... until i change the showtext property to true. 
At this point, the icon reverts to the default "info" icon, and my defined icon is ignored.

I'm assuming this a bug?  I'd like to show the text as well as the icon.....




4 Answers, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 03 Aug 2009, 11:16 AM
Hello Gordon,

I was not able to reproduce the problem and for your convenience I have attached my test project. Please, test it and let me know if you still experience the issue with it.

Best regards,
Rumen
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Gordon
Top achievements
Rank 1
answered on 23 Apr 2010, 10:54 AM
(Dragging this one up again)

It was because in the css of the page i had

  <style type="text/css"
    .reTool .ReFauxFullScreen 
    { 
      background-imageurl(Content/Images/fullscreen.gif); 
    } 
  </style> 

Which worked fine when
showicon="true" showtext="false" 
But when both attributes were set to true, the icons wasn't loaded.

However, changing the css to;
  <style type="text/css"
    .reToolbar.Default .ReFauxFullScreen 
    { 
      background-imageurl(Content/Images/fullscreen.gif); 
    } 
  </style> 
Fixed the problem.



0
Archana
Top achievements
Rank 1
answered on 06 Aug 2010, 11:20 AM
Hi,

I am using RadEditorMOSS version 5.5.0.0. I am using radEditor free flow control throught the pagelayout.
I want to edit the formatblock in the toolbar of radEditor.
For that i edited ToolsFile.xml and added following before </root> :-
<paragraphs>
    <paragraph name="Normal" value="<p>" /> 
    <paragraph="<h3>Heading 3</h3>" value="<h3>" />
</paragraphs>

But on adding this it throws error. The error is as follows :-
'<', hexadecimal value 0x3C, is an invalid attribute character

Please help me out with this.

Regards,
Archana
0
Rumen
Telerik team
answered on 09 Aug 2010, 05:08 PM
Hi Archana,

You should encode the < symbol in XML to &lt;

<paragraphs>
    <paragraph name="Normal" value="&lt;p>" /> 
    <paragraph="&lt;h3>Heading 3&lt;/h3>" value="&lt;h3>" />
</paragraphs>


This will fix the error.

Sincerely yours,
Rumen
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
Editor
Asked by
Gordon
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Gordon
Top achievements
Rank 1
Archana
Top achievements
Rank 1
Share this question
or