Squiz Matrix
4.12.2
Main Page
Related Pages
Namespaces
Data Structures
Files
File List
All
Data Structures
Namespaces
Functions
Variables
Pages
insert_link.inc
1
<?php
18
global $ROOT_PATH;
19
include_once($ROOT_PATH.
'wysiwyg_plugin.inc'
);
20
33
class
insert_link
extends
wysiwyg_plugin
34
{
35
43
function
insert_link
()
44
{
45
$this->
_add_button
(
'createlink'
,
'CreateLink'
,
'Insert Web Link'
,
'false'
,
'32'
);
46
$this->
_add_button
(
'unlink'
,
'Unlink'
,
'Remove Link'
,
'false'
,
'33'
);
47
}
48
49
57
function
print_plugin_button_click
()
58
{
59
?>
60
case
"createlink"
:
61
this._execCommand(cmd,
true
);
62
break
;
63
<?php
64
}
65
66
74
function
print_plugin_exec_command
()
75
{
76
?>
77
case
"createlink"
:
78
if
(HTMLArea.is_ie || !UI) {
79
this._doc.execCommand(cmdID, UI, param);
80
}
else
{
81
// browser is Mozilla & wants UI
82
if
((param = prompt(
"Enter URL"
))) {
83
this._doc.execCommand(cmdID,
false
, param);
84
}
85
}
86
break
;
87
<?php
88
}
89
}
90
91
?>
squiz_matrix
fudge
wysiwyg
plugins
insert_link
insert_link.inc
Generated on Tue Jan 29 2013 14:04:53 for Squiz Matrix by
1.8.3.1