Add an HTML editor and renderer.
Text Molecule | |
Preference Dialog | |
Properties | |
type | string, ( r ) |
pref.name | string, ( r ) |
pref. | string, ( r, w ) |
pref. | string, ( r, w ) |
pref. | string, ( r, w ) |
pref. | string, ( r, w ) |
pref. | string, ( r, w ) |
pref. | string, ( r, w ) |
pref. | string, ( r, w ) |
pref. | string, ( r, w ) |
pref. | string, ( r, w ) |
pref.flow | string, ( r, w ) |
pref. | string, ( r, w ) |
pref.r | int [0, 255], ( r, w ) |
pref.g | int [0, 255], ( r, w ) |
pref.b | int [0, 255], ( r, w ) |
selectable | bool, ( r, w ) |
innerHTML | string, ( r, w ) |
innerText | string, ( r, w ) |
editMode | bool, ( r, w ) |
editText | string, ( r, w ) |
editWrap | string, ( r, w ) |
spellcheck | bool, ( r, w ) |
Functions | |
attach | |
detach | |
delete | |
rename | |
show | |
hide | |
refresh | |
clone | |
serialize |
string, ( r )
The scriptable name for this molecule. This name can be set using rename function dynamically.
string, ( r, w )
Specifies font size of this molecule. Default to medium.
xx-small | 9px (7pt). |
x-small | 10px (7.5pt). |
small | 13px (10pt). |
medium | 16px (12pt). |
large | 18px (13.5pt). |
x-large | 24px (18pt). |
xx-large | 32px (24pt). |
smaller | Sets the font-size to a smaller size than the parent element. |
larger | Sets the font-size to a larger size than the parent element. |
length | Sets the font-size to a fixed size. |
% | Sets the font-size to % of the parent element. |
string, ( r, w )
Specifies font weight.
normal | Default. Defines normal characters. |
bold | Defines thick characters. |
bolder | Defines thicker characters. |
lighter | Defines lighter characters. |
100 | Defines from thin to thick characters. 400 is the same as normal, and 700 is the same as bold. |
200 | Defines from thin to thick characters. |
300 | Defines from thin to thick characters. |
400 | Defines from thin to thick characters. |
500 | Defines from thin to thick characters. |
600 | Defines from thin to thick characters. |
700 | Defines from thin to thick characters. |
800 | Defines from thin to thick characters. |
900 | Defines from thin to thick characters. |
string, ( r, w )
Accepts a comma-separated list of shadow effects to be applied to the text and text-decorations of the element. Each shadow effect is specified as <color> <offset-x> <offset-y> <blur-radius>. Multiple shadow effects are applied front-to-back: the first shadow is on top.
color | The color of the text-shadow (#6374AB). |
offset-x | The x-coordinate of the text-shadow (20px), relative to the text. |
offset-y | The y-coordinate of the text-shadow (-12px), relative to the text. |
blur-radius | The blur radius of the text-shadow (2px). |
string, ( r, w )
Specifies the distance between lines.
normal | Default. Sets a reasonable distance between lines. |
number | Sets a number that will be multiplied with the current font-size to set the distance between the lines. |
length | Sets a fixed distance between the lines. |
% | Sets a distance between the lines in % of the current font size. |
string, ( r, w )
Specifies whether the text should be wrapped when it reaches the right side of the textbox.
off | Default. No wrap. |
soft | The browser inserts line breaks while displaying the text, but no actual line breaks in the text value. |
hard | The browser inserts real line breaks in the text value. |