Squiz Matrix
4.12.2
Main Page
Related Pages
Namespaces
Data Structures
Files
File List
All
Data Structures
Namespaces
Functions
Variables
Pages
view_source.inc
1
<?php
18
global $ROOT_PATH;
19
include_once($ROOT_PATH.
'wysiwyg_plugin.inc'
);
20
33
class
View_Source
extends
Wysiwyg_Plugin
34
{
35
43
function
View_Source
()
44
{
45
$this->_add_button(
'htmlmode'
,
'HtmlMode'
,
'Toggle HTML Source'
,
'true'
,
'3'
);
46
47
}
//end constructor
48
49
56
function
print_plugin_button_click
()
57
{
58
?>
59
case
"htmlmode"
:
60
this.setMode(this._editMode !=
"textmode"
?
"textmode"
:
"wysiwyg"
);
61
break
;
62
<?php
63
64
}
//end print_plugin_button_click()
65
66
73
function
print_plugin_update_toolbar
()
74
{
75
?>
76
case
"htmlmode"
:
77
btn.state(
"active"
, text);
78
break
;
79
<?php
80
81
}
//end print_plugin_update_toolbar()
82
83
}
//end class
84
85
?>
squiz_matrix
fudge
wysiwyg
plugins
view_source
view_source.inc
Generated on Tue Jan 29 2013 14:04:53 for Squiz Matrix by
1.8.3.1