От: | c-smile | http://terrainformatica.com | |
Дата: | 22.10.05 16:21 | ||
Оценка: |
major attributes of htmlarea:
src — url, source of the content, optional.
Otherwise takes initial content in-place between
<htmlarea> and </htmlarea>
allow — string, comma delimited list of tag names of allowed
elements in the content.
reject — string, comma delimited list of tag names of forbidden
elements in the content.
format — string, name of "rich text" format of the value of
the field, possible values: "html", "wiki", "blog", some other.
imagelist — url, list of images allowed to be inserted,
Our htmlarea input element is a block element and can be placed as display:
block and display:inline-block.
It inherits CSS styling of the content from its host document. It also knows
about overflow CSS attribute
so it can be used as pure in-place editor or as editable area with fixed size.
<htmlarea>
<strong>Маша</strong> мыла <em>Вову</em>
</htmlarea>
<div id="toolbar">
<input type="checkbox" for="editor" bindto="strong">
</div>
<htmlarea id="editor">
<strong>Маша</strong> мыла <em>Вову</em>
</htmlarea>