Lionel Barth wrote: > > I have declare a binding in my configuration file in > addon-->config-->myconfig folder, but it works only after explicitly > reloading all configurations with the options menu, not on startup of xxe. > > Here is the binding : > <command name="wrapUnWrap"> > <macro> > <choice> > <command name="wrap" parameter="[implicitElement] %0"/> > <command name="unWrap"/> > </choice> > </macro> > </command> > > <command name="unWrap" > xmlns="http://www.xmlmind.com/xmleditor/schema/configuration"> > <macro undoable="true" > repeatable="false" > trace="false"> > <sequence> > <command name="selectNode" > parameter="children[implicitElement]"/> > <command name="copy" > parameter="[implicitElement]"/> > <command name="selectNode" > parameter="parentOrNode"/> > <command name="paste" > parameter="to"/> > </sequence> > </macro> > </command> > > <binding> > <keyPressed code="R" modifiers="mod" /> > <command name="wrapUnWrap" parameter="postit" /> > </binding> > > I thought it should be available on the opening of xxe. What did I > missed ?
--> Mod-R, that is, Cmd-R on Mac and Ctrl-R on other platforms, is already bound to command replace. The only way to override this binding is to define it in a "customize.xxe" configuration file. Defining this binding in a configuration file associated to a document type (e.g. mydocbook.xxe) is *not* supposed to work. The binding is simply ignored. All this is explained here: http://www.xmlmind.com/xmleditor/_distrib/doc/configure/bindings.html --> Now let's suppose you have defined this binding in your "customize.xxe" configuration file. We don't see how what you describe could happen. Are you sure you really start XXE? If an XXE instance is iconified and you have turned on option "Use a unique instance of XMLmind XML Editor" (Options|Options, General section), you are not really starting XXE, you are just deiconifying the iconified instance.

