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

[Solved] Reuse a default Telerik icon for custom tool

6 Answers 159 Views
Editor
This is a migrated thread and some comments may be shown as answers.
PJ Melies
Top achievements
Rank 1
PJ Melies asked on 29 May 2009, 11:26 PM
We're using the RadSpell as our spell checker as outlined in this forum thread.    http://www.telerik.com/community/forums/aspnet-ajax/spell/radspell-with-radeditor.aspx.

We would like to re-use the Spell Check icon that's displayed for the normal Ajax Spell Check tool.   I've reviewed the demo describing how to do it (http://demos.telerik.com/aspnet-ajax/editor/examples/customtools/defaultcs.aspx) but the demo uses an external image and I want to re-use the one from the toolbar sprite gif.  What's the proper style to do this?

6 Answers, 1 is accepted

Sort by
0
Martin
Telerik team
answered on 01 Jun 2009, 04:44 AM
Hi PJ Melies,

I believe that this could be done, but I will ask you to send us a small running project with your exact setup, and I will write for you the CSS that reuses the icon of RadEditor's spellchecker.

Best wishes,
Martin Ivanov
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
PJ Melies
Top achievements
Rank 1
answered on 04 Jun 2009, 12:08 AM
Martin,

I've created Support Ticket 217261  and uploaded the sample solution to that ticket.  Thanks.
0
James Daresta
Top achievements
Rank 1
answered on 08 Dec 2009, 07:10 PM
Was this ticket ever fulfilled? I have the same need. I want to use the Ajax Spellchecker icon for the regular spellcheck.

Thanks.
0
Martin
Telerik team
answered on 09 Dec 2009, 06:44 AM
Hi James Daresta,

Yes, I gave PJ a solution for his requirement. For your convenience, I am copying it here:

<style type="text/css">
.SpellCheck
{
 background-position: -66px center !important;
}
</style>


However, I believe that your requirements are a bit different, so again - send me a sample project or explain your requirements in detail, so I can provide you with a solution.


Sincerely yours,
Martin Ivanov
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
James Daresta
Top achievements
Rank 1
answered on 10 Dec 2009, 02:53 PM

What I am doing is using the regular spellcheck instead of the Ajax one for the editor. However, I want to use the Ajax Spellchecker icon for the regular spellcheck. What I have done so far is basically copied the image to a image location and using css replaced it. I just wondered if there was some other way than this. Here is my CSS code.

.reTool .SpellCheck  
{  
    displayinline-block;  
    width16px;  
    height16px;  
    border: 0;  
    margin2px 4px 2px 2px;  
    background-imageurl('../images/icons/SpellCheck16x16.png');  
    background-position: -center;  
    background-repeatno-repeat;          
0
Martin
Telerik team
answered on 11 Dec 2009, 06:37 AM
Hi James Daresta,

// I am not sure if this message has been sent, so I am resending it to you.

Yes, I gave PJ a solution for his requirement. For your convenience, I am copying it here:

<style type="text/css">
.SpellCheck
{
 background-position: -66px center !important;
}
</style>


However, I believe that your requirements are a bit different, so again - send me a sample project or explain your requirements in detail, so I can provide you with a solution.


As per your last question, I believe that you have done great job, and actually this is the correct and sole method for achieving your goal.

Sincerely yours,
Martin Ivanov
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
Editor
Asked by
PJ Melies
Top achievements
Rank 1
Answers by
Martin
Telerik team
PJ Melies
Top achievements
Rank 1
James Daresta
Top achievements
Rank 1
Share this question
or