You are not logged in.
Hey guys..
The Stylist plug-in allows a user to select one or more styles.
This is confusing to most of our clients and they wish they could just select a single style.
Nothing in the forum or tickets database to be found on this..
Any help urgently required due to presentation tomorrow, thanks a lot
Tom
Offline
Quick hack:
Index: stylist.js
===================================================================
--- stylist.js (revision 608)
+++ stylist.js (working copy)
@@ -192,6 +192,7 @@
}
else
{
+ if (this._stylist_applyTo.className) return false;
editor._stylistAddClasses(this._stylist_applyTo, this._stylist_applyTag, this._stylist_className);
}
return false;
Last edited by ray (2006-11-21 06:03:24)
Offline
Thanks for the hack.
However, it does not automatically deselect the old style but simply prevents selecting a second one.
With the amount of confusion we get from clients I would classify the inability of selecting just one style as a bug and not a feature request.
Of course it would be great if a simple setting would allow to define single or multi selection.
Thanks
Tom
Offline
If you really want to spoil this brilliant feature, try this:
Index: stylist.js
===================================================================
--- stylist.js (revision 608)
+++ stylist.js (working copy)
@@ -192,6 +192,7 @@
}
else
{
+ if (this._stylist_applyTo.className) this._stylist_applyTo.className = '';
editor._stylistAddClasses(this._stylist_applyTo, this._stylist_applyTag, this._stylist_className);
}
return false;
Offline