Remove old tinymce files. see #5674
git-svn-id: http://svn.automattic.com/wordpress/trunk@6636 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
@ -1,30 +0,0 @@
|
|||
/* Import plugin specific language pack */
|
||||
tinyMCE.importPluginLanguagePack('autosave', 'en,sv,cs,he,no,hu,de,da,ru,ru_KOI8-R,ru_UTF-8,fi,cy,es,is,pl');
|
||||
|
||||
function TinyMCE_autosave_getInfo() {
|
||||
return {
|
||||
longname : 'Auto save',
|
||||
author : 'Moxiecode Systems',
|
||||
authorurl : 'http://tinymce.moxiecode.com',
|
||||
infourl : 'http://tinymce.moxiecode.com/tinymce/docs/plugin_autosave.html',
|
||||
version : tinyMCE.majorVersion + "." + tinyMCE.minorVersion
|
||||
};
|
||||
};
|
||||
|
||||
function TinyMCE_autosave_beforeUnloadHandler() {
|
||||
var msg = tinyMCE.getLang("lang_autosave_unload_msg");
|
||||
|
||||
var anyDirty = false;
|
||||
for (var n in tinyMCE.instances) {
|
||||
var inst = tinyMCE.instances[n];
|
||||
if (!tinyMCE.isInstance(inst))
|
||||
continue;
|
||||
|
||||
if (inst.isDirty())
|
||||
return msg;
|
||||
}
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
window.onbeforeunload = TinyMCE_autosave_beforeUnloadHandler;
|
Before Width: | Height: | Size: 155 B |
Before Width: | Height: | Size: 153 B |
|
@ -1,6 +0,0 @@
|
|||
// UK lang variables
|
||||
|
||||
tinyMCE.addToLang('',{
|
||||
directionality_ltr_desc : 'Direction left to right (Alt-.)',
|
||||
directionality_rtl_desc : 'Direction right to left (Alt-,)'
|
||||
});
|
|
@ -1,69 +0,0 @@
|
|||
/* Window classes */
|
||||
|
||||
.mceWindow {
|
||||
position: absolute;
|
||||
left: 0;
|
||||
top: 0;
|
||||
border: 1px solid black;
|
||||
background-color: #D4D0C8;
|
||||
}
|
||||
|
||||
.mceWindowHead {
|
||||
background-color: #334F8D;
|
||||
width: 100%;
|
||||
height: 18px;
|
||||
cursor: move;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.mceWindowBody {
|
||||
clear: both;
|
||||
background-color: white;
|
||||
}
|
||||
|
||||
.mceWindowStatusbar {
|
||||
background-color: #D4D0C8;
|
||||
height: 12px;
|
||||
border-top: 1px solid black;
|
||||
}
|
||||
|
||||
.mceWindowTitle {
|
||||
float: left;
|
||||
font-family: "MS Sans Serif";
|
||||
font-size: 9pt;
|
||||
font-weight: bold;
|
||||
line-height: 18px;
|
||||
color: white;
|
||||
margin-left: 2px;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.mceWindowHeadTools {
|
||||
margin-right: 2px;
|
||||
}
|
||||
|
||||
.mceWindowClose, .mceWindowMinimize, .mceWindowMaximize {
|
||||
display: block;
|
||||
float: right;
|
||||
overflow: hidden;
|
||||
margin-top: 2px;
|
||||
}
|
||||
|
||||
.mceWindowClose {
|
||||
margin-left: 2px;
|
||||
}
|
||||
|
||||
.mceWindowMinimize {
|
||||
}
|
||||
|
||||
.mceWindowMaximize {
|
||||
}
|
||||
|
||||
.mceWindowResize {
|
||||
display: block;
|
||||
float: right;
|
||||
overflow: hidden;
|
||||
cursor: se-resize;
|
||||
width: 12px;
|
||||
height: 12px;
|
||||
}
|
Before Width: | Height: | Size: 43 B |
Before Width: | Height: | Size: 110 B |
Before Width: | Height: | Size: 111 B |
Before Width: | Height: | Size: 112 B |
Before Width: | Height: | Size: 74 B |
|
@ -1,453 +0,0 @@
|
|||
/**
|
||||
* $Id: mcwindows.js 18 2006-06-29 14:11:23Z spocke $
|
||||
*
|
||||
* Moxiecode DHTML Windows script.
|
||||
*
|
||||
* @author Moxiecode
|
||||
* @copyright Copyright © 2004, Moxiecode Systems AB, All rights reserved.
|
||||
*/
|
||||
|
||||
// Windows handler
|
||||
function MCWindows() {
|
||||
this.settings = new Array();
|
||||
this.windows = new Array();
|
||||
this.isMSIE = (navigator.appName == "Microsoft Internet Explorer");
|
||||
this.isGecko = navigator.userAgent.indexOf('Gecko') != -1;
|
||||
this.isSafari = navigator.userAgent.indexOf('Safari') != -1;
|
||||
this.isMac = navigator.userAgent.indexOf('Mac') != -1;
|
||||
this.isMSIE5_0 = this.isMSIE && (navigator.userAgent.indexOf('MSIE 5.0') != -1);
|
||||
this.action = "none";
|
||||
this.selectedWindow = null;
|
||||
this.zindex = 100;
|
||||
this.mouseDownScreenX = 0;
|
||||
this.mouseDownScreenY = 0;
|
||||
this.mouseDownLayerX = 0;
|
||||
this.mouseDownLayerY = 0;
|
||||
this.mouseDownWidth = 0;
|
||||
this.mouseDownHeight = 0;
|
||||
};
|
||||
|
||||
MCWindows.prototype.init = function(settings) {
|
||||
this.settings = settings;
|
||||
|
||||
if (this.isMSIE)
|
||||
this.addEvent(document, "mousemove", mcWindows.eventDispatcher);
|
||||
else
|
||||
this.addEvent(window, "mousemove", mcWindows.eventDispatcher);
|
||||
|
||||
this.addEvent(document, "mouseup", mcWindows.eventDispatcher);
|
||||
};
|
||||
|
||||
MCWindows.prototype.getParam = function(name, default_value) {
|
||||
var value = null;
|
||||
|
||||
value = (typeof(this.settings[name]) == "undefined") ? default_value : this.settings[name];
|
||||
|
||||
// Fix bool values
|
||||
if (value == "true" || value == "false")
|
||||
return (value == "true");
|
||||
|
||||
return value;
|
||||
};
|
||||
|
||||
MCWindows.prototype.eventDispatcher = function(e) {
|
||||
e = typeof(e) == "undefined" ? window.event : e;
|
||||
|
||||
if (mcWindows.selectedWindow == null)
|
||||
return;
|
||||
|
||||
// Switch focus
|
||||
if (mcWindows.isGecko && e.type == "mousedown") {
|
||||
var elm = e.currentTarget;
|
||||
|
||||
for (var n in mcWindows.windows) {
|
||||
var win = mcWindows.windows[n];
|
||||
if (typeof(win) == 'function')
|
||||
continue;
|
||||
|
||||
if (win.headElement == elm || win.resizeElement == elm) {
|
||||
win.focus();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
switch (e.type) {
|
||||
case "mousemove":
|
||||
mcWindows.selectedWindow.onMouseMove(e);
|
||||
break;
|
||||
|
||||
case "mouseup":
|
||||
mcWindows.selectedWindow.onMouseUp(e);
|
||||
break;
|
||||
|
||||
case "mousedown":
|
||||
mcWindows.selectedWindow.onMouseDown(e);
|
||||
break;
|
||||
|
||||
case "focus":
|
||||
mcWindows.selectedWindow.onFocus(e);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
MCWindows.prototype.addEvent = function(obj, name, handler) {
|
||||
if (this.isMSIE)
|
||||
obj.attachEvent("on" + name, handler);
|
||||
else
|
||||
obj.addEventListener(name, handler, true);
|
||||
};
|
||||
|
||||
MCWindows.prototype.cancelEvent = function(e) {
|
||||
if (this.isMSIE) {
|
||||
e.returnValue = false;
|
||||
e.cancelBubble = true;
|
||||
} else
|
||||
e.preventDefault();
|
||||
};
|
||||
|
||||
MCWindows.prototype.parseFeatures = function(opts) {
|
||||
// Cleanup the options
|
||||
opts = opts.toLowerCase();
|
||||
opts = opts.replace(/;/g, ",");
|
||||
opts = opts.replace(/[^0-9a-z=,]/g, "");
|
||||
|
||||
var optionChunks = opts.split(',');
|
||||
var options = new Array();
|
||||
|
||||
options['left'] = 10;
|
||||
options['top'] = 10;
|
||||
options['width'] = 300;
|
||||
options['height'] = 300;
|
||||
options['resizable'] = true;
|
||||
options['minimizable'] = true;
|
||||
options['maximizable'] = true;
|
||||
options['close'] = true;
|
||||
options['movable'] = true;
|
||||
|
||||
if (opts == "")
|
||||
return options;
|
||||
|
||||
for (var i=0; i<optionChunks.length; i++) {
|
||||
var parts = optionChunks[i].split('=');
|
||||
|
||||
if (parts.length == 2)
|
||||
options[parts[0]] = parts[1];
|
||||
}
|
||||
|
||||
return options;
|
||||
};
|
||||
|
||||
MCWindows.prototype.open = function(url, name, features) {
|
||||
var win = new MCWindow();
|
||||
var winDiv, html = "", id;
|
||||
|
||||
features = this.parseFeatures(features);
|
||||
|
||||
// Create div
|
||||
id = "mcWindow_" + name;
|
||||
|
||||
width = parseInt(features['width']);
|
||||
height = parseInt(features['height'])-12-19;
|
||||
|
||||
if (this.isMSIE)
|
||||
width -= 2;
|
||||
|
||||
// Setup first part of window
|
||||
win.id = id;
|
||||
win.url = url;
|
||||
win.name = name;
|
||||
win.features = features;
|
||||
this.windows[name] = win;
|
||||
|
||||
iframeWidth = width;
|
||||
iframeHeight = height;
|
||||
|
||||
// Create inner content
|
||||
html += '<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">';
|
||||
html += '<html>';
|
||||
html += '<head>';
|
||||
html += '<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">';
|
||||
html += '<title>Wrapper iframe</title>';
|
||||
html += '<link href="../jscripts/tiny_mce/themes/advanced/css/editor_ui.css" rel="stylesheet" type="text/css" />';
|
||||
html += '</head>';
|
||||
html += '<body onload="parent.mcWindows.onLoad(\'' + name + '\');">';
|
||||
|
||||
html += '<div id="' + id + '_container" class="mceWindow">';
|
||||
html += '<div id="' + id + '_head" class="mceWindowHead" onmousedown="parent.mcWindows.windows[\'' + name + '\'].focus();">';
|
||||
html += ' <div id="' + id + '_title" class="mceWindowTitle"';
|
||||
html += ' onselectstart="return false;" unselectable="on" style="-moz-user-select: none !important;">No name window</div>';
|
||||
html += ' <div class="mceWindowHeadTools">';
|
||||
html += ' <a href="javascript:parent.mcWindows.windows[\'' + name + '\'].close();" onmousedown="return false;" class="mceWindowClose"><img border="0" src="../jscripts/tiny_mce/themes/advanced/images/window_close.gif" /></a>';
|
||||
// html += ' <a href="javascript:mcWindows.windows[\'' + name + '\'].maximize();" onmousedown="return false;" class="mceWindowMaximize"></a>';
|
||||
// html += ' <a href="javascript:mcWindows.windows[\'' + name + '\'].minimize();" onmousedown="return false;" class="mceWindowMinimize"></a>';
|
||||
html += ' </div>';
|
||||
html += '</div><div id="' + id + '_body" class="mceWindowBody" style="width: ' + width + 'px; height: ' + height + 'px;">';
|
||||
html += '<iframe id="' + id + '_iframe" name="' + id + '_iframe" onfocus="parent.mcWindows.windows[\'' + name + '\'].focus();" frameborder="0" width="' + iframeWidth + '" height="' + iframeHeight + '" src="' + url + '" class="mceWindowBodyIframe"></iframe></div>';
|
||||
html += '<div id="' + id + '_statusbar" class="mceWindowStatusbar" onmousedown="parent.mcWindows.windows[\'' + name + '\'].focus();">';
|
||||
html += '<div id="' + id + '_resize" class="mceWindowResize"><img onmousedown="parent.mcWindows.windows[\'' + name + '\'].focus();" border="0" src="../jscripts/tiny_mce/themes/advanced/images/window_resize.gif" /></div>';
|
||||
html += '</div>';
|
||||
html += '</div>';
|
||||
|
||||
html += '</body>';
|
||||
html += '</html>';
|
||||
|
||||
// Create iframe
|
||||
this.createFloatingIFrame(id, features['left'], features['top'], features['width'], features['height'], html);
|
||||
};
|
||||
|
||||
// Gets called when wrapper iframe is initialized
|
||||
MCWindows.prototype.onLoad = function(name) {
|
||||
var win = mcWindows.windows[name];
|
||||
var id = "mcWindow_" + name;
|
||||
var wrapperIframe = window.frames[id + "_iframe"].frames[0];
|
||||
var wrapperDoc = window.frames[id + "_iframe"].document;
|
||||
var doc = window.frames[id + "_iframe"].document;
|
||||
var winDiv = document.getElementById("mcWindow_" + name + "_div");
|
||||
var realIframe = window.frames[id + "_iframe"].frames[0];
|
||||
|
||||
// Set window data
|
||||
win.id = "mcWindow_" + name + "_iframe";
|
||||
win.winElement = winDiv;
|
||||
win.bodyElement = doc.getElementById(id + '_body');
|
||||
win.iframeElement = doc.getElementById(id + '_iframe');
|
||||
win.headElement = doc.getElementById(id + '_head');
|
||||
win.titleElement = doc.getElementById(id + '_title');
|
||||
win.resizeElement = doc.getElementById(id + '_resize');
|
||||
win.containerElement = doc.getElementById(id + '_container');
|
||||
win.left = win.features['left'];
|
||||
win.top = win.features['top'];
|
||||
win.frame = window.frames[id + '_iframe'].frames[0];
|
||||
win.wrapperFrame = window.frames[id + '_iframe'];
|
||||
win.wrapperIFrameElement = document.getElementById(id + "_iframe");
|
||||
|
||||
// Add event handlers
|
||||
mcWindows.addEvent(win.headElement, "mousedown", mcWindows.eventDispatcher);
|
||||
mcWindows.addEvent(win.resizeElement, "mousedown", mcWindows.eventDispatcher);
|
||||
|
||||
if (mcWindows.isMSIE) {
|
||||
mcWindows.addEvent(realIframe.document, "mousemove", mcWindows.eventDispatcher);
|
||||
mcWindows.addEvent(realIframe.document, "mouseup", mcWindows.eventDispatcher);
|
||||
} else {
|
||||
mcWindows.addEvent(realIframe, "mousemove", mcWindows.eventDispatcher);
|
||||
mcWindows.addEvent(realIframe, "mouseup", mcWindows.eventDispatcher);
|
||||
mcWindows.addEvent(realIframe, "focus", mcWindows.eventDispatcher);
|
||||
}
|
||||
|
||||
for (var i=0; i<window.frames.length; i++) {
|
||||
if (!window.frames[i]._hasMouseHandlers) {
|
||||
if (mcWindows.isMSIE) {
|
||||
mcWindows.addEvent(window.frames[i].document, "mousemove", mcWindows.eventDispatcher);
|
||||
mcWindows.addEvent(window.frames[i].document, "mouseup", mcWindows.eventDispatcher);
|
||||
} else {
|
||||
mcWindows.addEvent(window.frames[i], "mousemove", mcWindows.eventDispatcher);
|
||||
mcWindows.addEvent(window.frames[i], "mouseup", mcWindows.eventDispatcher);
|
||||
}
|
||||
|
||||
window.frames[i]._hasMouseHandlers = true;
|
||||
}
|
||||
}
|
||||
|
||||
if (mcWindows.isMSIE) {
|
||||
mcWindows.addEvent(win.frame.document, "mousemove", mcWindows.eventDispatcher);
|
||||
mcWindows.addEvent(win.frame.document, "mouseup", mcWindows.eventDispatcher);
|
||||
} else {
|
||||
mcWindows.addEvent(win.frame, "mousemove", mcWindows.eventDispatcher);
|
||||
mcWindows.addEvent(win.frame, "mouseup", mcWindows.eventDispatcher);
|
||||
mcWindows.addEvent(win.frame, "focus", mcWindows.eventDispatcher);
|
||||
}
|
||||
|
||||
this.selectedWindow = win;
|
||||
};
|
||||
|
||||
MCWindows.prototype.createFloatingIFrame = function(id_prefix, left, top, width, height, html) {
|
||||
var iframe = document.createElement("iframe");
|
||||
var div = document.createElement("div");
|
||||
|
||||
width = parseInt(width);
|
||||
height = parseInt(height)+1;
|
||||
|
||||
// Create wrapper div
|
||||
div.setAttribute("id", id_prefix + "_div");
|
||||
div.setAttribute("width", width);
|
||||
div.setAttribute("height", (height));
|
||||
div.style.position = "absolute";
|
||||
div.style.left = left + "px";
|
||||
div.style.top = top + "px";
|
||||
div.style.width = width + "px";
|
||||
div.style.height = (height) + "px";
|
||||
div.style.backgroundColor = "white";
|
||||
div.style.display = "none";
|
||||
|
||||
if (this.isGecko) {
|
||||
iframeWidth = width + 2;
|
||||
iframeHeight = height + 2;
|
||||
} else {
|
||||
iframeWidth = width;
|
||||
iframeHeight = height + 1;
|
||||
}
|
||||
|
||||
// Create iframe
|
||||
iframe.setAttribute("id", id_prefix + "_iframe");
|
||||
iframe.setAttribute("name", id_prefix + "_iframe");
|
||||
iframe.setAttribute("border", "0");
|
||||
iframe.setAttribute("frameBorder", "0");
|
||||
iframe.setAttribute("marginWidth", "0");
|
||||
iframe.setAttribute("marginHeight", "0");
|
||||
iframe.setAttribute("leftMargin", "0");
|
||||
iframe.setAttribute("topMargin", "0");
|
||||
iframe.setAttribute("width", iframeWidth);
|
||||
iframe.setAttribute("height", iframeHeight);
|
||||
// iframe.setAttribute("src", "../jscripts/tiny_mce/blank.htm");
|
||||
// iframe.setAttribute("allowtransparency", "false");
|
||||
iframe.setAttribute("scrolling", "no");
|
||||
iframe.style.width = iframeWidth + "px";
|
||||
iframe.style.height = iframeHeight + "px";
|
||||
iframe.style.backgroundColor = "white";
|
||||
div.appendChild(iframe);
|
||||
|
||||
document.body.appendChild(div);
|
||||
|
||||
// Fixed MSIE 5.0 issue
|
||||
div.innerHTML = div.innerHTML;
|
||||
|
||||
if (this.isSafari) {
|
||||
// Give Safari some time to setup
|
||||
window.setTimeout(function() {
|
||||
doc = window.frames[id_prefix + '_iframe'].document;
|
||||
doc.open();
|
||||
doc.write(html);
|
||||
doc.close();
|
||||
}, 10);
|
||||
} else {
|
||||
doc = window.frames[id_prefix + '_iframe'].window.document
|
||||
doc.open();
|
||||
doc.write(html);
|
||||
doc.close();
|
||||
}
|
||||
|
||||
div.style.display = "block";
|
||||
|
||||
return div;
|
||||
};
|
||||
|
||||
// Window instance
|
||||
function MCWindow() {
|
||||
};
|
||||
|
||||
MCWindow.prototype.focus = function() {
|
||||
this.winElement.style.zIndex = mcWindows.zindex++;
|
||||
mcWindows.selectedWindow = this;
|
||||
};
|
||||
|
||||
MCWindow.prototype.minimize = function() {
|
||||
};
|
||||
|
||||
MCWindow.prototype.maximize = function() {
|
||||
|
||||
};
|
||||
|
||||
MCWindow.prototype.startResize = function() {
|
||||
mcWindows.action = "resize";
|
||||
};
|
||||
|
||||
MCWindow.prototype.startMove = function(e) {
|
||||
mcWindows.action = "move";
|
||||
};
|
||||
|
||||
MCWindow.prototype.close = function() {
|
||||
document.body.removeChild(this.winElement);
|
||||
mcWindows.windows[this.name] = null;
|
||||
};
|
||||
|
||||
MCWindow.prototype.onMouseMove = function(e) {
|
||||
var scrollX = 0;//this.doc.body.scrollLeft;
|
||||
var scrollY = 0;//this.doc.body.scrollTop;
|
||||
|
||||
// Calculate real X, Y
|
||||
var dx = e.screenX - mcWindows.mouseDownScreenX;
|
||||
var dy = e.screenY - mcWindows.mouseDownScreenY;
|
||||
|
||||
switch (mcWindows.action) {
|
||||
case "resize":
|
||||
width = mcWindows.mouseDownWidth + (e.screenX - mcWindows.mouseDownScreenX);
|
||||
height = mcWindows.mouseDownHeight + (e.screenY - mcWindows.mouseDownScreenY);
|
||||
|
||||
width = width < 100 ? 100 : width;
|
||||
height = height < 100 ? 100 : height;
|
||||
|
||||
this.wrapperIFrameElement.style.width = width+2;
|
||||
this.wrapperIFrameElement.style.height = height+2;
|
||||
this.wrapperIFrameElement.width = width+2;
|
||||
this.wrapperIFrameElement.height = height+2;
|
||||
this.winElement.style.width = width;
|
||||
this.winElement.style.height = height;
|
||||
|
||||
height = height-12-19;
|
||||
|
||||
this.containerElement.style.width = width;
|
||||
|
||||
this.iframeElement.style.width = width;
|
||||
this.iframeElement.style.height = height;
|
||||
this.bodyElement.style.width = width;
|
||||
this.bodyElement.style.height = height;
|
||||
this.headElement.style.width = width;
|
||||
//this.statusElement.style.width = width;
|
||||
|
||||
mcWindows.cancelEvent(e);
|
||||
break;
|
||||
|
||||
case "move":
|
||||
this.left = mcWindows.mouseDownLayerX + (e.screenX - mcWindows.mouseDownScreenX);
|
||||
this.top = mcWindows.mouseDownLayerY + (e.screenY - mcWindows.mouseDownScreenY);
|
||||
this.winElement.style.left = this.left + "px";
|
||||
this.winElement.style.top = this.top + "px";
|
||||
|
||||
mcWindows.cancelEvent(e);
|
||||
break;
|
||||
}
|
||||
};
|
||||
|
||||
MCWindow.prototype.onMouseUp = function(e) {
|
||||
mcWindows.action = "none";
|
||||
};
|
||||
|
||||
MCWindow.prototype.onFocus = function(e) {
|
||||
// Gecko only handler
|
||||
var winRef = e.currentTarget;
|
||||
|
||||
for (var n in mcWindows.windows) {
|
||||
var win = mcWindows.windows[n];
|
||||
if (typeof(win) == 'function')
|
||||
continue;
|
||||
|
||||
if (winRef.name == win.id) {
|
||||
win.focus();
|
||||
return;
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
MCWindow.prototype.onMouseDown = function(e) {
|
||||
var elm = mcWindows.isMSIE ? this.wrapperFrame.event.srcElement : e.target;
|
||||
|
||||
var scrollX = 0;//this.doc.body.scrollLeft;
|
||||
var scrollY = 0;//this.doc.body.scrollTop;
|
||||
|
||||
mcWindows.mouseDownScreenX = e.screenX;
|
||||
mcWindows.mouseDownScreenY = e.screenY;
|
||||
mcWindows.mouseDownLayerX = this.left;
|
||||
mcWindows.mouseDownLayerY = this.top;
|
||||
mcWindows.mouseDownWidth = parseInt(this.winElement.style.width);
|
||||
mcWindows.mouseDownHeight = parseInt(this.winElement.style.height);
|
||||
|
||||
if (elm == this.resizeElement.firstChild)
|
||||
this.startResize(e);
|
||||
else
|
||||
this.startMove(e);
|
||||
|
||||
mcWindows.cancelEvent(e);
|
||||
};
|
||||
|
||||
// Global instance
|
||||
var mcWindows = new MCWindows();
|
Before Width: | Height: | Size: 294 B |
Before Width: | Height: | Size: 299 B |
Before Width: | Height: | Size: 205 B |
|
@ -1,38 +0,0 @@
|
|||
function saveContent() {
|
||||
if (document.forms[0].htmlSource.value == '') {
|
||||
tinyMCEPopup.close();
|
||||
return false;
|
||||
}
|
||||
|
||||
tinyMCEPopup.execCommand('mcePasteText', false, {
|
||||
html : document.forms[0].htmlSource.value,
|
||||
linebreaks : document.forms[0].linebreaks.checked
|
||||
});
|
||||
|
||||
tinyMCEPopup.close();
|
||||
}
|
||||
|
||||
function onLoadInit() {
|
||||
tinyMCEPopup.resizeToInnerSize();
|
||||
|
||||
// Remove Gecko spellchecking
|
||||
if (tinyMCE.isGecko)
|
||||
document.body.spellcheck = tinyMCE.getParam("gecko_spellcheck");
|
||||
|
||||
resizeInputs();
|
||||
}
|
||||
|
||||
var wHeight=0, wWidth=0, owHeight=0, owWidth=0;
|
||||
|
||||
function resizeInputs() {
|
||||
if (!tinyMCE.isMSIE) {
|
||||
wHeight = self.innerHeight-80;
|
||||
wWidth = self.innerWidth-17;
|
||||
} else {
|
||||
wHeight = document.body.clientHeight-80;
|
||||
wWidth = document.body.clientWidth-17;
|
||||
}
|
||||
|
||||
document.forms[0].htmlSource.style.height = Math.abs(wHeight) + 'px';
|
||||
document.forms[0].htmlSource.style.width = Math.abs(wWidth) + 'px';
|
||||
}
|
|
@ -1,52 +0,0 @@
|
|||
function saveContent() {
|
||||
var html = document.getElementById("frmData").contentWindow.document.body.innerHTML;
|
||||
|
||||
if (html == ''){
|
||||
tinyMCEPopup.close();
|
||||
return false;
|
||||
}
|
||||
|
||||
tinyMCEPopup.execCommand('mcePasteWord', false, html);
|
||||
tinyMCEPopup.close();
|
||||
}
|
||||
|
||||
function onLoadInit() {
|
||||
tinyMCEPopup.resizeToInnerSize();
|
||||
|
||||
// Fix for endless reloading in FF
|
||||
window.setTimeout('createIFrame();', 10);
|
||||
}
|
||||
|
||||
function createIFrame() {
|
||||
document.getElementById('iframecontainer').innerHTML = '<iframe id="frmData" name="frmData" class="sourceIframe" src="blank.htm" height="280" width="400" frameborder="0" style="background-color:#FFFFFF; width:100%;" dir="ltr" wrap="soft"></iframe>';
|
||||
}
|
||||
|
||||
var wHeight=0, wWidth=0, owHeight=0, owWidth=0;
|
||||
|
||||
function initIframe(doc) {
|
||||
var dir = tinyMCE.selectedInstance.settings['directionality'];
|
||||
|
||||
doc.body.dir = dir;
|
||||
|
||||
// Remove Gecko spellchecking
|
||||
if (tinyMCE.isGecko)
|
||||
doc.body.spellcheck = tinyMCE.getParam("gecko_spellcheck");
|
||||
|
||||
resizeInputs();
|
||||
}
|
||||
|
||||
function resizeInputs() {
|
||||
if (!tinyMCE.isMSIE) {
|
||||
wHeight = self.innerHeight - 80;
|
||||
wWidth = self.innerWidth - 18;
|
||||
} else {
|
||||
wHeight = document.body.clientHeight - 80;
|
||||
wWidth = document.body.clientWidth - 18;
|
||||
}
|
||||
|
||||
var elm = document.getElementById('frmData');
|
||||
if (elm) {
|
||||
elm.style.height = Math.abs(wHeight) + 'px';
|
||||
elm.style.width = Math.abs(wWidth) + 'px';
|
||||
}
|
||||
}
|
|
@ -1,10 +0,0 @@
|
|||
// UK lang variables
|
||||
|
||||
tinyMCE.addToLang('',{
|
||||
paste_text_desc : 'Paste as Plain Text',
|
||||
paste_text_title : 'Use CTRL+V on your keyboard to paste the text into the window.',
|
||||
paste_text_linebreaks : 'Keep linebreaks',
|
||||
paste_word_desc : 'Paste from Word',
|
||||
paste_word_title : 'Use CTRL+V on your keyboard to paste the text into the window.',
|
||||
selectall_desc : 'Select All'
|
||||
});
|
|
@ -1,339 +0,0 @@
|
|||
<?php
|
||||
|
||||
/* Version 0.9, 6th April 2003 - Simon Willison ( http://simon.incutio.com/ )
|
||||
Manual: http://scripts.incutio.com/httpclient/
|
||||
*/
|
||||
|
||||
class HttpClient {
|
||||
// Request vars
|
||||
var $host;
|
||||
var $port;
|
||||
var $path;
|
||||
var $method;
|
||||
var $postdata = '';
|
||||
var $cookies = array();
|
||||
var $referer;
|
||||
var $accept = 'text/xml,application/xml,application/xhtml+xml,text/html,text/plain,image/png,image/jpeg,image/gif,*/*';
|
||||
var $accept_encoding = 'gzip';
|
||||
var $accept_language = 'en-us';
|
||||
var $user_agent = 'Incutio HttpClient v0.9';
|
||||
// Options
|
||||
var $timeout = 20;
|
||||
var $use_gzip = true;
|
||||
var $persist_cookies = true; // If true, received cookies are placed in the $this->cookies array ready for the next request
|
||||
// Note: This currently ignores the cookie path (and time) completely. Time is not important,
|
||||
// but path could possibly lead to security problems.
|
||||
var $persist_referers = true; // For each request, sends path of last request as referer
|
||||
var $debug = false;
|
||||
var $handle_redirects = true; // Auaomtically redirect if Location or URI header is found
|
||||
var $max_redirects = 5;
|
||||
var $headers_only = false; // If true, stops receiving once headers have been read.
|
||||
// Basic authorization variables
|
||||
var $username;
|
||||
var $password;
|
||||
// Response vars
|
||||
var $status;
|
||||
var $headers = array();
|
||||
var $content = '';
|
||||
var $errormsg;
|
||||
// Tracker variables
|
||||
var $redirect_count = 0;
|
||||
var $cookie_host = '';
|
||||
function HttpClient($host, $port=80) {
|
||||
$this->host = $host;
|
||||
$this->port = $port;
|
||||
}
|
||||
function get($path, $data = false) {
|
||||
$this->path = $path;
|
||||
$this->method = 'GET';
|
||||
if ($data) {
|
||||
$this->path .= '?'.$this->buildQueryString($data);
|
||||
}
|
||||
return $this->doRequest();
|
||||
}
|
||||
function post($path, $data) {
|
||||
$this->path = $path;
|
||||
$this->method = 'POST';
|
||||
$this->postdata = $this->buildQueryString($data);
|
||||
return $this->doRequest();
|
||||
}
|
||||
function buildQueryString($data) {
|
||||
$querystring = '';
|
||||
if (is_array($data)) {
|
||||
// Change data in to postable data
|
||||
foreach ($data as $key => $val) {
|
||||
if (is_array($val)) {
|
||||
foreach ($val as $val2) {
|
||||
$querystring .= urlencode($key).'='.urlencode($val2).'&';
|
||||
}
|
||||
} else {
|
||||
$querystring .= urlencode($key).'='.urlencode($val).'&';
|
||||
}
|
||||
}
|
||||
$querystring = substr($querystring, 0, -1); // Eliminate unnecessary &
|
||||
} else {
|
||||
$querystring = $data;
|
||||
}
|
||||
return $querystring;
|
||||
}
|
||||
function doRequest() {
|
||||
// Performs the actual HTTP request, returning true or false depending on outcome
|
||||
if (!$fp = @fsockopen($this->host, $this->port, $errno, $errstr, $this->timeout)) {
|
||||
// Set error message
|
||||
switch($errno) {
|
||||
case -3:
|
||||
$this->errormsg = 'Socket creation failed (-3)';
|
||||
case -4:
|
||||
$this->errormsg = 'DNS lookup failure (-4)';
|
||||
case -5:
|
||||
$this->errormsg = 'Connection refused or timed out (-5)';
|
||||
default:
|
||||
$this->errormsg = 'Connection failed ('.$errno.')';
|
||||
$this->errormsg .= ' '.$errstr;
|
||||
$this->debug($this->errormsg);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
socket_set_timeout($fp, $this->timeout);
|
||||
$request = $this->buildRequest();
|
||||
$this->debug('Request', $request);
|
||||
fwrite($fp, $request);
|
||||
// Reset all the variables that should not persist between requests
|
||||
$this->headers = array();
|
||||
$this->content = '';
|
||||
$this->errormsg = '';
|
||||
// Set a couple of flags
|
||||
$inHeaders = true;
|
||||
$atStart = true;
|
||||
// Now start reading back the response
|
||||
while (!feof($fp)) {
|
||||
$line = fgets($fp, 4096);
|
||||
if ($atStart) {
|
||||
// Deal with first line of returned data
|
||||
$atStart = false;
|
||||
if (!preg_match('/HTTP\/(\\d\\.\\d)\\s*(\\d+)\\s*(.*)/', $line, $m)) {
|
||||
$this->errormsg = "Status code line invalid: ".htmlentities($line);
|
||||
$this->debug($this->errormsg);
|
||||
return false;
|
||||
}
|
||||
$http_version = $m[1]; // not used
|
||||
$this->status = $m[2];
|
||||
$status_string = $m[3]; // not used
|
||||
$this->debug(trim($line));
|
||||
continue;
|
||||
}
|
||||
if ($inHeaders) {
|
||||
if (trim($line) == '') {
|
||||
$inHeaders = false;
|
||||
$this->debug('Received Headers', $this->headers);
|
||||
if ($this->headers_only) {
|
||||
break; // Skip the rest of the input
|
||||
}
|
||||
continue;
|
||||
}
|
||||
if (!preg_match('/([^:]+):\\s*(.*)/', $line, $m)) {
|
||||
// Skip to the next header
|
||||
continue;
|
||||
}
|
||||
$key = strtolower(trim($m[1]));
|
||||
$val = trim($m[2]);
|
||||
// Deal with the possibility of multiple headers of same name
|
||||
if (isset($this->headers[$key])) {
|
||||
if (is_array($this->headers[$key])) {
|
||||
$this->headers[$key][] = $val;
|
||||
} else {
|
||||
$this->headers[$key] = array($this->headers[$key], $val);
|
||||
}
|
||||
} else {
|
||||
$this->headers[$key] = $val;
|
||||
}
|
||||
continue;
|
||||
}
|
||||
// We're not in the headers, so append the line to the contents
|
||||
$this->content .= $line;
|
||||
}
|
||||
fclose($fp);
|
||||
// If data is compressed, uncompress it
|
||||
if (isset($this->headers['content-encoding']) && $this->headers['content-encoding'] == 'gzip') {
|
||||
$this->debug('Content is gzip encoded, unzipping it');
|
||||
$this->content = substr($this->content, 10); // See http://www.php.net/manual/en/function.gzencode.php
|
||||
$this->content = gzinflate($this->content);
|
||||
}
|
||||
// If $persist_cookies, deal with any cookies
|
||||
if ($this->persist_cookies && isset($this->headers['set-cookie']) && $this->host == $this->cookie_host) {
|
||||
$cookies = $this->headers['set-cookie'];
|
||||
if (!is_array($cookies)) {
|
||||
$cookies = array($cookies);
|
||||
}
|
||||
foreach ($cookies as $cookie) {
|
||||
if (preg_match('/([^=]+)=([^;]+);/', $cookie, $m)) {
|
||||
$this->cookies[$m[1]] = $m[2];
|
||||
}
|
||||
}
|
||||
// Record domain of cookies for security reasons
|
||||
$this->cookie_host = $this->host;
|
||||
}
|
||||
// If $persist_referers, set the referer ready for the next request
|
||||
if ($this->persist_referers) {
|
||||
$this->debug('Persisting referer: '.$this->getRequestURL());
|
||||
$this->referer = $this->getRequestURL();
|
||||
}
|
||||
// Finally, if handle_redirects and a redirect is sent, do that
|
||||
if ($this->handle_redirects) {
|
||||
if (++$this->redirect_count >= $this->max_redirects) {
|
||||
$this->errormsg = 'Number of redirects exceeded maximum ('.$this->max_redirects.')';
|
||||
$this->debug($this->errormsg);
|
||||
$this->redirect_count = 0;
|
||||
return false;
|
||||
}
|
||||
$location = isset($this->headers['location']) ? $this->headers['location'] : '';
|
||||
$uri = isset($this->headers['uri']) ? $this->headers['uri'] : '';
|
||||
if ($location || $uri) {
|
||||
$url = parse_url($location.$uri);
|
||||
// This will FAIL if redirect is to a different site
|
||||
return $this->get($url['path']);
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
function buildRequest() {
|
||||
$headers = array();
|
||||
$headers[] = "{$this->method} {$this->path} HTTP/1.0"; // Using 1.1 leads to all manner of problems, such as "chunked" encoding
|
||||
$headers[] = "Host: {$this->host}";
|
||||
$headers[] = "User-Agent: {$this->user_agent}";
|
||||
$headers[] = "Accept: {$this->accept}";
|
||||
if ($this->use_gzip) {
|
||||
$headers[] = "Accept-encoding: {$this->accept_encoding}";
|
||||
}
|
||||
$headers[] = "Accept-language: {$this->accept_language}";
|
||||
if ($this->referer) {
|
||||
$headers[] = "Referer: {$this->referer}";
|
||||
}
|
||||
// Cookies
|
||||
if ($this->cookies) {
|
||||
$cookie = 'Cookie: ';
|
||||
foreach ($this->cookies as $key => $value) {
|
||||
$cookie .= "$key=$value; ";
|
||||
}
|
||||
$headers[] = $cookie;
|
||||
}
|
||||
// Basic authentication
|
||||
if ($this->username && $this->password) {
|
||||
$headers[] = 'Authorization: BASIC '.base64_encode($this->username.':'.$this->password);
|
||||
}
|
||||
// If this is a POST, set the content type and length
|
||||
if ($this->postdata) {
|
||||
$headers[] = 'Content-Type: application/x-www-form-urlencoded';
|
||||
$headers[] = 'Content-Length: '.strlen($this->postdata);
|
||||
}
|
||||
$request = implode("\r\n", $headers)."\r\n\r\n".$this->postdata;
|
||||
return $request;
|
||||
}
|
||||
function getStatus() {
|
||||
return $this->status;
|
||||
}
|
||||
function getContent() {
|
||||
return $this->content;
|
||||
}
|
||||
function getHeaders() {
|
||||
return $this->headers;
|
||||
}
|
||||
function getHeader($header) {
|
||||
$header = strtolower($header);
|
||||
if (isset($this->headers[$header])) {
|
||||
return $this->headers[$header];
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
function getError() {
|
||||
return $this->errormsg;
|
||||
}
|
||||
function getCookies() {
|
||||
return $this->cookies;
|
||||
}
|
||||
function getRequestURL() {
|
||||
$url = 'http://'.$this->host;
|
||||
if ($this->port != 80) {
|
||||
$url .= ':'.$this->port;
|
||||
}
|
||||
$url .= $this->path;
|
||||
return $url;
|
||||
}
|
||||
// Setter methods
|
||||
function setUserAgent($string) {
|
||||
$this->user_agent = $string;
|
||||
}
|
||||
function setAuthorization($username, $password) {
|
||||
$this->username = $username;
|
||||
$this->password = $password;
|
||||
}
|
||||
function setCookies($array) {
|
||||
$this->cookies = $array;
|
||||
}
|
||||
// Option setting methods
|
||||
function useGzip($boolean) {
|
||||
$this->use_gzip = $boolean;
|
||||
}
|
||||
function setPersistCookies($boolean) {
|
||||
$this->persist_cookies = $boolean;
|
||||
}
|
||||
function setPersistReferers($boolean) {
|
||||
$this->persist_referers = $boolean;
|
||||
}
|
||||
function setHandleRedirects($boolean) {
|
||||
$this->handle_redirects = $boolean;
|
||||
}
|
||||
function setMaxRedirects($num) {
|
||||
$this->max_redirects = $num;
|
||||
}
|
||||
function setHeadersOnly($boolean) {
|
||||
$this->headers_only = $boolean;
|
||||
}
|
||||
function setDebug($boolean) {
|
||||
$this->debug = $boolean;
|
||||
}
|
||||
// "Quick" static methods
|
||||
function quickGet($url) {
|
||||
$bits = parse_url($url);
|
||||
$host = $bits['host'];
|
||||
$port = isset($bits['port']) ? $bits['port'] : 80;
|
||||
$path = isset($bits['path']) ? $bits['path'] : '/';
|
||||
if (isset($bits['query'])) {
|
||||
$path .= '?'.$bits['query'];
|
||||
}
|
||||
$client = new HttpClient($host, $port);
|
||||
if (!$client->get($path)) {
|
||||
return false;
|
||||
} else {
|
||||
return $client->getContent();
|
||||
}
|
||||
}
|
||||
function quickPost($url, $data) {
|
||||
$bits = parse_url($url);
|
||||
$host = $bits['host'];
|
||||
$port = isset($bits['port']) ? $bits['port'] : 80;
|
||||
$path = isset($bits['path']) ? $bits['path'] : '/';
|
||||
$client = new HttpClient($host, $port);
|
||||
if (!$client->post($path, $data)) {
|
||||
return false;
|
||||
} else {
|
||||
return $client->getContent();
|
||||
}
|
||||
}
|
||||
function debug($msg, $object = false) {
|
||||
if ($this->debug) {
|
||||
print '<div style="border: 1px solid red; padding: 0.5em; margin: 0.5em;"><strong>HttpClient Debug:</strong> '.$msg;
|
||||
if ($object) {
|
||||
ob_start();
|
||||
print_r($object);
|
||||
$content = htmlentities(ob_get_contents());
|
||||
ob_end_clean();
|
||||
print '<pre>'.$content.'</pre>';
|
||||
}
|
||||
print '</div>';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
|
@ -1,126 +0,0 @@
|
|||
<?php
|
||||
/* *
|
||||
* Tiny Spelling Interface for TinyMCE Spell Checking.
|
||||
*
|
||||
* Copyright © 2006 Moxiecode Systems AB
|
||||
*/
|
||||
|
||||
class TinyGoogleSpell {
|
||||
var $lang;
|
||||
|
||||
function TinyGoogleSpell(&$config, $lang, $mode, $spelling, $jargon, $encoding) {
|
||||
$this->lang = $lang;
|
||||
}
|
||||
|
||||
// Returns array with bad words or false if failed.
|
||||
function checkWords($word_array) {
|
||||
$words = array();
|
||||
$wordstr = implode(' ', $word_array);
|
||||
|
||||
$matches = $this->_getMatches($wordstr);
|
||||
|
||||
for ($i=0; $i<count($matches); $i++)
|
||||
$words[] = $this->unhtmlentities(mb_substr($wordstr, $matches[$i][1], $matches[$i][2], "UTF-8"));
|
||||
|
||||
return $words;
|
||||
}
|
||||
|
||||
function unhtmlentities($string) {
|
||||
$string = preg_replace('~&#x([0-9a-f]+);~ei', 'chr(hexdec("\\1"))', $string);
|
||||
$string = preg_replace('~&#([0-9]+);~e', 'chr(\\1)', $string);
|
||||
|
||||
$trans_tbl = get_html_translation_table(HTML_ENTITIES);
|
||||
$trans_tbl = array_flip($trans_tbl);
|
||||
|
||||
return strtr($string, $trans_tbl);
|
||||
}
|
||||
|
||||
// Returns array with suggestions or false if failed.
|
||||
function getSuggestion($word) {
|
||||
$sug = array();
|
||||
|
||||
$matches = $this->_getMatches($word);
|
||||
|
||||
if (count($matches) > 0)
|
||||
$sug = explode("\t", utf8_encode($this->unhtmlentities($matches[0][4])));
|
||||
|
||||
return $sug;
|
||||
}
|
||||
|
||||
function _xmlChars($string) {
|
||||
$trans = get_html_translation_table(HTML_ENTITIES, ENT_QUOTES);
|
||||
|
||||
foreach ($trans as $k => $v)
|
||||
$trans[$k] = "&#".ord($k).";";
|
||||
|
||||
return strtr($string, $trans);
|
||||
}
|
||||
|
||||
function _getMatches($word_list) {
|
||||
$server = "www.google.com";
|
||||
$port = 443;
|
||||
$path = "/tbproxy/spell?lang=" . $this->lang . "&hl=en";
|
||||
$host = "www.google.com";
|
||||
$url = "https://" . $server;
|
||||
|
||||
// Setup XML request
|
||||
$xml = '<?xml version="1.0" encoding="utf-8" ?><spellrequest textalreadyclipped="0" ignoredups="0" ignoredigits="1" ignoreallcaps="1"><text>' . $word_list . '</text></spellrequest>';
|
||||
|
||||
$header = "POST ".$path." HTTP/1.0 \r\n";
|
||||
$header .= "MIME-Version: 1.0 \r\n";
|
||||
$header .= "Content-type: application/PTI26 \r\n";
|
||||
$header .= "Content-length: ".strlen($xml)." \r\n";
|
||||
$header .= "Content-transfer-encoding: text \r\n";
|
||||
$header .= "Request-number: 1 \r\n";
|
||||
$header .= "Document-type: Request \r\n";
|
||||
$header .= "Interface-Version: Test 1.4 \r\n";
|
||||
$header .= "Connection: close \r\n\r\n";
|
||||
$header .= $xml;
|
||||
//$this->_debugData($xml);
|
||||
|
||||
// Use curl if it exists
|
||||
if (function_exists('curl_init')) {
|
||||
// Use curl
|
||||
$ch = curl_init();
|
||||
curl_setopt($ch, CURLOPT_URL,$url);
|
||||
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
|
||||
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, $header);
|
||||
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
|
||||
$xml = curl_exec($ch);
|
||||
curl_close($ch);
|
||||
} else {
|
||||
// Use raw sockets
|
||||
$fp = fsockopen("ssl://" . $server, $port, $errno, $errstr, 30);
|
||||
if ($fp) {
|
||||
// Send request
|
||||
fwrite($fp, $header);
|
||||
|
||||
// Read response
|
||||
$xml = "";
|
||||
while (!feof($fp))
|
||||
$xml .= fgets($fp, 128);
|
||||
|
||||
fclose($fp);
|
||||
} else
|
||||
echo "Could not open SSL connection to google.";
|
||||
}
|
||||
|
||||
//$this->_debugData($xml);
|
||||
|
||||
// Grab and parse content
|
||||
preg_match_all('/<c o="([^"]*)" l="([^"]*)" s="([^"]*)">([^<]*)<\/c>/', $xml, $matches, PREG_SET_ORDER);
|
||||
|
||||
return $matches;
|
||||
}
|
||||
|
||||
function _debugData($data) {
|
||||
$fh = @fopen("debug.log", 'a+');
|
||||
@fwrite($fh, $data);
|
||||
@fclose($fh);
|
||||
}
|
||||
}
|
||||
|
||||
// Setup classname, should be the same as the name of the spellchecker class
|
||||
$spellCheckerConfig['class'] = "TinyGoogleSpell";
|
||||
|
||||
?>
|
|
@ -1,64 +0,0 @@
|
|||
<?php
|
||||
/* *
|
||||
* Tiny Spelling Interface for TinyMCE Spell Checking.
|
||||
*
|
||||
* Copyright © 2006 Moxiecode Systems AB
|
||||
*
|
||||
*/
|
||||
|
||||
class TinyPSpell {
|
||||
var $lang;
|
||||
var $mode;
|
||||
var $string;
|
||||
var $plink;
|
||||
var $errorMsg;
|
||||
|
||||
var $jargon;
|
||||
var $spelling;
|
||||
var $encoding;
|
||||
|
||||
function TinyPSpell(&$config, $lang, $mode, $spelling, $jargon, $encoding) {
|
||||
$this->lang = $lang;
|
||||
$this->mode = $mode;
|
||||
$this->plink = false;
|
||||
$this->errorMsg = array();
|
||||
|
||||
if (!function_exists("pspell_new")) {
|
||||
$this->errorMsg[] = "PSpell not found.";
|
||||
return;
|
||||
}
|
||||
|
||||
$this->plink = pspell_new($this->lang, $this->spelling, $this->jargon, $this->encoding, $this->mode);
|
||||
}
|
||||
|
||||
// Returns array with bad words or false if failed.
|
||||
function checkWords($wordArray) {
|
||||
if (!$this->plink) {
|
||||
$this->errorMsg[] = "No PSpell link found for checkWords.";
|
||||
return array();
|
||||
}
|
||||
|
||||
$wordError = array();
|
||||
foreach($wordArray as $word) {
|
||||
if(!pspell_check($this->plink, trim($word)))
|
||||
$wordError[] = $word;
|
||||
}
|
||||
|
||||
return $wordError;
|
||||
}
|
||||
|
||||
// Returns array with suggestions or false if failed.
|
||||
function getSuggestion($word) {
|
||||
if (!$this->plink) {
|
||||
$this->errorMsg[] = "No PSpell link found for getSuggestion.";
|
||||
return array();
|
||||
}
|
||||
|
||||
return pspell_suggest($this->plink, $word);
|
||||
}
|
||||
}
|
||||
|
||||
// Setup classname, should be the same as the name of the spellchecker class
|
||||
$spellCheckerConfig['class'] = "TinyPspell";
|
||||
|
||||
?>
|
|
@ -1,121 +0,0 @@
|
|||
<?php
|
||||
/* *
|
||||
* Tiny Spelling Interface for TinyMCE Spell Checking.
|
||||
*
|
||||
* Copyright © 2006 Moxiecode Systems AB
|
||||
*
|
||||
*/
|
||||
|
||||
|
||||
class TinyPspellShell {
|
||||
var $lang;
|
||||
var $mode;
|
||||
var $string;
|
||||
var $error;
|
||||
var $errorMsg;
|
||||
|
||||
var $cmd;
|
||||
var $tmpfile;
|
||||
|
||||
var $jargon;
|
||||
var $spelling;
|
||||
var $encoding;
|
||||
|
||||
function TinyPspellShell(&$config, $lang, $mode, $spelling, $jargon, $encoding) {
|
||||
$this->lang = $lang;
|
||||
$this->mode = $mode;
|
||||
$this->error = false;
|
||||
$this->errorMsg = array();
|
||||
|
||||
$this->tmpfile = tempnam($config['tinypspellshell.tmp'], "tinyspell");
|
||||
|
||||
if(preg_match("#win#i",php_uname()))
|
||||
$this->cmd = $config['tinypspellshell.aspell'] . " -a --lang=". $this->lang." --encoding=utf-8 -H < $this->tmpfile 2>&1";
|
||||
else
|
||||
$this->cmd = "cat ". $this->tmpfile ." | " . $config['tinypspellshell.aspell'] . " -a --encoding=utf-8 -H --lang=". $this->lang;
|
||||
}
|
||||
|
||||
// Returns array with bad words or false if failed.
|
||||
function checkWords($wordArray) {
|
||||
if ($fh = fopen($this->tmpfile, "w")) {
|
||||
fwrite($fh, "!\n");
|
||||
foreach($wordArray as $key => $value)
|
||||
fwrite($fh, "^" . $value . "\n");
|
||||
fclose($fh);
|
||||
} else {
|
||||
$this->errorMsg[] = "PSpell not found.";
|
||||
return array();
|
||||
}
|
||||
|
||||
$data = shell_exec($this->cmd);
|
||||
@unlink($this->tmpfile);
|
||||
|
||||
$returnData = array();
|
||||
$dataArr = preg_split("/\n/", $data, -1, PREG_SPLIT_NO_EMPTY);
|
||||
|
||||
foreach($dataArr as $dstr) {
|
||||
$matches = array();
|
||||
|
||||
// Skip this line.
|
||||
if (strpos($dstr, "@") === 0)
|
||||
continue;
|
||||
|
||||
preg_match("/\& (.*) .* .*: .*/i", $dstr, $matches);
|
||||
|
||||
if (!empty($matches[1]))
|
||||
$returnData[] = $matches[1];
|
||||
}
|
||||
|
||||
return $returnData;
|
||||
}
|
||||
|
||||
// Returns array with suggestions or false if failed.
|
||||
function getSuggestion($word) {
|
||||
if (function_exists("mb_convert_encoding"))
|
||||
$word = mb_convert_encoding($word, "ISO-8859-1", mb_detect_encoding($word, "UTF-8"));
|
||||
else
|
||||
$word = utf8_encode($word);
|
||||
|
||||
if ($fh = fopen($this->tmpfile, "w")) {
|
||||
fwrite($fh, "!\n");
|
||||
fwrite($fh, "^$word\n");
|
||||
fclose($fh);
|
||||
} else
|
||||
die("Error opening tmp file.");
|
||||
|
||||
$data = shell_exec($this->cmd);
|
||||
|
||||
@unlink($this->tmpfile);
|
||||
|
||||
$returnData = array();
|
||||
$dataArr = preg_split("/\n/", $data, -1, PREG_SPLIT_NO_EMPTY);
|
||||
|
||||
foreach($dataArr as $dstr) {
|
||||
$matches = array();
|
||||
|
||||
// Skip this line.
|
||||
if (strpos($dstr, "@") === 0)
|
||||
continue;
|
||||
|
||||
preg_match("/\& .* .* .*: (.*)/i", $dstr, $matches);
|
||||
|
||||
if (!empty($matches[1])) {
|
||||
// For some reason, the exec version seems to add commas?
|
||||
$returnData[] = str_replace(",", "", $matches[1]);
|
||||
}
|
||||
}
|
||||
return $returnData;
|
||||
}
|
||||
|
||||
function _debugData($data) {
|
||||
$fh = @fopen("debug.log", 'a+');
|
||||
@fwrite($fh, $data);
|
||||
@fclose($fh);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
// Setup classname, should be the same as the name of the spellchecker class
|
||||
$spellCheckerConfig['class'] = "TinyPspellShell";
|
||||
|
||||
?>
|
|
@ -1,35 +0,0 @@
|
|||
.mceMsgBox {
|
||||
border: 1px solid gray;
|
||||
padding: 8px;
|
||||
}
|
||||
|
||||
.mceMsgBox span {
|
||||
vertical-align: top;
|
||||
color: #555555;
|
||||
}
|
||||
|
||||
/* Misc */
|
||||
|
||||
.mceBlockBox {
|
||||
display: none;
|
||||
position: absolute;
|
||||
left: 0;
|
||||
top: 0;
|
||||
z-index: 100;
|
||||
filter:progid:DXImageTransform.Microsoft.Alpha(style=0, opacity=60);
|
||||
-moz-opacity:0.6;
|
||||
opacity: 0.6;
|
||||
background-color: white;
|
||||
}
|
||||
|
||||
.mceMsgBox {
|
||||
display: none;
|
||||
z-index: 101;
|
||||
position: absolute;
|
||||
left: 0;
|
||||
top: 0;
|
||||
font-family: Arial, Verdana, Tahoma, Helvetica;
|
||||
font-weight: bold;
|
||||
font-size: 11px;
|
||||
background-color: #FFF;
|
||||
}
|
Before Width: | Height: | Size: 591 B |
Before Width: | Height: | Size: 46 B |
|
@ -1,15 +0,0 @@
|
|||
// UK lang variables
|
||||
|
||||
tinyMCE.addToLang('spellchecker',{
|
||||
desc : 'Toggle spellchecker',
|
||||
menu : 'Spellchecker settings',
|
||||
ignore_word : 'Ignore word',
|
||||
ignore_words : 'Ignore all',
|
||||
langs : 'Languages',
|
||||
wait : 'Please wait...',
|
||||
swait : 'Spellchecking, please wait...',
|
||||
sug : 'Suggestions',
|
||||
no_sug : 'No suggestions',
|
||||
no_mpell : 'No misspellings found.',
|
||||
mpell_found : 'Found {$words} misspellings.'
|
||||
});
|
|
@ -1,164 +0,0 @@
|
|||
<?php
|
||||
/**
|
||||
* $RCSfile: tinyspell.php,v $
|
||||
* $Revision: 1.1 $
|
||||
* $Date: 2006/03/14 17:33:47 $
|
||||
*
|
||||
* @author Moxiecode
|
||||
* @copyright Copyright © 2004-2006, Moxiecode Systems AB, All rights reserved.
|
||||
*/
|
||||
|
||||
// Ignore the Notice errors for now.
|
||||
error_reporting(E_ALL ^ E_NOTICE);
|
||||
|
||||
require_once("config.php");
|
||||
|
||||
$id = sanitize($_POST['id'], "loose");
|
||||
|
||||
if (!$spellCheckerConfig['enabled']) {
|
||||
header('Content-type: text/xml; charset=utf-8');
|
||||
echo '<?xml version="1.0" encoding="utf-8" ?><res id="' . $id . '" error="true" msg="You must enable the spellchecker by modifying the config.php file." />';
|
||||
die;
|
||||
}
|
||||
|
||||
// Basic config
|
||||
$defaultLanguage = $spellCheckerConfig['default.language'];
|
||||
$defaultMode = $spellCheckerConfig['default.mode'];
|
||||
|
||||
// Normaly not required to configure
|
||||
$defaultSpelling = $spellCheckerConfig['default.spelling'];
|
||||
$defaultJargon = $spellCheckerConfig['default.jargon'];
|
||||
$defaultEncoding = $spellCheckerConfig['default.encoding'];
|
||||
$outputType = "xml"; // Do not change
|
||||
|
||||
// Get input parameters.
|
||||
|
||||
$check = urldecode(getRequestParam('check'));
|
||||
$cmd = sanitize(getRequestParam('cmd'));
|
||||
$lang = sanitize(getRequestParam('lang'), "strict");
|
||||
$mode = sanitize(getRequestParam('mode'), "strict");
|
||||
$spelling = sanitize(getRequestParam('spelling'), "strict");
|
||||
$jargon = sanitize(getRequestParam('jargon'), "strict");
|
||||
$encoding = sanitize(getRequestParam('encoding'), "strict");
|
||||
$sg = sanitize(getRequestParam('sg'), "bool");
|
||||
$words = array();
|
||||
|
||||
$validRequest = true;
|
||||
|
||||
if (empty($check))
|
||||
$validRequest = false;
|
||||
|
||||
if (empty($lang))
|
||||
$lang = $defaultLanguage;
|
||||
|
||||
if (empty($mode))
|
||||
$mode = $defaultMode;
|
||||
|
||||
if (empty($spelling))
|
||||
$spelling = $defaultSpelling;
|
||||
|
||||
if (empty($jargon))
|
||||
$jargon = $defaultJargon;
|
||||
|
||||
if (empty($encoding))
|
||||
$encoding = $defaultEncoding;
|
||||
|
||||
function sanitize($str, $type="strict") {
|
||||
switch ($type) {
|
||||
case "strict":
|
||||
$str = preg_replace("/[^a-zA-Z0-9_\-]/i", "", $str);
|
||||
break;
|
||||
case "loose":
|
||||
$str = preg_replace("/</i", ">", $str);
|
||||
$str = preg_replace("/>/i", "<", $str);
|
||||
break;
|
||||
case "bool":
|
||||
if ($str == "true" || $str == true)
|
||||
$str = true;
|
||||
else
|
||||
$str = false;
|
||||
break;
|
||||
}
|
||||
|
||||
return $str;
|
||||
}
|
||||
|
||||
function getRequestParam($name, $default_value = false) {
|
||||
if (!isset($_REQUEST[$name]))
|
||||
return $default_value;
|
||||
|
||||
if (!isset($_GLOBALS['magic_quotes_gpc']))
|
||||
$_GLOBALS['magic_quotes_gpc'] = ini_get("magic_quotes_gpc");
|
||||
|
||||
if (isset($_GLOBALS['magic_quotes_gpc'])) {
|
||||
if (is_array($_REQUEST[$name])) {
|
||||
$newarray = array();
|
||||
|
||||
foreach($_REQUEST[$name] as $name => $value)
|
||||
$newarray[stripslashes($name)] = stripslashes($value);
|
||||
|
||||
return $newarray;
|
||||
}
|
||||
return stripslashes($_REQUEST[$name]);
|
||||
}
|
||||
|
||||
return $_REQUEST[$name];
|
||||
}
|
||||
|
||||
$result = array();
|
||||
$tinyspell = new $spellCheckerConfig['class']($spellCheckerConfig, $lang, $mode, $spelling, $jargon, $encoding);
|
||||
|
||||
if (count($tinyspell->errorMsg) == 0) {
|
||||
switch($cmd) {
|
||||
case "spell":
|
||||
// Space for non-exec version and \n for the exec version.
|
||||
$words = preg_split("/ |\n/", $check, -1, PREG_SPLIT_NO_EMPTY);
|
||||
$result = $tinyspell->checkWords($words);
|
||||
break;
|
||||
|
||||
case "suggest":
|
||||
$result = $tinyspell->getSuggestion($check);
|
||||
break;
|
||||
|
||||
default:
|
||||
// Just use this for now.
|
||||
$tinyspell->errorMsg[] = "No command.";
|
||||
$outputType = $outputType . "error";
|
||||
break;
|
||||
}
|
||||
} else
|
||||
$outputType = $outputType . "error";
|
||||
|
||||
if (!$result)
|
||||
$result = array();
|
||||
|
||||
// Output data
|
||||
switch($outputType) {
|
||||
case "xml":
|
||||
header('Content-type: text/xml; charset=utf-8');
|
||||
$body = '<?xml version="1.0" encoding="utf-8" ?>';
|
||||
$body .= "\n";
|
||||
|
||||
if (count($result) == 0)
|
||||
$body .= '<res id="' . $id . '" cmd="'. $cmd .'" />';
|
||||
else
|
||||
$body .= '<res id="' . $id . '" cmd="'. $cmd .'">'. urlencode(implode(" ", $result)) .'</res>';
|
||||
|
||||
echo $body;
|
||||
break;
|
||||
case "xmlerror";
|
||||
header('Content-type: text/xml; charset=utf-8');
|
||||
$body = '<?xml version="1.0" encoding="utf-8" ?>';
|
||||
$body .= "\n";
|
||||
$body .= '<res id="' . $id . '" cmd="'. $cmd .'" error="true" msg="'. implode(" ", $tinyspell->errorMsg) .'" />';
|
||||
echo $body;
|
||||
break;
|
||||
case "html":
|
||||
var_dump($result);
|
||||
break;
|
||||
case "htmlerror":
|
||||
echo "Error";
|
||||
break;
|
||||
}
|
||||
|
||||
?>
|
|
@ -1,53 +0,0 @@
|
|||
/* Colorpicker dialog specific CSS */
|
||||
|
||||
#preview {
|
||||
float: right;
|
||||
width: 50px;
|
||||
height: 14px;
|
||||
line-height: 1px;
|
||||
border: 1px solid black;
|
||||
margin-left: 5px;
|
||||
}
|
||||
|
||||
#colorpicker {
|
||||
float: left;
|
||||
cursor: crosshair;
|
||||
}
|
||||
|
||||
#light {
|
||||
border: 1px solid gray;
|
||||
margin-left: 5px;
|
||||
float: left;
|
||||
width: 15px;
|
||||
cursor: crosshair;
|
||||
}
|
||||
|
||||
#light div {
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
#previewblock {
|
||||
float: right;
|
||||
padding-left: 10px;
|
||||
height: 20px;
|
||||
}
|
||||
|
||||
.panel_wrapper div.current {
|
||||
height: 175px;
|
||||
}
|
||||
|
||||
#namedcolors {
|
||||
width: 150px;
|
||||
}
|
||||
|
||||
#namedcolors a {
|
||||
display: block;
|
||||
float: left;
|
||||
width: 10px; height: 10px;
|
||||
margin: 1px 1px 0 0;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
#colornamecontainer {
|
||||
margin-top: 5px;
|
||||
}
|
|
@ -1,58 +0,0 @@
|
|||
/* This file contains the CSS data for the editable area(iframe) of TinyMCE */
|
||||
/* You can extend this CSS by adding your own CSS file with the the content_css option */
|
||||
|
||||
body, td, pre {
|
||||
font-family: Verdana, Arial, Helvetica, sans-serif;
|
||||
font-size: 10px;
|
||||
}
|
||||
|
||||
body {
|
||||
background-color: #FFFFFF;
|
||||
}
|
||||
|
||||
.mceVisualAid {
|
||||
border: 1px dashed #BBBBBB !important;
|
||||
}
|
||||
|
||||
div.mceVisualAid {
|
||||
background-image:url('../images/spacer.gif');
|
||||
visibility: visible !important;
|
||||
}
|
||||
|
||||
.mceItemAnchor {
|
||||
width: 12px;
|
||||
line-height: 6px;
|
||||
overflow: hidden;
|
||||
padding-left: 12px;
|
||||
background-image: url('../images/anchor_symbol.gif');
|
||||
background-position: bottom;
|
||||
background-repeat: no-repeat;
|
||||
}
|
||||
|
||||
/* Important is needed in Gecko browsers inorder to style links */
|
||||
/*
|
||||
a {
|
||||
color: green !important;
|
||||
}
|
||||
*/
|
||||
|
||||
/* Style selection range colors in Gecko browsers */
|
||||
/*
|
||||
::-moz-selection {
|
||||
background-color: red;
|
||||
color: green;
|
||||
}
|
||||
*/
|
||||
|
||||
/* MSIE specific */
|
||||
|
||||
* html body {
|
||||
scrollbar-3dlight-color: #F0F0EE;
|
||||
scrollbar-arrow-color: #676662;
|
||||
scrollbar-base-color: #F0F0EE;
|
||||
scrollbar-darkshadow-color: #DDDDDD;
|
||||
scrollbar-face-color: #E0E0DD;
|
||||
scrollbar-highlight-color: #F0F0EE;
|
||||
scrollbar-shadow-color: #F0F0EE;
|
||||
scrollbar-track-color: #F5F5F5;
|
||||
}
|
|
@ -1,358 +0,0 @@
|
|||
/* This file contains the CSS data for all popups in TinyMCE */
|
||||
|
||||
body {
|
||||
background-color: #F0F0EE;
|
||||
font-family: Verdana, Arial, Helvetica, sans-serif;
|
||||
font-size: 11px;
|
||||
scrollbar-3dlight-color: #F0F0EE;
|
||||
scrollbar-arrow-color: #676662;
|
||||
scrollbar-base-color: #F0F0EE;
|
||||
scrollbar-darkshadow-color: #DDDDDD;
|
||||
scrollbar-face-color: #E0E0DD;
|
||||
scrollbar-highlight-color: #F0F0EE;
|
||||
scrollbar-shadow-color: #F0F0EE;
|
||||
scrollbar-track-color: #F5F5F5;
|
||||
margin: 8px;
|
||||
}
|
||||
|
||||
td {
|
||||
font-family: Verdana, Arial, Helvetica, sans-serif;
|
||||
font-size: 11px;
|
||||
}
|
||||
|
||||
input {
|
||||
background: #FFFFFF;
|
||||
border: 1px solid #cccccc;
|
||||
}
|
||||
|
||||
td, input, select, textarea {
|
||||
font-family: Verdana, Arial, Helvetica, sans-serif;
|
||||
font-size: 10px;
|
||||
}
|
||||
|
||||
input, select, textarea {
|
||||
border: 1px solid #808080;
|
||||
}
|
||||
|
||||
.input_noborder {
|
||||
border: 0;
|
||||
}
|
||||
|
||||
#insert, .updateButton {
|
||||
font-weight: bold;
|
||||
width: 90px;
|
||||
height: 21px;
|
||||
border: 0;
|
||||
background-image: url('../images/insert_button_bg.gif');
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
#cancel {
|
||||
font-weight: bold;
|
||||
width: 90px;
|
||||
height: 21px;
|
||||
border: 0;
|
||||
background-image: url('../images/cancel_button_bg.gif');
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
/* Mozilla only style */
|
||||
html>body #insert, html>body #cancel {
|
||||
padding-bottom: 2px;
|
||||
}
|
||||
|
||||
.title {
|
||||
font-size: 12px;
|
||||
font-weight: bold;
|
||||
color: #2B6FB6;
|
||||
}
|
||||
|
||||
table.charmap {
|
||||
border-style: solid;
|
||||
border-width: 1px;
|
||||
border-color: #AAAAAA;
|
||||
}
|
||||
|
||||
td.charmap, td.charmapOver {
|
||||
color: #000000;
|
||||
border-color: #AAAAAA;
|
||||
border-style: solid;
|
||||
border-width: 1px;
|
||||
text-align: center;
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
td.charmapOver {
|
||||
background-color: #CCCCCC;
|
||||
cursor: default;
|
||||
}
|
||||
|
||||
a.charmap {
|
||||
color: #000000;
|
||||
text-decoration: none
|
||||
}
|
||||
|
||||
.wordWrapCode {
|
||||
vertical-align: middle;
|
||||
border: 1px none #000000;
|
||||
background-color: transparent;
|
||||
}
|
||||
|
||||
input.radio {
|
||||
border: 1px none #000000;
|
||||
background-color: transparent;
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
input.checkbox {
|
||||
border: 1px none #000000;
|
||||
background-color: transparent;
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
.mceButtonNormal, .mceButtonOver, .mceButtonDown, .mceSeparator, .mceButtonDisabled, .mceButtonSelected {
|
||||
margin-left: 1px;
|
||||
}
|
||||
|
||||
.mceButtonNormal {
|
||||
border-top: 1px solid;
|
||||
border-left: 1px solid;
|
||||
border-bottom: 1px solid;
|
||||
border-right: 1px solid;
|
||||
border-color: #F0F0EE;
|
||||
cursor: default;
|
||||
}
|
||||
|
||||
.mceButtonOver {
|
||||
border: 1px solid #0A246A;
|
||||
cursor: default;
|
||||
background-color: #B6BDD2;
|
||||
}
|
||||
|
||||
.mceButtonDown {
|
||||
cursor: default;
|
||||
border: 1px solid #0A246A;
|
||||
background-color: #8592B5;
|
||||
}
|
||||
|
||||
.mceButtonDisabled {
|
||||
filter:progid:DXImageTransform.Microsoft.Alpha(opacity=30);
|
||||
-moz-opacity:0.3;
|
||||
opacity: 0.3;
|
||||
border-top: 1px solid;
|
||||
border-left: 1px solid;
|
||||
border-bottom: 1px solid;
|
||||
border-right: 1px solid;
|
||||
border-color: #F0F0EE;
|
||||
cursor: default;
|
||||
}
|
||||
|
||||
.mceActionPanel {
|
||||
margin-top: 5px;
|
||||
}
|
||||
|
||||
/* Tabs classes */
|
||||
|
||||
.tabs {
|
||||
float: left;
|
||||
width: 100%;
|
||||
line-height: normal;
|
||||
background-image: url("../images/xp/tabs_bg.gif");
|
||||
}
|
||||
|
||||
.tabs ul {
|
||||
margin: 0;
|
||||
padding: 0 0 0;
|
||||
list-style: none;
|
||||
}
|
||||
|
||||
.tabs li {
|
||||
float: left;
|
||||
background: url("../images/xp/tab_bg.gif") no-repeat left top;
|
||||
margin: 0;
|
||||
margin-left: 0;
|
||||
margin-right: 2px;
|
||||
padding: 0 0 0 10px;
|
||||
line-height: 18px;
|
||||
}
|
||||
|
||||
.tabs li.current {
|
||||
background: url("../images/xp/tab_sel_bg.gif") no-repeat left top;
|
||||
margin-right: 2px;
|
||||
}
|
||||
|
||||
.tabs span {
|
||||
float: left;
|
||||
display: block;
|
||||
background: url("../images/xp/tab_end.gif") no-repeat right top;
|
||||
padding: 0px 10px 0 0;
|
||||
}
|
||||
|
||||
.tabs .current span {
|
||||
background: url("../images/xp/tab_sel_end.gif") no-repeat right top;
|
||||
}
|
||||
|
||||
.tabs a {
|
||||
text-decoration: none;
|
||||
font-family: Verdana, Arial;
|
||||
font-size: 10px;
|
||||
}
|
||||
|
||||
.tabs a:link, .tabs a:visited, .tabs a:hover {
|
||||
color: black;
|
||||
}
|
||||
|
||||
.tabs a:hover {
|
||||
}
|
||||
|
||||
.tabs .current {
|
||||
}
|
||||
|
||||
.tabs .current a, .tabs .current a:link, .tabs .current a:visited {
|
||||
}
|
||||
|
||||
.panel_wrapper div.panel {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.panel_wrapper div.current {
|
||||
display: block;
|
||||
width: 100%;
|
||||
height: 300px;
|
||||
overflow: visible; /* Should be auto but that breaks Safari */
|
||||
}
|
||||
|
||||
.panel_wrapper {
|
||||
border: 1px solid #919B9C;
|
||||
border-top: 0px;
|
||||
padding: 10px;
|
||||
padding-top: 5px;
|
||||
clear: both;
|
||||
background-color: white;
|
||||
}
|
||||
|
||||
fieldset {
|
||||
border: 1px solid #919B9C;
|
||||
font-family: Verdana, Arial;
|
||||
font-size: 10px;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
padding: 4px;
|
||||
}
|
||||
|
||||
legend {
|
||||
color: #2B6FB6;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.properties {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.properties .column1 {
|
||||
}
|
||||
|
||||
.properties .column2 {
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
a:link, a:visited {
|
||||
color: black;
|
||||
}
|
||||
|
||||
a:hover {
|
||||
color: #2B6FB6;
|
||||
}
|
||||
|
||||
#plugintable thead {
|
||||
font-weight: bold;
|
||||
background-color: #DDDDDD;
|
||||
}
|
||||
|
||||
#plugintable, #about #plugintable td {
|
||||
border: 1px solid #919B9C;
|
||||
}
|
||||
|
||||
#plugintable {
|
||||
width: 99%;
|
||||
margin-top: 10px;
|
||||
}
|
||||
|
||||
#pluginscontainer {
|
||||
height: 290px;
|
||||
overflow: auto;
|
||||
}
|
||||
|
||||
/* MSIE Specific styles */
|
||||
|
||||
* html .panel_wrapper {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.column {
|
||||
float: left;
|
||||
}
|
||||
|
||||
h1, h2, h3, h4 {
|
||||
color: #2B6FB6;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
padding-top: 5px;
|
||||
}
|
||||
|
||||
h3 {
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
#link .panel_wrapper, #link div.current {
|
||||
height: 125px;
|
||||
}
|
||||
|
||||
#image .panel_wrapper, #image div.current {
|
||||
height: 190px;
|
||||
}
|
||||
|
||||
label.msg { display: none; }
|
||||
label.invalid { color: #EE0000; display: inline; }
|
||||
input.invalid { border: 1px solid #EE0000; }
|
||||
|
||||
/* Disables the advanced tab in the table plugin. */
|
||||
/*
|
||||
#table #advanced_tab {
|
||||
display: none;
|
||||
}
|
||||
*/
|
||||
|
||||
/* Disables the border input field and label in the table plugin. */
|
||||
/*
|
||||
#table #border, #table #borderlabel {
|
||||
display: none;
|
||||
}
|
||||
*/
|
||||
|
||||
/* Below this line is WordPress customizations */
|
||||
#insert, #cancel, .submitbutton {
|
||||
font: 11px Verdana, Arial, Helvetica, sans-serif;
|
||||
height: auto;
|
||||
width: auto;
|
||||
background-color: transparent;
|
||||
background-image: url(../../../../../../wp-admin/images/fade-butt.png);
|
||||
background-repeat: repeat;
|
||||
border: 3px double;
|
||||
border-right-color: rgb(153, 153, 153);
|
||||
border-bottom-color: rgb(153, 153, 153);
|
||||
border-left-color: rgb(204, 204, 204);
|
||||
border-top-color: rgb(204, 204, 204);
|
||||
color: rgb(51, 51, 51);
|
||||
padding: 0.1em 0.5em;
|
||||
}
|
||||
|
||||
#insert:active, #cancel:active, .submitbutton:active {
|
||||
background: #f4f4f4;
|
||||
border-left-color: #999;
|
||||
border-top-color: #999;
|
||||
}
|
||||
|
||||
#styleSelectRow {
|
||||
display: none;
|
||||
}
|
|
@ -1,106 +0,0 @@
|
|||
/* This file contains the CSS data for the editor UI of TinyMCE instances */
|
||||
|
||||
.mceToolbarTop a, .mceToolbarTop a:visited, .mceToolbarTop a:hover, .mceToolbarBottom a, .mceToolbarBottom a:visited, .mceToolbarBottom a:hover {border: 0; margin: 0; padding: 0; background: transparent;}
|
||||
.mceSeparatorLine {border: 0; padding: 0; margin-left: 4px; margin-right: 2px;}
|
||||
.mceSelectList {font-family: 'MS Sans Serif', sans-serif, Verdana, Arial; font-size: 9pt !important; font-weight: normal; margin-top: 5px; padding: 0; display: inline; vertical-align: top; background-color: #F0F0EE;}
|
||||
.mceLabel, .mceLabelDisabled {font-family: 'MS Sans Serif', sans-serif, Verdana, Arial; font-size: 9pt;}
|
||||
.mceLabel {color: #000000;}
|
||||
.mceLabelDisabled {cursor: text; color: #999999;}
|
||||
.mceEditor {background: #F0F0EE; border: 1px solid #ddd; padding: 0; margin: 0;}
|
||||
.mceEditorArea { font-family: 'MS Sans Serif', sans-serif, Verdana, Arial; background: #FFFFFF; padding: 0; margin: 0; }
|
||||
.mceToolbarTop, .mceToolbarBottom {background: #cee1ef; line-height: 1px; font-size: 1px;}
|
||||
.mceToolbarTop {border-bottom: 1px solid #cccccc; padding: 3px 2px 4px;}
|
||||
.mceToolbarBottom {border-top: 1px solid #cccccc;}
|
||||
.mceToolbarContainer {display: block; position: relative; left: 0; top: 0; width: 100%;}
|
||||
.mceStatusbarTop, .mceStatusbarBottom, .mceStatusbar {height: 20px;}
|
||||
.mceStatusbarTop .mceStatusbarPathText, .mceStatusbarBottom .mceStatusbarPathText, .mceStatusbar .mceStatusbarPathText {font-family: 'MS Sans Serif', sans-serif, Verdana, Arial; font-size: 9pt; padding: 2px; line-height: 16px; overflow: visible;}
|
||||
.mceStatusbarTop {border-bottom: 1px solid #cccccc;}
|
||||
.mceStatusbarBottom {border-top: 1px solid #cccccc;}
|
||||
.mceStatusbar {border-bottom: 1px solid #cccccc;}
|
||||
.mcePathItem, .mcePathItem:link, .mcePathItem:visited, .mcePathItem:hover {text-decoration: none; font-family: 'MS Sans Serif', sans-serif, Verdana, Arial; font-size: 9pt; color: #000000;}
|
||||
.mcePathItem:hover {text-decoration: underline;}
|
||||
.mceStatusbarPathText {float: left;}
|
||||
.mceStatusbarResize {float: right; background-image: url('../images/statusbar_resize.gif'); background-repeat: no-repeat; width: 11px; height: 20px; cursor: se-resize;}
|
||||
.mceResizeBox {width: 10px; height: 10px; display: none; border: 1px dotted gray; margin: 0; padding: 0;}
|
||||
.mceEditorIframe {border: 0;}
|
||||
|
||||
/* Button CSS rules */
|
||||
|
||||
img.mceSeparatorLine { height: 24px; width: 0px; overflow: hidden; border-left: 1px solid #A7B0B7; margin: 0 3px; }
|
||||
a.mceButtonDisabled img, a.mceButtonNormal img, a.mceButtonSelected img {width: 20px; height: 20px; cursor: default; padding: 1px 2px; margin: 2px 2px 0; background: #e9e8e8 url(../../../../../../../wp-admin/images/fade-butt.png); -moz-border-radius: 4px; -webkit-border-radius: 4px; border-radius: 4px; border: 1px solid #ccc;}
|
||||
a.mceButtonNormal img, a.mceButtonSelected img {border: 1px solid #B1B1B1 !important;}
|
||||
a.mceButtonSelected img {border: 1px solid #6779AA !important; background: #D1D2D4;}
|
||||
a.mceButtonNormal img:hover, a.mceButtonSelected img:hover {border: 1px solid #0A246A !important; cursor: default; background-color: #B6BDD2;}
|
||||
a.mceButtonDisabled img {-moz-opacity:0.3; opacity: 0.3; border: 1px solid #c0c0c0 !important; cursor: default;}
|
||||
a.mceTiledButton img {background-image: url('../images/buttons.gif'); background-repeat: no-repeat;}
|
||||
|
||||
/* Menu button CSS rules */
|
||||
|
||||
span.mceMenuButton img, span.mceMenuButtonSelected img {height: 20px; cursor: default; padding: 1px 2px; margin: 0 0 0 1px; background: #e9e8e8 url(../../../../../../../wp-admin/images/fade-butt.png); border: 1px solid #b1b1b1; -moz-border-radius: 4px 0 0 4px; -webkit-border-radius: 4px 0 0 4px; border-radius: 4px 0 0 4px;}
|
||||
span.mceMenuButtonSelected img {border: 1px solid #6779AA; background-color: #B6BDD2;}
|
||||
span.mceMenuButtonSelected img.mceMenuButton {border: 1px solid #F0F0EE; background-color: transparent;}
|
||||
span.mceMenuButton img.mceMenuButton, span.mceMenuButtonSelected img.mceMenuButton {-moz-border-radius: 0 4px 4px 0; -webkit-border-radius: 0 4px 4px 0; border-radius: 0 4px 4px 0; border-left: 0; margin: 0 2px 0 0;}
|
||||
span.mceMenuButton:hover img, span.mceMenuButtonSelected:hover img {border: 1px solid #0A246A; background-color: #B6BDD2;}
|
||||
span.mceMenuButton:hover img.mceMenuButton, span.mceMenuButtonSelected:hover img.mceMenuButton {border-left: 0;}
|
||||
span.mceMenuButtonFocus img {height: 20px; cursor: default; padding: 1px 2px; border: 1px solid #6779AA; -moz-border-radius: 4px 0 0 0; -webkit-border-radius: 4px 0 0 0; border-radius: 4px 0 0 0; margin: 0 0 0 1px; background-color: #F5F4F2;}
|
||||
span.mceMenuButtonFocus img.mceMenuButton {-moz-border-radius: 0 4px 0 0; -webkit-border-radius: 0 4px 0 0; border-radius: 0 4px 0 0; border-left: 0; margin: 0 2px 0 0;}
|
||||
span.mceMenuHover img {border: 1px solid #0A246A; background-color: #B6BDD2;}
|
||||
span.mceMenuButtonSelected.mceMenuHover img.mceMenuButton {border: 1px solid #0A246A; background-color: #B6BDD2; border-left: 0;}
|
||||
|
||||
/* Menu */
|
||||
|
||||
.mceMenu {position: absolute; left: 0; top: 0;display: none; z-index: 1000; background-color: white; border: 1px solid #6779AA; font-weight: normal;}
|
||||
.mceMenu a, .mceMenuTitle, .mceMenuDisabled {display: block; width: 100%; text-decoration: none; background-color: white; font-family: Tahoma, Verdana, Arial, Helvetica; font-size: 11px; line-height: 20px; color: black;}
|
||||
.mceMenu a:hover {background-color: #B6BDD2; color: black; text-decoration: none !important;}
|
||||
.mceMenu span {padding-left: 10px; padding-right: 10px; display: block; line-height: 20px;}
|
||||
.mceMenuSeparator {border-bottom: 1px solid gray; background-color: gray; height: 1px;}
|
||||
.mceMenuTitle span {padding-left: 5px;}
|
||||
.mceMenuTitle {background-color: #DDDDDD; font-weight: bold;}
|
||||
.mceMenuDisabled {color: gray;}
|
||||
span.mceMenuSelectedItem {background-image: url('../images/menu_check.gif'); background-repeat: no-repeat; background-position: 5px 8px; padding-left: 20px;}
|
||||
span.mceMenuCheckItem {padding-left: 20px;}
|
||||
span.mceMenuLine {display: block; position: absolute; left: 0; top: -1px; background-color: #F5F4F2; width: 38px; height: 1px; overflow: hidden; padding-left: 0; padding-right: 0;}
|
||||
.mceColors table, .mceColors td {margin: 0; padding: 2px;}
|
||||
a.mceMoreColors {width: auto; padding: 0; margin: 0 3px 3px 3px; text-align: center; border: 1px solid white; text-decoration: none !important;}
|
||||
.mceColorPreview {position: absolute; overflow:hidden; left: 0; top: 0; margin-left: 3px; margin-top: 15px; width: 16px; height: 4px; background-color: red;}
|
||||
a.mceMoreColors:hover {border: 1px solid #0A246A;}
|
||||
.mceColors td a {width: 9px; height: 9px; overflow: hidden; border: 1px solid #808080;}
|
||||
|
||||
/* MSIE 6 specific rules */
|
||||
|
||||
/*
|
||||
* html a.mceButtonNormal img, * html a.mceButtonSelected img, * html a.mceButtonDisabled img {border: 0 !important; margin-top: 2px; margin-bottom: 1px;}
|
||||
*/
|
||||
* html a.mceButtonDisabled img {filter:progid:DXImageTransform.Microsoft.Alpha(opacity=30); border: 0 !important;}
|
||||
* html a.mceButtonDisabled {border: 1px solid #F0F0EE !important;}
|
||||
/*
|
||||
* html a.mceButtonNormal, * html a.mceButtonSelected {border: 1px solid #F0F0EE !important; cursor: default;}
|
||||
* html a.mceButtonSelected {border: 1px solid #6779AA !important; background-color: #D4D5D8;}
|
||||
* html a.mceButtonNormal:hover, * html a.mceButtonSelected:hover {border: 1px solid #0A246A !important; background-color: #B6BDD2; cursor: default;}
|
||||
* html .mceSelectList {margin-top: 2px;}
|
||||
* html span.mceMenuButton, * html span.mceMenuButtonFocus {position: relative; left: 0; top: 0;}
|
||||
* html span.mceMenuButton img, * html span.mceMenuButtonSelected img, * html span.mceMenuButtonFocus img {position: relative; top: 1px;}
|
||||
*/
|
||||
* html a.mceMoreColors {width: auto;}
|
||||
* html .mceColors td a {width: 10px; height: 10px;}
|
||||
* html .mceColorPreview {margin-left: 2px; margin-top: 14px;}
|
||||
|
||||
/* MSIE 7 specific rules */
|
||||
|
||||
/*
|
||||
*:first-child+html a.mceButtonNormal img, *:first-child+html a.mceButtonSelected img, *:first-child+html a.mceButtonDisabled img {border: 0 !important; margin-top: 2px; margin-bottom: 1px;}
|
||||
*/
|
||||
*:first-child+html a.mceButtonDisabled img {filter:progid:DXImageTransform.Microsoft.Alpha(opacity=30); border: 0 !important;margin-top:1px;}
|
||||
*:first-child+html a.mceButtonDisabled img {border: 1px solid #ccc !important;}
|
||||
/*
|
||||
*:first-child+html a.mceButtonNormal, *:first-child+html a.mceButtonSelected {border: 1px solid #ccc !important; cursor: default;}
|
||||
*:first-child+html a.mceButtonSelected {border: 1px solid #6779AA !important; background-color: #D4D5D8;}
|
||||
*:first-child+html a.mceButtonNormal:hover, *:first-child+html a.mceButtonSelected:hover {border: 1px solid #0A246A !important; background-color: #B6BDD2; cursor: default;}
|
||||
*:first-child+html .mceSelectList {margin-top: 3px;}
|
||||
*:first-child+html span.mceMenuButton {padding-bottom: 1px}
|
||||
*:first-child+html span.mceMenuButton, *:first-child+html span.mceMenuButtonFocus {position: relative; left: 0; top: 0;}
|
||||
*:first-child+html span.mceMenuButton img, *:first-child+html span.mceMenuButtonSelected img, *:first-child+html span.mceMenuButtonFocus img {position: relative; top: 1px;}
|
||||
*/
|
||||
*:first-child+html a.mceMoreColors {width: 132px;}
|
||||
*:first-child+html .mceColors td a {width: 10px; height: 10px;}
|
||||
*:first-child+html .mceColorPreview {margin: 0; padding-left: 4px; margin-top: 14px; width: 14px;}
|
Before Width: | Height: | Size: 171 B |
Before Width: | Height: | Size: 70 B |
Before Width: | Height: | Size: 359 B |
Before Width: | Height: | Size: 76 B |
Before Width: | Height: | Size: 73 B |
Before Width: | Height: | Size: 80 B |
Before Width: | Height: | Size: 78 B |
Before Width: | Height: | Size: 77 B |
Before Width: | Height: | Size: 207 B |
Before Width: | Height: | Size: 113 B |
Before Width: | Height: | Size: 108 B |
Before Width: | Height: | Size: 57 B |
Before Width: | Height: | Size: 5.5 KiB |
Before Width: | Height: | Size: 677 B |
Before Width: | Height: | Size: 70 B |
Before Width: | Height: | Size: 245 B |
Before Width: | Height: | Size: 256 B |
Before Width: | Height: | Size: 102 B |
Before Width: | Height: | Size: 110 B |
Before Width: | Height: | Size: 125 B |
Before Width: | Height: | Size: 3.1 KiB |
Before Width: | Height: | Size: 263 B |
Before Width: | Height: | Size: 76 B |
Before Width: | Height: | Size: 187 B |
Before Width: | Height: | Size: 342 B |
Before Width: | Height: | Size: 71 B |
Before Width: | Height: | Size: 295 B |
Before Width: | Height: | Size: 63 B |
Before Width: | Height: | Size: 194 B |
Before Width: | Height: | Size: 112 B |
Before Width: | Height: | Size: 703 B |
Before Width: | Height: | Size: 79 B |
Before Width: | Height: | Size: 75 B |
Before Width: | Height: | Size: 74 B |
Before Width: | Height: | Size: 78 B |
Before Width: | Height: | Size: 274 B |
Before Width: | Height: | Size: 70 B |
Before Width: | Height: | Size: 71 B |
Before Width: | Height: | Size: 71 B |
Before Width: | Height: | Size: 70 B |
Before Width: | Height: | Size: 71 B |
Before Width: | Height: | Size: 175 B |
Before Width: | Height: | Size: 51 B |
Before Width: | Height: | Size: 170 B |
Before Width: | Height: | Size: 111 B |
Before Width: | Height: | Size: 147 B |
Before Width: | Height: | Size: 110 B |
Before Width: | Height: | Size: 286 B |
Before Width: | Height: | Size: 169 B |
Before Width: | Height: | Size: 168 B |
Before Width: | Height: | Size: 70 B |
Before Width: | Height: | Size: 57 B |
Before Width: | Height: | Size: 43 B |
Before Width: | Height: | Size: 79 B |
Before Width: | Height: | Size: 83 B |
Before Width: | Height: | Size: 148 B |
Before Width: | Height: | Size: 147 B |
Before Width: | Height: | Size: 287 B |
Before Width: | Height: | Size: 163 B |
Before Width: | Height: | Size: 171 B |
Before Width: | Height: | Size: 165 B |
Before Width: | Height: | Size: 165 B |
Before Width: | Height: | Size: 163 B |
Before Width: | Height: | Size: 159 B |
Before Width: | Height: | Size: 88 B |
Before Width: | Height: | Size: 79 B |
Before Width: | Height: | Size: 79 B |
Before Width: | Height: | Size: 77 B |
Before Width: | Height: | Size: 245 B |
Before Width: | Height: | Size: 175 B |