is it at all possible to define a container in the customstyles that can handle a new line without ending the style;
ideal html would be:
<div class="infobox">
<h4>Think about it</h4>
<p>lorum ipsum</p>
</div>
as far as I've understood fck always ends the style asap, giving:
<div class="infobox"></div>
<h4>Think about it</h4>
<p>lorum ipsum</p>
I've looked into the "CreateDiv"-button which might solve it but if it's possible to set an attribute at the styles, not to break the div, that would be a much more intuitive solution.
Well, as far as I know - and the demos can prove this - the create-div-button creates a div that wraps around a given HTML fragment inside the editor. So, what seems to be the problem? You just write down what you want, then select it with your mouse and hit the create div button. Then the div that is created will wrap around the selected HTML! And you can control the div's styling by normal styles or classes or whatever as usual...
Re: Writing Multiple Elements in a Single Style in fckconfig.js
FCKConfig.CustomStyles = { 'divbox' : { Element : 'div', Styles : { 'background-color' : '#28B8FC' } }, 'div1' : { Element : 'div', Styles : { 'background-color' : '#FFF8FC' } }, 'div2' : { Element : 'div', Styles : { 'background-color' : '#8FCFFF' } } };And this can go on and on as long as you like. A great feature of the FCK, really...
Re: Writing Multiple Elements in a Single Style in fckconfig
can handle a new line without ending the style;
ideal html would be:
as far as I've understood fck always ends the style asap,
giving:
I've looked into the "CreateDiv"-button which might solve it
but if it's possible to set an attribute at the styles, not to break the div,
that would be a much more intuitive solution.
Thank you for a good product.
Re: Writing Multiple Elements in a Single Style in fckconfig
as:
'Info-box' : { Element : 'div', Attributes : { 'class' : 'infobox', 'Initial' : '<h4>header</h4><p>text</p>'} },possible??
Re: Writing Multiple Elements in a Single Style in fckconfig
Re: Writing Multiple Elements in a Single Style in fckconfig
Yes, the create div-button works, but as it's used for a multiuser doc-site,
I'd rather avoid typing classes into the textbox.
What's the proper way of populating the combobox in the "createDiv"-popup-window?
I've browsed the FCKconfig-doc's but no luck yet.
Re: Writing Multiple Elements in a Single Style in fckconfig
http://docs.cksource.com/CKEditor_3.x/Developers_Guide/Styles
Re: Writing Multiple Elements in a Single Style in fckconfig
How can I add Styles to the dropdown box in Create Div container box?