19 include_once($ROOT_PATH.
'wysiwyg_plugin.inc');
46 wysiwyg_plugin::wysiwyg_plugin($wysiwyg);
47 $this->
_add_button(
'selectall',
'SelectAll',
'Select All',
'false',
'6');
48 $this->
_add_button(
'inserthorizontalrule',
'InsertHorizontalRule',
'Horizontal Rule',
'false',
'31');
64 <script type=
"text/javascript" language=
"Javascript">
65 HTMLArea.prototype._insertHorizontalRule =
function() {
66 this.surroundHTML(
'',
'<hr>');
86 case "inserthorizontalrule":
87 if (HTMLArea.is_gecko) {
88 this._insertHorizontalRule();
89 }
else if (HTMLArea.is_ie) {
90 this._doc.execCommand(
'InsertHorizontalRule');
108 if (!HTMLArea.is_ie) {
110 sel = this._getSelection();
111 sel.removeAllRanges();
112 range = this._createRange();
113 range.selectNodeContents(this._doc.body);
115 HTMLArea._stopEvent(ev);