Alexander Dupuy wrote:
> 
> It does lead to another question - is there any way
> that I can specify multiple commands for a CSS button?

(I'm not sure I've understood your question) A ``CSS button'' can
execute a command or popup a menu of commands *or both*
(left-click=execute the command, right-click=popup the menu).

Example:

---
ul > li:before {
    content: command-button(icon, disc,

                            command, "insertNode", 
                            parameter, "sameElementAfter",

                            menu,
                            menu("Copy li", "copy", 0,
                                 "Cut li", "cut", 0,
                                 "Paste Before li", "paste", "before",
                                 "Paste After li", "paste", "after"));
}
---




> It seems like I
> need to define a macro in the configuration that would combine the
> insert and putAttribute, and then make that macro the command for the
> button.  Is it possible to associate a macro with a button? 

Yes. A macro command is a first class command which can be used
everywhere other types of commands can be used.




> (This also
> requires local config to be set up, whereas an ability to directly
> specify a sequence of commands for a CSS button would be a more
> self-contained solution).

You really need to specify all commands in a XXE configuration file. You
cannot define a behavior for a CSS button directly in the CSS.

Reply via email to