32 $code =
"<img src='{$this->image_path}/wiki.gif' alt='" .XoopsLocale::WIKI .
"' onclick='xoopsCodeWiki(\"{$textarea_id}\",\"" . htmlspecialchars(
XoopsLocale::WIKI_WORD_TO_LINK, ENT_QUOTES) .
"\");' onmouseover='style.cursor=\"hand\"'/> ";
34 function xoopsCodeWiki(
id, enterWikiPhrase){
35 if (enterWikiPhrase == null) {
36 enterWikiPhrase =
"Enter the word to be linked to Wiki:";
38 var selection = xoopsGetSelect(
id);
39 if (selection.length > 0) {
42 var text = prompt(enterWikiPhrase,
"");
44 var domobj = xoopsGetElementById(
id);
45 if ( text != null && text !=
"" ) {
46 var result =
"[[" + text +
"]]";
47 xoopsInsertText(domobj, result);
58 return self::decode( $match[1] );
69 $ts->callbackPatterns[] =
"/\[\[([^\]]*)\]\]/sU";
70 $ts->callbacks[] = __CLASS__ .
"::myCallback";
79 $config = parent::loadConfig(__DIR__);
83 $charset = !empty(
$config[
'charset']) ?
$config[
'charset'] :
"UTF-8";
load(MyTextSanitizer &$ts)
static convert_encoding($text, $to= 'utf-8', $from= '')
static decode($url, $width, $height)
static myCallback($match)