[pmwiki-users] predefined class attribute inclusion in user editing

Patrick R. Michaud pmichaud at pobox.com
Sun Jul 3 18:55:02 CDT 2005


On Sun, Jul 03, 2005 at 01:26:42PM -0400, Henrik Bechmann wrote:
> Is there some way for my users to include classes I have in my 
> stylesheets as modifiers for the objects they are entering?
> 
> something like %blockquote:class="letter-internal"% (a custom appearance 
> to blockquote)
> 
> or do I have to reproduce all those with %define=...

By default, any wikistyle that is not defined using %define=...%
is automatically treated as %class=...%.  For example, if I use
the wikistyle

    %foobarbaz% Here is some text %% and some normal text

then if a wikistyle isn't defined for %foobarbaz% it's the
same as if I had written:

    %class=foobarbaz% Here is some text %% and some normal text

which uses the .foobarbaz selector in a stylesheet.

Hope this helps.

Pm



More information about the pmwiki-users mailing list