The oxy_textArea built-in form control is used for entering multiple
lines of text in a graphical user interface box. A text area may include optional syntax
highlight capabilities to present the form control.
The oxy_textArea form control supports the following properties:
visibility property to
-oxy-collapse-text to render the text only in the form
control that the oxy_editor function specifies.#content - This parameter is useful when an element has mixed or element-only content and you want to edit its content inside a text area form control.
<codeblock outputclass="language-xml">START_TEXT<ph>phase</ph>
<apiname><text>API</text></apiname></codeblock>codeblock:before{
content:
oxy_textArea(
edit, '#content',
contentType, 'text/xml');
}START_TEXT<ph>phase</ph><apiname><text>API</text></apiname>edit property is
#content, the text area form control will also offer content
completion proposalsem,
ex), absolute (in, cm,
mm, pt, pc, px), and
percentage (followed by the % character) length units. The
width property takes precedence over the columns
property (if the two are used together).true or false (default value). To
make the form control inherit its font from its parent element, set the
fontInherit property to true.true (default value) and false.text/batch; text/c; text/cc; text/css; text/dtd; text/html; text/java;
text/javascript; text/json; text/markdown; text/nvdl; text/perl; text/plain; text/php;
text/properties; text/python; text/rnc; text/rng; text/sch; text/shell; text/sql;
text/wsdl; text/xml; text/xpath; text/xproc; text/xquery; text/xsd; text/xsl;
text/yaml.true (default value), the
Tab key inserts characters. If it is set to
false, Tab is used for
navigation, jumping to the next editable position in the document.rows and
columns properties are not specifies, the form control calculates its
size on its own so that all the text is visible.rows and
columns properties must be specified. If these are not specified,
the form control considers the value to be pre.p:before {
content: oxy_textArea(hoverPseudoclassName, 'showBorder')
}
p:showBorder {
border: 1px solid red;
}@xml:lang attribute is not specified explicitly on an ancestor
element.Example: oxy_textArea Form Control
textArea {
visibility: -oxy-collapse-text;
white-space: pre;
}
textArea[language="CSS"]:before {
content: oxy_textArea(
edit, '#text',
contentType, 'text/css');
}
textArea[language="XML"]:before {
content: oxy_textArea(
edit, '#text',
contentType, 'text/xml',
rows, 10,
columns, 30);
}oxy_textArea form control in a CSS
file , invoke the Content Completion
Assistant by pressing Ctrl +
Space and select the
oxy_textArea code template.To see more detailed examples and more information about how form controls work in Oxygen XML Author Eclipse plugin, see the sample files in the following directory: [OXYGEN_INSTALL_DIR]/samples/form-controls.
For more information about form controls, watch our video demonstration: