|
Rank: Member Groups: Member
Joined: 12/7/2007 Posts: 21
|
I have added some custom emoticons to the editor, they are transparent pngs. I would like to be able to put a background color on each one, and was trying to use the text highlighter to put a background colour on the transparent png, but this doesn't work. Is there any way of doing this?
Thank you.
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,229
|
Hi,
I am not sure what you meant by using text highlighter to put a background color on the transparent pngs. What's the result HTML you want the editor to produce?
Thanks!
|
|
Rank: Member Groups: Member
Joined: 12/7/2007 Posts: 21
|
Ideally I would like for it to add a class to an image to give a background colour. Or a style. <img src="/eo_web.ashx?id=emoticon&i=bottlebrush,symbols" alt="BottleBrush" class="bgRed" />
Thank you.
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,229
|
Hi, You can try to create a CSS rule with CSS wildcard selector and then apply it to the Editor through this property: https://www.essentialobjects.com/doc/eo.web.editor.textareacssfile.aspxInside the file you can have CSS rule like this:
Code: C#
img[src*="id=emoticon"]
{
background-color: red;
}
This would match all img tags whose src property contains "id=emoticon" and apply whatever styles you specify in the rule. Thanks!
|
|
Rank: Member Groups: Member
Joined: 12/7/2007 Posts: 21
|
How would I set the id on the emoticon that is chosen? I also need the user to be able to select different colours?
Thank you
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,229
|
You won't be able to do that. :(
|
|