I want to write multiple div elements also with nested ones within a single style in Fckeditor styles. The code given in the fckconfig.js file is:
FCKConfig.CustomStyles =
{
'Code' : { Element : 'code' },
'DekiScript' : { Element : 'pre', Attributes : { 'class' : 'script' } },
'Comment' : { Element : 'p', Attributes : { 'class' : 'comment' } },
'Box' : { Element : 'div', Attributes : { 'class' : 'divbox' , 'style' : 'background-color:#28B8FC'} },
};
The "Box" above is my new style. Which results like below:
<div class="divbox" style = "background-color:#28B8FC;"></div>
But I want to do something like this:
<div class="divbox" style = "background-color:#28B8FC;">
<div class="div1" style = "background-color:#FFF8FC;">
</div>
<div class="div2" style = "background-color:#8FCFFF;">
</div>
</div>
Can anybody tell me How can I achieve this?
Sun, 11/02/2008 - 06:10
#1