Software: Apache/2.0.54 (Unix) mod_perl/1.99_09 Perl/v5.8.0 mod_ssl/2.0.54 OpenSSL/0.9.7l DAV/2 FrontPage/5.0.2.2635 PHP/4.4.0 mod_gzip/2.0.26.1a uname -a: Linux snow.he.net 4.4.276-v2-mono-1 #1 SMP Wed Jul 21 11:21:17 PDT 2021 i686 uid=99(nobody) gid=98(nobody) groups=98(nobody) Safe-mode: OFF (not secure) /usr/local/webmail2/plugins/html_mail/htmlarea/plugins/PasteText/ drwxr-xr-x | |
| Viewing file: Select action/file-type: // Paste Plain Text plugin for Xinha
// Distributed under the same terms as Xinha itself.
// This notice MUST stay intact for use (see license.txt).
function PasteText(editor) {
this.editor = editor;
var cfg = editor.config;
var self = this;
cfg.registerButton({
id : "pastetext",
tooltip : this._lc("Paste as Plain Text"),
image : editor.imgURL("ed_paste_text.gif", "PasteText"),
textMode : false,
action : function(editor) {
self.buttonPress(editor);
}
});
cfg.addToolbarElement("pastetext", ["paste", "killword"], 1);
}
PasteText._pluginInfo = {
name : "PasteText",
version : "1.2",
developer : "Michael Harris",
developer_url : "http://www.jonesadvisorygroup.com",
c_owner : "Jones Advisory Group",
sponsor : "Jones International University",
sponsor_url : "http://www.jonesinternational.edu",
license : "htmlArea"
};
PasteText.prototype._lc = function(string) {
return Xinha._lc(string, 'PasteText');
};
Xinha.Config.prototype.PasteText =
{
showParagraphOption : true,
newParagraphDefault :true
}
PasteText.prototype.buttonPress = function(editor) {
var editor = this.editor;
var outparam = editor.config.PasteText;
var action = function( ret ) {
var html = ret.text;
var insertParagraphs = ret.insertParagraphs;
html = html.replace(/</g, "<");
html = html.replace(/>/g, ">");
if ( ret.insertParagraphs)
{
html = html.replace(/\t/g," ");
html = html.replace(/\n/g,"</p><p>");
html="<p>" + html + "</p>";
if (Xinha.is_ie)
{
editor.insertHTML(html);
}
else
{
editor.execCommand("inserthtml",false,html);
}
}
else
{
html = html.replace(/\n/g,"<br />");
editor.insertHTML(html);
}
}
Dialog( _editor_url+ "plugins/PasteText/popups/paste_text.html", action, outparam);
}; |
:: Command execute :: | |
--[ c99shell v. 1.0 pre-release build #13 powered by Captain Crunch Security Team | http://ccteam.ru | Generation time: 0.0046 ]-- |