Hello
I added a new style in the drop-down list by copying fckstyles.xml in my theme and allowing here that new style.
It’s OK, it works.
Problem is when I want to change the colour of that style. The new colour is effectively showing in the drop down menu, so I can use it when editing a node/block. But all existing nodes/blocks are not changed because the style is included in database. For exemple in boxes table, I can find :
<span style="font-weight: bold; font-size: 16px; color: #b46414"> aaa </span></h3>
And not a reference of my new style called “chapter”.
To solve my problem, I think I shall update my db.
But I am very disappointed. I was thinking it was working same as CSS, and it’s not the case.
How must I proceed to get a new style in drop down menu and for that style to be able to be changed and new appearance to be reflected immediately for all my existing nodes/blocks?
Comments
Comment #1
jorrit commentedI'm sorry that your expectations weren't met. However, this is normal behaviour. Unless your styles are entirely CSS-based, they are only activated when you apply them directly to text, not for all other texts. This will not be changed.
Comment #2
sahuni commentedThanks for reply.
So I need to create that new style in a css. But how can I have that new style in drop down menu?
Comment #3
jorrit commentedI'm not really sure because I don't know that feature really well, but you could put a generic container in your styles xml (just a div with a class) and put that class in CSS. I think for it to work in the editor, you need to add the CSS information to the CSS files in the editor as well. You can set that up in the FCKeditor profile configuration.