On 11/21/2011 06:13 PM, Fabián Mandelbaum wrote:
> Hello, I'm testing deployment of XXE as an applet with the "editor2"
> model instead of the "xxe" model.
>
> I've supplied the corresponding parameters to the deploywebstart
> script, changed the appClass parameter on the JS code on the page
> loading the applet, and everything seem to work... except that I have
> a custom addon that defines the default CSS to be a different one than
> the default docbook5 one and it's not being loaded. The document view
> of the editor2 applet is styled with the stock XXE docbook5 CSS and
> not with my custom CSS.
>
> If I deploy the same applet as xxe instead, everything works as
> expected, when I open a document, it's being styled with my CSS.
>
> Is 'xxe' the only applet that can work with custom CSS? if not, what
> may I be doing wrong?

There is no real technical differences between the xxe applet, the 
editor1 applet, the editor2 applet and...the desktop application.  Any 
customization which works for the desktop application should work fine 
with an applet of any kind.

My guess is that your add-on is found in the user preferences directory. 
The problem is that the user preferences directory is ignored by 
deploywebstart. See 
http://www.xmlmind.com/xmleditor/_distrib/doc/configure/testing_the_applet.html

You should copy your add-on directory to XXE_install_dir/addon/ and then 
rerun deploywebstart.

There is a pitfall though. If you do that, XXE_install_dir/addon/ will 
contain two configurations for DocBook 5: the stock one and yours. So 
which one will be picked by XXE?

The configuration priority rules are documented here:

http://www.xmlmind.com/xmleditor/_distrib/doc/configure/addon_types.html

In a nutshell, we recommend to call the .xxe file containing your 
DocBook 5 customization: 0docbook5.xxe. See 
http://www.xmlmind.com/xmleditor/_distrib/doc/configure/customizing.html



 
--
XMLmind XML Editor Support List
[email protected]
http://www.xmlmind.com/mailman/listinfo/xmleditor-support

Reply via email to