Re: tinymce: style for IMG tag
"jojodee" <jojodee-8nna1qhvBBM9QQeoy3GH/[email protected]>
| Newsgroups | gmane.comp.cms.xaraya.user |
|---|---|
| Organization | Xaraya |
| Message-ID | <[email protected]> |
Hi Steve Yes the image plugin has it's own config option for styles. See the following URL in your site if you have tinymce installed: modules/tinymce/xarincludes/docs/plugin_advimage.html " advimage_styles : This option should contain a semicolon separated list of class titles and class names separated by =. The titles are the ones that get presented to the user in the styles drop down list and and the class names is the classes that gets inserted." There should be some good documentation on the plugins for optional settings. These settings can be added in your tinymce GUI by going to: Advanced config tab -> Custom config options And adding any options there as per instructions. Jo "Steve Switzer" <[email protected]> wrote in message news:[email protected]... > I've installed the tinymce module so that my less experienced users can > more easily edit their own pages. Everything is going fine, except that I > don't seem to be able to apply a style to an image. > > I've got a css style defined as: > > ".left { float:left; margin:10px; margin-left:0px;}" > > which I usually apply to either DIV or IMG elements. > > The style "left" does show up in the list of available styles when editing > using tinymce, and I can successfuly apply it to DIV or P tags, but not to > images! > > I should say _new_ images in a page, as existing images that I've inserted > into a page (using normal html editing) can be of classified as "left", > and Tinymce says down at the bottom of the editor that they're "img.left". > > But I can't apply this style to an image by selecting the image and then > selecting "left" from the dropdown list of styles. > > NOTE: other styles that I've defined have the same problem... I can't > apply them to images. > > I have the "advimage" plug-in loaded, and it works well. I've followed > the advimage instructions and added > "img[class|style|src|border=0|alt|title|hspace|vspace|width|height|align|onmouseover|onmouseout]" > to the list of additional tags. > > Versions: > xaraya 1.1.2 > tinymce 1.1.1 > > Thanks, Steve.