tags:

views:

24

answers:

2

I've used WMD for <textarea> but it seems I don't get the path of where I've to set the path of image icon. and how could I edit its css codes. Though I tried it with firebug, I didn't get it . =(

alt text

or where I've to place the menu icon image ? I normally placed it under /public/images

it'll be grate if anyone can help me.

A: 

The icons are in wmd-buttons.png file.

You can find it in images folder of derobins version of wmd.

denis_n
A: 

The path to images has to be set in the wmd.css file, in the .wmd-button descriptor. The path has to be relative to the location of the css file.

For instance, if your web site hierarchy looks like this, and provided you've stored the "wmd.css" file in the "css" folder and the "wmd-buttons.png" file in the "images" folder.

web_site
 |_public
 |_images
 |_css
 |_... 

You'd have to change the path to one of the following:

  • Relative path version:
background-image: url(../images/wmd-buttons.png);
  • Absolute path version:
background-image: url(/images/wmd-buttons.png);
Em.