Upgrade to Xinha 0.931. Xinha has been optimized for size and dozens of issues have been closed
out since the last upgrade . Add Firefox and Xinha buttons to main page to show our support.
This commit is contained in:
@@ -1,209 +1,200 @@
|
||||
// FullPage Plugin for HTMLArea-3.0
|
||||
// Implementation by Mihai Bazon. Sponsored by http://thycotic.com
|
||||
//
|
||||
// htmlArea v3.0 - Copyright (c) 2002 interactivetools.com, inc.
|
||||
// This notice MUST stay intact for use (see license.txt).
|
||||
//
|
||||
// A free WYSIWYG editor replacement for <textarea> fields.
|
||||
// For full source code and docs, visit http://www.interactivetools.com/
|
||||
//
|
||||
// Version 3.0 developed by Mihai Bazon for InteractiveTools.
|
||||
// http://dynarch.com/mishoo
|
||||
//
|
||||
// $Id$
|
||||
|
||||
function FullPage(editor) {
|
||||
this.editor = editor;
|
||||
|
||||
var cfg = editor.config;
|
||||
cfg.fullPage = true;
|
||||
var self = this;
|
||||
|
||||
cfg.registerButton("FP-docprop", this._lc("Document properties"), editor.imgURL("docprop.gif", "FullPage"), false,
|
||||
function(editor, id) {
|
||||
self.buttonPress(editor, id);
|
||||
});
|
||||
|
||||
// add a new line in the toolbar
|
||||
cfg.addToolbarElement(["separator","FP-docprop"],"separator",-1);
|
||||
function FullPage(_1){
|
||||
this.editor=_1;
|
||||
var _2=_1.config;
|
||||
_2.fullPage=true;
|
||||
var _3=this;
|
||||
_2.registerButton("FP-docprop",this._lc("Document properties"),_1.imgURL("docprop.gif","FullPage"),false,function(_4,id){
|
||||
_3.buttonPress(_4,id);
|
||||
});
|
||||
_2.addToolbarElement(["separator","FP-docprop"],"separator",-1);
|
||||
}
|
||||
|
||||
FullPage._pluginInfo = {
|
||||
name : "FullPage",
|
||||
version : "1.0",
|
||||
developer : "Mihai Bazon",
|
||||
developer_url : "http://dynarch.com/mishoo/",
|
||||
c_owner : "Mihai Bazon",
|
||||
sponsor : "Thycotic Software Ltd.",
|
||||
sponsor_url : "http://thycotic.com",
|
||||
license : "htmlArea"
|
||||
FullPage._pluginInfo={name:"FullPage",version:"1.0",developer:"Mihai Bazon",developer_url:"http://dynarch.com/mishoo/",c_owner:"Mihai Bazon",sponsor:"Thycotic Software Ltd.",sponsor_url:"http://thycotic.com",license:"htmlArea"};
|
||||
FullPage.prototype._lc=function(_6){
|
||||
return HTMLArea._lc(_6,"FullPage");
|
||||
};
|
||||
|
||||
FullPage.prototype._lc = function(string) {
|
||||
return HTMLArea._lc(string, 'FullPage');
|
||||
FullPage.prototype.buttonPress=function(_7,id){
|
||||
var _9=this;
|
||||
switch(id){
|
||||
case "FP-docprop":
|
||||
var _a=_7._doc;
|
||||
var _b=_a.getElementsByTagName("link");
|
||||
var _c="";
|
||||
var _d="";
|
||||
var _e="";
|
||||
var _f="";
|
||||
var _10="";
|
||||
for(var i=_b.length;--i>=0;){
|
||||
var _12=_b[i];
|
||||
if(/stylesheet/i.test(_12.rel)){
|
||||
if(/alternate/i.test(_12.rel)){
|
||||
_d=_12.href;
|
||||
}else{
|
||||
_c=_12.href;
|
||||
}
|
||||
}
|
||||
}
|
||||
var _13=_a.getElementsByTagName("meta");
|
||||
for(var i=_13.length;--i>=0;){
|
||||
var _14=_13[i];
|
||||
if(/content-type/i.test(_14.httpEquiv)){
|
||||
r=/^text\/html; *charset=(.*)$/i.exec(_14.content);
|
||||
_10=r[1];
|
||||
}else{
|
||||
if((/keywords/i.test(_14.name))||(/keywords/i.test(_14.id))){
|
||||
_e=_14.content;
|
||||
}else{
|
||||
if((/description/i.test(_14.name))||(/description/i.test(_14.id))){
|
||||
_f=_14.content;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
var _15=_a.getElementsByTagName("title")[0];
|
||||
_15=_15?_15.innerHTML:"";
|
||||
var _16={f_doctype:_7.doctype,f_title:_15,f_body_bgcolor:HTMLArea._colorToRgb(_a.body.style.backgroundColor),f_body_fgcolor:HTMLArea._colorToRgb(_a.body.style.color),f_base_style:_c,f_alt_style:_d,f_charset:_10,f_keywords:_e,f_description:_f,editor:_7};
|
||||
_7._popupDialog("plugin://FullPage/docprop",function(_17){
|
||||
_9.setDocProp(_17);
|
||||
},_16);
|
||||
break;
|
||||
}
|
||||
};
|
||||
|
||||
FullPage.prototype.buttonPress = function(editor, id) {
|
||||
var self = this;
|
||||
switch (id) {
|
||||
case "FP-docprop":
|
||||
var doc = editor._doc;
|
||||
var links = doc.getElementsByTagName("link");
|
||||
var style1 = '';
|
||||
var style2 = '';
|
||||
var keywords = '';
|
||||
var description = '';
|
||||
var charset = '';
|
||||
for (var i = links.length; --i >= 0;) {
|
||||
var link = links[i];
|
||||
if (/stylesheet/i.test(link.rel)) {
|
||||
if (/alternate/i.test(link.rel))
|
||||
style2 = link.href;
|
||||
else
|
||||
style1 = link.href;
|
||||
}
|
||||
}
|
||||
var metas = doc.getElementsByTagName("meta");
|
||||
for (var i = metas.length; --i >= 0;) {
|
||||
var meta = metas[i];
|
||||
if (/content-type/i.test(meta.httpEquiv)) {
|
||||
r = /^text\/html; *charset=(.*)$/i.exec(meta.content);
|
||||
charset = r[1];
|
||||
} else if ((/keywords/i.test(meta.name)) || (/keywords/i.test(meta.id))) {
|
||||
keywords = meta.content;
|
||||
} else if ((/description/i.test(meta.name)) || (/description/i.test(meta.id))) {
|
||||
description = meta.content;
|
||||
}
|
||||
}
|
||||
var title = doc.getElementsByTagName("title")[0];
|
||||
title = title ? title.innerHTML : '';
|
||||
var init = {
|
||||
f_doctype : editor.doctype,
|
||||
f_title : title,
|
||||
f_body_bgcolor : HTMLArea._colorToRgb(doc.body.style.backgroundColor),
|
||||
f_body_fgcolor : HTMLArea._colorToRgb(doc.body.style.color),
|
||||
f_base_style : style1,
|
||||
f_alt_style : style2,
|
||||
f_charset : charset,
|
||||
f_keywords : keywords,
|
||||
f_description : description,
|
||||
editor : editor
|
||||
};
|
||||
editor._popupDialog("plugin://FullPage/docprop", function(params) {
|
||||
self.setDocProp(params);
|
||||
}, init);
|
||||
break;
|
||||
}
|
||||
FullPage.prototype.setDocProp=function(_18){
|
||||
var txt="";
|
||||
var doc=this.editor._doc;
|
||||
var _1b=doc.getElementsByTagName("head")[0];
|
||||
var _1c=doc.getElementsByTagName("link");
|
||||
var _1d=doc.getElementsByTagName("meta");
|
||||
var _1e=null;
|
||||
var _1f=null;
|
||||
var _20=null;
|
||||
var _21=null;
|
||||
var _22=null;
|
||||
var _23=null;
|
||||
for(var i=_1c.length;--i>=0;){
|
||||
var _25=_1c[i];
|
||||
if(/stylesheet/i.test(_25.rel)){
|
||||
if(/alternate/i.test(_25.rel)){
|
||||
_1f=_25;
|
||||
}else{
|
||||
_1e=_25;
|
||||
}
|
||||
}
|
||||
}
|
||||
for(var i=_1d.length;--i>=0;){
|
||||
var _26=_1d[i];
|
||||
if(/content-type/i.test(_26.httpEquiv)){
|
||||
r=/^text\/html; *charset=(.*)$/i.exec(_26.content);
|
||||
_20=r[1];
|
||||
_21=_26;
|
||||
}else{
|
||||
if((/keywords/i.test(_26.name))||(/keywords/i.test(_26.id))){
|
||||
_22=_26;
|
||||
}else{
|
||||
if((/description/i.test(_26.name))||(/description/i.test(_26.id))){
|
||||
_23=_26;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
function createLink(alt){
|
||||
var _28=doc.createElement("link");
|
||||
_28.rel=alt?"alternate stylesheet":"stylesheet";
|
||||
_1b.appendChild(_28);
|
||||
return _28;
|
||||
}
|
||||
function createMeta(_29,_2a,_2b){
|
||||
var _2c=doc.createElement("meta");
|
||||
if(_29!=""){
|
||||
_2c.httpEquiv=_29;
|
||||
}
|
||||
if(_2a!=""){
|
||||
_2c.name=_2a;
|
||||
}
|
||||
if(_2a!=""){
|
||||
_2c.id=_2a;
|
||||
}
|
||||
_2c.content=_2b;
|
||||
_1b.appendChild(_2c);
|
||||
return _2c;
|
||||
}
|
||||
if(!_1e&&_18.f_base_style){
|
||||
_1e=createLink(false);
|
||||
}
|
||||
if(_18.f_base_style){
|
||||
_1e.href=_18.f_base_style;
|
||||
}else{
|
||||
if(_1e){
|
||||
_1b.removeChild(_1e);
|
||||
}
|
||||
}
|
||||
if(!_1f&&_18.f_alt_style){
|
||||
_1f=createLink(true);
|
||||
}
|
||||
if(_18.f_alt_style){
|
||||
_1f.href=_18.f_alt_style;
|
||||
}else{
|
||||
if(_1f){
|
||||
_1b.removeChild(_1f);
|
||||
}
|
||||
}
|
||||
if(_21){
|
||||
_1b.removeChild(_21);
|
||||
_21=null;
|
||||
}
|
||||
if(!_21&&_18.f_charset){
|
||||
_21=createMeta("Content-Type","","text/html; charset="+_18.f_charset);
|
||||
}
|
||||
if(!_22&&_18.f_keywords){
|
||||
_22=createMeta("","keywords",_18.f_keywords);
|
||||
}else{
|
||||
if(_18.f_keywords){
|
||||
_22.content=_18.f_keywords;
|
||||
}else{
|
||||
if(_22){
|
||||
_1b.removeChild(_22);
|
||||
}
|
||||
}
|
||||
}
|
||||
if(!_23&&_18.f_description){
|
||||
_23=createMeta("","description",_18.f_description);
|
||||
}else{
|
||||
if(_18.f_description){
|
||||
_23.content=_18.f_description;
|
||||
}else{
|
||||
if(_23){
|
||||
_1b.removeChild(_23);
|
||||
}
|
||||
}
|
||||
}
|
||||
for(var i in _18){
|
||||
var val=_18[i];
|
||||
switch(i){
|
||||
case "f_title":
|
||||
var _2e=doc.getElementsByTagName("title")[0];
|
||||
if(!_2e){
|
||||
_2e=doc.createElement("title");
|
||||
_1b.appendChild(_2e);
|
||||
}else{
|
||||
while(node=_2e.lastChild){
|
||||
_2e.removeChild(node);
|
||||
}
|
||||
}
|
||||
if(!HTMLArea.is_ie){
|
||||
_2e.appendChild(doc.createTextNode(val));
|
||||
}else{
|
||||
doc.title=val;
|
||||
}
|
||||
break;
|
||||
case "f_doctype":
|
||||
this.editor.setDoctype(val);
|
||||
break;
|
||||
case "f_body_bgcolor":
|
||||
doc.body.style.backgroundColor=val;
|
||||
break;
|
||||
case "f_body_fgcolor":
|
||||
doc.body.style.color=val;
|
||||
break;
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
FullPage.prototype.setDocProp = function(params) {
|
||||
var txt = "";
|
||||
var doc = this.editor._doc;
|
||||
var head = doc.getElementsByTagName("head")[0];
|
||||
var links = doc.getElementsByTagName("link");
|
||||
var metas = doc.getElementsByTagName("meta");
|
||||
var style1 = null;
|
||||
var style2 = null;
|
||||
var charset = null;
|
||||
var charset_meta = null;
|
||||
var keywords = null;
|
||||
var description = null;
|
||||
for (var i = links.length; --i >= 0;) {
|
||||
var link = links[i];
|
||||
if (/stylesheet/i.test(link.rel)) {
|
||||
if (/alternate/i.test(link.rel))
|
||||
style2 = link;
|
||||
else
|
||||
style1 = link;
|
||||
}
|
||||
}
|
||||
for (var i = metas.length; --i >= 0;) {
|
||||
var meta = metas[i];
|
||||
if (/content-type/i.test(meta.httpEquiv)) {
|
||||
r = /^text\/html; *charset=(.*)$/i.exec(meta.content);
|
||||
charset = r[1];
|
||||
charset_meta = meta;
|
||||
} else if ((/keywords/i.test(meta.name)) || (/keywords/i.test(meta.id))) {
|
||||
keywords = meta;
|
||||
} else if ((/description/i.test(meta.name)) || (/description/i.test(meta.id))) {
|
||||
description = meta;
|
||||
}
|
||||
}
|
||||
function createLink(alt) {
|
||||
var link = doc.createElement("link");
|
||||
link.rel = alt ? "alternate stylesheet" : "stylesheet";
|
||||
head.appendChild(link);
|
||||
return link;
|
||||
}
|
||||
function createMeta(httpEquiv, name, content) {
|
||||
var meta = doc.createElement("meta");
|
||||
if (httpEquiv!="") meta.httpEquiv = httpEquiv;
|
||||
if (name!="") meta.name = name;
|
||||
if (name!="") meta.id = name;
|
||||
meta.content = content;
|
||||
head.appendChild(meta);
|
||||
return meta;
|
||||
}
|
||||
|
||||
if (!style1 && params.f_base_style)
|
||||
style1 = createLink(false);
|
||||
if (params.f_base_style)
|
||||
style1.href = params.f_base_style;
|
||||
else if (style1)
|
||||
head.removeChild(style1);
|
||||
|
||||
if (!style2 && params.f_alt_style)
|
||||
style2 = createLink(true);
|
||||
if (params.f_alt_style)
|
||||
style2.href = params.f_alt_style;
|
||||
else if (style2)
|
||||
head.removeChild(style2);
|
||||
|
||||
if (charset_meta) {
|
||||
head.removeChild(charset_meta);
|
||||
charset_meta = null;
|
||||
}
|
||||
if (!charset_meta && params.f_charset)
|
||||
charset_meta = createMeta("Content-Type","", "text/html; charset="+params.f_charset);
|
||||
|
||||
if (!keywords && params.f_keywords)
|
||||
keywords = createMeta("","keywords", params.f_keywords);
|
||||
else if (params.f_keywords)
|
||||
keywords.content = params.f_keywords;
|
||||
else if (keywords)
|
||||
head.removeChild(keywords);
|
||||
|
||||
if (!description && params.f_description)
|
||||
description = createMeta("","description", params.f_description);
|
||||
else if (params.f_description)
|
||||
description.content = params.f_description;
|
||||
else if (description)
|
||||
head.removeChild(description);
|
||||
|
||||
for (var i in params) {
|
||||
var val = params[i];
|
||||
switch (i) {
|
||||
case "f_title":
|
||||
var title = doc.getElementsByTagName("title")[0];
|
||||
if (!title) {
|
||||
title = doc.createElement("title");
|
||||
head.appendChild(title);
|
||||
} else while (node = title.lastChild)
|
||||
title.removeChild(node);
|
||||
if (!HTMLArea.is_ie)
|
||||
title.appendChild(doc.createTextNode(val));
|
||||
else
|
||||
doc.title = val;
|
||||
break;
|
||||
case "f_doctype":
|
||||
this.editor.setDoctype(val);
|
||||
break;
|
||||
case "f_body_bgcolor":
|
||||
doc.body.style.backgroundColor = val;
|
||||
break;
|
||||
case "f_body_fgcolor":
|
||||
doc.body.style.color = val;
|
||||
break;
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 623 B After Width: | Height: | Size: 613 B |
@@ -1,18 +1,18 @@
|
||||
// I18N for the FullPage plugin
|
||||
// LANG: "de", ENCODING: UTF-8
|
||||
// Author: Holger Hees, http://www.systemconcept.de
|
||||
{
|
||||
"Alternate style-sheet:": "Alternativer Stylesheet:",
|
||||
"Background color:": "Hintergrundfarbe:",
|
||||
"Cancel": "Abbrechen",
|
||||
"DOCTYPE:": "DOCTYPE:",
|
||||
"Document properties": "Dokumenteigenschaften",
|
||||
"Document title:": "Dokumenttitel:",
|
||||
"OK": "OK",
|
||||
"Primary style-sheet:": "Stylesheet:",
|
||||
"Text color:": "Textfarbe:",
|
||||
"Character set:": "Zeichensatz",
|
||||
"Description:": "Beschreibung",
|
||||
"Keywords:": "Schlüsselworte",
|
||||
"UTF-8 (recommended)": "UTF-8 (empfohlen)"
|
||||
}
|
||||
// I18N for the FullPage plugin
|
||||
// LANG: "de", ENCODING: UTF-8
|
||||
// Author: Holger Hees, http://www.systemconcept.de
|
||||
{
|
||||
"Alternate style-sheet:": "Alternativer Stylesheet:",
|
||||
"Background color:": "Hintergrundfarbe:",
|
||||
"Cancel": "Abbrechen",
|
||||
"DOCTYPE:": "DOCTYPE:",
|
||||
"Document properties": "Dokumenteigenschaften",
|
||||
"Document title:": "Dokumenttitel:",
|
||||
"OK": "OK",
|
||||
"Primary style-sheet:": "Stylesheet:",
|
||||
"Text color:": "Textfarbe:",
|
||||
"Character set:": "Zeichensatz",
|
||||
"Description:": "Beschreibung",
|
||||
"Keywords:": "Schlüsselworte",
|
||||
"UTF-8 (recommended)": "UTF-8 (empfohlen)"
|
||||
}
|
||||
|
||||
@@ -1,17 +1,17 @@
|
||||
// I18N for the FullPage plugin
|
||||
// LANG: "fr", ENCODING: UTF-8
|
||||
{
|
||||
"Alternate style-sheet:": "Feuille CSS alternative",
|
||||
"Background color:": "Couleur d'arrière plan",
|
||||
"Cancel": "Annuler",
|
||||
"DOCTYPE:": "DOCTYPE",
|
||||
"Document properties": "Propriétés du document",
|
||||
"Document title:": "Titre du document",
|
||||
"OK": "OK",
|
||||
"Primary style-sheet:": "Feuille CSS primaire",
|
||||
"Text color:": "Couleur de texte",
|
||||
"Character set:": "Jeu de caractères",
|
||||
"Description:": "Description",
|
||||
"Keywords:": "Mots clés",
|
||||
"UTF-8 (recommended)": "UTF-8 (recommandé)"
|
||||
// I18N for the FullPage plugin
|
||||
// LANG: "fr", ENCODING: UTF-8
|
||||
{
|
||||
"Alternate style-sheet:": "Feuille CSS alternative",
|
||||
"Background color:": "Couleur d'arrière plan",
|
||||
"Cancel": "Annuler",
|
||||
"DOCTYPE:": "DOCTYPE",
|
||||
"Document properties": "Propriétés du document",
|
||||
"Document title:": "Titre du document",
|
||||
"OK": "OK",
|
||||
"Primary style-sheet:": "Feuille CSS primaire",
|
||||
"Text color:": "Couleur de texte",
|
||||
"Character set:": "Jeu de caractères",
|
||||
"Description:": "Description",
|
||||
"Keywords:": "Mots clés",
|
||||
"UTF-8 (recommended)": "UTF-8 (recommandé)"
|
||||
};
|
||||
@@ -1,14 +1,14 @@
|
||||
// I18N for the FullPage plugin
|
||||
// LANG: "he", ENCODING: UTF-8
|
||||
// Author: Liron Newman, http://www.eesh.net, <plastish at ultinet dot org>
|
||||
{
|
||||
"Alternate style-sheet:": "גיליון סגנון אחר:",
|
||||
"Background color:": "צבע רקע:",
|
||||
"Cancel": "ביטול",
|
||||
"DOCTYPE:": "DOCTYPE:",
|
||||
"Document properties": "מאפייני מסמך",
|
||||
"Document title:": "כותרת מסמך:",
|
||||
"OK": "אישור",
|
||||
"Primary style-sheet:": "גיליון סגנון ראשי:",
|
||||
"Text color:": "צבע טקסט:"
|
||||
};
|
||||
// I18N for the FullPage plugin
|
||||
// LANG: "he", ENCODING: UTF-8
|
||||
// Author: Liron Newman, http://www.eesh.net, <plastish at ultinet dot org>
|
||||
{
|
||||
"Alternate style-sheet:": "גיליון סגנון אחר:",
|
||||
"Background color:": "צבע רקע:",
|
||||
"Cancel": "ביטול",
|
||||
"DOCTYPE:": "DOCTYPE:",
|
||||
"Document properties": "מאפייני מסמך",
|
||||
"Document title:": "כותרת מסמך:",
|
||||
"OK": "אישור",
|
||||
"Primary style-sheet:": "גיליון סגנון ראשי:",
|
||||
"Text color:": "צבע טקסט:"
|
||||
};
|
||||
|
||||
17
xinha/plugins/FullPage/lang/ja.js
Normal file
17
xinha/plugins/FullPage/lang/ja.js
Normal file
@@ -0,0 +1,17 @@
|
||||
// I18N constants
|
||||
// LANG: "ja", ENCODING: UTF-8
|
||||
{
|
||||
"Alternate style-sheet:": "代替スタイルシート:",
|
||||
"Background color:": "背景色:",
|
||||
"Cancel": "中止",
|
||||
"DOCTYPE:": "DOCTYPE:",
|
||||
"Document properties": "文書のプロパティ",
|
||||
"Document title:": "文書の表題:",
|
||||
"OK": "OK",
|
||||
"Primary style-sheet:": "優先スタイルシート:",
|
||||
"Text color:": "文字色:",
|
||||
"Character set:": "文字セット:",
|
||||
"Description:": "説明:",
|
||||
"Keywords:": "キーワード:",
|
||||
"UTF-8 (recommended)": "UTF-8 (推奨)"
|
||||
};
|
||||
@@ -1,5 +1,5 @@
|
||||
// I18N constants
|
||||
// LANG: "no", ENCODING: UTF-8
|
||||
// LANG: "nb", ENCODING: UTF-8
|
||||
// translated: Kim Steinhaug, http://www.steinhaug.com/, kim@steinhaug.com
|
||||
{
|
||||
"Alternate style-sheet:": "Alternativt stilsett:",
|
||||
@@ -1,14 +1,14 @@
|
||||
// I18N for the FullPage plugin
|
||||
// LANG: "en", ENCODING: UTF-8
|
||||
// Author: Mihai Bazon, http://dynarch.com/mishoo
|
||||
{
|
||||
"Alternate style-sheet:": "Template CSS alternativ:",
|
||||
"Background color:": "Culoare de fundal:",
|
||||
"Cancel": "Renunţă",
|
||||
"DOCTYPE:": "DOCTYPE:",
|
||||
"Document properties": "Proprietăţile documentului",
|
||||
"Document title:": "Titlul documentului:",
|
||||
"OK": "Acceptă",
|
||||
"Primary style-sheet:": "Template CSS principal:",
|
||||
"Text color:": "Culoare text:"
|
||||
};
|
||||
// I18N for the FullPage plugin
|
||||
// LANG: "en", ENCODING: UTF-8
|
||||
// Author: Mihai Bazon, http://dynarch.com/mishoo
|
||||
{
|
||||
"Alternate style-sheet:": "Template CSS alternativ:",
|
||||
"Background color:": "Culoare de fundal:",
|
||||
"Cancel": "Renunţă",
|
||||
"DOCTYPE:": "DOCTYPE:",
|
||||
"Document properties": "Proprietăţile documentului",
|
||||
"Document title:": "Titlul documentului:",
|
||||
"OK": "Acceptă",
|
||||
"Primary style-sheet:": "Template CSS principal:",
|
||||
"Text color:": "Culoare text:"
|
||||
};
|
||||
|
||||
@@ -1,142 +1,142 @@
|
||||
<html>
|
||||
<head>
|
||||
<title>Document properties</title>
|
||||
<script type="text/javascript" src="../../../popups/popup.js"></script>
|
||||
<script type="text/javascript" src="../../../popups/color_picker.js"></script>
|
||||
<link rel="stylesheet" type="text/css" href="../../../popups/popup.css" />
|
||||
<script type="text/javascript">
|
||||
FullPage = window.opener.FullPage; // load the FullPage plugin and lang file ;-)
|
||||
window.resizeTo(400, 130);
|
||||
var accepted = {
|
||||
f_doctype : true,
|
||||
f_title : true,
|
||||
f_body_bgcolor : true,
|
||||
f_body_fgcolor : true,
|
||||
f_base_style : true,
|
||||
f_alt_style : true,
|
||||
f_charset : true,
|
||||
f_keywords : true,
|
||||
f_description : true
|
||||
};
|
||||
|
||||
var editor = null;
|
||||
function Init() {
|
||||
__dlg_translate('FullPage');
|
||||
__dlg_init();
|
||||
var params = window.dialogArguments;
|
||||
for (var i in params) {
|
||||
if (i in accepted) {
|
||||
var el = document.getElementById(i);
|
||||
el.value = params[i];
|
||||
}
|
||||
}
|
||||
editor = params.editor;
|
||||
|
||||
var bgCol_pick = document.getElementById('bgCol_pick');
|
||||
var f_body_bgcolor = document.getElementById('f_body_bgcolor');
|
||||
var bgColPicker = new colorPicker({cellsize:'5px',callback:function(color){f_body_bgcolor.value=color;}});
|
||||
bgCol_pick.onclick = function() { bgColPicker.open('top,right', f_body_bgcolor ); }
|
||||
|
||||
var fgCol_pick = document.getElementById('fgCol_pick');
|
||||
var f_body_fgcolor = document.getElementById('f_body_fgcolor');
|
||||
var fgColPicker = new colorPicker({cellsize:'5px',callback:function(color){f_body_fgcolor.value=color;}});
|
||||
fgCol_pick.onclick = function() { fgColPicker.open('top,right', f_body_fgcolor ); }
|
||||
|
||||
document.getElementById("f_title").focus();
|
||||
document.getElementById("f_title").select();
|
||||
}
|
||||
|
||||
function onOK() {
|
||||
var required = {
|
||||
};
|
||||
for (var i in required) {
|
||||
var el = document.getElementById(i);
|
||||
if (!el.value) {
|
||||
alert(required[i]);
|
||||
el.focus();
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
var param = {};
|
||||
for (var i in accepted) {
|
||||
var el = document.getElementById(i);
|
||||
param[i] = el.value;
|
||||
}
|
||||
__dlg_close(param);
|
||||
return false;
|
||||
}
|
||||
|
||||
function onCancel() {
|
||||
__dlg_close(null);
|
||||
return false;
|
||||
}
|
||||
</script>
|
||||
<style type="text/css">
|
||||
.fr { width: 11em; float: left; padding: 2px 5px; text-align: right; }
|
||||
.txt { width:200px; }
|
||||
div { clear:both; }
|
||||
.picker { width:30px; }
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body class="dialog" onload="Init()">
|
||||
|
||||
<div class="title">Document properties</div>
|
||||
|
||||
<div>
|
||||
<label class="fr" for="f_title">Document title:</label>
|
||||
<input type="text" id="f_title" class="txt" />
|
||||
</div>
|
||||
<div>
|
||||
<label class="fr" for="f_doctype">DOCTYPE:</label>
|
||||
<input type="text" id="f_doctype" class="txt" />
|
||||
</div>
|
||||
<div>
|
||||
<label class="fr" for="f_keywords">Keywords:</label>
|
||||
|
||||
<input type="text" id="f_keywords" class="txt" />
|
||||
</div>
|
||||
<div>
|
||||
<label class="fr" for="f_description">Description:</label>
|
||||
<input type="text" id="f_description" class="txt" />
|
||||
</div>
|
||||
<div>
|
||||
<label class="fr" for="f_charset">Character set:</label>
|
||||
<select id="f_charset" class="txt">
|
||||
<option value=""></option>
|
||||
<option value="utf-8">UTF-8 (recommended)</option>
|
||||
<option value="windows-1251">cyrillic (WINDOWS-1251)</option>
|
||||
|
||||
<option value="koi8-r">cyrillic (KOI8-R)</option>
|
||||
<option value="iso-8859-5">cyrillic (ISO-8859-5)</option>
|
||||
<option value="iso-8859-1">western (ISO-8859-1)</option>
|
||||
</select>
|
||||
</div>
|
||||
<div>
|
||||
<label class="fr" for="f_base_style">Primary style-sheet:</label>
|
||||
<input type="text" id="f_base_style" class="txt" />
|
||||
</div>
|
||||
<div>
|
||||
<label class="fr" for="f_alt_style">Alternate style-sheet:</label>
|
||||
<input type="text" id="f_alt_style" class="txt" />
|
||||
</div>
|
||||
<div>
|
||||
<label class="fr" for="f_body_bgcolor">Background color:</label>
|
||||
<input name="f_body_bgcolor" type="text" id="f_body_bgcolor" size="7" />
|
||||
<button type="button" id="bgCol_pick" class="picker">...</button>
|
||||
</div>
|
||||
<div>
|
||||
<label class="fr" for="f_body_fgcolor">Text color:</label>
|
||||
<input name="f_body_fgcolor" type="text" id="f_body_fgcolor" size="7" />
|
||||
<button type="button" id="fgCol_pick" class="picker">...</button>
|
||||
</div>
|
||||
|
||||
<div id="buttons">
|
||||
<button type="button" name="ok" onclick="return onOK();"><span>OK</span></button>
|
||||
|
||||
<button type="button" name="cancel" onclick="return onCancel();"><span>Cancel</span></button>
|
||||
</div>
|
||||
|
||||
</body>
|
||||
<html>
|
||||
<head>
|
||||
<title>Document properties</title>
|
||||
<script type="text/javascript" src="../../../popups/popup.js"></script>
|
||||
<script type="text/javascript" src="../../../modules/ColorPicker/ColorPicker.js"></script>
|
||||
<link rel="stylesheet" type="text/css" href="../../../popups/popup.css" />
|
||||
<script type="text/javascript">
|
||||
FullPage = window.opener.FullPage; // load the FullPage plugin and lang file ;-)
|
||||
window.resizeTo(400, 130);
|
||||
var accepted = {
|
||||
f_doctype : true,
|
||||
f_title : true,
|
||||
f_body_bgcolor : true,
|
||||
f_body_fgcolor : true,
|
||||
f_base_style : true,
|
||||
f_alt_style : true,
|
||||
f_charset : true,
|
||||
f_keywords : true,
|
||||
f_description : true
|
||||
};
|
||||
|
||||
var editor = null;
|
||||
function Init() {
|
||||
__dlg_translate('FullPage');
|
||||
__dlg_init();
|
||||
var params = window.dialogArguments;
|
||||
for (var i in params) {
|
||||
if (i in accepted) {
|
||||
var el = document.getElementById(i);
|
||||
el.value = params[i];
|
||||
}
|
||||
}
|
||||
editor = params.editor;
|
||||
|
||||
var bgCol_pick = document.getElementById('bgCol_pick');
|
||||
var f_body_bgcolor = document.getElementById('f_body_bgcolor');
|
||||
var bgColPicker = new Xinha.colorPicker({cellsize:'5px',callback:function(color){f_body_bgcolor.value=color;}});
|
||||
bgCol_pick.onclick = function() { bgColPicker.open('top,right', f_body_bgcolor ); }
|
||||
|
||||
var fgCol_pick = document.getElementById('fgCol_pick');
|
||||
var f_body_fgcolor = document.getElementById('f_body_fgcolor');
|
||||
var fgColPicker = new Xinha.colorPicker({cellsize:'5px',callback:function(color){f_body_fgcolor.value=color;}});
|
||||
fgCol_pick.onclick = function() { fgColPicker.open('top,right', f_body_fgcolor ); }
|
||||
|
||||
document.getElementById("f_title").focus();
|
||||
document.getElementById("f_title").select();
|
||||
}
|
||||
|
||||
function onOK() {
|
||||
var required = {
|
||||
};
|
||||
for (var i in required) {
|
||||
var el = document.getElementById(i);
|
||||
if (!el.value) {
|
||||
alert(required[i]);
|
||||
el.focus();
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
var param = {};
|
||||
for (var i in accepted) {
|
||||
var el = document.getElementById(i);
|
||||
param[i] = el.value;
|
||||
}
|
||||
__dlg_close(param);
|
||||
return false;
|
||||
}
|
||||
|
||||
function onCancel() {
|
||||
__dlg_close(null);
|
||||
return false;
|
||||
}
|
||||
</script>
|
||||
<style type="text/css">
|
||||
.fr { width: 11em; float: left; padding: 2px 5px; text-align: right; }
|
||||
.txt { width:200px; }
|
||||
div { clear:both; }
|
||||
.picker { width:30px; }
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body class="dialog" onload="Init()">
|
||||
|
||||
<div class="title">Document properties</div>
|
||||
|
||||
<div>
|
||||
<label class="fr" for="f_title">Document title:</label>
|
||||
<input type="text" id="f_title" class="txt" />
|
||||
</div>
|
||||
<div>
|
||||
<label class="fr" for="f_doctype">DOCTYPE:</label>
|
||||
<input type="text" id="f_doctype" class="txt" />
|
||||
</div>
|
||||
<div>
|
||||
<label class="fr" for="f_keywords">Keywords:</label>
|
||||
|
||||
<input type="text" id="f_keywords" class="txt" />
|
||||
</div>
|
||||
<div>
|
||||
<label class="fr" for="f_description">Description:</label>
|
||||
<input type="text" id="f_description" class="txt" />
|
||||
</div>
|
||||
<div>
|
||||
<label class="fr" for="f_charset">Character set:</label>
|
||||
<select id="f_charset" class="txt">
|
||||
<option value=""></option>
|
||||
<option value="utf-8">UTF-8 (recommended)</option>
|
||||
<option value="windows-1251">cyrillic (WINDOWS-1251)</option>
|
||||
|
||||
<option value="koi8-r">cyrillic (KOI8-R)</option>
|
||||
<option value="iso-8859-5">cyrillic (ISO-8859-5)</option>
|
||||
<option value="iso-8859-1">western (ISO-8859-1)</option>
|
||||
</select>
|
||||
</div>
|
||||
<div>
|
||||
<label class="fr" for="f_base_style">Primary style-sheet:</label>
|
||||
<input type="text" id="f_base_style" class="txt" />
|
||||
</div>
|
||||
<div>
|
||||
<label class="fr" for="f_alt_style">Alternate style-sheet:</label>
|
||||
<input type="text" id="f_alt_style" class="txt" />
|
||||
</div>
|
||||
<div>
|
||||
<label class="fr" for="f_body_bgcolor">Background color:</label>
|
||||
<input name="f_body_bgcolor" type="text" id="f_body_bgcolor" size="7" />
|
||||
<button type="button" id="bgCol_pick" class="picker">...</button>
|
||||
</div>
|
||||
<div>
|
||||
<label class="fr" for="f_body_fgcolor">Text color:</label>
|
||||
<input name="f_body_fgcolor" type="text" id="f_body_fgcolor" size="7" />
|
||||
<button type="button" id="fgCol_pick" class="picker">...</button>
|
||||
</div>
|
||||
|
||||
<div id="buttons">
|
||||
<button type="button" name="ok" onclick="return onOK();"><span>OK</span></button>
|
||||
|
||||
<button type="button" name="cancel" onclick="return onCancel();"><span>Cancel</span></button>
|
||||
</div>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,89 +0,0 @@
|
||||
<html>
|
||||
<head>
|
||||
<title>Test of FullPage plugin</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<script type="text/javascript">
|
||||
_editor_url = "../../";
|
||||
</script>
|
||||
|
||||
<!-- load the main HTMLArea files -->
|
||||
<script type="text/javascript" src="../../htmlarea.js"></script>
|
||||
<script type="text/javascript" src="../../lang/en.js"></script>
|
||||
<script type="text/javascript" src="../../dialog.js"></script>
|
||||
|
||||
<!-- <script type="text/javascript" src="popupdiv.js"></script> -->
|
||||
<script type="text/javascript" src="../../popupwin.js"></script>
|
||||
|
||||
<script type="text/javascript">
|
||||
HTMLArea.loadPlugin("TableOperations");
|
||||
HTMLArea.loadPlugin("SpellChecker");
|
||||
HTMLArea.loadPlugin("FullPage");
|
||||
|
||||
function initDocument() {
|
||||
var editor = new HTMLArea("editor");
|
||||
editor.registerPlugin(TableOperations);
|
||||
editor.registerPlugin(SpellChecker);
|
||||
editor.registerPlugin(FullPage);
|
||||
editor.generate();
|
||||
}
|
||||
</script>
|
||||
|
||||
<style type="text/css">
|
||||
@import url(../../htmlarea.css);
|
||||
</style>
|
||||
|
||||
</head>
|
||||
|
||||
<body onload="initDocument()">
|
||||
<h1>Test of FullPage plugin</h1>
|
||||
|
||||
<textarea id="editor" style="height: 30em; width: 100%;">
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
|
||||
<html>
|
||||
<head>
|
||||
<title>FullPage plugin for HTMLArea</title>
|
||||
<link rel="alternate stylesheet" href="http://dynarch.com/mishoo/css/dark.css" />
|
||||
<link rel="stylesheet" href="http://dynarch.com/mishoo/css/cool-light.css" />
|
||||
</head>
|
||||
<body style="background-color: #ddddee; color: #000077;">
|
||||
<table style="width:60%; height: 90%; margin: 2% auto 1% auto;" align="center" border="0" cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td style="background-color: #ddeedd; border: 2px solid #002; height: 1.5em; padding: 2px; font: bold 24px Verdana;">
|
||||
FullPage plugin
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="background-color: #fff; border: 1px solid #aab; padding: 1em 3em; font: 12px Verdana;">
|
||||
<p>
|
||||
This plugin enables one to edit a full HTML file in <a
|
||||
href="http://dynarch.com/htmlarea/">HTMLArea</a>. This is not
|
||||
normally possible with just the core editor since it only
|
||||
retrieves the HTML inside the <code>body</code> tag.
|
||||
</p>
|
||||
<p>
|
||||
It provides the ability to change the <code>DOCTYPE</code> of
|
||||
the document, <code>body</code> <code>bgcolor</code> and
|
||||
<code>fgcolor</code> attributes as well as to add additional
|
||||
<code>link</code>-ed stylesheets. Cool, eh?
|
||||
</p>
|
||||
<p>
|
||||
The development of this plugin was initiated and sponsored by
|
||||
<a href="http://thycotic.com">Thycotic Software Ltd.</a>.
|
||||
That's also cool, isn't it? ;-)
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</body>
|
||||
</html>
|
||||
</textarea>
|
||||
|
||||
<hr />
|
||||
<address><a href="http://dynarch.com/mishoo/">Mihai Bazon</a></address>
|
||||
<!-- Created: Wed Oct 1 19:55:37 EEST 2003 -->
|
||||
<!-- hhmts start -->
|
||||
Last modified on Sat Oct 25 01:06:59 2003
|
||||
<!-- hhmts end -->
|
||||
<!-- doc-lang: English -->
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user