Editor widget == Description == The //editor// widget enables client side wysiwyg. ~~ Note: ,( :style { font-weight: bold; color: red } [ The markups presented in this page are not yet supported on client side programming. They are only supported on server side.]) == Synopsis == === Server === (> args ...) === Client === === Requirements === Client codes using //Editors// need to load the script ++hop-editor.js++. They also need to load the ++hop-editor.css++ style sheet. Hence, documents using //editors// must include in their header, the following statement: ( :include "hop-editor") == Examples == == Server Definitions == === ++++ === ^ attributes ^ type ^ default ^ short description ^ | :id | string | //random// | element identifier. | | :width | dimension | //100%// | the width | | :heigh | dimension | //600px// | the height | | :name | string | | name (used in forms only) | | :onsubmit | expr | see below | action associated to submit button | | :oncancel | expr | see below | action associated to cancel button | | body | xml | | the initial content. | By default, the ++onsubmit++ and ++oncancel++ client actions check if the editor is embedded in a form. If it is, the default actions invoke those of the form. Otherwise, they do nothing. ~~ The receiver object (i.e., ++this++) of editor actions is the editor itself. == Style == == See also ==