Hello Dimitry,
with reference to your question from the previous email, I have
omitted the actions "fontStrikethrough", "insertTableRowHeader",
"openLink", and "formatAsCode" in the file
"SimplyHTML_common.properties" unintentionally, although the last
action "formatAsCode" does not work, so should better not be there.
The action "fontStrikethrough" works, although with limitations.
Unlike the actions for boldface and italics, this action only adds
strikethrough formatting; it does not remove the strikethrough
formatting when it is already there. To remove the strikethrough
formatting, the user can use the action "Remove Formatting".
The action "insertTableRowHeader" works. It is however in a way
redundant to "toggleTableHeaderCell" action, which can turn to TH and
back again to TD any selection of cells, be it a row of cells, one
cell, or two consecutive cells. On the other hand, it may be
convenient to insert a new table row with TH cells with one keystroke;
I don't know.
The action "openLink" works, but it requires support on the FreeMind
side. FreeMind has to register itself as the handler of the event of
following a hyperlink. The same action as "openLink" is invoked, in
SimplyHTML, when the user holds Control while clicking on a hyperlink.
In my code, FreeMind's registering as the handler looks as follows; in
0.9.0 code base, instead of "openURL", the method "openDocument" needs
to be called:
EditNodeWYSIWYG.HTMLDialog.createEditorPane:
private SHTMLPanel createEditorPanel() throws Exception {
if (htmlEditorPanel == null) {
htmlEditorPanel = SHTMLPanel.createSHTMLPanel();
htmlEditorPanel.setOpenHyperlinkHandler(
new ActionListener () {
public void actionPerformed(ActionEvent event) {
String url = event.getActionCommand();
try {
Maid.getFrame().openURL(new URL(url)); }
catch (Exception ex) {}
}});
}
return htmlEditorPanel; }
The action "formatAsCode" does not work; it is a work in progress, or
rather an orphaned piece of development. I meant it to apply the
formatting of the HTML element "code". As implemented, it uses the
action SetTagAction, which is probably meant only for paragraph tags
such as P, H1, H2, ..., H6, and only works for them. The SetTagAction
is not mine; it seems to be absent in menus, only reacting to a change
in a drop-down list for P, H1, ..., H6 in the toolbar.
Best regards,
Dan
------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
_______________________________________________
Freemind-developer mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freemind-developer