Hi,
The STYLE tag should not be stored in every single node; HTML styling can be
made globally accross the whole map, using a property from user.properties.
The HEAD tag including STYLE tag can be removed from the SimplyHTML code
view too, using the following patch of DocumentPane.java of the method
setHTMLView. The key change of the method is marked with *; this is however
not the standard diff format.
private void setHTMLView() {
try {
editor.getDocument().removeDocumentListener(this);
StringWriter stringWriter = new StringWriter();
editor.getEditorKit().write
(stringWriter, editor.getDocument(), 0, editor.getDocument
().getLength());
stringWriter.close();
String newText = stringWriter.toString();
* if (!Util.preferenceIsTrue("writeHead","true"))
* newText = newText.replaceAll("(?ims)<head>.*?(<body)","$1");
sourceEditorPane.setText(newText);
sourceEditorPane.getDocument().addDocumentListener(this);
sourceEditorPane.addCaretListener(sourceEditorPane);
setHtmlChanged(false);
}
catch(Exception ex) {
ex.printStackTrace();
}
Also, the preference "writeHead" has to be set to false in
freemind.properties for the patch to take effect.
This patch is copyrighted by Daniel Polansky (C) 2008 under GNU GPL V2 or
later at your option.
Best regards,
Dan
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
Freemind-developer mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freemind-developer