25 require_once dirname(__FILE__).
'/../../../../core/include/init.inc';
26 if (empty($GLOBALS[
'SQ_SYSTEM']->user) || !($GLOBALS[
'SQ_SYSTEM']->user->canAccessBackend() || $GLOBALS[
'SQ_SYSTEM']->user->type() ==
'simple_edit_user')){
30 require_once dirname(__FILE__).
'/../../wysiwyg_plugin.inc';
36 htmlArea v3.0 - Copyright (c) 2003 interactivetools.com, inc.
37 This notice MUST stay intact
for use (see license.txt).
39 A free WYSIWYG editor replacement for <textarea> fields.
40 For full source code and docs, visit http:
42 Version 3.0 developed by Mihai Bazon
for InteractiveTools.
45 Modifications
for PHP Plugin Based System
46 developed by Greg Sherwood
for Squiz.Net.
50 Spell Checker Modifications
for PHP Plugin Based System
51 developed by Marc McIntyre
for Squiz.Net.
56 <html style=
"width: 600px; height: 400px">
58 <title>Spell Checker</title>
59 <meta http-equiv=
"Content-Type" content=
"text/html; charset=utf-8" />
60 <script type=
"text/javascript" src=
"../../core/popup.js"></script>
63 list($lang, $country, $variant) = $GLOBALS[
'SQ_SYSTEM']->lm->getLocaleParts($GLOBALS[
'SQ_SYSTEM']->lm->getCurrentLocale());
65 $include_list[] = sq_web_path(
'lib').
'/js/general.js';
66 $include_list[] = sq_web_path(
'lib').
'/js/translation.js';
68 if (file_exists(SQ_DATA_PATH.
'/public/system/core/js_strings.'.$lang.
'.js')) {
69 $include_list[] = sq_web_path(
'data').
'/system/core/js_strings.'.$lang.
'.js';
72 if (!empty($country)) {
73 if (file_exists(SQ_DATA_PATH.
'/public/system/core/js_strings.'.$lang.
'_'.$country.
'.js')) {
74 $include_list[] = sq_web_path(
'data').
'/system/core/js_strings.'.$lang.
'_'.$country.
'.js';
77 if (!empty($variant)) {
78 if (file_exists(SQ_DATA_PATH.
'/public/system/core/js_strings.'.$lang.
'_'.$country.
'@'.$variant.
'.js')) {
79 $include_list[] = sq_web_path(
'data').
'/system/core/js_strings.'.$lang.
'_'.$country.
'@'.$variant.
'.js';
85 foreach($include_list as $link) {
86 ?><script type=
"text/javascript" src=
"<?php echo $link; ?>"></script><?php
90 <script type=
"text/javascript">
91 var parent_object = opener.editor_<?php echo preg_replace(
'/[\'"\(\);\[\]{}<>=]+/',
'', $_REQUEST[
'editor_name']); ?>._object;
93 window.opener.onFocus =
function() { getFocus(); }
94 parent_object.onFocus =
function() { getFocus(); }
97 setTimeout(
'self.focus()',100);
101 __dlg_init(
"spellChecker");
105 var param =
new Object();
106 param[
"html"] = makeCleanDoc(
false);
107 __dlg_close(
"spellChecker", param);
111 function onCancel() {
112 __dlg_close(
"spellChecker", null);
117 <script type=
"text/javascript" src=
"<?php echo $_SERVER['PHP_SELF'].'/../../'.$plugin->get_popup_href('spell_checker.js', 'spell_checker')?>"></script>
119 <style type=
"text/css">
121 font-family: Verdana, Arial, Helvetica, san-serif;
124 text-decoration: none;
125 background-color: #402F48;
131 color: #FFFFFF; text-decoration: none;
135 color: #B7A9BD; text-decoration: underline;
139 background-color: #402F48; color: ButtonText;
140 font-family: tahoma,verdana,sans-serif; font-size: 11px;
144 background-color:#402F48;
146 font-family: tahoma,verdana,sans-serif; font-size: 11px;
149 .controls .sectitle {
151 font-weight: bold; padding: 2px 4px;
162 font-family: tahoma,verdana,sans-serif; font-size: 11px;
166 width: 6em; padding: 0px;
170 font-family: fixed,
"andale mono",monospace;
175 color: #A7A1AA; font-weight: bold; font-size: 120%;
179 padding: 0px 0px 0px 5px;
188 font-family: Verdana,Arial,Helvetica;
194 border-color: #402F48;
201 font-family: Verdana,Arial,Helvetica;
207 border-color: #7D7582;
212 background-color: #7D7582;
220 border-color: #7D7582;
221 padding: 0px 0px 0px 0px;
230 <body onLoad=
"Init(); initDocument(); if (opener) opener.blockEvents('spellChecker')" onUnload=
"if (opener) opener.unblockEvents(); parent_object._tmp['disable_toolbar'] = false; parent_object.updateToolbar();">
231 <form style=
"display: none;" action=
"spell_checker.php" method=
"post" target=
"framecontent" accept-charset=
"utf-8">
232 <input type=
"hidden" name=
"content" id=
"f_content"/>
233 <input type=
"hidden" name=
"dictionary" id=
"f_dictionary"/>
234 <input type=
"hidden" name=
"init" id=
"f_init" value=
"1"/>
236 <table
class=
"major_table" cellspacing=
"0" cellpadding=
"0">
238 <td
class=
"status_div" colspan=
"2">
239 <table width=
"100%" cellpadding=
"0" cellspacing=
"0">
241 <td
class=
"status_div">
242 <span
id=
"status" class=
"status"> <?php echo translate(
'please_wait'); ?>...</span>
244 <td
class=
"status_div">
245 <!-- hiding the dictionary chooser
for now -->
246 <span style=
"float: right; display: none">
247 <span
class=
"status"><?php echo translate(
'dictionary'); ?></span>
248 <select
id=
"v_dictionaries" style=
"width: 10em"></select>
249 <button
class=
"button2" id=
"b_recheck"><?php echo translate(
're-check'); ?></button>
257 <td valign=
"top" class=
"controls" nowrap>
258 <div
class=
"sectitle"><?php echo translate(
'original_word'); ?></div>
259 <div
class=
"secbody" id=
"v_currentWord" style=
"text-align: center"><?php echo translate(
'please_wait'); ?>...</div>
260 <div
class=
"sectitle"><?php echo translate(
'replace_with'); ?></div>
261 <div
class=
"secbody">
262 <input type=
"text" id=
"v_replacement" style=
"width: 94%; margin-left: 3%; align: center" /><br />
263 <div style=
"text-align: center; margin-top: 2px;" nowrap>
264 <button
class=
"button" id=
"b_replace"><?php echo translate(
'replace'); ?></button>
265 <button
class=
"button" id=
"b_replall"><?php echo translate(
'replace_all'); ?></button><br />
266 <button
class=
"button" id=
"b_ignore"><?php echo translate(
'ignore'); ?></button>
267 <button
class=
"button" id=
"b_ignall"><?php echo translate(
'ignore_all'); ?></button>
270 <div
class=
"sectitle"><?php echo translate(
'suggestions'); ?></div>
271 <div
class=
"secbody">
272 <select size=
"11" style=
"width: 94%; margin-left: 3%;" id=
"v_suggestions"></select>
274 <div valign=
"top" class=
"secbody" align=
"center" nowrap>
275 <button
class=
"button" id=
"b_ok" onclick=
"return onOK();"><?php echo translate(
'ok'); ?></button>
276 <button
class=
"button" id=
"b_cancel" onclick=
"return onCancel();"><?php echo translate(
'cancel'); ?></button>
280 <table width=
"100%" height=
"100%">
283 <iframe src=
"about:blank" width=
"100%" height=
"100%" id=
"i_framecontent" name=
"framecontent" class=
"f_content"></iframe>