HtmlEditor¶
-
MacroModule
¶ author Wolf Spindler
package FMEwork/ReleaseMeVis
definition HtmlEditor.def see also PlaceholderTranslator
keywords edit
,interactive
,wysiwyg
,web
Purpose¶
HtmlEditor
is a convenience macro for low-level HTML editing. It has an input for (hand-written) HTML text and a display which shows (in WYSIWYG manner) the web rendering result. Like the PlaceholderTranslator
it allows inserting field names from other modules, self-defined aliases, or constants into the HTML template text.
Actually this module is not intended as a full-purpose HTML editor, but it can be a helpful tool macro for application builders. Thus creating, editing and export of documents as web results is possible in an application without needing application-external programs.
If you want to make use of HtmlEditor
inside of a macro please have a look at parentLevelsUp
and PlaceholderTranslator.parentLevelsUp
to make sure that the module can find referenced fields.
Parameter Fields¶
Field Index¶
Visible Fields¶
Web Report Template¶
-
name:
WebReportInput
, type:
String
, default:
<!DOCTYPE html>, <head>, <title>Html Text Example</title>, <h1>This is the Web Result</h1>, <h2>Placeholders</h2>, <p>Value of field <i>name</i> of module <b>LocalImage</b> is $(LocalImage.name).</p>, <p>See <b>Constants</b> tab: The current date is $(DAY).$(MONTH).$(YEAR).</p>, <p>Self-defined aliases (see <b>Aliases</b> tab), for , example <mark>MY_DATE</mark> aliases $(MY_DATE).</p>, <h2>Formatting</h2>, <p>Hyperlink: <a href="http://www.uni-bremen.de/">University Bremen</a>.</p>, <p style="border: 2px solid black; width:50%">Text in a black and half-width box.</p>, <table style="border: 2px solid green">, <tr>, <td style="border: 2px solid blue">"Text in blue box"</td>, <td><ul style="list-style-type:circle; border: 2px solid yellow">, <li>$(MY_DATE)</li>, <li style="border: 3px solid powderblue">Powder blue text</li>, </ul></td>, </tr>, </table>, </body>, </html>
¶ Insert the HTML text with constants, placeholders and aliases here. The placeholders will be translated and the result is shown in the
WebReportOutputs
field then.
Web Report Aliases¶
-
name:
WebReportAliases
, type:
String
, default:
$(MY_DATE):$(DAY).$(MONTH).$(YEAR),
¶ Here aliases can be defined. For details see
PlaceholderTranslator.aliases
.
Web Report Status¶
-
name:
WebReportStatus
, type:
String
, persistent:
no
¶ Shows status information, especially errors if any field, module or alias cannot be resolved correctly.
Web Report Examples Comment¶
-
name:
WebReportExamplesComment
, type:
String
, persistent:
no
¶ Some useful HTML examples are shown here.
Web Report Symbols Comment¶
-
name:
WebReportSymbolsComment
, type:
String
, persistent:
no
¶ Some useful HTML symbols coded are shown here.
Web Report Formatting Comment¶
-
name:
WebReportFormattingComment
, type:
String
, persistent:
no
¶ Some useful HTML formatting statements are shown here.
Web Report Constants Comment¶
-
name:
WebReportConstantsComment
, type:
String
, persistent:
no
¶ A list of constants which can be inserted into the html document to add useful information such as date, time, system information etc.
Make Sub Scripted¶
-
name:
makeSubScripted
, type:
Trigger
¶ Makes selected text formatted as subscripted text.
Make Super Scripted¶
-
name:
makeSuperScripted
, type:
Trigger
¶ Makes selected text formatted as superscripted text.
Make H1¶
-
name:
makeH1
, type:
Trigger
¶ Makes selected text formatted as head line type 1 (1= large, 6 = small).
Make H2¶
-
name:
makeH2
, type:
Trigger
¶ Makes selected text formatted as head line type 2 (1= large, 6 = small).
Make H3¶
-
name:
makeH3
, type:
Trigger
¶ Makes selected text formatted as head line type 3 (1= large, 6 = small).
Make H4¶
-
name:
makeH4
, type:
Trigger
¶ Makes selected text formatted as head line type 4 (1= large, 6 = small).
Make H5¶
-
name:
makeH5
, type:
Trigger
¶ Makes selected text formatted as head line type 5 (1= large, 6 = small).