19 include_once($ROOT_PATH.
'wysiwyg_plugin.inc');
41 var $keyword_tag =
'';
52 var $keywords = Array();
62 $this->_add_button(
'addkeyword',
'',
'',
'',
'');
76 this.config.keywords = Array(
79 foreach ($this->keywords as $keyword => $name) {
80 $keyword = str_replace(Array(
'"',
"\r",
"\n"), Array(
'\"',
'\r',
'\n'), $keyword);
82 $name = ucwords(str_replace(
'_',
' ', $keyword));
84 $name = str_replace(Array(
'"',
"\r",
"\n"), Array(
'\"',
'\r',
'\n'), $name);
87 $string .=
"\n".
'Array("'.$this->keyword_tag.$keyword.$this->keyword_tag.
'", "'.$name.
'"),';
89 echo trim($string,
', ');
108 options[
"-- select keyword --"] =
"";
109 for (var i in editor.config.keywords) {
110 var keyword = editor.config.keywords[i];
111 options[keyword[1]] = keyword[0];
131 this.insertHTML(value);
132 el.selectedIndex = 0;