Welcome, Guest. Please login or register.
Did you miss your activation email?
May 24, 2012, 10:02:14 AM

Login with username, password and session length
Search:     Advanced search
Interested in joining the WebsiteBaker team?
For more Information read here or on our new website.
155445 Posts in 21703 Topics by 7731 Members
Latest Member: zvaigzdzius
* Home Help Search Login Register
Pages: [1]   Go Down
Print
Author Topic: How do I change the default style for Image align in the FCK editor?  (Read 549 times)
sparkdigital

Offline Offline

Posts: 348



WWW
« on: October 29, 2008, 12:27:33 PM »

Does anyone know how to change the default style that fck editor inserts when I select 'Image on left' or 'Image on right' from the editor?

The default style attribute is

Code:
style="padding: 5px; margin-right: 5px;"

I would like to change this to

Code:
style="padding: 0px; margin-right: 20px; border: 5px #FFFFFF solid;"

Any ideas where I can change this?

Thanks!

Konrad
Logged
ruebenwurzel
WebsiteBaker Org e.V.

Offline Offline

Posts: 7972



WWW
« Reply #1 on: October 29, 2008, 12:44:13 PM »

Hello,

all config files you find in the /modules/fckeditor/wb_config folder. Also an editor.css in the templates dir could maybe help you.

Matthias
Logged
sparkdigital

Offline Offline

Posts: 348



WWW
« Reply #2 on: October 29, 2008, 02:06:34 PM »

Hi Mattias,

Thanks for the suggestion - I've been looking at this but still can't find anything.

ANy other ideas?

Thanks,

Konrad
Logged
BerndJM

Offline Offline

Posts: 1764



« Reply #3 on: October 29, 2008, 02:10:46 PM »

Hi,

in /modules/fckeditor/fckeditor/fckstyles.xml about line 100
Code:
<Style name="Image on Left" element="img">

        <Attribute name="style" value="padding: 5px; margin-right: 5px" />

        <Attribute name="border" value="2" />

        <Attribute name="align" value="left" />

    </Style>

    <Style name="Image on Right" element="img">

        <Attribute name="style" value="padding: 5px; margin-left: 5px" />

        <Attribute name="border" value="2" />

        <Attribute name="align" value="right" />

    </Style>
Give it a try ...

Regards Bernd
Logged

In theory, there is no difference between theory and practice. But, in practice, there is.
sparkdigital

Offline Offline

Posts: 348



WWW
« Reply #4 on: October 29, 2008, 02:23:18 PM »

Thanks Bernd,

I found the file, amended it and uploaded it but do I need to reload the editor in some way as it doesn't seem to have the desired effect...  huh

Thanks,

Konrad
Logged
BerndJM

Offline Offline

Posts: 1764



« Reply #5 on: October 29, 2008, 02:28:37 PM »

cleared your browser cache?
Logged

In theory, there is no difference between theory and practice. But, in practice, there is.
sparkdigital

Offline Offline

Posts: 348



WWW
« Reply #6 on: October 29, 2008, 02:35:39 PM »

Yup...

I'm going to feel really stupid now if I'm missing something here  cool
Logged
Pages: [1]   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!