Squiz Matrix
4.12.2
Main Page
Related Pages
Namespaces
Data Structures
Files
File List
All
Data Structures
Namespaces
Functions
Variables
Pages
citation.inc
1
<?php
18
global $ROOT_PATH;
19
include_once($ROOT_PATH.
'wysiwyg_plugin.inc'
);
20
34
class
Citation
extends
WYSIWYG_Plugin
35
{
36
37
45
function
Citation
(&$wysiwyg)
46
{
47
wysiwyg_plugin::wysiwyg_plugin($wysiwyg);
48
//$this->_add_button('citation','Citation','Insert Citation','false','35');
49
$this->_add_button(
'cite'
,
'Cite'
,
'Cite'
,
'false'
,
'35'
);
50
51
}
//end constructor
52
53
60
function
print_plugin_exec_command
()
61
{
62
?>
63
case
"cite"
:
64
if
(!this._doc.queryCommandState(
"cite"
)) {
65
this.surroundHTML(
"<cite>"
,
"</cite>"
);
66
}
else
{
67
this._doc.execCommand(cmdID, UI, param);
68
alert(
"hello2 cmdID:"
+ cmdID +
" UI:"
+ UI +
" param:"
+ param);
69
}
70
break
;
71
<?php
72
73
}
//end print_plugin_exec_command()
74
75
82
/* function print_plugin_button_click()
83
{
84
?>
85
case "citation":
86
alert('citation');
87
this.surroundHTML('<cite>', '</cite>');
88
alert('citation');
89
break;
90
<?php
91
92
}//end print_plugin_button_click()
93
*/
94
95
96
}
//end class
97
98
?>
squiz_matrix
fudge
wysiwyg
plugins
misc_accessibility
citation.inc
Generated on Tue Jan 29 2013 14:04:53 for Squiz Matrix by
1.8.3.1