<htmlarea>, нужны мнения
От: c-smile Канада http://terrainformatica.com
Дата: 22.10.05 16:21
Оценка:
Вот на очереди (в HTMLayout) имплементация <htmlarea>

<htmlarea> — это WYSIWYG редактор аналогичный <textarea> — т.е. submitable как и все остальные input fields.

Извиняюсь что на буржуйском — просто этот текст из моего сообщения на W3C группе

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>


На самом деле <htmlarea> можно управлять по всякому и так но
нужен некий простой набор по умолчанию.

Что бы еще сообществу хотелось видеть?
 
Подождите ...
Wait...
Пока на собственное сообщение не было ответов, его можно удалить.