#2234: DIV container tool
--------------------------+-------------------------------------------------
Reporter: fredck | Owner: martinkou
Type: New Feature | Status: assigned
Priority: Normal | Milestone: FCKeditor 2.6.2
Component: General | Version:
Resolution: | Keywords: Confirmed
--------------------------+-------------------------------------------------
Comment (by alfonsoml):
In the new version of the EasyUpload plugin (not released, demo with that
version available in http://martinezdelizarrondo.com/easyupload/) I've
replaced all the attributes (except dimensions) with a combo to apply a
class, that it's automatically filled from the fckstyles:
{{{
// Returns an array with the available classes defined in the Styles
GetAvailableClasses = function (nodeName) {
var styles = FCK.Styles.GetStyles();
var aClasses = [{name: "", classname: ""}];
for (var styleName in styles) {
var style = styles[styleName];
if (style.IsCore) {
continue;
}
if (style.Element == nodeName) {
if (style._StyleDesc.Attributes &&
style._StyleDesc.Attributes.class) {
aClasses.push({name: styleName, classname:
style._StyleDesc.Attributes.class});
}
}
}
return aClasses;
}
}}}
--
Ticket URL: <http://dev.fckeditor.net/ticket/2234#comment:3>
FCKeditor <http://www.fckeditor.net>
The text editor for Internet
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
FCKeditor-Trac mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fckeditor-trac