19 include_once($ROOT_PATH.
'wysiwyg_plugin.inc');
45 $this->_add_button(
'justifyleft',
'JustifyLeft',
'Justify Left',
'false',
'22');
46 $this->_add_button(
'justifycenter',
'JustifyCenter',
'Justify Center',
'false',
'23');
47 $this->_add_button(
'justifyright',
'JustifyRight',
'Justify Right',
'false',
'24');
48 $this->_add_button(
'justifyfull',
'JustifyFull',
'Justify Full',
'false',
'25');
62 <script type=
"text/javascript" language=
"Javascript">
64 HTMLArea.prototype._addAlignAttribute =
function(node) {
65 var current = node.getAttribute(
"align");
67 node.style.textAlign = current;
68 node.removeAttribute(
"align");
71 HTMLArea.prototype._operateTags =
function(tagname) {
72 nodes = document.getElementsByTagName(tagname);
73 for (var i=0; i<nodes.length; i++) {
74 this._addAlignAttribute(nodes[i]);
96 cmd =
"justifycenter";
121 case "justifycenter":
123 this._doc.execCommand(cmdID, UI, param);
124 if (HTMLArea.is_ie) {
125 this._operateTags(
"p");
126 this._operateTags(
"div");
127 this._operateTags(
"h1");
128 this._operateTags(
"h2");
129 this._operateTags(
"h3");
130 this._operateTags(
"h4");
131 this._operateTags(
"h5");
132 this._operateTags(
"h6");