19 include_once($ROOT_PATH.
'wysiwyg_plugin.inc');
20 require_once dirname(__FILE__).
'/../../../../core/include/init.inc';
47 wysiwyg_plugin::wysiwyg_plugin($wysiwyg);
48 $this->
_add_button(
'insertspecialchar',
'InsertSpecialChar',
'Insert Special Character',
'false',
'2');
64 <script type=
"text/javascript" src=
"<?php echo sq_web_path('lib').'/js/general.js' ?>"></script>
66 <script type=
"text/javascript" language=
"Javascript">
69 HTMLArea.prototype._insertSpecialChar =
function() {
71 var sel = this._getSelection();
72 var range = this._createRange(sel);
75 if (this._inPopup ==
true) { in_popup =
'1'; }
79 editor_<?php echo $this->
wysiwyg->name?>._object =
this;
80 var strPage =
"<?php echo $this->get_popup_href('char_map.php')?>?width=" + Width +
'&height=' + Height;
81 this._popupDialog(
"insertSpecialChar", strPage, Width, Height,
true,
function(param) {
83 var html = param[
'entity'];
84 html = html.toString();
85 editor.insertHTML(html, range);
227 HTMLArea.prototype.entities = Array(
229 foreach ($entities as $val) {
230 echo
'\''.$val.
'\',
';
233 '&dummycharactercode
');
237 }//end paint_generic()
246 function print_plugin_shortcuts()
249 }//end print_plugin_shortcuts()
258 function print_plugin_button_click()
261 case "insertspecialchar":
262 this._insertSpecialChar();
266 }//end print_plugin_button_click()