code stringlengths 1 2.08M | language stringclasses 1
value |
|---|---|
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'specialchar', 'fr',
{
euro: 'Symbole Euro',
lsquo: 'Guillemet simple ouvrant',
rsquo: 'Guillemet simple fermant',
ldquo: 'Guillemet double ouvrant',
rdquo: 'Guillemet double fermant',
ndash: 'Tiret haut',
mdash: 'Tiret bas underscore',
iexcl: 'Point d\'exclamation inversé',
cent: 'Symbole Cent',
pound: 'Symbole Livre Sterling',
curren: 'Symbole monétaire',
yen: 'Symbole Yen',
brvbar: 'Barre verticale scindée',
sect: 'Section',
uml: 'Tréma',
copy: 'Symbole Copyright',
ordf: 'Indicateur ordinal féminin',
laquo: 'Guillemet français ouvrant',
not: 'Crochet de négation',
reg: 'Marque déposée',
macr: 'Macron',
deg: 'Degré',
sup2: 'Exposant 2',
sup3: '\\tExposant 3',
acute: 'Accent aigu',
micro: 'Omicron',
para: 'Paragraphe',
middot: 'Point médian',
cedil: 'Cédille',
sup1: '\\tExposant 1',
ordm: 'Indicateur ordinal masculin',
raquo: 'Guillemet français fermant',
frac14: 'Un quart',
frac12: 'Un demi',
frac34: 'Trois quarts',
iquest: 'Point d\'interrogation inversé',
Agrave: 'A majuscule accent grave',
Aacute: 'A majuscule accent aigu',
Acirc: 'A majuscule accent circonflexe',
Atilde: 'A majuscule avec caron',
Auml: 'A majuscule tréma',
Aring: 'A majuscule avec un rond au-dessus',
AElig: 'Æ majuscule ligaturés',
Ccedil: 'C majuscule cédille',
Egrave: 'E majuscule accent grave',
Eacute: 'E majuscule accent aigu',
Ecirc: 'E majuscule accent circonflexe',
Euml: 'E majuscule tréma',
Igrave: 'I majuscule accent grave',
Iacute: 'I majuscule accent aigu',
Icirc: 'I majuscule accent circonflexe',
Iuml: 'I majuscule tréma',
ETH: 'Lettre majuscule islandaise ED',
Ntilde: 'N majuscule avec caron',
Ograve: 'O majuscule accent grave',
Oacute: 'O majuscule accent aigu',
Ocirc: 'O majuscule accent circonflexe',
Otilde: 'O majuscule avec caron',
Ouml: 'O majuscule tréma',
times: 'Multiplication',
Oslash: 'O majuscule barré',
Ugrave: 'U majuscule accent grave',
Uacute: 'U majuscule accent aigu',
Ucirc: 'U majuscule accent circonflexe',
Uuml: 'U majuscule tréma',
Yacute: 'Y majuscule accent aigu',
THORN: 'Lettre islandaise Thorn majuscule',
szlig: 'Lettre minuscule allemande s dur',
agrave: 'a minuscule accent grave',
aacute: 'a minuscule accent aigu',
acirc: 'a minuscule accent circonflexe',
atilde: 'a minuscule avec caron',
auml: 'a minuscule tréma',
aring: 'a minuscule avec un rond au-dessus',
aelig: 'æ minuscule ligaturés',
ccedil: 'c minuscule cédille',
egrave: 'e minuscule accent grave',
eacute: 'e minuscule accent aigu',
ecirc: 'e minuscule accent circonflexe',
euml: 'e minuscule tréma',
igrave: 'i minuscule accent grave',
iacute: 'i minuscule accent aigu',
icirc: 'i minuscule accent circonflexe',
iuml: 'i minuscule tréma',
eth: 'Lettre minuscule islandaise ED',
ntilde: 'n minuscule avec caron',
ograve: 'o minuscule accent grave',
oacute: 'o minuscule accent aigu',
ocirc: 'o minuscule accent circonflexe',
otilde: 'o minuscule avec caron',
ouml: 'o minuscule tréma',
divide: 'Division',
oslash: 'o minuscule barré',
ugrave: 'u minuscule accent grave',
uacute: 'u minuscule accent aigu',
ucirc: 'u minuscule accent circonflexe',
uuml: 'u minuscule tréma',
yacute: 'y minuscule accent aigu',
thorn: 'Lettre islandaise thorn minuscule',
yuml: 'y minuscule tréma',
OElig: 'ligature majuscule latine Œ',
oelig: 'ligature minuscule latine œ',
'372': 'W majuscule accent circonflexe',
'374': 'Y majuscule accent circonflexe',
'373': 'w minuscule accent circonflexe',
'375': 'y minuscule accent circonflexe',
sbquo: 'Guillemet simple fermant (anglais)',
'8219': 'Guillemet-virgule supérieur culbuté',
bdquo: 'Guillemet-virgule double inférieur',
hellip: 'Points de suspension',
trade: 'Marque commerciale (trade mark)',
'9658': 'Flèche noire pointant vers la droite',
bull: 'Gros point médian',
rarr: 'Flèche vers la droite',
rArr: 'Double flèche vers la droite',
hArr: 'Double flèche vers la gauche',
diams: 'Carreau noir',
asymp: 'Presque égal'
});
| JavaScript |
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'specialchar', 'zh-cn',
{
euro: '欧元符号',
lsquo: '左单引号',
rsquo: '右单引号',
ldquo: '左双引号',
rdquo: '右双引号',
ndash: '短划线',
mdash: '破折号',
iexcl: '竖翻叹号',
cent: '分币标记',
pound: '英镑标记',
curren: '货币标记',
yen: '日元标记',
brvbar: '间断条',
sect: '节标记',
uml: '分音符',
copy: '版权所有标记',
ordf: '阴性顺序指示符',
laquo: '左指双尖引号',
not: '非标记',
reg: '注册标记',
macr: '长音符',
deg: '度标记',
sup2: '上标二',
sup3: '上标三',
acute: '锐音符',
micro: '微符',
para: '段落标记',
middot: '中间点',
cedil: '下加符',
sup1: '上标一',
ordm: '阳性顺序指示符',
raquo: '右指双尖引号',
frac14: '普通分数四分之一',
frac12: '普通分数二分之一',
frac34: '普通分数四分之三',
iquest: '竖翻问号',
Agrave: '带抑音符的拉丁文大写字母 A',
Aacute: '带锐音符的拉丁文大写字母 A',
Acirc: '带扬抑符的拉丁文大写字母 A',
Atilde: '带颚化符的拉丁文大写字母 A',
Auml: '带分音符的拉丁文大写字母 A',
Aring: '带上圆圈的拉丁文大写字母 A',
AElig: '拉丁文大写字母 Ae',
Ccedil: '带下加符的拉丁文大写字母 C',
Egrave: '带抑音符的拉丁文大写字母 E',
Eacute: '带锐音符的拉丁文大写字母 E',
Ecirc: '带扬抑符的拉丁文大写字母 E',
Euml: '带分音符的拉丁文大写字母 E',
Igrave: '带抑音符的拉丁文大写字母 I',
Iacute: '带锐音符的拉丁文大写字母 I',
Icirc: '带扬抑符的拉丁文大写字母 I',
Iuml: '带分音符的拉丁文大写字母 I',
ETH: '拉丁文大写字母 Eth',
Ntilde: '带颚化符的拉丁文大写字母 N',
Ograve: '带抑音符的拉丁文大写字母 O',
Oacute: '带锐音符的拉丁文大写字母 O',
Ocirc: '带扬抑符的拉丁文大写字母 O',
Otilde: '带颚化符的拉丁文大写字母 O',
Ouml: '带分音符的拉丁文大写字母 O',
times: '乘号',
Oslash: '带粗线的拉丁文大写字母 O',
Ugrave: '带抑音符的拉丁文大写字母 U',
Uacute: '带锐音符的拉丁文大写字母 U',
Ucirc: '带扬抑符的拉丁文大写字母 U',
Uuml: '带分音符的拉丁文大写字母 U',
Yacute: '带抑音符的拉丁文大写字母 Y',
THORN: '拉丁文大写字母 Thorn',
szlig: '拉丁文小写字母清音 S',
agrave: '带抑音符的拉丁文小写字母 A',
aacute: '带锐音符的拉丁文小写字母 A',
acirc: '带扬抑符的拉丁文小写字母 A',
atilde: '带颚化符的拉丁文小写字母 A',
auml: '带分音符的拉丁文小写字母 A',
aring: '带上圆圈的拉丁文小写字母 A',
aelig: '拉丁文小写字母 Ae',
ccedil: '带下加符的拉丁文小写字母 C',
egrave: '带抑音符的拉丁文小写字母 E',
eacute: '带锐音符的拉丁文小写字母 E',
ecirc: '带扬抑符的拉丁文小写字母 E',
euml: '带分音符的拉丁文小写字母 E',
igrave: '带抑音符的拉丁文小写字母 I',
iacute: '带锐音符的拉丁文小写字母 I',
icirc: '带扬抑符的拉丁文小写字母 I',
iuml: '带分音符的拉丁文小写字母 I',
eth: '拉丁文小写字母 Eth',
ntilde: '带颚化符的拉丁文小写字母 N',
ograve: '带抑音符的拉丁文小写字母 O',
oacute: '带锐音符的拉丁文小写字母 O',
ocirc: '带扬抑符的拉丁文小写字母 O',
otilde: '带颚化符的拉丁文小写字母 O',
ouml: '带分音符的拉丁文小写字母 O',
divide: '除号',
oslash: '带粗线的拉丁文小写字母 O',
ugrave: '带抑音符的拉丁文小写字母 U',
uacute: '带锐音符的拉丁文小写字母 U',
ucirc: '带扬抑符的拉丁文小写字母 U',
uuml: '带分音符的拉丁文小写字母 U',
yacute: '带抑音符的拉丁文小写字母 Y',
thorn: '拉丁文小写字母 Thorn',
yuml: '带分音符的拉丁文小写字母 Y',
OElig: '拉丁文大写连字 Oe',
oelig: '拉丁文小写连字 Oe',
'372': '带扬抑符的拉丁文大写字母 W',
'374': '带扬抑符的拉丁文大写字母 Y',
'373': '带扬抑符的拉丁文小写字母 W',
'375': '带扬抑符的拉丁文小写字母 Y',
sbquo: '单下 9 形引号',
'8219': '单高横翻 9 形引号',
bdquo: '双下 9 形引号',
hellip: '水平省略号',
trade: '商标标志',
'9658': '实心右指指针',
bull: '加重号',
rarr: '向右箭头',
rArr: '向右双线箭头',
hArr: '左右双线箭头',
diams: '实心方块纸牌',
asymp: '约等于'
});
| JavaScript |
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'specialchar', 'eo',
{
euro: 'Eŭrosigno',
lsquo: 'Supra 6-citilo',
rsquo: 'Supra 9-citilo',
ldquo: 'Supra 66-citilo',
rdquo: 'Supra 99-citilo',
ndash: 'Streketo',
mdash: 'Substreko',
iexcl: 'Renversita krisigno',
cent: 'Cendosigno',
pound: 'Pundosigno',
curren: 'Monersigno',
yen: 'Enosigno',
brvbar: 'Rompita vertikala streko',
sect: 'Kurba paragrafo',
uml: 'Tremao',
copy: 'Kopirajtosigno',
ordf: 'Adjektiva numerfinaĵo',
laquo: 'Duobla malplio-citilo',
not: 'Negohoko',
reg: 'Registrita marko',
macr: 'Superstreko',
deg: 'Gradosigno',
sup2: 'Supra indico 2',
sup3: 'Supra indico 3',
acute: 'Dekstra korno',
micro: 'Mikrosigno',
para: 'Rekta paragrafo',
middot: 'Meza punkto',
cedil: 'Zoeto',
sup1: 'Supra indico 1',
ordm: 'Substantiva numerfinaĵo',
raquo: 'Duobla plio-citilo',
frac14: 'Kvaronosigno',
frac12: 'Duonosigno',
frac34: 'Trikvaronosigno',
iquest: 'renversita demandosigno',
Agrave: 'Latina ĉeflitero A kun liva korno',
Aacute: 'Latina ĉeflitero A kun dekstra korno',
Acirc: 'Latina ĉeflitero A kun ĉapelo',
Atilde: 'Latina ĉeflitero A kun tildo',
Auml: 'Latina ĉeflitero A kun tremao',
Aring: 'Latina ĉeflitero A kun superringo',
AElig: 'Latina ĉeflitera ligaturo Æ',
Ccedil: 'Latina ĉeflitero C kun zoeto',
Egrave: 'Latina ĉeflitero E kun liva korno',
Eacute: 'Latina ĉeflitero E kun dekstra korno',
Ecirc: 'Latina ĉeflitero E kun ĉapelo',
Euml: 'Latina ĉeflitero E kun tremao',
Igrave: 'Latina ĉeflitero I kun liva korno',
Iacute: 'Latina ĉeflitero I kun dekstra korno',
Icirc: 'Latina ĉeflitero I kun ĉapelo',
Iuml: 'Latina ĉeflitero I kun tremao',
ETH: 'Latina ĉeflitero islanda edo',
Ntilde: 'Latina ĉeflitero N kun tildo',
Ograve: 'Latina ĉeflitero O kun liva korno',
Oacute: 'Latina ĉeflitero O kun dekstra korno',
Ocirc: 'Latina ĉeflitero O kun ĉapelo',
Otilde: 'Latina ĉeflitero O kun tildo',
Ouml: 'Latina ĉeflitero O kun tremao',
times: 'Multipliko',
Oslash: 'Latina ĉeflitero O trastrekita',
Ugrave: 'Latina ĉeflitero U kun liva korno',
Uacute: 'Latina ĉeflitero U kun dekstra korno',
Ucirc: 'Latina ĉeflitero U kun ĉapelo',
Uuml: 'Latina ĉeflitero U kun tremao',
Yacute: 'Latina ĉeflitero Y kun dekstra korno',
THORN: 'Latina ĉeflitero islanda dorno',
szlig: 'Latina etlitero germana sozo (akra s)',
agrave: 'Latina etlitero a kun liva korno',
aacute: 'Latina etlitero a kun dekstra korno',
acirc: 'Latina etlitero a kun ĉapelo',
atilde: 'Latina etlitero a kun tildo',
auml: 'Latina etlitero a kun tremao',
aring: 'Latina etlitero a kun superringo',
aelig: 'Latina etlitera ligaturo æ',
ccedil: 'Latina etlitero c kun zoeto',
egrave: 'Latina etlitero e kun liva korno',
eacute: 'Latina etlitero e kun dekstra korno',
ecirc: 'Latina etlitero e kun ĉapelo',
euml: 'Latina etlitero e kun tremao',
igrave: 'Latina etlitero i kun liva korno',
iacute: 'Latina etlitero i kun dekstra korno',
icirc: 'Latina etlitero i kun ĉapelo',
iuml: 'Latina etlitero i kun tremao',
eth: 'Latina etlitero islanda edo',
ntilde: 'Latina etlitero n kun tildo',
ograve: 'Latina etlitero o kun liva korno',
oacute: 'Latina etlitero o kun dekstra korno',
ocirc: 'Latina etlitero o kun ĉapelo',
otilde: 'Latina etlitero o kun tildo',
ouml: 'Latina etlitero o kun tremao',
divide: 'Dividosigno',
oslash: 'Latina etlitero o trastrekita',
ugrave: 'Latina etlitero u kun liva korno',
uacute: 'Latina etlitero u kun dekstra korno',
ucirc: 'Latina etlitero u kun ĉapelo',
uuml: 'Latina etlitero u kun tremao',
yacute: 'Latina etlitero y kun dekstra korno',
thorn: 'Latina etlitero islanda dorno',
yuml: 'Latina etlitero y kun tremao',
OElig: 'Latina ĉeflitera ligaturo Œ',
oelig: 'Latina etlitera ligaturo œ',
'372': 'Latina ĉeflitero W kun ĉapelo',
'374': 'Latina ĉeflitero Y kun ĉapelo',
'373': 'Latina etlitero w kun ĉapelo',
'375': 'Latina etlitero y kun ĉapelo',
sbquo: 'Suba 9-citilo',
'8219': 'Supra renversita 9-citilo',
bdquo: 'Suba 99-citilo',
hellip: 'Tripunkto',
trade: 'Varmarka signo',
'9658': 'Nigra sago dekstren',
bull: 'Bulmarko',
rarr: 'Sago dekstren',
rArr: 'Duobla sago dekstren',
hArr: 'Duobla sago maldekstren',
diams: 'Nigra kvadrato',
asymp: 'Preskaŭ egala'
});
| JavaScript |
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'specialchar', 'en',
{
euro: 'Euro sign',
lsquo: 'Left single quotation mark',
rsquo: 'Right single quotation mark',
ldquo: 'Left double quotation mark',
rdquo: 'Right double quotation mark',
ndash: 'En dash',
mdash: 'Em dash',
iexcl: 'Inverted exclamation mark',
cent: 'Cent sign',
pound: 'Pound sign',
curren: 'Currency sign',
yen: 'Yen sign',
brvbar: 'Broken bar',
sect: 'Section sign',
uml: 'Diaeresis',
copy: 'Copyright sign',
ordf: 'Feminine ordinal indicator',
laquo: 'Left-pointing double angle quotation mark',
not: 'Not sign',
reg: 'Registered sign',
macr: 'Macron',
deg: 'Degree sign',
sup2: 'Superscript two',
sup3: 'Superscript three',
acute: 'Acute accent',
micro: 'Micro sign',
para: 'Pilcrow sign',
middot: 'Middle dot',
cedil: 'Cedilla',
sup1: 'Superscript one',
ordm: 'Masculine ordinal indicator',
raquo: 'Right-pointing double angle quotation mark',
frac14: 'Vulgar fraction one quarter',
frac12: 'Vulgar fraction one half',
frac34: 'Vulgar fraction three quarters',
iquest: 'Inverted question mark',
Agrave: 'Latin capital letter A with grave accent',
Aacute: 'Latin capital letter A with acute accent',
Acirc: 'Latin capital letter A with circumflex',
Atilde: 'Latin capital letter A with tilde',
Auml: 'Latin capital letter A with diaeresis',
Aring: 'Latin capital letter A with ring above',
AElig: 'Latin Capital letter Æ',
Ccedil: 'Latin capital letter C with cedilla',
Egrave: 'Latin capital letter E with grave accent',
Eacute: 'Latin capital letter E with acute accent',
Ecirc: 'Latin capital letter E with circumflex',
Euml: 'Latin capital letter E with diaeresis',
Igrave: 'Latin capital letter I with grave accent',
Iacute: 'Latin capital letter I with acute accent',
Icirc: 'Latin capital letter I with circumflex',
Iuml: 'Latin capital letter I with diaeresis',
ETH: 'Latin capital letter Eth',
Ntilde: 'Latin capital letter N with tilde',
Ograve: 'Latin capital letter O with grave accent',
Oacute: 'Latin capital letter O with acute accent',
Ocirc: 'Latin capital letter O with circumflex',
Otilde: 'Latin capital letter O with tilde',
Ouml: 'Latin capital letter O with diaeresis',
times: 'Multiplication sign',
Oslash: 'Latin capital letter O with stroke',
Ugrave: 'Latin capital letter U with grave accent',
Uacute: 'Latin capital letter U with acute accent',
Ucirc: 'Latin capital letter U with circumflex',
Uuml: 'Latin capital letter U with diaeresis',
Yacute: 'Latin capital letter Y with acute accent',
THORN: 'Latin capital letter Thorn',
szlig: 'Latin small letter sharp s',
agrave: 'Latin small letter a with grave accent',
aacute: 'Latin small letter a with acute accent',
acirc: 'Latin small letter a with circumflex',
atilde: 'Latin small letter a with tilde',
auml: 'Latin small letter a with diaeresis',
aring: 'Latin small letter a with ring above',
aelig: 'Latin small letter æ',
ccedil: 'Latin small letter c with cedilla',
egrave: 'Latin small letter e with grave accent',
eacute: 'Latin small letter e with acute accent',
ecirc: 'Latin small letter e with circumflex',
euml: 'Latin small letter e with diaeresis',
igrave: 'Latin small letter i with grave accent',
iacute: 'Latin small letter i with acute accent',
icirc: 'Latin small letter i with circumflex',
iuml: 'Latin small letter i with diaeresis',
eth: 'Latin small letter eth',
ntilde: 'Latin small letter n with tilde',
ograve: 'Latin small letter o with grave accent',
oacute: 'Latin small letter o with acute accent',
ocirc: 'Latin small letter o with circumflex',
otilde: 'Latin small letter o with tilde',
ouml: 'Latin small letter o with diaeresis',
divide: 'Division sign',
oslash: 'Latin small letter o with stroke',
ugrave: 'Latin small letter u with grave accent',
uacute: 'Latin small letter u with acute accent',
ucirc: 'Latin small letter u with circumflex',
uuml: 'Latin small letter u with diaeresis',
yacute: 'Latin small letter y with acute accent',
thorn: 'Latin small letter thorn',
yuml: 'Latin small letter y with diaeresis',
OElig: 'Latin capital ligature OE',
oelig: 'Latin small ligature oe',
'372': 'Latin capital letter W with circumflex',
'374': 'Latin capital letter Y with circumflex',
'373': 'Latin small letter w with circumflex',
'375': 'Latin small letter y with circumflex',
sbquo: 'Single low-9 quotation mark',
'8219': 'Single high-reversed-9 quotation mark',
bdquo: 'Double low-9 quotation mark',
hellip: 'Horizontal ellipsis',
trade: 'Trade mark sign',
'9658': 'Black right-pointing pointer',
bull: 'Bullet',
rarr: 'Rightwards arrow',
rArr: 'Rightwards double arrow',
hArr: 'Left right double arrow',
diams: 'Black diamond suit',
asymp: 'Almost equal to'
});
| JavaScript |
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'specialchar', 'nb',
{
euro: 'Eurosymbol',
lsquo: 'Venstre enkelt anførselstegn',
rsquo: 'Høyre enkelt anførselstegn',
ldquo: 'Venstre dobbelt anførselstegn',
rdquo: 'Høyre anførsesltegn',
ndash: 'Kort tankestrek',
mdash: 'Lang tankestrek',
iexcl: 'Omvendt utropstegn',
cent: 'Centsymbol',
pound: 'Pundsymbol',
curren: 'Valutategn',
yen: 'Yensymbol',
brvbar: 'Brutt loddrett strek',
sect: 'Paragraftegn',
uml: 'Tøddel',
copy: 'Copyrighttegn',
ordf: 'Feminin ordensindikator',
laquo: 'Venstre anførselstegn',
not: 'Negasjonstegn',
reg: 'Registrert varemerke-tegn',
macr: 'Makron',
deg: 'Gradsymbol',
sup2: 'Hevet totall',
sup3: 'Hevet tretall',
acute: 'Akutt aksent',
micro: 'Mikrosymbol',
para: 'Avsnittstegn',
middot: 'Midtstilt prikk',
cedil: 'Cedille',
sup1: 'Hevet ettall',
ordm: 'Maskulin ordensindikator',
raquo: 'Høyre anførselstegn',
frac14: 'Fjerdedelsbrøk',
frac12: 'Halvbrøk',
frac34: 'Tre fjerdedelers brøk',
iquest: 'Omvendt spørsmålstegn',
Agrave: 'Stor A med grav aksent',
Aacute: 'Stor A med akutt aksent',
Acirc: 'Stor A med cirkumfleks',
Atilde: 'Stor A med tilde',
Auml: 'Stor A med tøddel',
Aring: 'Stor Å',
AElig: 'Stor Æ',
Ccedil: 'Stor C med cedille',
Egrave: 'Stor E med grav aksent',
Eacute: 'Stor E med akutt aksent',
Ecirc: 'Stor E med cirkumfleks',
Euml: 'Stor E med tøddel',
Igrave: 'Stor I med grav aksent',
Iacute: 'Stor I med akutt aksent',
Icirc: 'Stor I med cirkumfleks',
Iuml: 'Stor I med tøddel',
ETH: 'Stor Edd/stungen D',
Ntilde: 'Stor N med tilde',
Ograve: 'Stor O med grav aksent',
Oacute: 'Stor O med akutt aksent',
Ocirc: 'Stor O med cirkumfleks',
Otilde: 'Stor O med tilde',
Ouml: 'Stor O med tøddel',
times: 'Multiplikasjonstegn',
Oslash: 'Stor Ø',
Ugrave: 'Stor U med grav aksent',
Uacute: 'Stor U med akutt aksent',
Ucirc: 'Stor U med cirkumfleks',
Uuml: 'Stor U med tøddel',
Yacute: 'Stor Y med akutt aksent',
THORN: 'Stor Thorn',
szlig: 'Liten dobbelt-s/Eszett',
agrave: 'Liten a med grav aksent',
aacute: 'Liten a med akutt aksent',
acirc: 'Liten a med cirkumfleks',
atilde: 'Liten a med tilde',
auml: 'Liten a med tøddel',
aring: 'Liten å',
aelig: 'Liten æ',
ccedil: 'Liten c med cedille',
egrave: 'Liten e med grav aksent',
eacute: 'Liten e med akutt aksent',
ecirc: 'Liten e med cirkumfleks',
euml: 'Liten e med tøddel',
igrave: 'Liten i med grav aksent',
iacute: 'Liten i med akutt aksent',
icirc: 'Liten i med cirkumfleks',
iuml: 'Liten i med tøddel',
eth: 'Liten edd/stungen d',
ntilde: 'Liten n med tilde',
ograve: 'Liten o med grav aksent',
oacute: 'Liten o med akutt aksent',
ocirc: 'Liten o med cirkumfleks',
otilde: 'Liten o med tilde',
ouml: 'Liten o med tøddel',
divide: 'Divisjonstegn',
oslash: 'Liten ø',
ugrave: 'Liten u med grav aksent',
uacute: 'Liten u med akutt aksent',
ucirc: 'Liten u med cirkumfleks',
uuml: 'Liten u med tøddel',
yacute: 'Liten y med akutt aksent',
thorn: 'Liten thorn',
yuml: 'Liten y med tøddel',
OElig: 'Stor ligatur av O og E',
oelig: 'Liten ligatur av o og e',
'372': 'Stor W med cirkumfleks',
'374': 'Stor Y med cirkumfleks',
'373': 'Liten w med cirkumfleks',
'375': 'Liten y med cirkumfleks',
sbquo: 'Enkelt lavt 9-anførselstegn',
'8219': 'Enkelt høyt reversert 9-anførselstegn',
bdquo: 'Dobbelt lavt 9-anførselstegn',
hellip: 'Ellipse',
trade: 'Varemerkesymbol',
'9658': 'Svart høyrevendt peker',
bull: 'Tykk interpunkt',
rarr: 'Høyrevendt pil',
rArr: 'Dobbel høyrevendt pil',
hArr: 'Dobbel venstrevendt pil',
diams: 'Svart ruter',
asymp: 'Omtrent likhetstegn'
});
| JavaScript |
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'specialchar', 'el',
{
euro: 'Σύμβολο Ευρώ',
lsquo: 'Αριστερός χαρακτήρας μονού εισαγωγικού',
rsquo: 'Δεξιός χαρακτήρας μονού εισαγωγικού',
ldquo: 'Αριστερός χαρακτήρας διπλού εισαγωγικού',
rdquo: 'Δεξιός χαρακτήρας διπλού εισαγωγικού',
ndash: 'Παύλα en',
mdash: 'Παύλα em',
iexcl: 'Ανάποδο θαυμαστικό',
cent: 'Σύμβολο Σεντ',
pound: 'Σύμβολο λίρας',
curren: 'Σύμβολο συναλλαγματικής μονάδας',
yen: 'Σύμβολο Γιέν',
brvbar: 'Σπασμένη μπάρα',
sect: 'Σύμβολο τμήματος',
uml: 'Διαίρεση',
copy: 'Σύμβολο πνευματικών δικαιωμάτων',
ordf: 'Feminine ordinal indicator', // MISSING
laquo: 'Left-pointing double angle quotation mark', // MISSING
not: 'Not sign', // MISSING
reg: 'Registered sign', // MISSING
macr: 'Macron', // MISSING
deg: 'Degree sign', // MISSING
sup2: 'Superscript two', // MISSING
sup3: 'Superscript three', // MISSING
acute: 'Acute accent', // MISSING
micro: 'Micro sign', // MISSING
para: 'Pilcrow sign', // MISSING
middot: 'Middle dot', // MISSING
cedil: 'Cedilla', // MISSING
sup1: 'Superscript one', // MISSING
ordm: 'Masculine ordinal indicator', // MISSING
raquo: 'Right-pointing double angle quotation mark', // MISSING
frac14: 'Vulgar fraction one quarter', // MISSING
frac12: 'Vulgar fraction one half', // MISSING
frac34: 'Vulgar fraction three quarters', // MISSING
iquest: 'Inverted question mark', // MISSING
Agrave: 'Latin capital letter A with grave accent', // MISSING
Aacute: 'Latin capital letter A with acute accent', // MISSING
Acirc: 'Latin capital letter A with circumflex', // MISSING
Atilde: 'Latin capital letter A with tilde', // MISSING
Auml: 'Latin capital letter A with diaeresis', // MISSING
Aring: 'Latin capital letter A with ring above', // MISSING
AElig: 'Latin Capital letter Æ', // MISSING
Ccedil: 'Latin capital letter C with cedilla', // MISSING
Egrave: 'Latin capital letter E with grave accent', // MISSING
Eacute: 'Latin capital letter E with acute accent', // MISSING
Ecirc: 'Latin capital letter E with circumflex', // MISSING
Euml: 'Latin capital letter E with diaeresis', // MISSING
Igrave: 'Latin capital letter I with grave accent', // MISSING
Iacute: 'Latin capital letter I with acute accent', // MISSING
Icirc: 'Latin capital letter I with circumflex', // MISSING
Iuml: 'Latin capital letter I with diaeresis', // MISSING
ETH: 'Latin capital letter Eth', // MISSING
Ntilde: 'Latin capital letter N with tilde', // MISSING
Ograve: 'Latin capital letter O with grave accent', // MISSING
Oacute: 'Latin capital letter O with acute accent', // MISSING
Ocirc: 'Latin capital letter O with circumflex', // MISSING
Otilde: 'Latin capital letter O with tilde', // MISSING
Ouml: 'Latin capital letter O with diaeresis', // MISSING
times: 'Multiplication sign', // MISSING
Oslash: 'Latin capital letter O with stroke', // MISSING
Ugrave: 'Latin capital letter U with grave accent', // MISSING
Uacute: 'Latin capital letter U with acute accent', // MISSING
Ucirc: 'Latin capital letter U with circumflex', // MISSING
Uuml: 'Latin capital letter U with diaeresis', // MISSING
Yacute: 'Latin capital letter Y with acute accent', // MISSING
THORN: 'Latin capital letter Thorn', // MISSING
szlig: 'Latin small letter sharp s', // MISSING
agrave: 'Latin small letter a with grave accent', // MISSING
aacute: 'Latin small letter a with acute accent', // MISSING
acirc: 'Latin small letter a with circumflex', // MISSING
atilde: 'Latin small letter a with tilde', // MISSING
auml: 'Latin small letter a with diaeresis', // MISSING
aring: 'Latin small letter a with ring above', // MISSING
aelig: 'Latin small letter æ', // MISSING
ccedil: 'Latin small letter c with cedilla', // MISSING
egrave: 'Latin small letter e with grave accent', // MISSING
eacute: 'Latin small letter e with acute accent', // MISSING
ecirc: 'Latin small letter e with circumflex', // MISSING
euml: 'Latin small letter e with diaeresis', // MISSING
igrave: 'Latin small letter i with grave accent', // MISSING
iacute: 'Latin small letter i with acute accent', // MISSING
icirc: 'Latin small letter i with circumflex', // MISSING
iuml: 'Latin small letter i with diaeresis', // MISSING
eth: 'Latin small letter eth', // MISSING
ntilde: 'Latin small letter n with tilde', // MISSING
ograve: 'Latin small letter o with grave accent', // MISSING
oacute: 'Latin small letter o with acute accent', // MISSING
ocirc: 'Latin small letter o with circumflex', // MISSING
otilde: 'Latin small letter o with tilde', // MISSING
ouml: 'Latin small letter o with diaeresis', // MISSING
divide: 'Division sign', // MISSING
oslash: 'Latin small letter o with stroke', // MISSING
ugrave: 'Latin small letter u with grave accent', // MISSING
uacute: 'Latin small letter u with acute accent', // MISSING
ucirc: 'Latin small letter u with circumflex', // MISSING
uuml: 'Latin small letter u with diaeresis', // MISSING
yacute: 'Latin small letter y with acute accent', // MISSING
thorn: 'Latin small letter thorn', // MISSING
yuml: 'Latin small letter y with diaeresis', // MISSING
OElig: 'Latin capital ligature OE', // MISSING
oelig: 'Latin small ligature oe', // MISSING
'372': 'Latin capital letter W with circumflex', // MISSING
'374': 'Latin capital letter Y with circumflex', // MISSING
'373': 'Latin small letter w with circumflex', // MISSING
'375': 'Latin small letter y with circumflex', // MISSING
sbquo: 'Single low-9 quotation mark', // MISSING
'8219': 'Single high-reversed-9 quotation mark', // MISSING
bdquo: 'Double low-9 quotation mark', // MISSING
hellip: 'Horizontal ellipsis', // MISSING
trade: 'Trade mark sign', // MISSING
'9658': 'Black right-pointing pointer', // MISSING
bull: 'Bullet', // MISSING
rarr: 'Rightwards arrow', // MISSING
rArr: 'Rightwards double arrow', // MISSING
hArr: 'Left right double arrow', // MISSING
diams: 'Black diamond suit', // MISSING
asymp: 'Almost equal to' // MISSING
});
| JavaScript |
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'specialchar', 'fi',
{
euro: 'Euron merkki',
lsquo: 'Vasen yksittäinen lainausmerkki',
rsquo: 'Oikea yksittäinen lainausmerkki',
ldquo: 'Vasen kaksoislainausmerkki',
rdquo: 'Oikea kaksoislainausmerkki',
ndash: 'En dash', // MISSING
mdash: 'Em dash', // MISSING
iexcl: 'Inverted exclamation mark', // MISSING
cent: 'Sentin merkki',
pound: 'Punnan merkki',
curren: 'Valuuttamerkki',
yen: 'Yenin merkki',
brvbar: 'Broken bar', // MISSING
sect: 'Section sign', // MISSING
uml: 'Diaeresis', // MISSING
copy: 'Copyright sign', // MISSING
ordf: 'Feminine ordinal indicator', // MISSING
laquo: 'Left-pointing double angle quotation mark', // MISSING
not: 'Not sign', // MISSING
reg: 'Rekisteröity merkki',
macr: 'Macron', // MISSING
deg: 'Asteen merkki',
sup2: 'Yläindeksi kaksi',
sup3: 'Yläindeksi kolme',
acute: 'Acute accent', // MISSING
micro: 'Mikron merkki',
para: 'Pilcrow sign', // MISSING
middot: 'Middle dot', // MISSING
cedil: 'Cedilla', // MISSING
sup1: 'Yläindeksi yksi',
ordm: 'Masculine ordinal indicator', // MISSING
raquo: 'Right-pointing double angle quotation mark', // MISSING
frac14: 'Vulgar fraction one quarter', // MISSING
frac12: 'Vulgar fraction one half', // MISSING
frac34: 'Vulgar fraction three quarters', // MISSING
iquest: 'Ylösalaisin oleva kysymysmerkki',
Agrave: 'Latin capital letter A with grave accent', // MISSING
Aacute: 'Latin capital letter A with acute accent', // MISSING
Acirc: 'Latin capital letter A with circumflex', // MISSING
Atilde: 'Latin capital letter A with tilde', // MISSING
Auml: 'Latin capital letter A with diaeresis', // MISSING
Aring: 'Latin capital letter A with ring above', // MISSING
AElig: 'Latin Capital letter Æ', // MISSING
Ccedil: 'Latin capital letter C with cedilla', // MISSING
Egrave: 'Latin capital letter E with grave accent', // MISSING
Eacute: 'Latin capital letter E with acute accent', // MISSING
Ecirc: 'Latin capital letter E with circumflex', // MISSING
Euml: 'Latin capital letter E with diaeresis', // MISSING
Igrave: 'Latin capital letter I with grave accent', // MISSING
Iacute: 'Latin capital letter I with acute accent', // MISSING
Icirc: 'Latin capital letter I with circumflex', // MISSING
Iuml: 'Latin capital letter I with diaeresis', // MISSING
ETH: 'Latin capital letter Eth', // MISSING
Ntilde: 'Latin capital letter N with tilde', // MISSING
Ograve: 'Latin capital letter O with grave accent', // MISSING
Oacute: 'Latin capital letter O with acute accent', // MISSING
Ocirc: 'Latin capital letter O with circumflex', // MISSING
Otilde: 'Latin capital letter O with tilde', // MISSING
Ouml: 'Latin capital letter O with diaeresis', // MISSING
times: 'Kertomerkki',
Oslash: 'Latin capital letter O with stroke', // MISSING
Ugrave: 'Latin capital letter U with grave accent', // MISSING
Uacute: 'Latin capital letter U with acute accent', // MISSING
Ucirc: 'Latin capital letter U with circumflex', // MISSING
Uuml: 'Latin capital letter U with diaeresis', // MISSING
Yacute: 'Latin capital letter Y with acute accent', // MISSING
THORN: 'Latin capital letter Thorn', // MISSING
szlig: 'Latin small letter sharp s', // MISSING
agrave: 'Latin small letter a with grave accent', // MISSING
aacute: 'Latin small letter a with acute accent', // MISSING
acirc: 'Latin small letter a with circumflex', // MISSING
atilde: 'Latin small letter a with tilde', // MISSING
auml: 'Latin small letter a with diaeresis', // MISSING
aring: 'Latin small letter a with ring above', // MISSING
aelig: 'Latin small letter æ', // MISSING
ccedil: 'Latin small letter c with cedilla', // MISSING
egrave: 'Latin small letter e with grave accent', // MISSING
eacute: 'Latin small letter e with acute accent', // MISSING
ecirc: 'Latin small letter e with circumflex', // MISSING
euml: 'Latin small letter e with diaeresis', // MISSING
igrave: 'Latin small letter i with grave accent', // MISSING
iacute: 'Latin small letter i with acute accent', // MISSING
icirc: 'Latin small letter i with circumflex', // MISSING
iuml: 'Latin small letter i with diaeresis', // MISSING
eth: 'Latin small letter eth', // MISSING
ntilde: 'Latin small letter n with tilde', // MISSING
ograve: 'Latin small letter o with grave accent', // MISSING
oacute: 'Latin small letter o with acute accent', // MISSING
ocirc: 'Latin small letter o with circumflex', // MISSING
otilde: 'Latin small letter o with tilde', // MISSING
ouml: 'Latin small letter o with diaeresis', // MISSING
divide: 'Jakomerkki',
oslash: 'Latin small letter o with stroke', // MISSING
ugrave: 'Latin small letter u with grave accent', // MISSING
uacute: 'Latin small letter u with acute accent', // MISSING
ucirc: 'Latin small letter u with circumflex', // MISSING
uuml: 'Latin small letter u with diaeresis', // MISSING
yacute: 'Latin small letter y with acute accent', // MISSING
thorn: 'Latin small letter thorn', // MISSING
yuml: 'Latin small letter y with diaeresis', // MISSING
OElig: 'Latin capital ligature OE', // MISSING
oelig: 'Latin small ligature oe', // MISSING
'372': 'Latin capital letter W with circumflex', // MISSING
'374': 'Latin capital letter Y with circumflex', // MISSING
'373': 'Latin small letter w with circumflex', // MISSING
'375': 'Latin small letter y with circumflex', // MISSING
sbquo: 'Single low-9 quotation mark', // MISSING
'8219': 'Single high-reversed-9 quotation mark', // MISSING
bdquo: 'Double low-9 quotation mark', // MISSING
hellip: 'Horizontal ellipsis', // MISSING
trade: 'Tavaramerkki merkki',
'9658': 'Black right-pointing pointer', // MISSING
bull: 'Bullet', // MISSING
rarr: 'Nuoli oikealle',
rArr: 'Kaksoisnuoli oikealle',
hArr: 'Kaksoisnuoli oikealle ja vasemmalle',
diams: 'Black diamond suit', // MISSING
asymp: 'Noin'
});
| JavaScript |
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'specialchar', 'cy',
{
euro: 'Arwydd yr Ewro',
lsquo: 'Dyfynnod chwith unigol',
rsquo: 'Dyfynnod dde unigol',
ldquo: 'Dyfynnod chwith dwbl',
rdquo: 'Dyfynnod dde dwbl',
ndash: 'Cysylltnod en',
mdash: 'Cysylltnod em',
iexcl: 'Ebychnod gwrthdro',
cent: 'Arwydd sent',
pound: 'Arwydd punt',
curren: 'Arwydd arian cyfred',
yen: 'Arwydd yen',
brvbar: 'Bar toriedig',
sect: 'Arwydd adran',
uml: 'Didolnod',
copy: 'Arwydd hawlfraint',
ordf: 'Dangosydd benywaidd',
laquo: 'Dyfynnod dwbl ar ongl i\'r chwith',
not: 'Arwydd Nid',
reg: 'Arwydd cofrestredig',
macr: 'Macron',
deg: 'Arwydd gradd',
sup2: 'Dau uwchsgript',
sup3: 'Tri uwchsgript',
acute: 'Acen ddyrchafedig',
micro: 'Arwydd micro',
para: 'Arwydd pilcrow',
middot: 'Dot canol',
cedil: 'Sedila',
sup1: 'Un uwchsgript',
ordm: 'Dangosydd gwrywaidd',
raquo: 'Dyfynnod dwbl ar ongl i\'r dde',
frac14: 'Ffracsiwn cyffredin un cwarter',
frac12: 'Ffracsiwn cyffredin un hanner',
frac34: 'Ffracsiwn cyffredin tri chwarter',
iquest: 'Marc cwestiwn gwrthdroëdig',
Agrave: 'Priflythyren A Lladinaidd gydag acen ddisgynedig',
Aacute: 'Priflythyren A Lladinaidd gydag acen ddyrchafedig',
Acirc: 'Priflythyren A Lladinaidd gydag acen grom',
Atilde: 'Priflythyren A Lladinaidd gyda thild',
Auml: 'Priflythyren A Lladinaidd gyda didolnod',
Aring: 'Priflythyren A Lladinaidd gyda chylch uwchben',
AElig: 'Priflythyren Æ Lladinaidd',
Ccedil: 'Priflythyren C Lladinaidd gyda sedila',
Egrave: 'Priflythyren E Lladinaidd gydag acen ddisgynedig',
Eacute: 'Priflythyren E Lladinaidd gydag acen ddyrchafedig',
Ecirc: 'Priflythyren E Lladinaidd gydag acen grom',
Euml: 'Priflythyren E Lladinaidd gyda didolnod',
Igrave: 'Priflythyren I Lladinaidd gydag acen ddisgynedig',
Iacute: 'Priflythyren I Lladinaidd gydag acen ddyrchafedig',
Icirc: 'Priflythyren I Lladinaidd gydag acen grom',
Iuml: 'Priflythyren I Lladinaidd gyda didolnod',
ETH: 'Priflythyren Eth',
Ntilde: 'Priflythyren N Lladinaidd gyda thild',
Ograve: 'Priflythyren O Lladinaidd gydag acen ddisgynedig',
Oacute: 'Priflythyren O Lladinaidd gydag acen ddyrchafedig',
Ocirc: 'Priflythyren O Lladinaidd gydag acen grom',
Otilde: 'Priflythyren O Lladinaidd gyda thild',
Ouml: 'Priflythyren O Lladinaidd gyda didolnod',
times: 'Arwydd lluosi',
Oslash: 'Priflythyren O Lladinaidd gyda strôc',
Ugrave: 'Priflythyren U Lladinaidd gydag acen ddisgynedig',
Uacute: 'Priflythyren U Lladinaidd gydag acen ddyrchafedig',
Ucirc: 'Priflythyren U Lladinaidd gydag acen grom',
Uuml: 'Priflythyren U Lladinaidd gyda didolnod',
Yacute: 'Priflythyren Y Lladinaidd gydag acen ddyrchafedig',
THORN: 'Priflythyren Thorn',
szlig: 'Llythyren s fach Lladinaidd siarp ',
agrave: 'Llythyren a fach Lladinaidd gydag acen ddisgynedig',
aacute: 'Llythyren a fach Lladinaidd gydag acen ddyrchafedig',
acirc: 'Llythyren a fach Lladinaidd gydag acen grom',
atilde: 'Llythyren a fach Lladinaidd gyda thild',
auml: 'Llythyren a fach Lladinaidd gyda didolnod',
aring: 'Llythyren a fach Lladinaidd gyda chylch uwchben',
aelig: 'Llythyren æ fach Lladinaidd',
ccedil: 'Llythyren c fach Lladinaidd gyda sedila',
egrave: 'Llythyren e fach Lladinaidd gydag acen ddisgynedig',
eacute: 'Llythyren e fach Lladinaidd gydag acen ddyrchafedig',
ecirc: 'Llythyren e fach Lladinaidd gydag acen grom',
euml: 'Llythyren e fach Lladinaidd gyda didolnod',
igrave: 'Llythyren i fach Lladinaidd gydag acen ddisgynedig',
iacute: 'Llythyren i fach Lladinaidd gydag acen ddyrchafedig',
icirc: 'Llythyren i fach Lladinaidd gydag acen grom',
iuml: 'Llythyren i fach Lladinaidd gyda didolnod',
eth: 'Llythyren eth fach',
ntilde: 'Llythyren n fach Lladinaidd gyda thild',
ograve: 'Llythyren o fach Lladinaidd gydag acen ddisgynedig',
oacute: 'Llythyren o fach Lladinaidd gydag acen ddyrchafedig',
ocirc: 'Llythyren o fach Lladinaidd gydag acen grom',
otilde: 'Llythyren o fach Lladinaidd gyda thild',
ouml: 'Llythyren o fach Lladinaidd gyda didolnod',
divide: 'Arwydd rhannu',
oslash: 'Llyth',
ugrave: 'Llythyren u fach Lladinaidd gydag acen ddisgynedig',
uacute: 'Llythyren u fach Lladinaidd gydag acen ddyrchafedig',
ucirc: 'Llythyren u fach Lladinaidd gydag acen grom',
uuml: 'Llythyren u fach Lladinaidd gyda didolnod',
yacute: 'Llythyren y fach Lladinaidd gydag acen ddisgynedig',
thorn: 'Llythyren o fach Lladinaidd gyda strôc',
yuml: 'Llythyren y fach Lladinaidd gyda didolnod',
OElig: 'Priflythyren cwlwm OE Lladinaidd ',
oelig: 'Priflythyren cwlwm oe Lladinaidd ',
'372': 'Priflythyren W gydag acen grom',
'374': 'Priflythyren Y gydag acen grom',
'373': 'Llythyren w fach gydag acen grom',
'375': 'Llythyren y fach gydag acen grom',
sbquo: 'Dyfynnod sengl 9-isel',
'8219': 'Dyfynnod sengl 9-uchel cildro',
bdquo: 'Dyfynnod dwbl 9-isel',
hellip: 'Coll geiriau llorweddol',
trade: 'Arwydd marc masnachol',
'9658': 'Pwyntydd du i\'r dde',
bull: 'Bwled',
rarr: 'Saeth i\'r dde',
rArr: 'Saeth ddwbl i\'r dde',
hArr: 'Saeth ddwbl i\'r chwith',
diams: 'Siwt diemwnt du',
asymp: 'Bron yn hafal iddo'
});
| JavaScript |
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'specialchar', 'no',
{
euro: 'Eurosymbol',
lsquo: 'Venstre enkelt anførselstegn',
rsquo: 'Høyre enkelt anførselstegn',
ldquo: 'Venstre dobbelt anførselstegn',
rdquo: 'Høyre anførsesltegn',
ndash: 'Kort tankestrek',
mdash: 'Lang tankestrek',
iexcl: 'Omvendt utropstegn',
cent: 'Centsymbol',
pound: 'Pundsymbol',
curren: 'Valutategn',
yen: 'Yensymbol',
brvbar: 'Brutt loddrett strek',
sect: 'Paragraftegn',
uml: 'Tøddel',
copy: 'Copyrighttegn',
ordf: 'Feminin ordensindikator',
laquo: 'Venstre anførselstegn',
not: 'Negasjonstegn',
reg: 'Registrert varemerke-tegn',
macr: 'Makron',
deg: 'Gradsymbol',
sup2: 'Hevet totall',
sup3: 'Hevet tretall',
acute: 'Akutt aksent',
micro: 'Mikrosymbol',
para: 'Avsnittstegn',
middot: 'Midtstilt prikk',
cedil: 'Cedille',
sup1: 'Hevet ettall',
ordm: 'Maskulin ordensindikator',
raquo: 'Høyre anførselstegn',
frac14: 'Fjerdedelsbrøk',
frac12: 'Halvbrøk',
frac34: 'Tre fjerdedelers brøk',
iquest: 'Omvendt spørsmålstegn',
Agrave: 'Stor A med grav aksent',
Aacute: 'Stor A med akutt aksent',
Acirc: 'Stor A med cirkumfleks',
Atilde: 'Stor A med tilde',
Auml: 'Stor A med tøddel',
Aring: 'Stor Å',
AElig: 'Stor Æ',
Ccedil: 'Stor C med cedille',
Egrave: 'Stor E med grav aksent',
Eacute: 'Stor E med akutt aksent',
Ecirc: 'Stor E med cirkumfleks',
Euml: 'Stor E med tøddel',
Igrave: 'Stor I med grav aksent',
Iacute: 'Stor I med akutt aksent',
Icirc: 'Stor I med cirkumfleks',
Iuml: 'Stor I med tøddel',
ETH: 'Stor Edd/stungen D',
Ntilde: 'Stor N med tilde',
Ograve: 'Stor O med grav aksent',
Oacute: 'Stor O med akutt aksent',
Ocirc: 'Stor O med cirkumfleks',
Otilde: 'Stor O med tilde',
Ouml: 'Stor O med tøddel',
times: 'Multiplikasjonstegn',
Oslash: 'Stor Ø',
Ugrave: 'Stor U med grav aksent',
Uacute: 'Stor U med akutt aksent',
Ucirc: 'Stor U med cirkumfleks',
Uuml: 'Stor U med tøddel',
Yacute: 'Stor Y med akutt aksent',
THORN: 'Stor Thorn',
szlig: 'Liten dobbelt-s/Eszett',
agrave: 'Liten a med grav aksent',
aacute: 'Liten a med akutt aksent',
acirc: 'Liten a med cirkumfleks',
atilde: 'Liten a med tilde',
auml: 'Liten a med tøddel',
aring: 'Liten å',
aelig: 'Liten æ',
ccedil: 'Liten c med cedille',
egrave: 'Liten e med grav aksent',
eacute: 'Liten e med akutt aksent',
ecirc: 'Liten e med cirkumfleks',
euml: 'Liten e med tøddel',
igrave: 'Liten i med grav aksent',
iacute: 'Liten i med akutt aksent',
icirc: 'Liten i med cirkumfleks',
iuml: 'Liten i med tøddel',
eth: 'Liten edd/stungen d',
ntilde: 'Liten n med tilde',
ograve: 'Liten o med grav aksent',
oacute: 'Liten o med akutt aksent',
ocirc: 'Liten o med cirkumfleks',
otilde: 'Liten o med tilde',
ouml: 'Liten o med tøddel',
divide: 'Divisjonstegn',
oslash: 'Liten ø',
ugrave: 'Liten u med grav aksent',
uacute: 'Liten u med akutt aksent',
ucirc: 'Liten u med cirkumfleks',
uuml: 'Liten u med tøddel',
yacute: 'Liten y med akutt aksent',
thorn: 'Liten thorn',
yuml: 'Liten y med tøddel',
OElig: 'Stor ligatur av O og E',
oelig: 'Liten ligatur av o og e',
'372': 'Stor W med cirkumfleks',
'374': 'Stor Y med cirkumfleks',
'373': 'Liten w med cirkumfleks',
'375': 'Liten y med cirkumfleks',
sbquo: 'Enkelt lavt 9-anførselstegn',
'8219': 'Enkelt høyt reversert 9-anførselstegn',
bdquo: 'Dobbelt lavt 9-anførselstegn',
hellip: 'Ellipse',
trade: 'Varemerkesymbol',
'9658': 'Svart høyrevendt peker',
bull: 'Tykk interpunkt',
rarr: 'Høyrevendt pil',
rArr: 'Dobbel høyrevendt pil',
hArr: 'Dobbel venstrevendt pil',
diams: 'Svart ruter',
asymp: 'Omtrent likhetstegn'
});
| JavaScript |
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'specialchar', 'fa',
{
euro: 'نشان یورو',
lsquo: 'علامت نقل قول تکی چپ',
rsquo: 'علامت نقل قول تکی راست',
ldquo: 'علامت دوتایی نقل قول چپ',
rdquo: 'علامت دوتایی نقل قول راست',
ndash: 'En dash', // MISSING
mdash: 'Em dash', // MISSING
iexcl: 'علامت گذاری به عنوان علامت تعجب وارونه',
cent: 'نشان سنت',
pound: 'نشان پوند',
curren: 'نشان ارز',
yen: 'نشان ین',
brvbar: 'نوار شکسته',
sect: 'نشان بخش',
uml: 'Diaeresis', // MISSING
copy: 'نشان کپی رایت',
ordf: 'Feminine ordinal indicator', // MISSING
laquo: 'Left-pointing double angle quotation mark', // MISSING
not: 'علامت ثبت نشده',
reg: 'علامت ثبت شده',
macr: 'Macron', // MISSING
deg: 'نشان درجه',
sup2: 'بالانویس دو',
sup3: 'بالانویس سه',
acute: 'لهجه غلیظ',
micro: 'نشان مایکرو',
para: 'Pilcrow sign', // MISSING
middot: 'نقطه میانی',
cedil: 'Cedilla', // MISSING
sup1: 'Superscript one', // MISSING
ordm: 'Masculine ordinal indicator', // MISSING
raquo: 'نشان زاویهدار دوتایی نقل قول راست چین',
frac14: 'Vulgar fraction one quarter', // MISSING
frac12: 'Vulgar fraction one half', // MISSING
frac34: 'Vulgar fraction three quarters', // MISSING
iquest: 'Inverted question mark', // MISSING
Agrave: 'Latin capital letter A with grave accent', // MISSING
Aacute: 'Latin capital letter A with acute accent', // MISSING
Acirc: 'Latin capital letter A with circumflex', // MISSING
Atilde: 'Latin capital letter A with tilde', // MISSING
Auml: 'Latin capital letter A with diaeresis', // MISSING
Aring: 'Latin capital letter A with ring above', // MISSING
AElig: 'Latin Capital letter Æ', // MISSING
Ccedil: 'Latin capital letter C with cedilla', // MISSING
Egrave: 'Latin capital letter E with grave accent', // MISSING
Eacute: 'Latin capital letter E with acute accent', // MISSING
Ecirc: 'Latin capital letter E with circumflex', // MISSING
Euml: 'Latin capital letter E with diaeresis', // MISSING
Igrave: 'Latin capital letter I with grave accent', // MISSING
Iacute: 'Latin capital letter I with acute accent', // MISSING
Icirc: 'Latin capital letter I with circumflex', // MISSING
Iuml: 'Latin capital letter I with diaeresis', // MISSING
ETH: 'Latin capital letter Eth', // MISSING
Ntilde: 'Latin capital letter N with tilde', // MISSING
Ograve: 'Latin capital letter O with grave accent', // MISSING
Oacute: 'Latin capital letter O with acute accent', // MISSING
Ocirc: 'Latin capital letter O with circumflex', // MISSING
Otilde: 'Latin capital letter O with tilde', // MISSING
Ouml: 'Latin capital letter O with diaeresis', // MISSING
times: 'Multiplication sign', // MISSING
Oslash: 'Latin capital letter O with stroke', // MISSING
Ugrave: 'Latin capital letter U with grave accent', // MISSING
Uacute: 'Latin capital letter U with acute accent', // MISSING
Ucirc: 'Latin capital letter U with circumflex', // MISSING
Uuml: 'Latin capital letter U with diaeresis', // MISSING
Yacute: 'Latin capital letter Y with acute accent', // MISSING
THORN: 'Latin capital letter Thorn', // MISSING
szlig: 'Latin small letter sharp s', // MISSING
agrave: 'Latin small letter a with grave accent', // MISSING
aacute: 'Latin small letter a with acute accent', // MISSING
acirc: 'Latin small letter a with circumflex', // MISSING
atilde: 'Latin small letter a with tilde', // MISSING
auml: 'Latin small letter a with diaeresis', // MISSING
aring: 'Latin small letter a with ring above', // MISSING
aelig: 'Latin small letter æ', // MISSING
ccedil: 'Latin small letter c with cedilla', // MISSING
egrave: 'Latin small letter e with grave accent', // MISSING
eacute: 'Latin small letter e with acute accent', // MISSING
ecirc: 'Latin small letter e with circumflex', // MISSING
euml: 'Latin small letter e with diaeresis', // MISSING
igrave: 'Latin small letter i with grave accent', // MISSING
iacute: 'Latin small letter i with acute accent', // MISSING
icirc: 'Latin small letter i with circumflex', // MISSING
iuml: 'Latin small letter i with diaeresis', // MISSING
eth: 'Latin small letter eth', // MISSING
ntilde: 'Latin small letter n with tilde', // MISSING
ograve: 'Latin small letter o with grave accent', // MISSING
oacute: 'Latin small letter o with acute accent', // MISSING
ocirc: 'Latin small letter o with circumflex', // MISSING
otilde: 'Latin small letter o with tilde', // MISSING
ouml: 'Latin small letter o with diaeresis', // MISSING
divide: 'Division sign', // MISSING
oslash: 'Latin small letter o with stroke', // MISSING
ugrave: 'Latin small letter u with grave accent', // MISSING
uacute: 'Latin small letter u with acute accent', // MISSING
ucirc: 'Latin small letter u with circumflex', // MISSING
uuml: 'Latin small letter u with diaeresis', // MISSING
yacute: 'Latin small letter y with acute accent', // MISSING
thorn: 'Latin small letter thorn', // MISSING
yuml: 'Latin small letter y with diaeresis', // MISSING
OElig: 'Latin capital ligature OE', // MISSING
oelig: 'Latin small ligature oe', // MISSING
'372': 'Latin capital letter W with circumflex', // MISSING
'374': 'Latin capital letter Y with circumflex', // MISSING
'373': 'Latin small letter w with circumflex', // MISSING
'375': 'Latin small letter y with circumflex', // MISSING
sbquo: 'Single low-9 quotation mark', // MISSING
'8219': 'Single high-reversed-9 quotation mark', // MISSING
bdquo: 'Double low-9 quotation mark', // MISSING
hellip: 'Horizontal ellipsis', // MISSING
trade: 'Trade mark sign', // MISSING
'9658': 'Black right-pointing pointer', // MISSING
bull: 'Bullet', // MISSING
rarr: 'Rightwards arrow', // MISSING
rArr: 'Rightwards double arrow', // MISSING
hArr: 'جهتنمای دوتایی چپ به راست',
diams: 'Black diamond suit', // MISSING
asymp: 'تقریبا برابر با'
});
| JavaScript |
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'specialchar', 'et',
{
euro: 'Euromärk',
lsquo: 'Alustav ühekordne jutumärk',
rsquo: 'Lõpetav ühekordne jutumärk',
ldquo: 'Alustav kahekordne jutumärk',
rdquo: 'Lõpetav kahekordne jutumärk',
ndash: 'Enn-kriips',
mdash: 'Emm-kriips',
iexcl: 'Pööratud hüüumärk',
cent: 'Sendimärk',
pound: 'Naela märk',
curren: 'Valuutamärk',
yen: 'Jeeni märk',
brvbar: 'Katkestatud kriips',
sect: 'Lõigu märk',
uml: 'Täpid',
copy: 'Autoriõiguse märk',
ordf: 'Feminine ordinal indicator', // MISSING
laquo: 'Left-pointing double angle quotation mark', // MISSING
not: 'Ei-märk',
reg: 'Registered sign', // MISSING
macr: 'Macron', // MISSING
deg: 'Kraadimärk',
sup2: 'Ülaindeks kaks',
sup3: 'Ülaindeks kolm',
acute: 'Acute accent', // MISSING
micro: 'Mikro-märk',
para: 'Pilcrow sign', // MISSING
middot: 'Keskpunkt',
cedil: 'Cedilla', // MISSING
sup1: 'Ülaindeks üks',
ordm: 'Masculine ordinal indicator', // MISSING
raquo: 'Right-pointing double angle quotation mark', // MISSING
frac14: 'Vulgar fraction one quarter', // MISSING
frac12: 'Vulgar fraction one half', // MISSING
frac34: 'Vulgar fraction three quarters', // MISSING
iquest: 'Inverted question mark', // MISSING
Agrave: 'Latin capital letter A with grave accent', // MISSING
Aacute: 'Latin capital letter A with acute accent', // MISSING
Acirc: 'Latin capital letter A with circumflex', // MISSING
Atilde: 'Ladina suur A tildega',
Auml: 'Latin capital letter A with diaeresis', // MISSING
Aring: 'Latin capital letter A with ring above', // MISSING
AElig: 'Latin Capital letter Æ', // MISSING
Ccedil: 'Latin capital letter C with cedilla', // MISSING
Egrave: 'Latin capital letter E with grave accent', // MISSING
Eacute: 'Latin capital letter E with acute accent', // MISSING
Ecirc: 'Latin capital letter E with circumflex', // MISSING
Euml: 'Latin capital letter E with diaeresis', // MISSING
Igrave: 'Latin capital letter I with grave accent', // MISSING
Iacute: 'Latin capital letter I with acute accent', // MISSING
Icirc: 'Latin capital letter I with circumflex', // MISSING
Iuml: 'Latin capital letter I with diaeresis', // MISSING
ETH: 'Latin capital letter Eth', // MISSING
Ntilde: 'Latin capital letter N with tilde', // MISSING
Ograve: 'Latin capital letter O with grave accent', // MISSING
Oacute: 'Latin capital letter O with acute accent', // MISSING
Ocirc: 'Latin capital letter O with circumflex', // MISSING
Otilde: 'Latin capital letter O with tilde', // MISSING
Ouml: 'Täppidega ladina suur O',
times: 'Multiplication sign', // MISSING
Oslash: 'Latin capital letter O with stroke', // MISSING
Ugrave: 'Latin capital letter U with grave accent', // MISSING
Uacute: 'Latin capital letter U with acute accent', // MISSING
Ucirc: 'Kandilise katusega suur ladina U',
Uuml: 'Täppidega ladina suur U',
Yacute: 'Latin capital letter Y with acute accent', // MISSING
THORN: 'Latin capital letter Thorn', // MISSING
szlig: 'Ladina väike terav s',
agrave: 'Latin small letter a with grave accent', // MISSING
aacute: 'Latin small letter a with acute accent', // MISSING
acirc: 'Kandilise katusega ladina väike a',
atilde: 'Tildega ladina väike a',
auml: 'Täppidega ladina väike a',
aring: 'Latin small letter a with ring above', // MISSING
aelig: 'Latin small letter æ', // MISSING
ccedil: 'Latin small letter c with cedilla', // MISSING
egrave: 'Latin small letter e with grave accent', // MISSING
eacute: 'Latin small letter e with acute accent', // MISSING
ecirc: 'Latin small letter e with circumflex', // MISSING
euml: 'Latin small letter e with diaeresis', // MISSING
igrave: 'Latin small letter i with grave accent', // MISSING
iacute: 'Latin small letter i with acute accent', // MISSING
icirc: 'Latin small letter i with circumflex', // MISSING
iuml: 'Latin small letter i with diaeresis', // MISSING
eth: 'Latin small letter eth', // MISSING
ntilde: 'Latin small letter n with tilde', // MISSING
ograve: 'Latin small letter o with grave accent', // MISSING
oacute: 'Latin small letter o with acute accent', // MISSING
ocirc: 'Latin small letter o with circumflex', // MISSING
otilde: 'Latin small letter o with tilde', // MISSING
ouml: 'Latin small letter o with diaeresis', // MISSING
divide: 'Division sign', // MISSING
oslash: 'Latin small letter o with stroke', // MISSING
ugrave: 'Latin small letter u with grave accent', // MISSING
uacute: 'Latin small letter u with acute accent', // MISSING
ucirc: 'Latin small letter u with circumflex', // MISSING
uuml: 'Latin small letter u with diaeresis', // MISSING
yacute: 'Latin small letter y with acute accent', // MISSING
thorn: 'Latin small letter thorn', // MISSING
yuml: 'Latin small letter y with diaeresis', // MISSING
OElig: 'Latin capital ligature OE', // MISSING
oelig: 'Latin small ligature oe', // MISSING
'372': 'Latin capital letter W with circumflex', // MISSING
'374': 'Latin capital letter Y with circumflex', // MISSING
'373': 'Latin small letter w with circumflex', // MISSING
'375': 'Latin small letter y with circumflex', // MISSING
sbquo: 'Single low-9 quotation mark', // MISSING
'8219': 'Single high-reversed-9 quotation mark', // MISSING
bdquo: 'Double low-9 quotation mark', // MISSING
hellip: 'Horizontal ellipsis', // MISSING
trade: 'Trade mark sign', // MISSING
'9658': 'Black right-pointing pointer', // MISSING
bull: 'Bullet', // MISSING
rarr: 'Rightwards arrow', // MISSING
rArr: 'Rightwards double arrow', // MISSING
hArr: 'Left right double arrow', // MISSING
diams: 'Black diamond suit', // MISSING
asymp: 'Almost equal to' // MISSING
});
| JavaScript |
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'specialchar', 'he',
{
euro: 'יורו',
lsquo: 'Left single quotation mark', // MISSING
rsquo: 'Right single quotation mark', // MISSING
ldquo: 'Left double quotation mark', // MISSING
rdquo: 'Right double quotation mark', // MISSING
ndash: 'En dash', // MISSING
mdash: 'Em dash', // MISSING
iexcl: 'Inverted exclamation mark', // MISSING
cent: 'Cent sign', // MISSING
pound: 'Pound sign', // MISSING
curren: 'Currency sign', // MISSING
yen: 'Yen sign', // MISSING
brvbar: 'Broken bar', // MISSING
sect: 'Section sign', // MISSING
uml: 'Diaeresis', // MISSING
copy: 'Copyright sign', // MISSING
ordf: 'Feminine ordinal indicator', // MISSING
laquo: 'Left-pointing double angle quotation mark', // MISSING
not: 'Not sign', // MISSING
reg: 'Registered sign', // MISSING
macr: 'Macron', // MISSING
deg: 'Degree sign', // MISSING
sup2: 'Superscript two', // MISSING
sup3: 'Superscript three', // MISSING
acute: 'Acute accent', // MISSING
micro: 'Micro sign', // MISSING
para: 'Pilcrow sign', // MISSING
middot: 'Middle dot', // MISSING
cedil: 'Cedilla', // MISSING
sup1: 'Superscript one', // MISSING
ordm: 'Masculine ordinal indicator', // MISSING
raquo: 'Right-pointing double angle quotation mark', // MISSING
frac14: 'Vulgar fraction one quarter', // MISSING
frac12: 'Vulgar fraction one half', // MISSING
frac34: 'Vulgar fraction three quarters', // MISSING
iquest: 'Inverted question mark', // MISSING
Agrave: 'Latin capital letter A with grave accent', // MISSING
Aacute: 'Latin capital letter A with acute accent', // MISSING
Acirc: 'Latin capital letter A with circumflex', // MISSING
Atilde: 'Latin capital letter A with tilde', // MISSING
Auml: 'Latin capital letter A with diaeresis', // MISSING
Aring: 'Latin capital letter A with ring above', // MISSING
AElig: 'Latin Capital letter Æ', // MISSING
Ccedil: 'Latin capital letter C with cedilla', // MISSING
Egrave: 'Latin capital letter E with grave accent', // MISSING
Eacute: 'Latin capital letter E with acute accent', // MISSING
Ecirc: 'Latin capital letter E with circumflex', // MISSING
Euml: 'Latin capital letter E with diaeresis', // MISSING
Igrave: 'Latin capital letter I with grave accent', // MISSING
Iacute: 'Latin capital letter I with acute accent', // MISSING
Icirc: 'Latin capital letter I with circumflex', // MISSING
Iuml: 'Latin capital letter I with diaeresis', // MISSING
ETH: 'Latin capital letter Eth', // MISSING
Ntilde: 'Latin capital letter N with tilde', // MISSING
Ograve: 'Latin capital letter O with grave accent', // MISSING
Oacute: 'Latin capital letter O with acute accent', // MISSING
Ocirc: 'Latin capital letter O with circumflex', // MISSING
Otilde: 'Latin capital letter O with tilde', // MISSING
Ouml: 'Latin capital letter O with diaeresis', // MISSING
times: 'Multiplication sign', // MISSING
Oslash: 'Latin capital letter O with stroke', // MISSING
Ugrave: 'Latin capital letter U with grave accent', // MISSING
Uacute: 'Latin capital letter U with acute accent', // MISSING
Ucirc: 'Latin capital letter U with circumflex', // MISSING
Uuml: 'Latin capital letter U with diaeresis', // MISSING
Yacute: 'Latin capital letter Y with acute accent', // MISSING
THORN: 'Latin capital letter Thorn', // MISSING
szlig: 'Latin small letter sharp s', // MISSING
agrave: 'Latin small letter a with grave accent', // MISSING
aacute: 'Latin small letter a with acute accent', // MISSING
acirc: 'Latin small letter a with circumflex', // MISSING
atilde: 'Latin small letter a with tilde', // MISSING
auml: 'Latin small letter a with diaeresis', // MISSING
aring: 'Latin small letter a with ring above', // MISSING
aelig: 'Latin small letter æ', // MISSING
ccedil: 'Latin small letter c with cedilla', // MISSING
egrave: 'Latin small letter e with grave accent', // MISSING
eacute: 'Latin small letter e with acute accent', // MISSING
ecirc: 'Latin small letter e with circumflex', // MISSING
euml: 'Latin small letter e with diaeresis', // MISSING
igrave: 'Latin small letter i with grave accent', // MISSING
iacute: 'Latin small letter i with acute accent', // MISSING
icirc: 'Latin small letter i with circumflex', // MISSING
iuml: 'Latin small letter i with diaeresis', // MISSING
eth: 'Latin small letter eth', // MISSING
ntilde: 'Latin small letter n with tilde', // MISSING
ograve: 'Latin small letter o with grave accent', // MISSING
oacute: 'Latin small letter o with acute accent', // MISSING
ocirc: 'Latin small letter o with circumflex', // MISSING
otilde: 'Latin small letter o with tilde', // MISSING
ouml: 'Latin small letter o with diaeresis', // MISSING
divide: 'Division sign', // MISSING
oslash: 'Latin small letter o with stroke', // MISSING
ugrave: 'Latin small letter u with grave accent', // MISSING
uacute: 'Latin small letter u with acute accent', // MISSING
ucirc: 'Latin small letter u with circumflex', // MISSING
uuml: 'Latin small letter u with diaeresis', // MISSING
yacute: 'Latin small letter y with acute accent', // MISSING
thorn: 'Latin small letter thorn', // MISSING
yuml: 'Latin small letter y with diaeresis', // MISSING
OElig: 'Latin capital ligature OE', // MISSING
oelig: 'Latin small ligature oe', // MISSING
'372': 'Latin capital letter W with circumflex', // MISSING
'374': 'Latin capital letter Y with circumflex', // MISSING
'373': 'Latin small letter w with circumflex', // MISSING
'375': 'Latin small letter y with circumflex', // MISSING
sbquo: 'Single low-9 quotation mark', // MISSING
'8219': 'Single high-reversed-9 quotation mark', // MISSING
bdquo: 'Double low-9 quotation mark', // MISSING
hellip: 'Horizontal ellipsis', // MISSING
trade: 'Trade mark sign', // MISSING
'9658': 'Black right-pointing pointer', // MISSING
bull: 'Bullet', // MISSING
rarr: 'Rightwards arrow', // MISSING
rArr: 'Rightwards double arrow', // MISSING
hArr: 'Left right double arrow', // MISSING
diams: 'Black diamond suit', // MISSING
asymp: 'Almost equal to' // MISSING
});
| JavaScript |
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'specialchar', 'cs',
{
euro: 'Znak eura',
lsquo: 'Počáteční uvozovka jednoduchá',
rsquo: 'Koncová uvozovka jednoduchá',
ldquo: 'Počáteční uvozovka dvojitá',
rdquo: 'Koncová uvozovka dvojitá',
ndash: 'En pomlčka',
mdash: 'Em pomlčka',
iexcl: 'Obrácený vykřičník',
cent: 'Znak centu',
pound: 'Znak libry',
curren: 'Znak měny',
yen: 'Znak jenu',
brvbar: 'Přerušená svislá čára',
sect: 'Znak oddílu',
uml: 'Přehláska',
copy: 'Znak copyrightu',
ordf: 'Ženský indikátor rodu',
laquo: 'Znak dvojitých lomených uvozovek vlevo',
not: 'Logistický zápor',
reg: 'Znak registrace',
macr: 'Pomlčka nad',
deg: 'Znak stupně',
sup2: 'Dvojka jako horní index',
sup3: 'Trojka jako horní index',
acute: 'Čárka nad vpravo',
micro: 'Znak mikro',
para: 'Znak odstavce',
middot: 'Tečka uprostřed',
cedil: 'Ocásek vlevo',
sup1: 'Jednička jako horní index',
ordm: 'Mužský indikátor rodu',
raquo: 'Znak dvojitých lomených uvozovek vpravo',
frac14: 'Obyčejný zlomek jedna čtvrtina',
frac12: 'Obyčejný zlomek jedna polovina',
frac34: 'Obyčejný zlomek tři čtvrtiny',
iquest: 'Znak obráceného otazníku',
Agrave: 'Velké písmeno latinky A s čárkou nad vlevo',
Aacute: 'Velké písmeno latinky A s čárkou nad vpravo',
Acirc: 'Velké písmeno latinky A s vokáněm',
Atilde: 'Velké písmeno latinky A s tildou',
Auml: 'Velké písmeno latinky A s dvěma tečkami',
Aring: 'Velké písmeno latinky A s kroužkem nad',
AElig: 'Velké písmeno latinky Ae',
Ccedil: 'Velké písmeno latinky C s ocáskem vlevo',
Egrave: 'Velké písmeno latinky E s čárkou nad vlevo',
Eacute: 'Velké písmeno latinky E s čárkou nad vpravo',
Ecirc: 'Velké písmeno latinky E s vokáněm',
Euml: 'Velké písmeno latinky E s dvěma tečkami',
Igrave: 'Velké písmeno latinky I s čárkou nad vlevo',
Iacute: 'Velké písmeno latinky I s čárkou nad vpravo',
Icirc: 'Velké písmeno latinky I s vokáněm',
Iuml: 'Velké písmeno latinky I s dvěma tečkami',
ETH: 'Velké písmeno latinky Eth',
Ntilde: 'Velké písmeno latinky N s tildou',
Ograve: 'Velké písmeno latinky O s čárkou nad vlevo',
Oacute: 'Velké písmeno latinky O s čárkou nad vpravo',
Ocirc: 'Velké písmeno latinky O s vokáněm',
Otilde: 'Velké písmeno latinky O s tildou',
Ouml: 'Velké písmeno latinky O s dvěma tečkami',
times: 'Znak násobení',
Oslash: 'Velké písmeno latinky O přeškrtnuté',
Ugrave: 'Velké písmeno latinky U s čárkou nad vlevo',
Uacute: 'Velké písmeno latinky U s čárkou nad vpravo',
Ucirc: 'Velké písmeno latinky U s vokáněm',
Uuml: 'Velké písmeno latinky U s dvěma tečkami',
Yacute: 'Velké písmeno latinky Y s čárkou nad vpravo',
THORN: 'Velké písmeno latinky Thorn',
szlig: 'Malé písmeno latinky ostré s',
agrave: 'Malé písmeno latinky a s čárkou nad vlevo',
aacute: 'Malé písmeno latinky a s čárkou nad vpravo',
acirc: 'Malé písmeno latinky a s vokáněm',
atilde: 'Malé písmeno latinky a s tildou',
auml: 'Malé písmeno latinky a s dvěma tečkami',
aring: 'Malé písmeno latinky a s kroužkem nad',
aelig: 'Malé písmeno latinky ae',
ccedil: 'Malé písmeno latinky c s ocáskem vlevo',
egrave: 'Malé písmeno latinky e s čárkou nad vlevo',
eacute: 'Malé písmeno latinky e s čárkou nad vpravo',
ecirc: 'Malé písmeno latinky e s vokáněm',
euml: 'Malé písmeno latinky e s dvěma tečkami',
igrave: 'Malé písmeno latinky i s čárkou nad vlevo',
iacute: 'Malé písmeno latinky i s čárkou nad vpravo',
icirc: 'Malé písmeno latinky i s vokáněm',
iuml: 'Malé písmeno latinky i s dvěma tečkami',
eth: 'Malé písmeno latinky eth',
ntilde: 'Malé písmeno latinky n s tildou',
ograve: 'Malé písmeno latinky o s čárkou nad vlevo',
oacute: 'Malé písmeno latinky o s čárkou nad vpravo',
ocirc: 'Malé písmeno latinky o s vokáněm',
otilde: 'Malé písmeno latinky o s tildou',
ouml: 'Malé písmeno latinky o s dvěma tečkami',
divide: 'Znak dělení',
oslash: 'Malé písmeno latinky o přeškrtnuté',
ugrave: 'Malé písmeno latinky u s čárkou nad vlevo',
uacute: 'Malé písmeno latinky u s čárkou nad vpravo',
ucirc: 'Malé písmeno latinky u s vokáněm',
uuml: 'Malé písmeno latinky u s dvěma tečkami',
yacute: 'Malé písmeno latinky y s čárkou nad vpravo',
thorn: 'Malé písmeno latinky thorn',
yuml: 'Malé písmeno latinky y s dvěma tečkami',
OElig: 'Velká ligatura latinky OE',
oelig: 'Malá ligatura latinky OE',
'372': 'Velké písmeno latinky W s vokáněm',
'374': 'Velké písmeno latinky Y s vokáněm',
'373': 'Malé písmeno latinky w s vokáněm',
'375': 'Malé písmeno latinky y s vokáněm',
sbquo: 'Dolní 9 uvozovka jednoduchá',
'8219': 'Horní obrácená 9 uvozovka jednoduchá',
bdquo: 'Dolní 9 uvozovka dvojitá',
hellip: 'Trojtečkový úvod',
trade: 'Obchodní značka',
'9658': 'Černý ukazatel směřující vpravo',
bull: 'Kolečko',
rarr: 'Šipka vpravo',
rArr: 'Dvojitá šipka vpravo',
hArr: 'Dvojitá šipka vlevo a vpravo',
diams: 'Černé piky',
asymp: 'Téměř se rovná'
});
| JavaScript |
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'specialchar', 'ku',
{
euro: 'نیشانهی یۆرۆ',
lsquo: 'نیشانهی فاریزهی سهرووژێری تاکی چهپ',
rsquo: 'نیشانهی فاریزهی سهرووژێری تاکی ڕاست',
ldquo: 'نیشانهی فاریزهی سهرووژێری دووهێندهی چهپ',
rdquo: 'نیشانهی فاریزهی سهرووژێری دووهێندهی ڕاست',
ndash: 'تهقهڵی کورت',
mdash: 'تهقهڵی درێژ',
iexcl: 'نیشانهی ههڵهوگێڕی سهرسوڕمێنهر',
cent: 'نیشانهی سهنت',
pound: 'نیشانهی پاوهند',
curren: 'نیشانهی دراو',
yen: 'نیشانهی یهنی ژاپۆنی',
brvbar: 'شریتی ئهستوونی پچڕاو',
sect: 'نیشانهی دوو s لهسهریهك',
uml: 'خاڵ',
copy: 'نیشانهی مافی چاپ',
ordf: 'هێڵ لهسهر پیتی a',
laquo: 'دوو تیری بهدووایهکی چهپ',
not: 'نیشانهی نهخێر',
reg: 'نیشانهی R لهناو بازنهدا',
macr: 'ماکڕوون',
deg: 'نیشانهی پله',
sup2: 'سهرنووسی دوو',
sup3: 'سهرنووسی سێ',
acute: 'لاری تیژ',
micro: 'نیشانهی u لق درێژی چهپی خواروو',
para: 'نیشانهیپهڕهگراف',
middot: 'ناوهڕاستی خاڵ',
cedil: 'نیشانهی c ژێر چووکره',
sup1: 'سهرنووسی یهك',
ordm: 'هێڵ لهژێر پیتی o',
raquo: 'دوو تیری بهدووایهکی ڕاست',
frac14: 'یهك لهسهر چووار',
frac12: 'یهك لهسهر دوو',
frac34: 'سێ لهسهر چووار',
iquest: 'هێمای ههڵهوگێری پرسیار',
Agrave: 'پیتی لاتینی A-ی گهوره لهگهڵ ڕوومهتداری لار',
Aacute: 'پیتی لاتینی A-ی گهوره لهگهڵ ڕوومهتداری تیژ',
Acirc: 'پیتی لاتینی A-ی گهوره لهگهڵ نیشانه لهسهری',
Atilde: 'پیتی لاتینی A-ی گهوره لهگهڵ زهڕه',
Auml: 'پیتی لاتینی A-ی گهوره لهگهڵ نیشانه لهسهری',
Aring: 'پیتی لاتینی گهورهی Å',
AElig: 'پیتی لاتینی گهورهی Æ',
Ccedil: 'پیتی لاتینی C-ی گهوره لهگهڵ ژێر چووکره',
Egrave: 'پیتی لاتینی E-ی گهوره لهگهڵ ڕوومهتداری لار',
Eacute: 'پیتی لاتینی E-ی گهوره لهگهڵ ڕوومهتداری تیژ',
Ecirc: 'پیتی لاتینی E-ی گهوره لهگهڵ نیشانه لهسهری',
Euml: 'پیتی لاتینی E-ی گهوره لهگهڵ نیشانه لهسهری',
Igrave: 'پیتی لاتینی I-ی گهوره لهگهڵ ڕوومهتداری لار',
Iacute: 'پیتی لاتینی I-ی گهوره لهگهڵ ڕوومهتداری تیژ',
Icirc: 'پیتی لاتینی I-ی گهوره لهگهڵ نیشانه لهسهری',
Iuml: 'پیتی لاتینی I-ی گهوره لهگهڵ نیشانه لهسهری',
ETH: 'پیتی لاتینی E-ی گهورهی',
Ntilde: 'پیتی لاتینی N-ی گهوره لهگهڵ زهڕه',
Ograve: 'پیتی لاتینی O-ی گهوره لهگهڵ ڕوومهتداری لار',
Oacute: 'پیتی لاتینی O-ی گهوره لهگهڵ ڕوومهتداری تیژ',
Ocirc: 'پیتی لاتینی O-ی گهوره لهگهڵ نیشانه لهسهری',
Otilde: 'پیتی لاتینی O-ی گهوره لهگهڵ زهڕه',
Ouml: 'پیتی لاتینی O-ی گهوره لهگهڵ نیشانه لهسهری',
times: 'نیشانهی لێکدان',
Oslash: 'پیتی لاتینی گهورهی Ø لهگهڵ هێمای دڵ وهستان',
Ugrave: 'پیتی لاتینی U-ی گهوره لهگهڵ ڕوومهتداری لار',
Uacute: 'پیتی لاتینی U-ی گهوره لهگهڵ ڕوومهتداری تیژ',
Ucirc: 'پیتی لاتینی U-ی گهوره لهگهڵ نیشانه لهسهری',
Uuml: 'پیتی لاتینی U-ی گهوره لهگهڵ نیشانه لهسهری',
Yacute: 'پیتی لاتینی Y-ی گهوره لهگهڵ ڕوومهتداری تیژ',
THORN: 'پیتی لاتینی دڕکی گهوره',
szlig: 'پیتی لاتنی نووك تیژی s',
agrave: 'پیتی لاتینی a-ی بچووك لهگهڵ ڕوومهتداری لار',
aacute: 'پیتی لاتینی a-ی بچووك لهگهڵ ڕوومهتداری تیژ',
acirc: 'پیتی لاتینی a-ی بچووك لهگهڵ نیشانه لهسهری',
atilde: 'پیتی لاتینی a-ی بچووك لهگهڵ زهڕه',
auml: 'پیتی لاتینی a-ی بچووك لهگهڵ نیشانه لهسهری',
aring: 'پیتی لاتینی å-ی بچووك',
aelig: 'پیتی لاتینی æ-ی بچووك',
ccedil: 'پیتی لاتینی c-ی بچووك لهگهڵ ژێر چووکره',
egrave: 'پیتی لاتینی e-ی بچووك لهگهڵ ڕوومهتداری لار',
eacute: 'پیتی لاتینی e-ی بچووك لهگهڵ ڕوومهتداری تیژ',
ecirc: 'پیتی لاتینی e-ی بچووك لهگهڵ نیشانه لهسهری',
euml: 'پیتی لاتینی e-ی بچووك لهگهڵ نیشانه لهسهری',
igrave: 'پیتی لاتینی i-ی بچووك لهگهڵ ڕوومهتداری لار',
iacute: 'پیتی لاتینی i-ی بچووك لهگهڵ ڕوومهتداری تیژ',
icirc: 'پیتی لاتینی i-ی بچووك لهگهڵ نیشانه لهسهری',
iuml: 'پیتی لاتینی i-ی بچووك لهگهڵ نیشانه لهسهری',
eth: 'پیتی لاتینی e-ی بچووك',
ntilde: 'پیتی لاتینی n-ی بچووك لهگهڵ زهڕه',
ograve: 'پیتی لاتینی o-ی بچووك لهگهڵ ڕوومهتداری لار',
oacute: 'پیتی لاتینی o-ی بچووك لهگهڵ ڕوومهتداری تیژ',
ocirc: 'پیتی لاتینی o-ی بچووك لهگهڵ نیشانه لهسهری',
otilde: 'پیتی لاتینی o-ی بچووك لهگهڵ زهڕه',
ouml: 'پیتی لاتینی o-ی بچووك لهگهڵ نیشانه لهسهری',
divide: 'نیشانهی دابهش',
oslash: 'پیتی لاتینی گهورهی ø لهگهڵ هێمای دڵ وهستان',
ugrave: 'پیتی لاتینی u-ی بچووك لهگهڵ ڕوومهتداری لار',
uacute: 'پیتی لاتینی u-ی بچووك لهگهڵ ڕوومهتداری تیژ',
ucirc: 'پیتی لاتینی u-ی بچووك لهگهڵ نیشانه لهسهری',
uuml: 'پیتی لاتینی u-ی بچووك لهگهڵ نیشانه لهسهری',
yacute: 'پیتی لاتینی y-ی بچووك لهگهڵ ڕوومهتداری تیژ',
thorn: 'پیتی لاتینی دڕکی بچووك',
yuml: 'پیتی لاتینی y-ی بچووك لهگهڵ نیشانه لهسهری',
OElig: 'پیتی لاتینی گهورهی پێکهوهنووسراوی OE',
oelig: 'پیتی لاتینی بچووکی پێکهوهنووسراوی oe',
'372': 'پیتی لاتینی W-ی گهوره لهگهڵ نیشانه لهسهری',
'374': 'پیتی لاتینی Y-ی گهوره لهگهڵ نیشانه لهسهری',
'373': 'پیتی لاتینی w-ی بچووکی لهگهڵ نیشانه لهسهری',
'375': 'پیتی لاتینی y-ی بچووکی لهگهڵ نیشانه لهسهری',
sbquo: 'نیشانهی فاریزهی نزم',
'8219': 'نیشانهی فاریزهی بهرزی پێچهوانه',
bdquo: 'دوو فاریزهی تهنیش یهك',
hellip: 'ئاسۆیی بازنه',
trade: 'نیشانهی بازرگانی',
'9658': 'ئاراستهی ڕهشی دهستی ڕاست',
bull: 'فیشهك',
rarr: 'تیری دهستی ڕاست',
rArr: 'دووتیری دهستی ڕاست',
hArr: 'دوو تیری ڕاست و چهپ',
diams: 'ڕهشی پاقڵاوهیی',
asymp: 'نیشانهی یهکسانه'
});
| JavaScript |
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'specialchar', 'pt-br',
{
euro: 'Euro',
lsquo: 'Aspas simples esquerda',
rsquo: 'Aspas simples direita',
ldquo: 'Aspas duplas esquerda',
rdquo: 'Aspas duplas direita',
ndash: 'Traço',
mdash: 'Travessão',
iexcl: 'Ponto de exclamação invertido',
cent: 'Cent',
pound: 'Cerquilha',
curren: 'Dinheiro',
yen: 'Yen',
brvbar: 'Bara interrompida',
sect: 'Símbolo de Parágrafo',
uml: 'Trema',
copy: 'Direito de Cópia',
ordf: 'Indicador ordinal feminino',
laquo: 'Aspas duplas angulares esquerda',
not: 'Negação',
reg: 'Marca Registrada',
macr: 'Mácron',
deg: 'Grau',
sup2: '2 Superscrito',
sup3: '3 Superscrito',
acute: 'Acento agudo',
micro: 'Micro',
para: 'Pé de mosca',
middot: 'Ponto mediano',
cedil: 'Cedilha',
sup1: '1 Superscrito',
ordm: 'Indicador ordinal masculino',
raquo: 'Aspas duplas angulares direita',
frac14: 'Um quarto',
frac12: 'Um meio',
frac34: 'Três quartos',
iquest: 'Interrogação invertida',
Agrave: 'A maiúsculo com acento grave',
Aacute: 'A maiúsculo com acento agudo',
Acirc: 'A maiúsculo com acento circunflexo',
Atilde: 'A maiúsculo com til',
Auml: 'A maiúsculo com trema',
Aring: 'A maiúsculo com anel acima',
AElig: 'Æ maiúsculo',
Ccedil: 'Ç maiúlculo',
Egrave: 'E maiúsculo com acento grave',
Eacute: 'E maiúsculo com acento agudo',
Ecirc: 'E maiúsculo com acento circumflexo',
Euml: 'E maiúsculo com trema',
Igrave: 'I maiúsculo com acento grave',
Iacute: 'I maiúsculo com acento agudo',
Icirc: 'I maiúsculo com acento circunflexo',
Iuml: 'I maiúsculo com crase',
ETH: 'Eth maiúsculo',
Ntilde: 'N maiúsculo com til',
Ograve: 'O maiúsculo com acento grave',
Oacute: 'O maiúsculo com acento agudo',
Ocirc: 'O maiúsculo com acento circunflexo',
Otilde: 'O maiúsculo com til',
Ouml: 'O maiúsculo com trema',
times: 'Multiplicação',
Oslash: 'Diâmetro',
Ugrave: 'U maiúsculo com acento grave',
Uacute: 'U maiúsculo com acento agudo',
Ucirc: 'U maiúsculo com acento circunflexo',
Uuml: 'U maiúsculo com trema',
Yacute: 'Y maiúsculo com acento agudo',
THORN: 'Thorn maiúsculo',
szlig: 'Eszett minúsculo',
agrave: 'a minúsculo com acento grave',
aacute: 'a minúsculo com acento agudo',
acirc: 'a minúsculo com acento circunflexo',
atilde: 'a minúsculo com til',
auml: 'a minúsculo com trema',
aring: 'a minúsculo com anel acima',
aelig: 'æ minúsculo',
ccedil: 'ç minúsculo',
egrave: 'e minúsculo com acento grave',
eacute: 'e minúsculo com acento agudo',
ecirc: 'e minúsculo com acento circunflexo',
euml: 'e minúsculo com trema',
igrave: 'i minúsculo com acento grave',
iacute: 'i minúsculo com acento agudo',
icirc: 'i minúsculo com acento circunflexo',
iuml: 'i minúsculo com trema',
eth: 'eth minúsculo',
ntilde: 'n minúsculo com til',
ograve: 'o minúsculo com acento grave',
oacute: 'o minúsculo com acento agudo',
ocirc: 'o minúsculo com acento circunflexo',
otilde: 'o minúsculo com til',
ouml: 'o minúsculo com trema',
divide: 'Divisão',
oslash: 'o minúsculo com cortado ou diâmetro',
ugrave: 'u minúsculo com acento grave',
uacute: 'u minúsculo com acento agudo',
ucirc: 'u minúsculo com acento circunflexo',
uuml: 'u minúsculo com trema',
yacute: 'y minúsculo com acento agudo',
thorn: 'thorn minúsculo',
yuml: 'y minúsculo com trema',
OElig: 'Ligação tipográfica OE maiúscula',
oelig: 'Ligação tipográfica oe minúscula',
'372': 'W maiúsculo com acento circunflexo',
'374': 'Y maiúsculo com acento circunflexo',
'373': 'w minúsculo com acento circunflexo',
'375': 'y minúsculo com acento circunflexo',
sbquo: 'Aspas simples inferior direita',
'8219': 'Aspas simples superior esquerda',
bdquo: 'Aspas duplas inferior direita',
hellip: 'Reticências',
trade: 'Trade mark',
'9658': 'Ponta de seta preta para direita',
bull: 'Ponto lista',
rarr: 'Seta para direita',
rArr: 'Seta dupla para direita',
hArr: 'Seta dupla direita e esquerda',
diams: 'Ouros',
asymp: 'Aproximadamente'
});
| JavaScript |
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.dialog.add( 'specialchar', function( editor )
{
/**
* Simulate "this" of a dialog for non-dialog events.
* @type {CKEDITOR.dialog}
*/
var dialog,
lang = editor.lang.specialChar;
var onChoice = function( evt )
{
var target, value;
if ( evt.data )
target = evt.data.getTarget();
else
target = new CKEDITOR.dom.element( evt );
if ( target.getName() == 'a' && ( value = target.getChild( 0 ).getHtml() ) )
{
target.removeClass( "cke_light_background" );
dialog.hide();
// We must use "insertText" here to keep text styled.
var span = editor.document.createElement( 'span' );
span.setHtml( value );
editor.insertText( span.getText() );
}
};
var onClick = CKEDITOR.tools.addFunction( onChoice );
var focusedNode;
var onFocus = function( evt, target )
{
var value;
target = target || evt.data.getTarget();
if ( target.getName() == 'span' )
target = target.getParent();
if ( target.getName() == 'a' && ( value = target.getChild( 0 ).getHtml() ) )
{
// Trigger blur manually if there is focused node.
if ( focusedNode )
onBlur( null, focusedNode );
var htmlPreview = dialog.getContentElement( 'info', 'htmlPreview' ).getElement();
dialog.getContentElement( 'info', 'charPreview' ).getElement().setHtml( value );
htmlPreview.setHtml( CKEDITOR.tools.htmlEncode( value ) );
target.getParent().addClass( "cke_light_background" );
// Memorize focused node.
focusedNode = target;
}
};
var onBlur = function( evt, target )
{
target = target || evt.data.getTarget();
if ( target.getName() == 'span' )
target = target.getParent();
if ( target.getName() == 'a' )
{
dialog.getContentElement( 'info', 'charPreview' ).getElement().setHtml( ' ' );
dialog.getContentElement( 'info', 'htmlPreview' ).getElement().setHtml( ' ' );
target.getParent().removeClass( "cke_light_background" );
focusedNode = undefined;
}
};
var onKeydown = CKEDITOR.tools.addFunction( function( ev )
{
ev = new CKEDITOR.dom.event( ev );
// Get an Anchor element.
var element = ev.getTarget();
var relative, nodeToMove;
var keystroke = ev.getKeystroke(),
rtl = editor.lang.dir == 'rtl';
switch ( keystroke )
{
// UP-ARROW
case 38 :
// relative is TR
if ( ( relative = element.getParent().getParent().getPrevious() ) )
{
nodeToMove = relative.getChild( [element.getParent().getIndex(), 0] );
nodeToMove.focus();
onBlur( null, element );
onFocus( null, nodeToMove );
}
ev.preventDefault();
break;
// DOWN-ARROW
case 40 :
// relative is TR
if ( ( relative = element.getParent().getParent().getNext() ) )
{
nodeToMove = relative.getChild( [ element.getParent().getIndex(), 0 ] );
if ( nodeToMove && nodeToMove.type == 1 )
{
nodeToMove.focus();
onBlur( null, element );
onFocus( null, nodeToMove );
}
}
ev.preventDefault();
break;
// SPACE
// ENTER is already handled as onClick
case 32 :
onChoice( { data: ev } );
ev.preventDefault();
break;
// RIGHT-ARROW
case rtl ? 37 : 39 :
// relative is TD
if ( ( relative = element.getParent().getNext() ) )
{
nodeToMove = relative.getChild( 0 );
if ( nodeToMove.type == 1 )
{
nodeToMove.focus();
onBlur( null, element );
onFocus( null, nodeToMove );
ev.preventDefault( true );
}
else
onBlur( null, element );
}
// relative is TR
else if ( ( relative = element.getParent().getParent().getNext() ) )
{
nodeToMove = relative.getChild( [ 0, 0 ] );
if ( nodeToMove && nodeToMove.type == 1 )
{
nodeToMove.focus();
onBlur( null, element );
onFocus( null, nodeToMove );
ev.preventDefault( true );
}
else
onBlur( null, element );
}
break;
// LEFT-ARROW
case rtl ? 39 : 37 :
// relative is TD
if ( ( relative = element.getParent().getPrevious() ) )
{
nodeToMove = relative.getChild( 0 );
nodeToMove.focus();
onBlur( null, element );
onFocus( null, nodeToMove );
ev.preventDefault( true );
}
// relative is TR
else if ( ( relative = element.getParent().getParent().getPrevious() ) )
{
nodeToMove = relative.getLast().getChild( 0 );
nodeToMove.focus();
onBlur( null, element );
onFocus( null, nodeToMove );
ev.preventDefault( true );
}
else
onBlur( null, element );
break;
default :
// Do not stop not handled events.
return;
}
});
return {
title : lang.title,
minWidth : 430,
minHeight : 280,
buttons : [ CKEDITOR.dialog.cancelButton ],
charColumns : 17,
onLoad : function()
{
var columns = this.definition.charColumns,
extraChars = editor.config.extraSpecialChars,
chars = editor.config.specialChars;
var charsTableLabel = CKEDITOR.tools.getNextId() + '_specialchar_table_label';
var html = [ '<table role="listbox" aria-labelledby="' + charsTableLabel + '"' +
' style="width: 320px; height: 100%; border-collapse: separate;"' +
' align="center" cellspacing="2" cellpadding="2" border="0">' ];
var i = 0,
size = chars.length,
character,
charDesc;
while ( i < size )
{
html.push( '<tr role="presentation">' ) ;
for ( var j = 0 ; j < columns ; j++, i++ )
{
if ( ( character = chars[ i ] ) )
{
charDesc = '';
if ( character instanceof Array )
{
charDesc = character[ 1 ];
character = character[ 0 ];
}
else
{
var _tmpName = character.replace( '&', '' ).replace( ';', '' ).replace( '#', '' );
// Use character in case description unavailable.
charDesc = lang[ _tmpName ] || character;
}
var charLabelId = 'cke_specialchar_label_' + i + '_' + CKEDITOR.tools.getNextNumber();
html.push(
'<td class="cke_dark_background" style="cursor: default" role="presentation">' +
'<a href="javascript: void(0);" role="option"' +
' aria-posinset="' + ( i +1 ) + '"',
' aria-setsize="' + size + '"',
' aria-labelledby="' + charLabelId + '"',
' style="cursor: inherit; display: block; height: 1.25em; margin-top: 0.25em; text-align: center;" title="', CKEDITOR.tools.htmlEncode( charDesc ), '"' +
' onkeydown="CKEDITOR.tools.callFunction( ' + onKeydown + ', event, this )"' +
' onclick="CKEDITOR.tools.callFunction(' + onClick + ', this); return false;"' +
' tabindex="-1">' +
'<span style="margin: 0 auto;cursor: inherit">' +
character +
'</span>' +
'<span class="cke_voice_label" id="' + charLabelId + '">' +
charDesc +
'</span></a>');
}
else
html.push( '<td class="cke_dark_background"> ' );
html.push( '</td>' );
}
html.push( '</tr>' );
}
html.push( '</tbody></table>', '<span id="' + charsTableLabel + '" class="cke_voice_label">' + lang.options +'</span>' );
this.getContentElement( 'info', 'charContainer' ).getElement().setHtml( html.join( '' ) );
},
contents : [
{
id : 'info',
label : editor.lang.common.generalTab,
title : editor.lang.common.generalTab,
padding : 0,
align : 'top',
elements : [
{
type : 'hbox',
align : 'top',
widths : [ '320px', '90px' ],
children :
[
{
type : 'html',
id : 'charContainer',
html : '',
onMouseover : onFocus,
onMouseout : onBlur,
focus : function()
{
var firstChar = this.getElement().getElementsByTag( 'a' ).getItem( 0 );
setTimeout( function()
{
firstChar.focus();
onFocus( null, firstChar );
}, 0 );
},
onShow : function()
{
var firstChar = this.getElement().getChild( [ 0, 0, 0, 0, 0 ] );
setTimeout( function()
{
firstChar.focus();
onFocus( null, firstChar );
}, 0 );
},
onLoad : function( event )
{
dialog = event.sender;
}
},
{
type : 'hbox',
align : 'top',
widths : [ '100%' ],
children :
[
{
type : 'vbox',
align : 'top',
children :
[
{
type : 'html',
html : '<div></div>'
},
{
type : 'html',
id : 'charPreview',
className : 'cke_dark_background',
style : 'border:1px solid #eeeeee;font-size:28px;height:40px;width:70px;padding-top:9px;font-family:\'Microsoft Sans Serif\',Arial,Helvetica,Verdana;text-align:center;',
html : '<div> </div>'
},
{
type : 'html',
id : 'htmlPreview',
className : 'cke_dark_background',
style : 'border:1px solid #eeeeee;font-size:14px;height:20px;width:70px;padding-top:2px;font-family:\'Microsoft Sans Serif\',Arial,Helvetica,Verdana;text-align:center;',
html : '<div> </div>'
}
]
}
]
}
]
}
]
}
]
};
} );
| JavaScript |
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
/**
* @file Spell checker
*/
// Register a plugin named "wsc".
CKEDITOR.plugins.add( 'wsc',
{
requires : [ 'dialog' ],
init : function( editor )
{
var commandName = 'checkspell';
var command = editor.addCommand( commandName, new CKEDITOR.dialogCommand( commandName ) );
// SpellChecker doesn't work in Opera and with custom domain
command.modes = { wysiwyg : ( !CKEDITOR.env.opera && !CKEDITOR.env.air && document.domain == window.location.hostname ) };
editor.ui.addButton( 'SpellChecker',
{
label : editor.lang.spellCheck.toolbar,
command : commandName
});
CKEDITOR.dialog.add( commandName, this.path + 'dialogs/wsc.js' );
}
});
CKEDITOR.config.wsc_customerId = CKEDITOR.config.wsc_customerId || '1:ua3xw1-2XyGJ3-GWruD3-6OFNT1-oXcuB1-nR6Bp4-hgQHc-EcYng3-sdRXG3-NOfFk' ;
CKEDITOR.config.wsc_customLoaderScript = CKEDITOR.config.wsc_customLoaderScript || null;
| JavaScript |
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.dialog.add( 'checkspell', function( editor )
{
var number = CKEDITOR.tools.getNextNumber(),
iframeId = 'cke_frame_' + number,
textareaId = 'cke_data_' + number,
errorBoxId = 'cke_error_' + number,
interval,
protocol = document.location.protocol || 'http:',
errorMsg = editor.lang.spellCheck.notAvailable;
var pasteArea = '<textarea'+
' style="display: none"' +
' id="' + textareaId + '"' +
' rows="10"' +
' cols="40">' +
' </textarea><div' +
' id="' + errorBoxId + '"' +
' style="display:none;color:red;font-size:16px;font-weight:bold;padding-top:160px;text-align:center;z-index:11;">' +
'</div><iframe' +
' src=""' +
' style="width:100%;background-color:#f1f1e3;"' +
' frameborder="0"' +
' name="' + iframeId + '"' +
' id="' + iframeId + '"' +
' allowtransparency="1">' +
'</iframe>';
var wscCoreUrl = editor.config.wsc_customLoaderScript || ( protocol +
'//loader.webspellchecker.net/sproxy_fck/sproxy.php'
+ '?plugin=fck2'
+ '&customerid=' + editor.config.wsc_customerId
+ '&cmd=script&doc=wsc&schema=22'
);
if ( editor.config.wsc_customLoaderScript )
errorMsg += '<p style="color:#000;font-size:11px;font-weight: normal;text-align:center;padding-top:10px">' +
editor.lang.spellCheck.errorLoading.replace( /%s/g, editor.config.wsc_customLoaderScript ) + '</p>';
function burnSpelling( dialog, errorMsg )
{
var i = 0;
return function ()
{
if ( typeof( window.doSpell ) == 'function' )
{
//Call from window.setInteval expected at once.
if ( typeof( interval ) != 'undefined' )
window.clearInterval( interval );
initAndSpell( dialog );
}
else if ( i++ == 180 ) // Timeout: 180 * 250ms = 45s.
window._cancelOnError( errorMsg );
};
}
window._cancelOnError = function( m )
{
if ( typeof( window.WSC_Error ) == 'undefined' )
{
CKEDITOR.document.getById( iframeId ).setStyle( 'display', 'none' );
var errorBox = CKEDITOR.document.getById( errorBoxId );
errorBox.setStyle( 'display', 'block' );
errorBox.setHtml( m || editor.lang.spellCheck.notAvailable );
}
};
function initAndSpell( dialog )
{
var LangComparer = new window._SP_FCK_LangCompare(), // Language abbr standarts comparer.
pluginPath = CKEDITOR.getUrl( editor.plugins.wsc.path + 'dialogs/' ), // Service paths corecting/preparing.
framesetPath = pluginPath + 'tmpFrameset.html';
// global var is used in FCK specific core
// change on equal var used in fckplugin.js
window.gFCKPluginName = 'wsc';
LangComparer.setDefaulLangCode( editor.config.defaultLanguage );
window.doSpell({
ctrl : textareaId,
lang : editor.config.wsc_lang || LangComparer.getSPLangCode(editor.langCode ),
intLang: editor.config.wsc_uiLang || LangComparer.getSPLangCode(editor.langCode ),
winType : iframeId, // If not defined app will run on winpopup.
// Callback binding section.
onCancel : function()
{
dialog.hide();
},
onFinish : function( dT )
{
editor.focus();
dialog.getParentEditor().setData( dT.value );
dialog.hide();
},
// Some manipulations with client static pages.
staticFrame : framesetPath,
framesetPath : framesetPath,
iframePath : pluginPath + 'ciframe.html',
// Styles defining.
schemaURI : pluginPath + 'wsc.css',
userDictionaryName: editor.config.wsc_userDictionaryName,
customDictionaryName: editor.config.wsc_customDictionaryIds && editor.config.wsc_customDictionaryIds.split(","),
domainName: editor.config.wsc_domainName
});
// Hide user message console (if application was loaded more then after timeout).
CKEDITOR.document.getById( errorBoxId ).setStyle( 'display', 'none' );
CKEDITOR.document.getById( iframeId ).setStyle( 'display', 'block' );
}
return {
title : editor.config.wsc_dialogTitle || editor.lang.spellCheck.title,
minWidth : 485,
minHeight : 380,
buttons : [ CKEDITOR.dialog.cancelButton ],
onShow : function()
{
var contentArea = this.getContentElement( 'general', 'content' ).getElement();
contentArea.setHtml( pasteArea );
contentArea.getChild( 2 ).setStyle( 'height', this._.contentSize.height + 'px' );
if ( typeof( window.doSpell ) != 'function' )
{
// Load script.
CKEDITOR.document.getHead().append(
CKEDITOR.document.createElement( 'script',
{
attributes :
{
type : 'text/javascript',
src : wscCoreUrl
}
})
);
}
var sData = editor.getData(); // Get the data to be checked.
CKEDITOR.document.getById( textareaId ).setValue( sData );
interval = window.setInterval( burnSpelling( this, errorMsg ), 250 );
},
onHide : function()
{
window.ooo = undefined;
window.int_framsetLoaded = undefined;
window.framesetLoaded = undefined;
window.is_window_opened = false;
},
contents : [
{
id : 'general',
label : editor.config.wsc_dialogTitle || editor.lang.spellCheck.title,
padding : 0,
elements : [
{
type : 'html',
id : 'content',
html : ''
}
]
}
]
};
});
// Expand the spell-check frame when dialog resized. (#6829)
CKEDITOR.dialog.on( 'resize', function( evt )
{
var data = evt.data,
dialog = data.dialog;
if ( dialog._.name == 'checkspell' )
{
var content = dialog.getContentElement( 'general', 'content' ).getElement(),
iframe = content && content.getChild( 2 );
iframe && iframe.setSize( 'height', data.height );
iframe && iframe.setSize( 'width', data.width );
}
});
| JavaScript |
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
/**
* @fileOverview The "filebrowser" plugin that adds support for file uploads and
* browsing.
*
* When a file is uploaded or selected inside the file browser, its URL is
* inserted automatically into a field defined in the <code>filebrowser</code>
* attribute. In order to specify a field that should be updated, pass the tab ID and
* the element ID, separated with a colon.<br /><br />
*
* <strong>Example 1: (Browse)</strong>
*
* <pre>
* {
* type : 'button',
* id : 'browse',
* filebrowser : 'tabId:elementId',
* label : editor.lang.common.browseServer
* }
* </pre>
*
* If you set the <code>filebrowser</code> attribute for an element other than
* the <code>fileButton</code>, the <code>Browse</code> action will be triggered.<br /><br />
*
* <strong>Example 2: (Quick Upload)</strong>
*
* <pre>
* {
* type : 'fileButton',
* id : 'uploadButton',
* filebrowser : 'tabId:elementId',
* label : editor.lang.common.uploadSubmit,
* 'for' : [ 'upload', 'upload' ]
* }
* </pre>
*
* If you set the <code>filebrowser</code> attribute for a <code>fileButton</code>
* element, the <code>QuickUpload</code> action will be executed.<br /><br />
*
* The filebrowser plugin also supports more advanced configuration performed through
* a JavaScript object.
*
* The following settings are supported:
*
* <ul>
* <li><code>action</code> – <code>Browse</code> or <code>QuickUpload</code>.</li>
* <li><code>target</code> – the field to update in the <code><em>tabId:elementId</em></code> format.</li>
* <li><code>params</code> – additional arguments to be passed to the server connector (optional).</li>
* <li><code>onSelect</code> – a function to execute when the file is selected/uploaded (optional).</li>
* <li><code>url</code> – the URL to be called (optional).</li>
* </ul>
*
* <strong>Example 3: (Quick Upload)</strong>
*
* <pre>
* {
* type : 'fileButton',
* label : editor.lang.common.uploadSubmit,
* id : 'buttonId',
* filebrowser :
* {
* action : 'QuickUpload', // required
* target : 'tab1:elementId', // required
* params : // optional
* {
* type : 'Files',
* currentFolder : '/folder/'
* },
* onSelect : function( fileUrl, errorMessage ) // optional
* {
* // Do not call the built-in selectFuntion.
* // return false;
* }
* },
* 'for' : [ 'tab1', 'myFile' ]
* }
* </pre>
*
* Suppose you have a file element with an ID of <code>myFile</code>, a text
* field with an ID of <code>elementId</code> and a <code>fileButton</code>.
* If the <code>filebowser.url</code> attribute is not specified explicitly,
* the form action will be set to <code>filebrowser[<em>DialogWindowName</em>]UploadUrl</code>
* or, if not specified, to <code>filebrowserUploadUrl</code>. Additional parameters
* from the <code>params</code> object will be added to the query string. It is
* possible to create your own <code>uploadHandler</code> and cancel the built-in
* <code>updateTargetElement</code> command.<br /><br />
*
* <strong>Example 4: (Browse)</strong>
*
* <pre>
* {
* type : 'button',
* id : 'buttonId',
* label : editor.lang.common.browseServer,
* filebrowser :
* {
* action : 'Browse',
* url : '/ckfinder/ckfinder.html&type=Images',
* target : 'tab1:elementId'
* }
* }
* </pre>
*
* In this example, when the button is pressed, the file browser will be opened in a
* popup window. If you do not specify the <code>filebrowser.url</code> attribute,
* <code>filebrowser[<em>DialogName</em>]BrowseUrl</code> or
* <code>filebrowserBrowseUrl</code> will be used. After selecting a file in the file
* browser, an element with an ID of <code>elementId</code> will be updated. Just
* like in the third example, a custom <code>onSelect</code> function may be defined.
*/
( function()
{
/*
* Adds (additional) arguments to given url.
*
* @param {String}
* url The url.
* @param {Object}
* params Additional parameters.
*/
function addQueryString( url, params )
{
var queryString = [];
if ( !params )
return url;
else
{
for ( var i in params )
queryString.push( i + "=" + encodeURIComponent( params[ i ] ) );
}
return url + ( ( url.indexOf( "?" ) != -1 ) ? "&" : "?" ) + queryString.join( "&" );
}
/*
* Make a string's first character uppercase.
*
* @param {String}
* str String.
*/
function ucFirst( str )
{
str += '';
var f = str.charAt( 0 ).toUpperCase();
return f + str.substr( 1 );
}
/*
* The onlick function assigned to the 'Browse Server' button. Opens the
* file browser and updates target field when file is selected.
*
* @param {CKEDITOR.event}
* evt The event object.
*/
function browseServer( evt )
{
var dialog = this.getDialog();
var editor = dialog.getParentEditor();
editor._.filebrowserSe = this;
var width = editor.config[ 'filebrowser' + ucFirst( dialog.getName() ) + 'WindowWidth' ]
|| editor.config.filebrowserWindowWidth || '80%';
var height = editor.config[ 'filebrowser' + ucFirst( dialog.getName() ) + 'WindowHeight' ]
|| editor.config.filebrowserWindowHeight || '70%';
var params = this.filebrowser.params || {};
params.CKEditor = editor.name;
params.CKEditorFuncNum = editor._.filebrowserFn;
if ( !params.langCode )
params.langCode = editor.langCode;
var url = addQueryString( this.filebrowser.url, params );
// TODO: V4: Remove backward compatibility (#8163).
editor.popup( url, width, height, editor.config.filebrowserWindowFeatures || editor.config.fileBrowserWindowFeatures );
}
/*
* The onlick function assigned to the 'Upload' button. Makes the final
* decision whether form is really submitted and updates target field when
* file is uploaded.
*
* @param {CKEDITOR.event}
* evt The event object.
*/
function uploadFile( evt )
{
var dialog = this.getDialog();
var editor = dialog.getParentEditor();
editor._.filebrowserSe = this;
// If user didn't select the file, stop the upload.
if ( !dialog.getContentElement( this[ 'for' ][ 0 ], this[ 'for' ][ 1 ] ).getInputElement().$.value )
return false;
if ( !dialog.getContentElement( this[ 'for' ][ 0 ], this[ 'for' ][ 1 ] ).getAction() )
return false;
return true;
}
/*
* Setups the file element.
*
* @param {CKEDITOR.ui.dialog.file}
* fileInput The file element used during file upload.
* @param {Object}
* filebrowser Object containing filebrowser settings assigned to
* the fileButton associated with this file element.
*/
function setupFileElement( editor, fileInput, filebrowser )
{
var params = filebrowser.params || {};
params.CKEditor = editor.name;
params.CKEditorFuncNum = editor._.filebrowserFn;
if ( !params.langCode )
params.langCode = editor.langCode;
fileInput.action = addQueryString( filebrowser.url, params );
fileInput.filebrowser = filebrowser;
}
/*
* Traverse through the content definition and attach filebrowser to
* elements with 'filebrowser' attribute.
*
* @param String
* dialogName Dialog name.
* @param {CKEDITOR.dialog.definitionObject}
* definition Dialog definition.
* @param {Array}
* elements Array of {@link CKEDITOR.dialog.definition.content}
* objects.
*/
function attachFileBrowser( editor, dialogName, definition, elements )
{
var element, fileInput;
for ( var i in elements )
{
element = elements[ i ];
if ( element.type == 'hbox' || element.type == 'vbox' || element.type == 'fieldset' )
attachFileBrowser( editor, dialogName, definition, element.children );
if ( !element.filebrowser )
continue;
if ( typeof element.filebrowser == 'string' )
{
var fb =
{
action : ( element.type == 'fileButton' ) ? 'QuickUpload' : 'Browse',
target : element.filebrowser
};
element.filebrowser = fb;
}
if ( element.filebrowser.action == 'Browse' )
{
var url = element.filebrowser.url;
if ( url === undefined )
{
url = editor.config[ 'filebrowser' + ucFirst( dialogName ) + 'BrowseUrl' ];
if ( url === undefined )
url = editor.config.filebrowserBrowseUrl;
}
if ( url )
{
element.onClick = browseServer;
element.filebrowser.url = url;
element.hidden = false;
}
}
else if ( element.filebrowser.action == 'QuickUpload' && element[ 'for' ] )
{
url = element.filebrowser.url;
if ( url === undefined )
{
url = editor.config[ 'filebrowser' + ucFirst( dialogName ) + 'UploadUrl' ];
if ( url === undefined )
url = editor.config.filebrowserUploadUrl;
}
if ( url )
{
var onClick = element.onClick;
element.onClick = function( evt )
{
// "element" here means the definition object, so we need to find the correct
// button to scope the event call
var sender = evt.sender;
if ( onClick && onClick.call( sender, evt ) === false )
return false;
return uploadFile.call( sender, evt );
};
element.filebrowser.url = url;
element.hidden = false;
setupFileElement( editor, definition.getContents( element[ 'for' ][ 0 ] ).get( element[ 'for' ][ 1 ] ), element.filebrowser );
}
}
}
}
/*
* Updates the target element with the url of uploaded/selected file.
*
* @param {String}
* url The url of a file.
*/
function updateTargetElement( url, sourceElement )
{
var dialog = sourceElement.getDialog();
var targetElement = sourceElement.filebrowser.target || null;
// If there is a reference to targetElement, update it.
if ( targetElement )
{
var target = targetElement.split( ':' );
var element = dialog.getContentElement( target[ 0 ], target[ 1 ] );
if ( element )
{
element.setValue( url );
dialog.selectPage( target[ 0 ] );
}
}
}
/*
* Returns true if filebrowser is configured in one of the elements.
*
* @param {CKEDITOR.dialog.definitionObject}
* definition Dialog definition.
* @param String
* tabId The tab id where element(s) can be found.
* @param String
* elementId The element id (or ids, separated with a semicolon) to check.
*/
function isConfigured( definition, tabId, elementId )
{
if ( elementId.indexOf( ";" ) !== -1 )
{
var ids = elementId.split( ";" );
for ( var i = 0 ; i < ids.length ; i++ )
{
if ( isConfigured( definition, tabId, ids[i] ) )
return true;
}
return false;
}
var elementFileBrowser = definition.getContents( tabId ).get( elementId ).filebrowser;
return ( elementFileBrowser && elementFileBrowser.url );
}
function setUrl( fileUrl, data )
{
var dialog = this._.filebrowserSe.getDialog(),
targetInput = this._.filebrowserSe[ 'for' ],
onSelect = this._.filebrowserSe.filebrowser.onSelect;
if ( targetInput )
dialog.getContentElement( targetInput[ 0 ], targetInput[ 1 ] ).reset();
if ( typeof data == 'function' && data.call( this._.filebrowserSe ) === false )
return;
if ( onSelect && onSelect.call( this._.filebrowserSe, fileUrl, data ) === false )
return;
// The "data" argument may be used to pass the error message to the editor.
if ( typeof data == 'string' && data )
alert( data );
if ( fileUrl )
updateTargetElement( fileUrl, this._.filebrowserSe );
}
CKEDITOR.plugins.add( 'filebrowser',
{
init : function( editor, pluginPath )
{
editor._.filebrowserFn = CKEDITOR.tools.addFunction( setUrl, editor );
editor.on( 'destroy', function () { CKEDITOR.tools.removeFunction( this._.filebrowserFn ); } );
}
} );
CKEDITOR.on( 'dialogDefinition', function( evt )
{
var definition = evt.data.definition,
element;
// Associate filebrowser to elements with 'filebrowser' attribute.
for ( var i in definition.contents )
{
if ( ( element = definition.contents[ i ] ) )
{
attachFileBrowser( evt.editor, evt.data.name, definition, element.elements );
if ( element.hidden && element.filebrowser )
{
element.hidden = !isConfigured( definition, element[ 'id' ], element.filebrowser );
}
}
}
} );
} )();
/**
* The location of an external file browser that should be launched when the <strong>Browse Server</strong>
* button is pressed. If configured, the <strong>Browse Server</strong> button will appear in the
* <strong>Link</strong>, <strong>Image</strong>, and <strong>Flash</strong> dialog windows.
* @see The <a href="http://docs.cksource.com/CKEditor_3.x/Developers_Guide/File_Browser_(Uploader)">File Browser/Uploader</a> documentation.
* @name CKEDITOR.config.filebrowserBrowseUrl
* @since 3.0
* @type String
* @default <code>''</code> (empty string = disabled)
* @example
* config.filebrowserBrowseUrl = '/browser/browse.php';
*/
/**
* The location of the script that handles file uploads.
* If set, the <strong>Upload</strong> tab will appear in the <strong>Link</strong>, <strong>Image</strong>,
* and <strong>Flash</strong> dialog windows.
* @name CKEDITOR.config.filebrowserUploadUrl
* @see The <a href="http://docs.cksource.com/CKEditor_3.x/Developers_Guide/File_Browser_(Uploader)">File Browser/Uploader</a> documentation.
* @since 3.0
* @type String
* @default <code>''</code> (empty string = disabled)
* @example
* config.filebrowserUploadUrl = '/uploader/upload.php';
*/
/**
* The location of an external file browser that should be launched when the <strong>Browse Server</strong>
* button is pressed in the <strong>Image</strong> dialog window.
* If not set, CKEditor will use <code>{@link CKEDITOR.config.filebrowserBrowseUrl}</code>.
* @name CKEDITOR.config.filebrowserImageBrowseUrl
* @since 3.0
* @type String
* @default <code>''</code> (empty string = disabled)
* @example
* config.filebrowserImageBrowseUrl = '/browser/browse.php?type=Images';
*/
/**
* The location of an external file browser that should be launched when the <strong>Browse Server</strong>
* button is pressed in the <strong>Flash</strong> dialog window.
* If not set, CKEditor will use <code>{@link CKEDITOR.config.filebrowserBrowseUrl}</code>.
* @name CKEDITOR.config.filebrowserFlashBrowseUrl
* @since 3.0
* @type String
* @default <code>''</code> (empty string = disabled)
* @example
* config.filebrowserFlashBrowseUrl = '/browser/browse.php?type=Flash';
*/
/**
* The location of the script that handles file uploads in the <strong>Image</strong> dialog window.
* If not set, CKEditor will use <code>{@link CKEDITOR.config.filebrowserUploadUrl}</code>.
* @name CKEDITOR.config.filebrowserImageUploadUrl
* @since 3.0
* @type String
* @default <code>''</code> (empty string = disabled)
* @example
* config.filebrowserImageUploadUrl = '/uploader/upload.php?type=Images';
*/
/**
* The location of the script that handles file uploads in the <strong>Flash</strong> dialog window.
* If not set, CKEditor will use <code>{@link CKEDITOR.config.filebrowserUploadUrl}</code>.
* @name CKEDITOR.config.filebrowserFlashUploadUrl
* @since 3.0
* @type String
* @default <code>''</code> (empty string = disabled)
* @example
* config.filebrowserFlashUploadUrl = '/uploader/upload.php?type=Flash';
*/
/**
* The location of an external file browser that should be launched when the <strong>Browse Server</strong>
* button is pressed in the <strong>Link</strong> tab of the <strong>Image</strong> dialog window.
* If not set, CKEditor will use <code>{@link CKEDITOR.config.filebrowserBrowseUrl}</code>.
* @name CKEDITOR.config.filebrowserImageBrowseLinkUrl
* @since 3.2
* @type String
* @default <code>''</code> (empty string = disabled)
* @example
* config.filebrowserImageBrowseLinkUrl = '/browser/browse.php';
*/
/**
* The features to use in the file browser popup window.
* @name CKEDITOR.config.filebrowserWindowFeatures
* @since 3.4.1
* @type String
* @default <code>'location=no,menubar=no,toolbar=no,dependent=yes,minimizable=no,modal=yes,alwaysRaised=yes,resizable=yes,scrollbars=yes'</code>
* @example
* config.filebrowserWindowFeatures = 'resizable=yes,scrollbars=no';
*/
/**
* The width of the file browser popup window. It can be a number denoting a value in
* pixels or a percent string.
* @name CKEDITOR.config.filebrowserWindowWidth
* @type Number|String
* @default <code>'80%'</code>
* @example
* config.filebrowserWindowWidth = 750;
* @example
* config.filebrowserWindowWidth = '50%';
*/
/**
* The height of the file browser popup window. It can be a number denoting a value in
* pixels or a percent string.
* @name CKEDITOR.config.filebrowserWindowHeight
* @type Number|String
* @default <code>'70%'</code>
* @example
* config.filebrowserWindowHeight = 580;
* @example
* config.filebrowserWindowHeight = '50%';
*/
| JavaScript |
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
/**
* @fileOverview Spell Check As You Type (SCAYT).
* Button name : Scayt.
*/
(function()
{
var commandName = 'scaytcheck',
openPage = '';
// Checks if a value exists in an array
function in_array( needle, haystack )
{
var found = 0,
key;
for ( key in haystack )
{
if ( haystack[ key ] == needle )
{
found = 1;
break;
}
}
return found;
}
var onEngineLoad = function()
{
var editor = this;
var createInstance = function() // Create new instance every time Document is created.
{
var config = editor.config;
// Initialise Scayt instance.
var oParams = {};
// Get the iframe.
oParams.srcNodeRef = editor.document.getWindow().$.frameElement;
// syntax : AppName.AppVersion@AppRevision
oParams.assocApp = 'CKEDITOR.' + CKEDITOR.version + '@' + CKEDITOR.revision;
oParams.customerid = config.scayt_customerid || '1:WvF0D4-UtPqN1-43nkD4-NKvUm2-daQqk3-LmNiI-z7Ysb4-mwry24-T8YrS3-Q2tpq2';
oParams.customDictionaryIds = config.scayt_customDictionaryIds || '';
oParams.userDictionaryName = config.scayt_userDictionaryName || '';
oParams.sLang = config.scayt_sLang || 'en_US';
// Introduce SCAYT onLoad callback. (#5632)
oParams.onLoad = function()
{
// Draw down word marker to avoid being covered by background-color style.(#5466)
if ( !( CKEDITOR.env.ie && CKEDITOR.env.version < 8 ) )
this.addStyle( this.selectorCss(), 'padding-bottom: 2px !important;' );
// Call scayt_control.focus when SCAYT loaded
// and only if editor has focus and scayt control creates at first time (#5720)
if ( editor.focusManager.hasFocus && !plugin.isControlRestored( editor ) )
this.focus();
};
oParams.onBeforeChange = function()
{
if ( plugin.getScayt( editor ) && !editor.checkDirty() )
setTimeout( function(){ editor.resetDirty(); }, 0 );
};
var scayt_custom_params = window.scayt_custom_params;
if ( typeof scayt_custom_params == 'object' )
{
for ( var k in scayt_custom_params )
oParams[ k ] = scayt_custom_params[ k ];
}
// needs for restoring a specific scayt control settings
if ( plugin.getControlId( editor ) )
oParams.id = plugin.getControlId( editor );
var scayt_control = new window.scayt( oParams );
scayt_control.afterMarkupRemove.push( function( node )
{
( new CKEDITOR.dom.element( node, scayt_control.document ) ).mergeSiblings();
} );
// Copy config.
var lastInstance = plugin.instances[ editor.name ];
if ( lastInstance )
{
scayt_control.sLang = lastInstance.sLang;
scayt_control.option( lastInstance.option() );
scayt_control.paused = lastInstance.paused;
}
plugin.instances[ editor.name ] = scayt_control;
try {
scayt_control.setDisabled( plugin.isPaused( editor ) === false );
} catch (e) {}
editor.fire( 'showScaytState' );
};
editor.on( 'contentDom', createInstance );
editor.on( 'contentDomUnload', function()
{
// Remove scripts.
var scripts = CKEDITOR.document.getElementsByTag( 'script' ),
scaytIdRegex = /^dojoIoScript(\d+)$/i,
scaytSrcRegex = /^https?:\/\/svc\.webspellchecker\.net\/spellcheck\/script\/ssrv\.cgi/i;
for ( var i=0; i < scripts.count(); i++ )
{
var script = scripts.getItem( i ),
id = script.getId(),
src = script.getAttribute( 'src' );
if ( id && src && id.match( scaytIdRegex ) && src.match( scaytSrcRegex ))
script.remove();
}
});
editor.on( 'beforeCommandExec', function( ev ) // Disable SCAYT before Source command execution.
{
if ( ( ev.data.name == 'source' || ev.data.name == 'newpage' ) && editor.mode == 'wysiwyg' )
{
var scayt_instance = plugin.getScayt( editor );
if ( scayt_instance )
{
plugin.setPaused( editor, !scayt_instance.disabled );
// store a control id for restore a specific scayt control settings
plugin.setControlId( editor, scayt_instance.id );
scayt_instance.destroy( true );
delete plugin.instances[ editor.name ];
}
}
// Catch on source mode switch off (#5720)
else if ( ev.data.name == 'source' && editor.mode == 'source' )
plugin.markControlRestore( editor );
});
editor.on( 'afterCommandExec', function( ev )
{
if ( !plugin.isScaytEnabled( editor ) )
return;
if ( editor.mode == 'wysiwyg' && ( ev.data.name == 'undo' || ev.data.name == 'redo' ) )
window.setTimeout( function() { plugin.getScayt( editor ).refresh(); }, 10 );
});
editor.on( 'destroy', function( ev )
{
var editor = ev.editor,
scayt_instance = plugin.getScayt( editor );
// SCAYT instance might already get destroyed by mode switch (#5744).
if ( !scayt_instance )
return;
delete plugin.instances[ editor.name ];
// store a control id for restore a specific scayt control settings
plugin.setControlId( editor, scayt_instance.id );
scayt_instance.destroy( true );
});
// Listen to data manipulation to reflect scayt markup.
editor.on( 'afterSetData', function()
{
if ( plugin.isScaytEnabled( editor ) ) {
window.setTimeout( function()
{
var instance = plugin.getScayt( editor );
instance && instance.refresh();
}, 10 );
}
});
// Reload spell-checking for current word after insertion completed.
editor.on( 'insertElement', function()
{
var scayt_instance = plugin.getScayt( editor );
if ( plugin.isScaytEnabled( editor ) )
{
// Unlock the selection before reload, SCAYT will take
// care selection update.
if ( CKEDITOR.env.ie )
editor.getSelection().unlock( true );
// Return focus to the editor and refresh SCAYT markup (#5573).
window.setTimeout( function()
{
scayt_instance.focus();
scayt_instance.refresh();
}, 10 );
}
}, this, null, 50 );
editor.on( 'insertHtml', function()
{
var scayt_instance = plugin.getScayt( editor );
if ( plugin.isScaytEnabled( editor ) )
{
// Unlock the selection before reload, SCAYT will take
// care selection update.
if ( CKEDITOR.env.ie )
editor.getSelection().unlock( true );
// Return focus to the editor (#5573)
// Refresh SCAYT markup
window.setTimeout( function()
{
scayt_instance.focus();
scayt_instance.refresh();
}, 10 );
}
}, this, null, 50 );
editor.on( 'scaytDialog', function( ev ) // Communication with dialog.
{
ev.data.djConfig = window.djConfig;
ev.data.scayt_control = plugin.getScayt( editor );
ev.data.tab = openPage;
ev.data.scayt = window.scayt;
});
var dataProcessor = editor.dataProcessor,
htmlFilter = dataProcessor && dataProcessor.htmlFilter;
if ( htmlFilter )
{
htmlFilter.addRules(
{
elements :
{
span : function( element )
{
if ( element.attributes[ 'data-scayt_word' ]
&& element.attributes[ 'data-scaytid' ] )
{
delete element.name; // Write children, but don't write this node.
return element;
}
}
}
}
);
}
// Override Image.equals method avoid CK snapshot module to add SCAYT markup to snapshots. (#5546)
var undoImagePrototype = CKEDITOR.plugins.undo.Image.prototype;
undoImagePrototype.equals = CKEDITOR.tools.override( undoImagePrototype.equals, function( org )
{
return function( otherImage )
{
var thisContents = this.contents,
otherContents = otherImage.contents;
var scayt_instance = plugin.getScayt( this.editor );
// Making the comparison based on content without SCAYT word markers.
if ( scayt_instance && plugin.isScaytReady( this.editor ) )
{
// scayt::reset might return value undefined. (#5742)
this.contents = scayt_instance.reset( thisContents ) || '';
otherImage.contents = scayt_instance.reset( otherContents ) || '';
}
var retval = org.apply( this, arguments );
this.contents = thisContents;
otherImage.contents = otherContents;
return retval;
};
});
if ( editor.document )
createInstance();
};
CKEDITOR.plugins.scayt =
{
engineLoaded : false,
instances : {},
// Data storage for SCAYT control, based on editor instances
controlInfo : {},
setControlInfo : function( editor, o )
{
if ( editor && editor.name && typeof ( this.controlInfo[ editor.name ] ) != 'object' )
this.controlInfo[ editor.name ] = {};
for ( var infoOpt in o )
this.controlInfo[ editor.name ][ infoOpt ] = o[ infoOpt ];
},
isControlRestored : function( editor )
{
if ( editor &&
editor.name &&
this.controlInfo[ editor.name ] )
{
return this.controlInfo[ editor.name ].restored ;
}
return false;
},
markControlRestore : function( editor )
{
this.setControlInfo( editor, { restored:true } );
},
setControlId: function( editor, id )
{
this.setControlInfo( editor, { id:id } );
},
getControlId: function( editor )
{
if ( editor &&
editor.name &&
this.controlInfo[ editor.name ] &&
this.controlInfo[ editor.name ].id )
{
return this.controlInfo[ editor.name ].id;
}
return null;
},
setPaused: function( editor , bool )
{
this.setControlInfo( editor, { paused:bool } );
},
isPaused: function( editor )
{
if ( editor &&
editor.name &&
this.controlInfo[editor.name] )
{
return this.controlInfo[editor.name].paused;
}
return undefined;
},
getScayt : function( editor )
{
return this.instances[ editor.name ];
},
isScaytReady : function( editor )
{
return this.engineLoaded === true &&
'undefined' !== typeof window.scayt && this.getScayt( editor );
},
isScaytEnabled : function( editor )
{
var scayt_instance = this.getScayt( editor );
return ( scayt_instance ) ? scayt_instance.disabled === false : false;
},
getUiTabs : function( editor )
{
var uiTabs = [];
// read UI tabs value from config
var configUiTabs = editor.config.scayt_uiTabs || "1,1,1";
// convert string to array
configUiTabs = configUiTabs.split( ',' );
// "About us" should be always shown for standard config
configUiTabs[3] = "1";
for ( var i = 0; i < 4; i++ ) {
uiTabs[i] = (typeof window.scayt != "undefined" && typeof window.scayt.uiTags != "undefined")
? (parseInt(configUiTabs[i],10) && window.scayt.uiTags[i])
: parseInt(configUiTabs[i],10);
}
return uiTabs;
},
loadEngine : function( editor )
{
// SCAYT doesn't work with Firefox2, Opera and AIR.
if ( CKEDITOR.env.gecko && CKEDITOR.env.version < 10900 || CKEDITOR.env.opera || CKEDITOR.env.air )
return editor.fire( 'showScaytState' );
if ( this.engineLoaded === true )
return onEngineLoad.apply( editor ); // Add new instance.
else if ( this.engineLoaded == -1 ) // We are waiting.
return CKEDITOR.on( 'scaytReady', function(){ onEngineLoad.apply( editor ); } ); // Use function(){} to avoid rejection as duplicate.
CKEDITOR.on( 'scaytReady', onEngineLoad, editor );
CKEDITOR.on( 'scaytReady', function()
{
this.engineLoaded = true;
},
this,
null,
0
); // First to run.
this.engineLoaded = -1; // Loading in progress.
// compose scayt url
var protocol = document.location.protocol;
// Default to 'http' for unknown.
protocol = protocol.search( /https?:/) != -1? protocol : 'http:';
var baseUrl = 'svc.webspellchecker.net/scayt26/loader__base.js';
var scaytUrl = editor.config.scayt_srcUrl || ( protocol + '//' + baseUrl );
var scaytConfigBaseUrl = plugin.parseUrl( scaytUrl ).path + '/';
if( window.scayt == undefined )
{
CKEDITOR._djScaytConfig =
{
baseUrl: scaytConfigBaseUrl,
addOnLoad:
[
function()
{
CKEDITOR.fireOnce( 'scaytReady' );
}
],
isDebug: false
};
// Append javascript code.
CKEDITOR.document.getHead().append(
CKEDITOR.document.createElement( 'script',
{
attributes :
{
type : 'text/javascript',
async : 'true',
src : scaytUrl
}
})
);
}
else
CKEDITOR.fireOnce( 'scaytReady' );
return null;
},
parseUrl : function ( data )
{
var match;
if ( data.match && ( match = data.match(/(.*)[\/\\](.*?\.\w+)$/) ) )
return { path: match[1], file: match[2] };
else
return data;
}
};
var plugin = CKEDITOR.plugins.scayt;
// Context menu constructing.
var addButtonCommand = function( editor, buttonName, buttonLabel, commandName, command, menugroup, menuOrder )
{
editor.addCommand( commandName, command );
// If the "menu" plugin is loaded, register the menu item.
editor.addMenuItem( commandName,
{
label : buttonLabel,
command : commandName,
group : menugroup,
order : menuOrder
});
};
var commandDefinition =
{
preserveState : true,
editorFocus : false,
canUndo : false,
exec: function( editor )
{
if ( plugin.isScaytReady( editor ) )
{
var isEnabled = plugin.isScaytEnabled( editor );
this.setState( isEnabled ? CKEDITOR.TRISTATE_OFF : CKEDITOR.TRISTATE_ON );
var scayt_control = plugin.getScayt( editor );
// the place where the status of editor focus should be restored
// after there will be ability to store its state before SCAYT button click
// if (storedFocusState is focused )
// scayt_control.focus();
//
// now focus is set certainly
scayt_control.focus();
scayt_control.setDisabled( isEnabled );
}
else if ( !editor.config.scayt_autoStartup && plugin.engineLoaded >= 0 ) // Load first time
{
this.setState( CKEDITOR.TRISTATE_DISABLED );
plugin.loadEngine( editor );
}
}
};
// Add scayt plugin.
CKEDITOR.plugins.add( 'scayt',
{
requires : [ 'menubutton' ],
beforeInit : function( editor )
{
var items_order = editor.config.scayt_contextMenuItemsOrder
|| 'suggest|moresuggest|control',
items_order_str = "";
items_order = items_order.split( '|' );
if ( items_order && items_order.length )
{
for ( var pos = 0 ; pos < items_order.length ; pos++ )
items_order_str += 'scayt_' + items_order[ pos ] + ( items_order.length != parseInt( pos, 10 ) + 1 ? ',' : '' );
}
// Put it on top of all context menu items (#5717)
editor.config.menu_groups = items_order_str + ',' + editor.config.menu_groups;
},
init : function( editor )
{
// Delete span[data-scaytid] when text pasting in editor (#6921)
var dataFilter = editor.dataProcessor && editor.dataProcessor.dataFilter;
var dataFilterRules =
{
elements :
{
span : function( element )
{
var attrs = element.attributes;
if ( attrs && attrs[ 'data-scaytid' ] )
delete element.name;
}
}
};
dataFilter && dataFilter.addRules( dataFilterRules );
var moreSuggestions = {},
mainSuggestions = {};
// Scayt command.
var command = editor.addCommand( commandName, commandDefinition );
// Add Options dialog.
CKEDITOR.dialog.add( commandName, CKEDITOR.getUrl( this.path + 'dialogs/options.js' ) );
var uiTabs = plugin.getUiTabs( editor );
var menuGroup = 'scaytButton';
editor.addMenuGroup( menuGroup );
// combine menu items to render
var uiMenuItems = {};
var lang = editor.lang.scayt;
// always added
uiMenuItems.scaytToggle =
{
label : lang.enable,
command : commandName,
group : menuGroup
};
if ( uiTabs[0] == 1 )
uiMenuItems.scaytOptions =
{
label : lang.options,
group : menuGroup,
onClick : function()
{
openPage = 'options';
editor.openDialog( commandName );
}
};
if ( uiTabs[1] == 1 )
uiMenuItems.scaytLangs =
{
label : lang.langs,
group : menuGroup,
onClick : function()
{
openPage = 'langs';
editor.openDialog( commandName );
}
};
if ( uiTabs[2] == 1 )
uiMenuItems.scaytDict =
{
label : lang.dictionariesTab,
group : menuGroup,
onClick : function()
{
openPage = 'dictionaries';
editor.openDialog( commandName );
}
};
// always added
uiMenuItems.scaytAbout =
{
label : editor.lang.scayt.about,
group : menuGroup,
onClick : function()
{
openPage = 'about';
editor.openDialog( commandName );
}
};
editor.addMenuItems( uiMenuItems );
editor.ui.add( 'Scayt', CKEDITOR.UI_MENUBUTTON,
{
label : lang.title,
title : CKEDITOR.env.opera ? lang.opera_title : lang.title,
className : 'cke_button_scayt',
modes : { wysiwyg : 1 },
onRender: function()
{
command.on( 'state', function()
{
this.setState( command.state );
},
this);
},
onMenu : function()
{
var isEnabled = plugin.isScaytEnabled( editor );
editor.getMenuItem( 'scaytToggle' ).label = lang[ isEnabled ? 'disable' : 'enable' ];
var uiTabs = plugin.getUiTabs( editor );
return {
scaytToggle : CKEDITOR.TRISTATE_OFF,
scaytOptions : isEnabled && uiTabs[0] ? CKEDITOR.TRISTATE_OFF : CKEDITOR.TRISTATE_DISABLED,
scaytLangs : isEnabled && uiTabs[1] ? CKEDITOR.TRISTATE_OFF : CKEDITOR.TRISTATE_DISABLED,
scaytDict : isEnabled && uiTabs[2] ? CKEDITOR.TRISTATE_OFF : CKEDITOR.TRISTATE_DISABLED,
scaytAbout : isEnabled && uiTabs[3] ? CKEDITOR.TRISTATE_OFF : CKEDITOR.TRISTATE_DISABLED
};
}
});
// If the "contextmenu" plugin is loaded, register the listeners.
if ( editor.contextMenu && editor.addMenuItems )
{
editor.contextMenu.addListener( function( element, selection )
{
if ( !plugin.isScaytEnabled( editor )
|| selection.getRanges()[ 0 ].checkReadOnly() )
return null;
var scayt_control = plugin.getScayt( editor ),
node = scayt_control.getScaytNode();
if ( !node )
return null;
var word = scayt_control.getWord( node );
if ( !word )
return null;
var sLang = scayt_control.getLang(),
_r = {},
items_suggestion = window.scayt.getSuggestion( word, sLang );
if ( !items_suggestion || !items_suggestion.length )
return null;
// Remove unused commands and menuitems
for ( var m in moreSuggestions )
{
delete editor._.menuItems[ m ];
delete editor._.commands[ m ];
}
for ( m in mainSuggestions )
{
delete editor._.menuItems[ m ];
delete editor._.commands[ m ];
}
moreSuggestions = {}; // Reset items.
mainSuggestions = {};
var moreSuggestionsUnable = editor.config.scayt_moreSuggestions || 'on';
var moreSuggestionsUnableAdded = false;
var maxSuggestions = editor.config.scayt_maxSuggestions;
( typeof maxSuggestions != 'number' ) && ( maxSuggestions = 5 );
!maxSuggestions && ( maxSuggestions = items_suggestion.length );
var contextCommands = editor.config.scayt_contextCommands || 'all';
contextCommands = contextCommands.split( '|' );
for ( var i = 0, l = items_suggestion.length; i < l; i += 1 )
{
var commandName = 'scayt_suggestion_' + items_suggestion[i].replace( ' ', '_' );
var exec = ( function( el, s )
{
return {
exec: function()
{
scayt_control.replace( el, s );
}
};
})( node, items_suggestion[i] );
if ( i < maxSuggestions )
{
addButtonCommand( editor, 'button_' + commandName, items_suggestion[i],
commandName, exec, 'scayt_suggest', i + 1 );
_r[ commandName ] = CKEDITOR.TRISTATE_OFF;
mainSuggestions[ commandName ] = CKEDITOR.TRISTATE_OFF;
}
else if ( moreSuggestionsUnable == 'on' )
{
addButtonCommand( editor, 'button_' + commandName, items_suggestion[i],
commandName, exec, 'scayt_moresuggest', i + 1 );
moreSuggestions[ commandName ] = CKEDITOR.TRISTATE_OFF;
moreSuggestionsUnableAdded = true;
}
}
if ( moreSuggestionsUnableAdded )
{
// Register the More suggestions group;
editor.addMenuItem( 'scayt_moresuggest',
{
label : lang.moreSuggestions,
group : 'scayt_moresuggest',
order : 10,
getItems : function()
{
return moreSuggestions;
}
});
mainSuggestions[ 'scayt_moresuggest' ] = CKEDITOR.TRISTATE_OFF;
}
if ( in_array( 'all', contextCommands ) || in_array( 'ignore', contextCommands) )
{
var ignore_command = {
exec: function(){
scayt_control.ignore( node );
}
};
addButtonCommand( editor, 'ignore', lang.ignore, 'scayt_ignore', ignore_command, 'scayt_control', 1 );
mainSuggestions[ 'scayt_ignore' ] = CKEDITOR.TRISTATE_OFF;
}
if ( in_array( 'all', contextCommands ) || in_array( 'ignoreall', contextCommands ) )
{
var ignore_all_command = {
exec: function(){
scayt_control.ignoreAll( node );
}
};
addButtonCommand(editor, 'ignore_all', lang.ignoreAll, 'scayt_ignore_all', ignore_all_command, 'scayt_control', 2);
mainSuggestions['scayt_ignore_all'] = CKEDITOR.TRISTATE_OFF;
}
if ( in_array( 'all', contextCommands ) || in_array( 'add', contextCommands ) )
{
var addword_command = {
exec: function(){
window.scayt.addWordToUserDictionary( node );
}
};
addButtonCommand(editor, 'add_word', lang.addWord, 'scayt_add_word', addword_command, 'scayt_control', 3);
mainSuggestions['scayt_add_word'] = CKEDITOR.TRISTATE_OFF;
}
if ( scayt_control.fireOnContextMenu )
scayt_control.fireOnContextMenu( editor );
return mainSuggestions;
});
}
var showInitialState = function()
{
editor.removeListener( 'showScaytState', showInitialState );
if ( !CKEDITOR.env.opera && !CKEDITOR.env.air )
command.setState( plugin.isScaytEnabled( editor ) ? CKEDITOR.TRISTATE_ON : CKEDITOR.TRISTATE_OFF );
else
command.setState( CKEDITOR.TRISTATE_DISABLED );
};
editor.on( 'showScaytState', showInitialState );
if ( CKEDITOR.env.opera || CKEDITOR.env.air )
{
editor.on( 'instanceReady', function()
{
showInitialState();
});
}
// Start plugin
if ( editor.config.scayt_autoStartup )
{
editor.on( 'instanceReady', function()
{
plugin.loadEngine( editor );
});
}
},
afterInit : function( editor )
{
// Prevent word marker line from displaying in elements path and been removed when cleaning format. (#3570) (#4125)
var elementsPathFilters,
scaytFilter = function( element )
{
if ( element.hasAttribute( 'data-scaytid' ) )
return false;
};
if ( editor._.elementsPath && ( elementsPathFilters = editor._.elementsPath.filters ) )
elementsPathFilters.push( scaytFilter );
editor.addRemoveFormatFilter && editor.addRemoveFormatFilter( scaytFilter );
}
});
})();
/**
* If enabled (set to <code>true</code>), turns on SCAYT automatically
* after loading the editor.
* @name CKEDITOR.config.scayt_autoStartup
* @type Boolean
* @default <code>false</code>
* @example
* config.scayt_autoStartup = true;
*/
/**
* Defines the number of SCAYT suggestions to show in the main context menu.
* Possible values are:
* <ul>
* <li><code>0</code> (zero) – All suggestions are displayed in the main context menu.</li>
* <li>Positive number – The maximum number of suggestions to show in the context
* menu. Other entries will be shown in the "More Suggestions" sub-menu.</li>
* <li>Negative number – No suggestions are shown in the main context menu. All
* entries will be listed in the the "Suggestions" sub-menu.</li>
* </ul>
* @name CKEDITOR.config.scayt_maxSuggestions
* @type Number
* @default <code>5</code>
* @example
* // Display only three suggestions in the main context menu.
* config.scayt_maxSuggestions = 3;
* @example
* // Do not show the suggestions directly.
* config.scayt_maxSuggestions = -1;
*/
/**
* Sets the customer ID for SCAYT. Required for migration from free,
* ad-supported version to paid, ad-free version.
* @name CKEDITOR.config.scayt_customerid
* @type String
* @default <code>''</code>
* @example
* // Load SCAYT using my customer ID.
* config.scayt_customerid = 'your-encrypted-customer-id';
*/
/**
* Enables/disables the "More Suggestions" sub-menu in the context menu.
* Possible values are <code>on</code> and <code>off</code>.
* @name CKEDITOR.config.scayt_moreSuggestions
* @type String
* @default <code>'on'</code>
* @example
* // Disables the "More Suggestions" sub-menu.
* config.scayt_moreSuggestions = 'off';
*/
/**
* Customizes the display of SCAYT context menu commands ("Add Word", "Ignore"
* and "Ignore All"). This must be a string with one or more of the following
* words separated by a pipe character ("|"):
* <ul>
* <li><code>off</code> – disables all options.</li>
* <li><code>all</code> – enables all options.</li>
* <li><code>ignore</code> – enables the "Ignore" option.</li>
* <li><code>ignoreall</code> – enables the "Ignore All" option.</li>
* <li><code>add</code> – enables the "Add Word" option.</li>
* </ul>
* @name CKEDITOR.config.scayt_contextCommands
* @type String
* @default <code>'all'</code>
* @example
* // Show only "Add Word" and "Ignore All" in the context menu.
* config.scayt_contextCommands = 'add|ignoreall';
*/
/**
* Sets the default spell checking language for SCAYT. Possible values are:
* <code>en_US</code>, <code>en_GB</code>, <code>pt_BR</code>, <code>da_DK</code>,
* <code>nl_NL</code>, <code>en_CA</code>, <code>fi_FI</code>, <code>fr_FR</code>,
* <code>fr_CA</code>, <code>de_DE</code>, <code>el_GR</code>, <code>it_IT</code>,
* <code>nb_NO</code>, <code>pt_PT</code>, <code>es_ES</code>, <code>sv_SE</code>.
* @name CKEDITOR.config.scayt_sLang
* @type String
* @default <code>'en_US'</code>
* @example
* // Sets SCAYT to German.
* config.scayt_sLang = 'de_DE';
*/
/**
* Sets the visibility of particular tabs in the SCAYT dialog window and toolbar
* button. This setting must contain a <code>1</code> (enabled) or <code>0</code>
* (disabled) value for each of the following entries, in this precise order,
* separated by a comma (","): "Options", "Languages", and "Dictionary".
* @name CKEDITOR.config.scayt_uiTabs
* @type String
* @default <code>'1,1,1'</code>
* @example
* // Hides the "Languages" tab.
* config.scayt_uiTabs = '1,0,1';
*/
/**
* Sets the URL to SCAYT core. Required to switch to the licensed version of SCAYT application.
* Further details available at
* <a href="http://wiki.webspellchecker.net/doku.php?id=migration:hosredfreetolicensedck">
* http://wiki.webspellchecker.net/doku.php?id=migration:hosredfreetolicensedck</a>.
* @name CKEDITOR.config.scayt_srcUrl
* @type String
* @default <code>''</code>
* @example
* config.scayt_srcUrl = "http://my-host/spellcheck/lf/scayt/scayt.js";
*/
/**
* Links SCAYT to custom dictionaries. This is a string containing dictionary IDs
* separared by commas (","). Available only for the licensed version.
* Further details at
* <a href="http://wiki.webspellchecker.net/doku.php?id=installationandconfiguration:customdictionaries:licensed">
* http://wiki.webspellchecker.net/doku.php?id=installationandconfiguration:customdictionaries:licensed</a>.
* @name CKEDITOR.config.scayt_customDictionaryIds
* @type String
* @default <code>''</code>
* @example
* config.scayt_customDictionaryIds = '3021,3456,3478"';
*/
/**
* Makes it possible to activate a custom dictionary in SCAYT. The user
* dictionary name must be used. Available only for the licensed version.
* @name CKEDITOR.config.scayt_userDictionaryName
* @type String
* @default <code>''</code>
* @example
* config.scayt_userDictionaryName = 'MyDictionary';
*/
/**
* Defines the order SCAYT context menu items by groups.
* This must be a string with one or more of the following
* words separated by a pipe character ("|"):
* <ul>
* <li><code>suggest</code> – main suggestion word list,</li>
* <li><code>moresuggest</code> – more suggestions word list,</li>
* <li><code>control</code> – SCAYT commands, such as "Ignore" and "Add Word".</li>
* </ul>
*
* @name CKEDITOR.config.scayt_contextMenuItemsOrder
* @type String
* @default <code>'suggest|moresuggest|control'</code>
* @example
* config.scayt_contextMenuItemsOrder = 'moresuggest|control|suggest';
*/
| JavaScript |
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.dialog.add( 'scaytcheck', function( editor )
{
var firstLoad = true,
captions,
doc = CKEDITOR.document,
editorName = editor.name,
tags = CKEDITOR.plugins.scayt.getUiTabs( editor ),
i,
contents = [],
userDicActive = 0,
dic_buttons = [
// [0] contains buttons for creating
"dic_create_" + editorName + ",dic_restore_" + editorName,
// [1] contains buton for manipulation
"dic_rename_" + editorName + ",dic_delete_" + editorName
],
optionsIds = [ 'mixedCase', 'mixedWithDigits', 'allCaps', 'ignoreDomainNames' ];
// common operations
function getBOMAllOptions()
{
if (typeof document.forms["optionsbar_" + editorName] != "undefined")
return document.forms["optionsbar_" + editorName]["options"];
return [];
}
function getBOMAllLangs()
{
if (typeof document.forms["languagesbar_" + editorName] != "undefined")
return document.forms["languagesbar_" + editorName]["scayt_lang"];
return [];
}
function setCheckedValue( radioObj, newValue )
{
if ( !radioObj )
return;
var radioLength = radioObj.length;
if ( radioLength == undefined )
{
radioObj.checked = radioObj.value == newValue.toString();
return;
}
for ( var i = 0; i < radioLength; i++ )
{
radioObj[i].checked = false;
if ( radioObj[i].value == newValue.toString() )
radioObj[i].checked = true;
}
}
var lang = editor.lang.scayt;
var tags_contents = [
{
id : 'options',
label : lang.optionsTab,
elements : [
{
type : 'html',
id : 'options',
html : '<form name="optionsbar_' + editorName + '"><div class="inner_options">' +
' <div class="messagebox"></div>' +
' <div style="display:none;">' +
' <input type="checkbox" name="options" id="allCaps_' + editorName + '" />' +
' <label for="allCaps" id="label_allCaps_' + editorName + '"></label>' +
' </div>' +
' <div style="display:none;">' +
' <input name="options" type="checkbox" id="ignoreDomainNames_' + editorName + '" />' +
' <label for="ignoreDomainNames" id="label_ignoreDomainNames_' + editorName + '"></label>' +
' </div>' +
' <div style="display:none;">' +
' <input name="options" type="checkbox" id="mixedCase_' + editorName + '" />' +
' <label for="mixedCase" id="label_mixedCase_' + editorName + '"></label>' +
' </div>' +
' <div style="display:none;">' +
' <input name="options" type="checkbox" id="mixedWithDigits_' + editorName + '" />' +
' <label for="mixedWithDigits" id="label_mixedWithDigits_' + editorName + '"></label>' +
' </div>' +
'</div></form>'
}
]
},
{
id : 'langs',
label : lang.languagesTab,
elements : [
{
type : 'html',
id : 'langs',
html : '<form name="languagesbar_' + editorName + '"><div class="inner_langs">' +
' <div class="messagebox"></div> ' +
' <div style="float:left;width:45%;margin-left:5px;" id="scayt_lcol_' + editorName + '" ></div>' +
' <div style="float:left;width:45%;margin-left:15px;" id="scayt_rcol_' + editorName + '"></div>' +
'</div></form>'
}
]
},
{
id : 'dictionaries',
label : lang.dictionariesTab,
elements : [
{
type : 'html',
style: '',
id : 'dictionaries',
html : '<form name="dictionarybar_' + editorName + '"><div class="inner_dictionary" style="text-align:left; white-space:normal; width:320px; overflow: hidden;">' +
' <div style="margin:5px auto; width:80%;white-space:normal; overflow:hidden;" id="dic_message_' + editorName + '"> </div>' +
' <div style="margin:5px auto; width:80%;white-space:normal;"> ' +
' <span class="cke_dialog_ui_labeled_label" >Dictionary name</span><br>'+
' <span class="cke_dialog_ui_labeled_content" >'+
' <div class="cke_dialog_ui_input_text">'+
' <input id="dic_name_' + editorName + '" type="text" class="cke_dialog_ui_input_text"/>'+
' </div></span></div>'+
' <div style="margin:5px auto; width:80%;white-space:normal;">'+
' <a style="display:none;" class="cke_dialog_ui_button" href="javascript:void(0)" id="dic_create_' + editorName + '">'+
' </a>' +
' <a style="display:none;" class="cke_dialog_ui_button" href="javascript:void(0)" id="dic_delete_' + editorName + '">'+
' </a>' +
' <a style="display:none;" class="cke_dialog_ui_button" href="javascript:void(0)" id="dic_rename_' + editorName + '">'+
' </a>' +
' <a style="display:none;" class="cke_dialog_ui_button" href="javascript:void(0)" id="dic_restore_' + editorName + '">'+
' </a>' +
' </div>' +
' <div style="margin:5px auto; width:95%;white-space:normal;" id="dic_info_' + editorName + '"></div>' +
'</div></form>'
}
]
},
{
id : 'about',
label : lang.aboutTab,
elements : [
{
type : 'html',
id : 'about',
style : 'margin: 5px 5px;',
html : '<div id="scayt_about_' + editorName + '"></div>'
}
]
}
];
var dialogDefiniton = {
title : lang.title,
minWidth : 360,
minHeight : 220,
onShow : function()
{
var dialog = this;
dialog.data = editor.fire( 'scaytDialog', {} );
dialog.options = dialog.data.scayt_control.option();
dialog.chosed_lang = dialog.sLang = dialog.data.scayt_control.sLang;
if ( !dialog.data || !dialog.data.scayt || !dialog.data.scayt_control )
{
alert( 'Error loading application service' );
dialog.hide();
return;
}
var stop = 0;
if ( firstLoad )
{
dialog.data.scayt.getCaption( editor.langCode || 'en', function( caps )
{
if ( stop++ > 0 ) // Once only
return;
captions = caps;
init_with_captions.apply( dialog );
reload.apply( dialog );
firstLoad = false;
});
}
else
reload.apply( dialog );
dialog.selectPage( dialog.data.tab );
},
onOk : function()
{
var scayt_control = this.data.scayt_control;
scayt_control.option( this.options );
// Setup language if it was changed.
var csLang = this.chosed_lang;
scayt_control.setLang( csLang );
scayt_control.refresh();
},
onCancel: function()
{
var o = getBOMAllOptions();
for ( var i in o )
o[i].checked = false;
setCheckedValue( getBOMAllLangs(), "" );
},
contents : contents
};
var scayt_control = CKEDITOR.plugins.scayt.getScayt( editor );
for ( i = 0; i < tags.length; i++ )
{
if ( tags[ i ] == 1 )
contents[ contents.length ] = tags_contents[ i ];
}
if ( tags[2] == 1 )
userDicActive = 1;
var init_with_captions = function()
{
var dialog = this,
lang_list = dialog.data.scayt.getLangList(),
buttonCaptions = [ 'dic_create', 'dic_delete', 'dic_rename', 'dic_restore' ],
buttonIds = [],
langList = [],
labels = optionsIds,
i;
// Add buttons titles
if ( userDicActive )
{
for ( i = 0; i < buttonCaptions.length; i++ )
{
buttonIds[ i ] = buttonCaptions[ i ] + "_" + editorName;
doc.getById( buttonIds[ i ] ).setHtml( '<span class="cke_dialog_ui_button">' + captions[ 'button_' + buttonCaptions[ i ]] +'</span>' );
}
doc.getById( 'dic_info_' + editorName ).setHtml( captions[ 'dic_info' ] );
}
// Fill options and dictionary labels.
if ( tags[0] == 1 )
{
for ( i in labels )
{
var labelCaption = 'label_' + labels[ i ],
labelId = labelCaption + '_' + editorName,
labelElement = doc.getById( labelId );
if ( 'undefined' != typeof labelElement
&& 'undefined' != typeof captions[ labelCaption ]
&& 'undefined' != typeof dialog.options[labels[ i ]] )
{
labelElement.setHtml( captions[ labelCaption ] );
var labelParent = labelElement.getParent();
labelParent.$.style.display = "block";
}
}
}
var about = '<p><img src="' + window.scayt.getAboutInfo().logoURL + '" /></p>' +
'<p>' + captions[ 'version' ] + window.scayt.getAboutInfo().version.toString() + '</p>' +
'<p>' + captions[ 'about_throwt_copy' ] + '</p>';
doc.getById( 'scayt_about_' + editorName ).setHtml( about );
// Create languages tab.
var createOption = function( option, list )
{
var label = doc.createElement( 'label' );
label.setAttribute( 'for', 'cke_option' + option );
label.setHtml( list[ option ] );
if ( dialog.sLang == option ) // Current.
dialog.chosed_lang = option;
var div = doc.createElement( 'div' );
var radio = CKEDITOR.dom.element.createFromHtml( '<input id="cke_option' +
option + '" type="radio" ' +
( dialog.sLang == option ? 'checked="checked"' : '' ) +
' value="' + option + '" name="scayt_lang" />' );
radio.on( 'click', function()
{
this.$.checked = true;
dialog.chosed_lang = option;
});
div.append( radio );
div.append( label );
return {
lang : list[ option ],
code : option,
radio : div
};
};
if ( tags[1] ==1 )
{
for ( i in lang_list.rtl )
langList[ langList.length ] = createOption( i, lang_list.ltr );
for ( i in lang_list.ltr )
langList[ langList.length ] = createOption( i, lang_list.ltr );
langList.sort( function( lang1, lang2 )
{
return ( lang2.lang > lang1.lang ) ? -1 : 1 ;
});
var fieldL = doc.getById( 'scayt_lcol_' + editorName ),
fieldR = doc.getById( 'scayt_rcol_' + editorName );
for ( i=0; i < langList.length; i++ )
{
var field = ( i < langList.length / 2 ) ? fieldL : fieldR;
field.append( langList[ i ].radio );
}
}
// user dictionary handlers
var dic = {};
dic.dic_create = function( el, dic_name , dic_buttons )
{
// comma separated button's ids include repeats if exists
var all_buttons = dic_buttons[0] + ',' + dic_buttons[1];
var err_massage = captions["err_dic_create"];
var suc_massage = captions["succ_dic_create"];
window.scayt.createUserDictionary( dic_name,
function( arg )
{
hide_dic_buttons ( all_buttons );
display_dic_buttons ( dic_buttons[1] );
suc_massage = suc_massage.replace("%s" , arg.dname );
dic_success_message (suc_massage);
},
function( arg )
{
err_massage = err_massage.replace("%s" ,arg.dname );
dic_error_message ( err_massage + "( "+ (arg.message || "") +")");
});
};
dic.dic_rename = function( el, dic_name )
{
//
// try to rename dictionary
var err_massage = captions["err_dic_rename"] || "";
var suc_massage = captions["succ_dic_rename"] || "";
window.scayt.renameUserDictionary( dic_name,
function( arg )
{
suc_massage = suc_massage.replace("%s" , arg.dname );
set_dic_name( dic_name );
dic_success_message ( suc_massage );
},
function( arg )
{
err_massage = err_massage.replace("%s" , arg.dname );
set_dic_name( dic_name );
dic_error_message( err_massage + "( " + ( arg.message || "" ) + " )" );
});
};
dic.dic_delete = function( el, dic_name , dic_buttons )
{
var all_buttons = dic_buttons[0] + ',' + dic_buttons[1];
var err_massage = captions["err_dic_delete"];
var suc_massage = captions["succ_dic_delete"];
// try to delete dictionary
window.scayt.deleteUserDictionary(
function( arg )
{
suc_massage = suc_massage.replace("%s" , arg.dname );
hide_dic_buttons ( all_buttons );
display_dic_buttons ( dic_buttons[0] );
set_dic_name( "" ); // empty input field
dic_success_message( suc_massage );
},
function( arg )
{
err_massage = err_massage.replace("%s" , arg.dname );
dic_error_message(err_massage);
});
};
dic.dic_restore = dialog.dic_restore || function( el, dic_name , dic_buttons )
{
// try to restore existing dictionary
var all_buttons = dic_buttons[0] + ',' + dic_buttons[1];
var err_massage = captions["err_dic_restore"];
var suc_massage = captions["succ_dic_restore"];
window.scayt.restoreUserDictionary(dic_name,
function( arg )
{
suc_massage = suc_massage.replace("%s" , arg.dname );
hide_dic_buttons ( all_buttons );
display_dic_buttons(dic_buttons[1]);
dic_success_message( suc_massage );
},
function( arg )
{
err_massage = err_massage.replace("%s" , arg.dname );
dic_error_message( err_massage );
});
};
function onDicButtonClick( ev )
{
var dic_name = doc.getById('dic_name_' + editorName).getValue();
if ( !dic_name )
{
dic_error_message(" Dictionary name should not be empty. ");
return false;
}
try{
var el = ev.data.getTarget().getParent();
var id = /(dic_\w+)_[\w\d]+/.exec(el.getId())[1];
dic[ id ].apply( null, [ el, dic_name, dic_buttons ] );
}
catch(err)
{
dic_error_message(" Dictionary error. ");
}
return true;
}
// ** bind event listeners
var arr_buttons = ( dic_buttons[0] + ',' + dic_buttons[1] ).split( ',' ),
l;
for ( i = 0, l = arr_buttons.length ; i < l ; i += 1 )
{
var dic_button = doc.getById(arr_buttons[i]);
if ( dic_button )
dic_button.on( 'click', onDicButtonClick, this );
}
};
var reload = function()
{
var dialog = this;
// for enabled options tab
if ( tags[0] == 1 ){
var opto = getBOMAllOptions();
// Animate options.
for ( var k=0,l = opto.length; k<l;k++ )
{
var i = opto[k].id;
var checkbox = doc.getById( i );
if ( checkbox )
{
opto[k].checked = false;
//alert (opto[k].removeAttribute)
if ( dialog.options[ i.split("_")[0] ] == 1 )
{
opto[k].checked = true;
}
// Bind events. Do it only once.
if ( firstLoad )
{
checkbox.on( 'click', function()
{
dialog.options[ this.getId().split("_")[0] ] = this.$.checked ? 1 : 0 ;
});
}
}
}
}
//for enabled languages tab
if ( tags[1] == 1 )
{
var domLang = doc.getById("cke_option" + dialog.sLang);
setCheckedValue( domLang.$,dialog.sLang );
}
// * user dictionary
if ( userDicActive )
{
window.scayt.getNameUserDictionary(
function( o )
{
var dic_name = o.dname;
hide_dic_buttons( dic_buttons[0] + ',' + dic_buttons[1] );
if ( dic_name )
{
doc.getById( 'dic_name_' + editorName ).setValue(dic_name);
display_dic_buttons( dic_buttons[1] );
}
else
display_dic_buttons( dic_buttons[0] );
},
function()
{
doc.getById( 'dic_name_' + editorName ).setValue("");
});
dic_success_message("");
}
};
function dic_error_message( m )
{
doc.getById('dic_message_' + editorName).setHtml('<span style="color:red;">' + m + '</span>' );
}
function dic_success_message( m )
{
doc.getById('dic_message_' + editorName).setHtml('<span style="color:blue;">' + m + '</span>') ;
}
function display_dic_buttons( sIds )
{
sIds = String( sIds );
var aIds = sIds.split(',');
for ( var i=0, l = aIds.length; i < l ; i+=1)
doc.getById( aIds[i] ).$.style.display = "inline";
}
function hide_dic_buttons( sIds )
{
sIds = String( sIds );
var aIds = sIds.split(',');
for ( var i = 0, l = aIds.length; i < l ; i += 1 )
doc.getById( aIds[i] ).$.style.display = "none";
}
function set_dic_name( dic_name )
{
doc.getById('dic_name_' + editorName).$.value= dic_name;
}
return dialogDefiniton;
});
| JavaScript |
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.add( 'listblock',
{
requires : [ 'panel' ],
onLoad : function()
{
CKEDITOR.ui.panel.prototype.addListBlock = function( name, definition )
{
return this.addBlock( name, new CKEDITOR.ui.listBlock( this.getHolderElement(), definition ) );
};
CKEDITOR.ui.listBlock = CKEDITOR.tools.createClass(
{
base : CKEDITOR.ui.panel.block,
$ : function( blockHolder, blockDefinition )
{
blockDefinition = blockDefinition || {};
var attribs = blockDefinition.attributes || ( blockDefinition.attributes = {} );
( this.multiSelect = !!blockDefinition.multiSelect ) &&
( attribs[ 'aria-multiselectable' ] = true );
// Provide default role of 'listbox'.
!attribs.role && ( attribs.role = 'listbox' );
// Call the base contructor.
this.base.apply( this, arguments );
var keys = this.keys;
keys[ 40 ] = 'next'; // ARROW-DOWN
keys[ 9 ] = 'next'; // TAB
keys[ 38 ] = 'prev'; // ARROW-UP
keys[ CKEDITOR.SHIFT + 9 ] = 'prev'; // SHIFT + TAB
keys[ 32 ] = CKEDITOR.env.ie ? 'mouseup' : 'click'; // SPACE
CKEDITOR.env.ie && ( keys[ 13 ] = 'mouseup' ); // Manage ENTER, since onclick is blocked in IE (#8041).
this._.pendingHtml = [];
this._.items = {};
this._.groups = {};
},
_ :
{
close : function()
{
if ( this._.started )
{
this._.pendingHtml.push( '</ul>' );
delete this._.started;
}
},
getClick : function()
{
if ( !this._.click )
{
this._.click = CKEDITOR.tools.addFunction( function( value )
{
var marked = true;
if ( this.multiSelect )
marked = this.toggle( value );
else
this.mark( value );
if ( this.onClick )
this.onClick( value, marked );
},
this );
}
return this._.click;
}
},
proto :
{
add : function( value, html, title )
{
var pendingHtml = this._.pendingHtml,
id = CKEDITOR.tools.getNextId();
if ( !this._.started )
{
pendingHtml.push( '<ul role="presentation" class=cke_panel_list>' );
this._.started = 1;
this._.size = this._.size || 0;
}
this._.items[ value ] = id;
pendingHtml.push(
'<li id=', id, ' class=cke_panel_listItem role=presentation>' +
'<a id="', id, '_option" _cke_focus=1 hidefocus=true' +
' title="', title || value, '"' +
' href="javascript:void(\'', value, '\')" ' +
( CKEDITOR.env.ie ? 'onclick="return false;" onmouseup' : 'onclick' ) + // #188
'="CKEDITOR.tools.callFunction(', this._.getClick(), ',\'', value, '\'); return false;"',
' role="option">',
html || value,
'</a>' +
'</li>' );
},
startGroup : function( title )
{
this._.close();
var id = CKEDITOR.tools.getNextId();
this._.groups[ title ] = id;
this._.pendingHtml.push( '<h1 role="presentation" id=', id, ' class=cke_panel_grouptitle>', title, '</h1>' );
},
commit : function()
{
this._.close();
this.element.appendHtml( this._.pendingHtml.join( '' ) );
delete this._.size;
this._.pendingHtml = [];
},
toggle : function( value )
{
var isMarked = this.isMarked( value );
if ( isMarked )
this.unmark( value );
else
this.mark( value );
return !isMarked;
},
hideGroup : function( groupTitle )
{
var group = this.element.getDocument().getById( this._.groups[ groupTitle ] ),
list = group && group.getNext();
if ( group )
{
group.setStyle( 'display', 'none' );
if ( list && list.getName() == 'ul' )
list.setStyle( 'display', 'none' );
}
},
hideItem : function( value )
{
this.element.getDocument().getById( this._.items[ value ] ).setStyle( 'display', 'none' );
},
showAll : function()
{
var items = this._.items,
groups = this._.groups,
doc = this.element.getDocument();
for ( var value in items )
{
doc.getById( items[ value ] ).setStyle( 'display', '' );
}
for ( var title in groups )
{
var group = doc.getById( groups[ title ] ),
list = group.getNext();
group.setStyle( 'display', '' );
if ( list && list.getName() == 'ul' )
list.setStyle( 'display', '' );
}
},
mark : function( value )
{
if ( !this.multiSelect )
this.unmarkAll();
var itemId = this._.items[ value ],
item = this.element.getDocument().getById( itemId );
item.addClass( 'cke_selected' );
this.element.getDocument().getById( itemId + '_option' ).setAttribute( 'aria-selected', true );
this.onMark && this.onMark( item );
},
unmark : function( value )
{
var doc = this.element.getDocument(),
itemId = this._.items[ value ],
item = doc.getById( itemId );
item.removeClass( 'cke_selected' );
doc.getById( itemId + '_option' ).removeAttribute( 'aria-selected' );
this.onUnmark && this.onUnmark( item );
},
unmarkAll : function()
{
var items = this._.items,
doc = this.element.getDocument();
for ( var value in items )
{
var itemId = items[ value ];
doc.getById( itemId ).removeClass( 'cke_selected' );
doc.getById( itemId + '_option' ).removeAttribute( 'aria-selected' );
}
this.onUnmark && this.onUnmark();
},
isMarked : function( value )
{
return this.element.getDocument().getById( this._.items[ value ] ).hasClass( 'cke_selected' );
},
focus : function( value )
{
this._.focusIndex = -1;
if ( value )
{
var selected = this.element.getDocument().getById( this._.items[ value ] ).getFirst();
var links = this.element.getElementsByTag( 'a' ),
link,
i = -1;
while ( ( link = links.getItem( ++i ) ) )
{
if ( link.equals( selected ) )
{
this._.focusIndex = i;
break;
}
}
setTimeout( function()
{
selected.focus();
},
0 );
}
}
}
});
}
});
| JavaScript |
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
/**
* @file Paste as plain text plugin
*/
(function()
{
// The pastetext command definition.
var pasteTextCmd =
{
exec : function( editor )
{
var clipboardText = CKEDITOR.tools.tryThese(
function()
{
var clipboardText = window.clipboardData.getData( 'Text' );
if ( !clipboardText )
throw 0;
return clipboardText;
}
// Any other approach that's working...
);
if ( !clipboardText ) // Clipboard access privilege is not granted.
{
editor.openDialog( 'pastetext' );
return false;
}
else
editor.fire( 'paste', { 'text' : clipboardText } );
return true;
}
};
// Register the plugin.
CKEDITOR.plugins.add( 'pastetext',
{
init : function( editor )
{
var commandName = 'pastetext',
command = editor.addCommand( commandName, pasteTextCmd );
editor.ui.addButton( 'PasteText',
{
label : editor.lang.pasteText.button,
command : commandName
});
CKEDITOR.dialog.add( commandName, CKEDITOR.getUrl( this.path + 'dialogs/pastetext.js' ) );
if ( editor.config.forcePasteAsPlainText )
{
// Intercept the default pasting process.
editor.on( 'beforeCommandExec', function ( evt )
{
var mode = evt.data.commandData;
// Do NOT overwrite if HTML format is explicitly requested.
if ( evt.data.name == 'paste' && mode != 'html' )
{
editor.execCommand( 'pastetext' );
evt.cancel();
}
}, null, null, 0 );
editor.on( 'beforePaste', function( evt )
{
evt.data.mode = 'text';
});
}
editor.on( 'pasteState', function( evt )
{
editor.getCommand( 'pastetext' ).setState( evt.data );
});
},
requires : [ 'clipboard' ]
});
})();
/**
* Whether to force all pasting operations to insert on plain text into the
* editor, loosing any formatting information possibly available in the source
* text.
* <strong>Note:</strong> paste from word is not affected by this configuration.
* @name CKEDITOR.config.forcePasteAsPlainText
* @type Boolean
* @default false
* @example
* config.forcePasteAsPlainText = true;
*/
| JavaScript |
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
(function()
{
CKEDITOR.dialog.add( 'pastetext', function( editor )
{
return {
title : editor.lang.pasteText.title,
minWidth : CKEDITOR.env.ie && CKEDITOR.env.quirks ? 368 : 350,
minHeight : 240,
onShow : function(){ this.setupContent(); },
onOk : function(){ this.commitContent(); },
contents :
[
{
label : editor.lang.common.generalTab,
id : 'general',
elements :
[
{
type : 'html',
id : 'pasteMsg',
html : '<div style="white-space:normal;width:340px;">' + editor.lang.clipboard.pasteMsg + '</div>'
},
{
type : 'textarea',
id : 'content',
className : 'cke_pastetext',
onLoad : function()
{
var label = this.getDialog().getContentElement( 'general', 'pasteMsg' ).getElement(),
input = this.getElement().getElementsByTag( 'textarea' ).getItem( 0 );
input.setAttribute( 'aria-labelledby', label.$.id );
input.setStyle( 'direction', editor.config.contentsLangDirection );
},
focus : function()
{
this.getElement().focus();
},
setup : function()
{
this.setValue( '' );
},
commit : function()
{
var value = this.getValue();
setTimeout( function()
{
editor.fire( 'paste', { 'text' : value } );
}, 0 );
}
}
]
}
]
};
});
})();
| JavaScript |
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
(function()
{
var pxUnit = CKEDITOR.tools.cssLength,
needsIEHacks = CKEDITOR.env.ie && ( CKEDITOR.env.ie7Compat || CKEDITOR.env.quirks || CKEDITOR.env.version < 7 );
function getWidth( el )
{
return CKEDITOR.env.ie ? el.$.clientWidth : parseInt( el.getComputedStyle( 'width' ), 10 );
}
function getBorderWidth( element, side )
{
var computed = element.getComputedStyle( 'border-' + side + '-width' ),
borderMap =
{
thin: '0px',
medium: '1px',
thick: '2px'
};
if ( computed.indexOf( 'px' ) < 0 )
{
// look up keywords
if ( computed in borderMap && element.getComputedStyle( 'border-style' ) != 'none' )
computed = borderMap[ computed ];
else
computed = 0;
}
return parseInt( computed, 10 );
}
// Gets the table row that contains the most columns.
function getMasterPillarRow( table )
{
var $rows = table.$.rows,
maxCells = 0, cellsCount,
$elected, $tr;
for ( var i = 0, len = $rows.length ; i < len; i++ )
{
$tr = $rows[ i ];
cellsCount = $tr.cells.length;
if ( cellsCount > maxCells )
{
maxCells = cellsCount;
$elected = $tr;
}
}
return $elected;
}
function buildTableColumnPillars( table )
{
var pillars = [],
pillarIndex = -1,
rtl = ( table.getComputedStyle( 'direction' ) == 'rtl' );
// Get the raw row element that cointains the most columns.
var $tr = getMasterPillarRow( table );
// Get the tbody element and position, which will be used to set the
// top and bottom boundaries.
var tbody = new CKEDITOR.dom.element( table.$.tBodies[ 0 ] ),
tbodyPosition = tbody.getDocumentPosition();
// Loop thorugh all cells, building pillars after each one of them.
for ( var i = 0, len = $tr.cells.length ; i < len ; i++ )
{
// Both the current cell and the successive one will be used in the
// pillar size calculation.
var td = new CKEDITOR.dom.element( $tr.cells[ i ] ),
nextTd = $tr.cells[ i + 1 ] && new CKEDITOR.dom.element( $tr.cells[ i + 1 ] );
pillarIndex += td.$.colSpan || 1;
// Calculate the pillar boundary positions.
var pillarLeft, pillarRight, pillarWidth;
var x = td.getDocumentPosition().x;
// Calculate positions based on the current cell.
rtl ?
pillarRight = x + getBorderWidth( td, 'left' ) :
pillarLeft = x + td.$.offsetWidth - getBorderWidth( td, 'right' );
// Calculate positions based on the next cell, if available.
if ( nextTd )
{
x = nextTd.getDocumentPosition().x;
rtl ?
pillarLeft = x + nextTd.$.offsetWidth - getBorderWidth( nextTd, 'right' ) :
pillarRight = x + getBorderWidth( nextTd, 'left' );
}
// Otherwise calculate positions based on the table (for last cell).
else
{
x = table.getDocumentPosition().x;
rtl ?
pillarLeft = x :
pillarRight = x + table.$.offsetWidth;
}
pillarWidth = Math.max( pillarRight - pillarLeft, 3 );
// The pillar should reflects exactly the shape of the hovered
// column border line.
pillars.push( {
table : table,
index : pillarIndex,
x : pillarLeft,
y : tbodyPosition.y,
width : pillarWidth,
height : tbody.$.offsetHeight,
rtl : rtl } );
}
return pillars;
}
function getPillarAtPosition( pillars, positionX )
{
for ( var i = 0, len = pillars.length ; i < len ; i++ )
{
var pillar = pillars[ i ];
if ( positionX >= pillar.x && positionX <= ( pillar.x + pillar.width ) )
return pillar;
}
return null;
}
function cancel( evt )
{
( evt.data || evt ).preventDefault();
}
function columnResizer( editor )
{
var pillar,
document,
resizer,
isResizing,
startOffset,
currentShift;
var leftSideCells, rightSideCells, leftShiftBoundary, rightShiftBoundary;
function detach()
{
pillar = null;
currentShift = 0;
isResizing = 0;
document.removeListener( 'mouseup', onMouseUp );
resizer.removeListener( 'mousedown', onMouseDown );
resizer.removeListener( 'mousemove', onMouseMove );
document.getBody().setStyle( 'cursor', 'auto' );
// Hide the resizer (remove it on IE7 - #5890).
needsIEHacks ? resizer.remove() : resizer.hide();
}
function resizeStart()
{
// Before starting to resize, figure out which cells to change
// and the boundaries of this resizing shift.
var columnIndex = pillar.index,
map = CKEDITOR.tools.buildTableMap( pillar.table ),
leftColumnCells = [],
rightColumnCells = [],
leftMinSize = Number.MAX_VALUE,
rightMinSize = leftMinSize,
rtl = pillar.rtl;
for ( var i = 0, len = map.length ; i < len ; i++ )
{
var row = map[ i ],
leftCell = row[ columnIndex + ( rtl ? 1 : 0 ) ],
rightCell = row[ columnIndex + ( rtl ? 0 : 1 ) ];
leftCell = leftCell && new CKEDITOR.dom.element( leftCell );
rightCell = rightCell && new CKEDITOR.dom.element( rightCell );
if ( !leftCell || !rightCell || !leftCell.equals( rightCell ) )
{
leftCell && ( leftMinSize = Math.min( leftMinSize, getWidth( leftCell ) ) );
rightCell && ( rightMinSize = Math.min( rightMinSize, getWidth( rightCell ) ) );
leftColumnCells.push( leftCell );
rightColumnCells.push( rightCell );
}
}
// Cache the list of cells to be resized.
leftSideCells = leftColumnCells;
rightSideCells = rightColumnCells;
// Cache the resize limit boundaries.
leftShiftBoundary = pillar.x - leftMinSize;
rightShiftBoundary = pillar.x + rightMinSize;
resizer.setOpacity( 0.5 );
startOffset = parseInt( resizer.getStyle( 'left' ), 10 );
currentShift = 0;
isResizing = 1;
resizer.on( 'mousemove', onMouseMove );
// Prevent the native drag behavior otherwise 'mousemove' won't fire.
document.on( 'dragstart', cancel );
}
function resizeEnd()
{
isResizing = 0;
resizer.setOpacity( 0 );
currentShift && resizeColumn();
var table = pillar.table;
setTimeout( function () { table.removeCustomData( '_cke_table_pillars' ); }, 0 );
document.removeListener( 'dragstart', cancel );
}
function resizeColumn()
{
var rtl = pillar.rtl,
cellsCount = rtl ? rightSideCells.length : leftSideCells.length;
// Perform the actual resize to table cells, only for those by side of the pillar.
for ( var i = 0 ; i < cellsCount ; i++ )
{
var leftCell = leftSideCells[ i ],
rightCell = rightSideCells[ i ],
table = pillar.table;
// Defer the resizing to avoid any interference among cells.
CKEDITOR.tools.setTimeout(
function( leftCell, leftOldWidth, rightCell, rightOldWidth, tableWidth, sizeShift )
{
leftCell && leftCell.setStyle( 'width', pxUnit( Math.max( leftOldWidth + sizeShift, 0 ) ) );
rightCell && rightCell.setStyle( 'width', pxUnit( Math.max( rightOldWidth - sizeShift, 0 ) ) );
// If we're in the last cell, we need to resize the table as well
if ( tableWidth )
table.setStyle( 'width', pxUnit( tableWidth + sizeShift * ( rtl ? -1 : 1 ) ) );
}
, 0,
this, [
leftCell, leftCell && getWidth( leftCell ),
rightCell, rightCell && getWidth( rightCell ),
( !leftCell || !rightCell ) && ( getWidth( table ) + getBorderWidth( table, 'left' ) + getBorderWidth( table, 'right' ) ),
currentShift ] );
}
}
function onMouseDown( evt )
{
cancel( evt );
resizeStart();
document.on( 'mouseup', onMouseUp, this );
}
function onMouseUp( evt )
{
evt.removeListener();
resizeEnd();
}
function onMouseMove( evt )
{
move( evt.data.getPageOffset().x );
}
document = editor.document;
resizer = CKEDITOR.dom.element.createFromHtml(
'<div data-cke-temp=1 contenteditable=false unselectable=on '+
'style="position:absolute;cursor:col-resize;filter:alpha(opacity=0);opacity:0;' +
'padding:0;background-color:#004;background-image:none;border:0px none;z-index:10"></div>', document );
// Except on IE6/7 (#5890), place the resizer after body to prevent it
// from being editable.
if ( !needsIEHacks )
document.getDocumentElement().append( resizer );
this.attachTo = function( targetPillar )
{
// Accept only one pillar at a time.
if ( isResizing )
return;
// On IE6/7, we append the resizer everytime we need it. (#5890)
if ( needsIEHacks )
{
document.getBody().append( resizer );
currentShift = 0;
}
pillar = targetPillar;
resizer.setStyles(
{
width: pxUnit( targetPillar.width ),
height : pxUnit( targetPillar.height ),
left : pxUnit( targetPillar.x ),
top : pxUnit( targetPillar.y )
});
// In IE6/7, it's not possible to have custom cursors for floating
// elements in an editable document. Show the resizer in that case,
// to give the user a visual clue.
needsIEHacks && resizer.setOpacity( 0.25 );
resizer.on( 'mousedown', onMouseDown, this );
document.getBody().setStyle( 'cursor', 'col-resize' );
// Display the resizer to receive events but don't show it,
// only change the cursor to resizable shape.
resizer.show();
};
var move = this.move = function( posX )
{
if ( !pillar )
return 0;
if ( !isResizing && ( posX < pillar.x || posX > ( pillar.x + pillar.width ) ) )
{
detach();
return 0;
}
var resizerNewPosition = posX - Math.round( resizer.$.offsetWidth / 2 );
if ( isResizing )
{
if ( resizerNewPosition == leftShiftBoundary || resizerNewPosition == rightShiftBoundary )
return 1;
resizerNewPosition = Math.max( resizerNewPosition, leftShiftBoundary );
resizerNewPosition = Math.min( resizerNewPosition, rightShiftBoundary );
currentShift = resizerNewPosition - startOffset;
}
resizer.setStyle( 'left', pxUnit( resizerNewPosition ) );
return 1;
};
}
function clearPillarsCache( evt )
{
var target = evt.data.getTarget();
if ( evt.name == 'mouseout' )
{
// Bypass interal mouse move.
if ( !target.is ( 'table' ) )
return;
var dest = new CKEDITOR.dom.element( evt.data.$.relatedTarget || evt.data.$.toElement );
while( dest && dest.$ && !dest.equals( target ) && !dest.is( 'body' ) )
dest = dest.getParent();
if ( !dest || dest.equals( target ) )
return;
}
target.getAscendant( 'table', 1 ).removeCustomData( '_cke_table_pillars' );
evt.removeListener();
}
CKEDITOR.plugins.add( 'tableresize',
{
requires : [ 'tabletools' ],
init : function( editor )
{
editor.on( 'contentDom', function()
{
var resizer;
editor.document.getBody().on( 'mousemove', function( evt )
{
evt = evt.data;
var pageX = evt.getPageOffset().x;
// If we're already attached to a pillar, simply move the
// resizer.
if ( resizer && resizer.move( pageX ) )
{
cancel( evt );
return;
}
// Considering table, tr, td, tbody but nothing else.
var target = evt.getTarget(),
table,
pillars;
if ( !target.is( 'table' ) && !target.getAscendant( 'tbody', 1 ) )
return;
table = target.getAscendant( 'table', 1 );
if ( !( pillars = table.getCustomData( '_cke_table_pillars' ) ) )
{
// Cache table pillars calculation result.
table.setCustomData( '_cke_table_pillars', ( pillars = buildTableColumnPillars( table ) ) );
table.on( 'mouseout', clearPillarsCache );
table.on( 'mousedown', clearPillarsCache );
}
var pillar = getPillarAtPosition( pillars, pageX );
if ( pillar )
{
!resizer && ( resizer = new columnResizer( editor ) );
resizer.attachTo( pillar );
}
});
});
}
});
})();
| JavaScript |
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.add( 'resize',
{
init : function( editor )
{
var config = editor.config;
// Resize in the same direction of chrome,
// which is identical to dir of editor element. (#6614)
var resizeDir = editor.element.getDirection( 1 );
!config.resize_dir && ( config.resize_dir = 'both' );
( config.resize_maxWidth == undefined ) && ( config.resize_maxWidth = 3000 );
( config.resize_maxHeight == undefined ) && ( config.resize_maxHeight = 3000 );
( config.resize_minWidth == undefined ) && ( config.resize_minWidth = 750 );
( config.resize_minHeight == undefined ) && ( config.resize_minHeight = 250 );
if ( config.resize_enabled !== false )
{
var container = null,
origin,
startSize,
resizeHorizontal = ( config.resize_dir == 'both' || config.resize_dir == 'horizontal' ) &&
( config.resize_minWidth != config.resize_maxWidth ),
resizeVertical = ( config.resize_dir == 'both' || config.resize_dir == 'vertical' ) &&
( config.resize_minHeight != config.resize_maxHeight );
function dragHandler( evt )
{
var dx = evt.data.$.screenX - origin.x,
dy = evt.data.$.screenY - origin.y,
width = startSize.width,
height = startSize.height,
internalWidth = width + dx * ( resizeDir == 'rtl' ? -1 : 1 ),
internalHeight = height + dy;
if ( resizeHorizontal )
width = Math.max( config.resize_minWidth, Math.min( internalWidth, config.resize_maxWidth ) );
if ( resizeVertical )
height = Math.max( config.resize_minHeight, Math.min( internalHeight, config.resize_maxHeight ) );
// DO NOT impose fixed size with single direction resize. (#6308)
editor.resize( resizeHorizontal ? width : null, height );
}
function dragEndHandler ( evt )
{
CKEDITOR.document.removeListener( 'mousemove', dragHandler );
CKEDITOR.document.removeListener( 'mouseup', dragEndHandler );
if ( editor.document )
{
editor.document.removeListener( 'mousemove', dragHandler );
editor.document.removeListener( 'mouseup', dragEndHandler );
}
}
var mouseDownFn = CKEDITOR.tools.addFunction( function( $event )
{
if ( !container )
container = editor.getResizable();
startSize = { width : container.$.offsetWidth || 0, height : container.$.offsetHeight || 0 };
origin = { x : $event.screenX, y : $event.screenY };
config.resize_minWidth > startSize.width && ( config.resize_minWidth = startSize.width );
config.resize_minHeight > startSize.height && ( config.resize_minHeight = startSize.height );
CKEDITOR.document.on( 'mousemove', dragHandler );
CKEDITOR.document.on( 'mouseup', dragEndHandler );
if ( editor.document )
{
editor.document.on( 'mousemove', dragHandler );
editor.document.on( 'mouseup', dragEndHandler );
}
});
editor.on( 'destroy', function() { CKEDITOR.tools.removeFunction( mouseDownFn ); } );
editor.on( 'themeSpace', function( event )
{
if ( event.data.space == 'bottom' )
{
var direction = '';
if ( resizeHorizontal && !resizeVertical )
direction = ' cke_resizer_horizontal';
if ( !resizeHorizontal && resizeVertical )
direction = ' cke_resizer_vertical';
var resizerHtml =
'<div' +
' class="cke_resizer' + direction + ' cke_resizer_' + resizeDir + '"' +
' title="' + CKEDITOR.tools.htmlEncode( editor.lang.resize ) + '"' +
' onmousedown="CKEDITOR.tools.callFunction(' + mouseDownFn + ', event)"' +
'></div>';
// Always sticks the corner of botttom space.
resizeDir == 'ltr' && direction == 'ltr' ?
event.data.html += resizerHtml :
event.data.html = resizerHtml + event.data.html;
}
}, editor, null, 100 );
}
}
} );
/**
* The minimum editor width, in pixels, when resizing the editor interface by using the resize handle.
* Note: It falls back to editor's actual width if it is smaller than the default value.
* @name CKEDITOR.config.resize_minWidth
* @type Number
* @default 750
* @example
* config.resize_minWidth = 500;
*/
/**
* The minimum editor height, in pixels, when resizing the editor interface by using the resize handle.
* Note: It falls back to editor's actual height if it is smaller than the default value.
* @name CKEDITOR.config.resize_minHeight
* @type Number
* @default 250
* @example
* config.resize_minHeight = 600;
*/
/**
* The maximum editor width, in pixels, when resizing the editor interface by using the resize handle.
* @name CKEDITOR.config.resize_maxWidth
* @type Number
* @default 3000
* @example
* config.resize_maxWidth = 750;
*/
/**
* The maximum editor height, in pixels, when resizing the editor interface by using the resize handle.
* @name CKEDITOR.config.resize_maxHeight
* @type Number
* @default 3000
* @example
* config.resize_maxHeight = 600;
*/
/**
* Whether to enable the resizing feature. If this feature is disabled, the resize handle will not be visible.
* @name CKEDITOR.config.resize_enabled
* @type Boolean
* @default true
* @example
* config.resize_enabled = false;
*/
/**
* The dimensions for which the editor resizing is enabled. Possible values
* are <code>both</code>, <code>vertical</code>, and <code>horizontal</code>.
* @name CKEDITOR.config.resize_dir
* @type String
* @default 'both'
* @since 3.3
* @example
* config.resize_dir = 'vertical';
*/
| JavaScript |
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
/**
* @fileOverview The "show border" plugin. The command display visible outline
* border line around all table elements if table doesn't have a none-zero 'border' attribute specified.
*/
(function()
{
var showBorderClassName = 'cke_show_border',
cssStyleText,
cssTemplate =
// TODO: For IE6, we don't have child selector support,
// where nested table cells could be incorrect.
( CKEDITOR.env.ie6Compat ?
[
'.%1 table.%2,',
'.%1 table.%2 td, .%1 table.%2 th',
'{',
'border : #d3d3d3 1px dotted',
'}'
] :
[
'.%1 table.%2,',
'.%1 table.%2 > tr > td, .%1 table.%2 > tr > th,',
'.%1 table.%2 > tbody > tr > td, .%1 table.%2 > tbody > tr > th,',
'.%1 table.%2 > thead > tr > td, .%1 table.%2 > thead > tr > th,',
'.%1 table.%2 > tfoot > tr > td, .%1 table.%2 > tfoot > tr > th',
'{',
'border : #d3d3d3 1px dotted',
'}'
] ).join( '' );
cssStyleText = cssTemplate.replace( /%2/g, showBorderClassName ).replace( /%1/g, 'cke_show_borders ' );
var commandDefinition =
{
preserveState : true,
editorFocus : false,
readOnly: 1,
exec : function ( editor )
{
this.toggleState();
this.refresh( editor );
},
refresh : function( editor )
{
if ( editor.document )
{
var funcName = ( this.state == CKEDITOR.TRISTATE_ON ) ? 'addClass' : 'removeClass';
editor.document.getBody()[ funcName ]( 'cke_show_borders' );
}
}
};
CKEDITOR.plugins.add( 'showborders',
{
requires : [ 'wysiwygarea' ],
modes : { 'wysiwyg' : 1 },
init : function( editor )
{
var command = editor.addCommand( 'showborders', commandDefinition );
command.canUndo = false;
if ( editor.config.startupShowBorders !== false )
command.setState( CKEDITOR.TRISTATE_ON );
editor.addCss( cssStyleText );
// Refresh the command on setData.
editor.on( 'mode', function()
{
if ( command.state != CKEDITOR.TRISTATE_DISABLED )
command.refresh( editor );
}, null, null, 100 );
// Refresh the command on wysiwyg frame reloads.
editor.on( 'contentDom', function()
{
if ( command.state != CKEDITOR.TRISTATE_DISABLED )
command.refresh( editor );
});
editor.on( 'removeFormatCleanup', function( evt )
{
var element = evt.data;
if ( editor.getCommand( 'showborders' ).state == CKEDITOR.TRISTATE_ON &&
element.is( 'table' ) && ( !element.hasAttribute( 'border' ) || parseInt( element.getAttribute( 'border' ), 10 ) <= 0 ) )
element.addClass( showBorderClassName );
});
},
afterInit : function( editor )
{
var dataProcessor = editor.dataProcessor,
dataFilter = dataProcessor && dataProcessor.dataFilter,
htmlFilter = dataProcessor && dataProcessor.htmlFilter;
if ( dataFilter )
{
dataFilter.addRules(
{
elements :
{
'table' : function( element )
{
var attributes = element.attributes,
cssClass = attributes[ 'class' ],
border = parseInt( attributes.border, 10 );
if ( ( !border || border <= 0 ) && ( !cssClass || cssClass.indexOf( showBorderClassName ) == -1 ) )
attributes[ 'class' ] = ( cssClass || '' ) + ' ' + showBorderClassName;
}
}
} );
}
if ( htmlFilter )
{
htmlFilter.addRules(
{
elements :
{
'table' : function( table )
{
var attributes = table.attributes,
cssClass = attributes[ 'class' ];
cssClass && ( attributes[ 'class' ] =
cssClass.replace( showBorderClassName, '' )
.replace( /\s{2}/, ' ' )
.replace( /^\s+|\s+$/, '' ) );
}
}
} );
}
}
});
// Table dialog must be aware of it.
CKEDITOR.on( 'dialogDefinition', function( ev )
{
var dialogName = ev.data.name;
if ( dialogName == 'table' || dialogName == 'tableProperties' )
{
var dialogDefinition = ev.data.definition,
infoTab = dialogDefinition.getContents( 'info' ),
borderField = infoTab.get( 'txtBorder' ),
originalCommit = borderField.commit;
borderField.commit = CKEDITOR.tools.override( originalCommit, function( org )
{
return function( data, selectedTable )
{
org.apply( this, arguments );
var value = parseInt( this.getValue(), 10 );
selectedTable[ ( !value || value <= 0 ) ? 'addClass' : 'removeClass' ]( showBorderClassName );
};
} );
var advTab = dialogDefinition.getContents( 'advanced' ),
classField = advTab && advTab.get( 'advCSSClasses' );
if ( classField )
{
classField.setup = CKEDITOR.tools.override( classField.setup, function( originalSetup )
{
return function()
{
originalSetup.apply( this, arguments );
this.setValue( this.getValue().replace( /cke_show_border/, '' ) );
};
});
classField.commit = CKEDITOR.tools.override( classField.commit, function( originalCommit )
{
return function( data, element )
{
originalCommit.apply( this, arguments );
if ( !parseInt( element.getAttribute( 'border' ), 10 ) )
element.addClass( 'cke_show_border' );
};
});
}
}
});
} )();
/**
* Whether to automatically enable the "show borders" command when the editor loads.
* (ShowBorders in FCKeditor)
* @name CKEDITOR.config.startupShowBorders
* @type Boolean
* @default true
* @example
* config.startupShowBorders = false;
*/
| JavaScript |
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
(function()
{
// Base HTML entities.
var htmlbase = 'nbsp,gt,lt,amp';
var entities =
// Latin-1 Entities
'quot,iexcl,cent,pound,curren,yen,brvbar,sect,uml,copy,ordf,laquo,' +
'not,shy,reg,macr,deg,plusmn,sup2,sup3,acute,micro,para,middot,' +
'cedil,sup1,ordm,raquo,frac14,frac12,frac34,iquest,times,divide,' +
// Symbols
'fnof,bull,hellip,prime,Prime,oline,frasl,weierp,image,real,trade,' +
'alefsym,larr,uarr,rarr,darr,harr,crarr,lArr,uArr,rArr,dArr,hArr,' +
'forall,part,exist,empty,nabla,isin,notin,ni,prod,sum,minus,lowast,' +
'radic,prop,infin,ang,and,or,cap,cup,int,there4,sim,cong,asymp,ne,' +
'equiv,le,ge,sub,sup,nsub,sube,supe,oplus,otimes,perp,sdot,lceil,' +
'rceil,lfloor,rfloor,lang,rang,loz,spades,clubs,hearts,diams,' +
// Other Special Characters
'circ,tilde,ensp,emsp,thinsp,zwnj,zwj,lrm,rlm,ndash,mdash,lsquo,' +
'rsquo,sbquo,ldquo,rdquo,bdquo,dagger,Dagger,permil,lsaquo,rsaquo,' +
'euro';
// Latin Letters Entities
var latin =
'Agrave,Aacute,Acirc,Atilde,Auml,Aring,AElig,Ccedil,Egrave,Eacute,' +
'Ecirc,Euml,Igrave,Iacute,Icirc,Iuml,ETH,Ntilde,Ograve,Oacute,Ocirc,' +
'Otilde,Ouml,Oslash,Ugrave,Uacute,Ucirc,Uuml,Yacute,THORN,szlig,' +
'agrave,aacute,acirc,atilde,auml,aring,aelig,ccedil,egrave,eacute,' +
'ecirc,euml,igrave,iacute,icirc,iuml,eth,ntilde,ograve,oacute,ocirc,' +
'otilde,ouml,oslash,ugrave,uacute,ucirc,uuml,yacute,thorn,yuml,' +
'OElig,oelig,Scaron,scaron,Yuml';
// Greek Letters Entities.
var greek =
'Alpha,Beta,Gamma,Delta,Epsilon,Zeta,Eta,Theta,Iota,Kappa,Lambda,Mu,' +
'Nu,Xi,Omicron,Pi,Rho,Sigma,Tau,Upsilon,Phi,Chi,Psi,Omega,alpha,' +
'beta,gamma,delta,epsilon,zeta,eta,theta,iota,kappa,lambda,mu,nu,xi,' +
'omicron,pi,rho,sigmaf,sigma,tau,upsilon,phi,chi,psi,omega,thetasym,' +
'upsih,piv';
/**
* Create a mapping table between one character and its entity form from a list of entity names.
* @param reverse {Boolean} Whether to create a reverse map from the entity string form to an actual character.
*/
function buildTable( entities, reverse )
{
var table = {},
regex = [];
// Entities that the browsers DOM don't transform to the final char
// automatically.
var specialTable =
{
nbsp : '\u00A0', // IE | FF
shy : '\u00AD', // IE
gt : '\u003E', // IE | FF | -- | Opera
lt : '\u003C', // IE | FF | Safari | Opera
amp : '\u0026', // ALL
apos : '\u0027', // IE
quot : '\u0022' // IE
};
entities = entities.replace( /\b(nbsp|shy|gt|lt|amp|apos|quot)(?:,|$)/g, function( match, entity )
{
var org = reverse ? '&' + entity + ';' : specialTable[ entity ],
result = reverse ? specialTable[ entity ] : '&' + entity + ';';
table[ org ] = result;
regex.push( org );
return '';
});
if ( !reverse && entities )
{
// Transforms the entities string into an array.
entities = entities.split( ',' );
// Put all entities inside a DOM element, transforming them to their
// final chars.
var div = document.createElement( 'div' ),
chars;
div.innerHTML = '&' + entities.join( ';&' ) + ';';
chars = div.innerHTML;
div = null;
// Add all chars to the table.
for ( var i = 0 ; i < chars.length ; i++ )
{
var charAt = chars.charAt( i );
table[ charAt ] = '&' + entities[ i ] + ';';
regex.push( charAt );
}
}
table.regex = regex.join( reverse ? '|' : '' );
return table;
}
CKEDITOR.plugins.add( 'entities',
{
afterInit : function( editor )
{
var config = editor.config;
var dataProcessor = editor.dataProcessor,
htmlFilter = dataProcessor && dataProcessor.htmlFilter;
if ( htmlFilter )
{
// Mandatory HTML base entities.
var selectedEntities = [];
if ( config.basicEntities !== false )
selectedEntities.push( htmlbase );
if ( config.entities )
{
if ( selectedEntities.length )
selectedEntities.push( entities );
if ( config.entities_latin )
selectedEntities.push( latin );
if ( config.entities_greek )
selectedEntities.push( greek );
if ( config.entities_additional )
selectedEntities.push( config.entities_additional );
}
var entitiesTable = buildTable( selectedEntities.join( ',' ) );
// Create the Regex used to find entities in the text, leave it matches nothing if entities are empty.
var entitiesRegex = entitiesTable.regex ? '[' + entitiesTable.regex + ']' : 'a^';
delete entitiesTable.regex;
if ( config.entities && config.entities_processNumerical )
entitiesRegex = '[^ -~]|' + entitiesRegex ;
entitiesRegex = new RegExp( entitiesRegex, 'g' );
function getEntity( character )
{
return config.entities_processNumerical == 'force' || !entitiesTable[ character ] ?
'&#' + character.charCodeAt(0) + ';'
: entitiesTable[ character ];
}
// Decode entities that the browsers has transformed
// at first place.
var baseEntitiesTable = buildTable( [ htmlbase, 'shy' ].join( ',' ) , true ),
baseEntitiesRegex = new RegExp( baseEntitiesTable.regex, 'g' );
function getChar( character )
{
return baseEntitiesTable[ character ];
}
htmlFilter.addRules(
{
text : function( text )
{
return text.replace( baseEntitiesRegex, getChar )
.replace( entitiesRegex, getEntity );
}
});
}
}
});
})();
/**
* Whether to escape basic HTML entities in the document, including:
* <ul>
* <li><code>nbsp</code></li>
* <li><code>gt</code></li>
* <li><code>lt</code></li>
* <li><code>amp</code></li>
* </ul>
* <strong>Note:</strong> It should not be subject to change unless when outputting a non-HTML data format like BBCode.
* @type Boolean
* @default <code>true</code>
* @example
* config.basicEntities = false;
*/
CKEDITOR.config.basicEntities = true;
/**
* Whether to use HTML entities in the output.
* @name CKEDITOR.config.entities
* @type Boolean
* @default <code>true</code>
* @example
* config.entities = false;
*/
CKEDITOR.config.entities = true;
/**
* Whether to convert some Latin characters (Latin alphabet No. 1, ISO 8859-1)
* to HTML entities. The list of entities can be found in the
* <a href="http://www.w3.org/TR/html4/sgml/entities.html#h-24.2.1">W3C HTML 4.01 Specification, section 24.2.1</a>.
* @name CKEDITOR.config.entities_latin
* @type Boolean
* @default <code>true</code>
* @example
* config.entities_latin = false;
*/
CKEDITOR.config.entities_latin = true;
/**
* Whether to convert some symbols, mathematical symbols, and Greek letters to
* HTML entities. This may be more relevant for users typing text written in Greek.
* The list of entities can be found in the
* <a href="http://www.w3.org/TR/html4/sgml/entities.html#h-24.3.1">W3C HTML 4.01 Specification, section 24.3.1</a>.
* @name CKEDITOR.config.entities_greek
* @type Boolean
* @default <code>true</code>
* @example
* config.entities_greek = false;
*/
CKEDITOR.config.entities_greek = true;
/**
* Whether to convert all remaining characters not included in the ASCII
* character table to their relative decimal numeric representation of HTML entity.
* When set to <code>force</code>, it will convert all entities into this format.
* For example the phrase "This is Chinese: 汉语." is output
* as "This is Chinese: &#27721;&#35821;."
* @name CKEDITOR.config.entities_processNumerical
* @type Boolean|String
* @default <code>false</code>
* @example
* config.entities_processNumerical = true;
* config.entities_processNumerical = 'force'; //Converts from " " into " ";
*/
/**
* A comma separated list of additional entities to be used. Entity names
* or numbers must be used in a form that excludes the "&" prefix and the ";" ending.
* @name CKEDITOR.config.entities_additional
* @default <code>'#39'</code> (The single quote (') character.)
* @type String
* @example
* config.entities_additional = '#1049'; // Adds Cyrillic capital letter Short I (Й).
*/
CKEDITOR.config.entities_additional = '#39';
| JavaScript |
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.add( 'docprops',
{
init : function( editor )
{
var cmd = new CKEDITOR.dialogCommand( 'docProps' );
// Only applicable on full page mode.
cmd.modes = { wysiwyg : editor.config.fullPage };
editor.addCommand( 'docProps', cmd );
CKEDITOR.dialog.add( 'docProps', this.path + 'dialogs/docprops.js' );
editor.ui.addButton( 'DocProps',
{
label : editor.lang.docprops.label,
command : 'docProps'
});
}
});
| JavaScript |
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.dialog.add( 'docProps', function( editor )
{
var lang = editor.lang.docprops,
langCommon = editor.lang.common,
metaHash = {};
function getDialogValue( dialogName, callback )
{
var onOk = function()
{
releaseHandlers( this );
callback( this, this._.parentDialog );
};
var releaseHandlers = function( dialog )
{
dialog.removeListener( 'ok', onOk );
dialog.removeListener( 'cancel', releaseHandlers );
};
var bindToDialog = function( dialog )
{
dialog.on( 'ok', onOk );
dialog.on( 'cancel', releaseHandlers );
};
editor.execCommand( dialogName );
if ( editor._.storedDialogs.colordialog )
bindToDialog( editor._.storedDialogs.colordialog );
else
{
CKEDITOR.on( 'dialogDefinition', function( e )
{
if ( e.data.name != dialogName )
return;
var definition = e.data.definition;
e.removeListener();
definition.onLoad = CKEDITOR.tools.override( definition.onLoad, function( orginal )
{
return function()
{
bindToDialog( this );
definition.onLoad = orginal;
if ( typeof orginal == 'function' )
orginal.call( this );
};
});
});
}
}
function handleOther()
{
var dialog = this.getDialog(),
other = dialog.getContentElement( 'general', this.id + 'Other' );
if ( !other )
return;
if ( this.getValue() == 'other' )
{
other.getInputElement().removeAttribute( 'readOnly' );
other.focus();
other.getElement().removeClass( 'cke_disabled' );
}
else
{
other.getInputElement().setAttribute( 'readOnly', true );
other.getElement().addClass( 'cke_disabled' );
}
}
function commitMeta( name, isHttp, value )
{
return function( doc, html, head )
{
var hash = metaHash,
val = typeof value != 'undefined' ? value : this.getValue();
if ( !val && ( name in hash ) )
hash[ name ].remove();
else if ( val && ( name in hash ) )
hash[ name ].setAttribute( 'content', val );
else if ( val )
{
var meta = new CKEDITOR.dom.element( 'meta', editor.document );
meta.setAttribute( isHttp ? 'http-equiv' : 'name', name );
meta.setAttribute( 'content', val );
head.append( meta );
}
};
}
function setupMeta( name, ret )
{
return function()
{
var hash = metaHash,
result = ( name in hash ) ? hash[ name ].getAttribute( 'content' ) || '' : '';
if ( ret )
return result;
this.setValue( result );
return null;
};
}
function commitMargin( name )
{
return function( doc, html, head, body )
{
body.removeAttribute( 'margin' + name );
var val = this.getValue();
if ( val !== '' )
body.setStyle( 'margin-' + name, CKEDITOR.tools.cssLength( val ) );
else
body.removeStyle( 'margin-' + name );
};
}
function createMetaHash( doc )
{
var hash = {},
metas = doc.getElementsByTag( 'meta' ),
count = metas.count();
for ( var i = 0; i < count; i++ )
{
var meta = metas.getItem( i );
hash[ meta.getAttribute( meta.hasAttribute( 'http-equiv' ) ? 'http-equiv' : 'name' ).toLowerCase() ] = meta;
}
return hash;
}
// We cannot just remove the style from the element, as it might be affected from non-inline stylesheets.
// To get the proper result, we should manually set the inline style to its default value.
function resetStyle( element, prop, resetVal )
{
element.removeStyle( prop );
if ( element.getComputedStyle( prop ) != resetVal )
element.setStyle( prop, resetVal );
}
// Utilty to shorten the creation of color fields in the dialog.
var colorField = function( id, label, fieldProps )
{
return {
type : 'hbox',
padding : 0,
widths : [ '60%', '40%' ],
children : [
CKEDITOR.tools.extend( {
type : 'text',
id : id,
label : lang[ label ]
}, fieldProps || {}, 1 ),
{
type : 'button',
id : id + 'Choose',
label : lang.chooseColor,
className : 'colorChooser',
onClick : function()
{
var self = this;
getDialogValue( 'colordialog', function( colorDialog )
{
var dialog = self.getDialog();
dialog.getContentElement( dialog._.currentTabId, id ).setValue( colorDialog.getContentElement( 'picker', 'selectedColor' ).getValue() );
});
}
}
]
};
};
var previewSrc = 'javascript:' +
'void((function(){' +
encodeURIComponent(
'document.open();' +
( CKEDITOR.env.isCustomDomain() ? 'document.domain=\'' + document.domain + '\';' : '' ) +
'document.write( \'<html style="background-color: #ffffff; height: 100%"><head></head><body style="width: 100%; height: 100%; margin: 0px">' + lang.previewHtml + '</body></html>\' );' +
'document.close();'
) +
'})())';
return {
title : lang.title,
minHeight: 330,
minWidth: 500,
onShow : function()
{
var doc = editor.document,
html = doc.getElementsByTag( 'html' ).getItem( 0 ),
head = doc.getHead(),
body = doc.getBody();
metaHash = createMetaHash( doc );
this.setupContent( doc, html, head, body );
},
onHide : function()
{
metaHash = {};
},
onOk : function()
{
var doc = editor.document,
html = doc.getElementsByTag( 'html' ).getItem( 0 ),
head = doc.getHead(),
body = doc.getBody();
this.commitContent( doc, html, head, body );
},
contents : [
{
id : 'general',
label : langCommon.generalTab,
elements : [
{
type : 'text',
id : 'title',
label : lang.docTitle,
setup : function( doc )
{
this.setValue( doc.getElementsByTag( 'title' ).getItem( 0 ).data( 'cke-title' ) );
},
commit : function( doc, html, head, body, isPreview )
{
if ( isPreview )
return;
doc.getElementsByTag( 'title' ).getItem( 0 ).data( 'cke-title', this.getValue() );
}
},
{
type : 'hbox',
children : [
{
type : 'select',
id : 'dir',
label : langCommon.langDir,
style : 'width: 100%',
items : [
[ langCommon.notSet , '' ],
[ langCommon.langDirLtr, 'ltr' ],
[ langCommon.langDirRtl, 'rtl' ]
],
setup : function( doc, html, head, body )
{
this.setValue( body.getDirection() || '' );
},
commit : function( doc, html, head, body )
{
var val = this.getValue();
if ( val )
body.setAttribute( 'dir', val );
else
body.removeAttribute( 'dir' );
body.removeStyle( 'direction' );
}
},
{
type : 'text',
id : 'langCode',
label : langCommon.langCode,
setup : function( doc, html )
{
this.setValue( html.getAttribute( 'xml:lang' ) || html.getAttribute( 'lang' ) || '' );
},
commit : function( doc, html, head, body, isPreview )
{
if ( isPreview )
return;
var val = this.getValue();
if ( val )
html.setAttributes( { 'xml:lang' : val, lang : val } );
else
html.removeAttributes( { 'xml:lang' : 1, lang : 1 } );
}
}
]
},
{
type : 'hbox',
children : [
{
type : 'select',
id : 'charset',
label : lang.charset,
style : 'width: 100%',
items : [
[ langCommon.notSet, '' ],
[ lang.charsetASCII, 'us-ascii' ],
[ lang.charsetCE, 'iso-8859-2' ],
[ lang.charsetCT, 'big5' ],
[ lang.charsetCR, 'iso-8859-5' ],
[ lang.charsetGR, 'iso-8859-7' ],
[ lang.charsetJP, 'iso-2022-jp' ],
[ lang.charsetKR, 'iso-2022-kr' ],
[ lang.charsetTR, 'iso-8859-9' ],
[ lang.charsetUN, 'utf-8' ],
[ lang.charsetWE, 'iso-8859-1' ],
[ lang.other, 'other' ]
],
'default' : '',
onChange : function()
{
this.getDialog().selectedCharset = this.getValue() != 'other' ? this.getValue() : '';
handleOther.call( this );
},
setup : function()
{
this.metaCharset = ( 'charset' in metaHash );
var func = setupMeta( this.metaCharset ? 'charset' : 'content-type', 1, 1 ),
val = func.call( this );
!this.metaCharset && val.match( /charset=[^=]+$/ ) && ( val = val.substring( val.indexOf( '=' ) + 1 ) );
if ( val )
{
this.setValue( val.toLowerCase() );
if ( !this.getValue() )
{
this.setValue( 'other' );
var other = this.getDialog().getContentElement( 'general', 'charsetOther' );
other && other.setValue( val );
}
this.getDialog().selectedCharset = val;
}
handleOther.call( this );
},
commit : function( doc, html, head, body, isPreview )
{
if ( isPreview )
return;
var value = this.getValue(),
other = this.getDialog().getContentElement( 'general', 'charsetOther' );
value == 'other' && ( value = other ? other.getValue() : '' );
value && !this.metaCharset && ( value = ( metaHash[ 'content-type' ] ? metaHash[ 'content-type' ].getAttribute( 'content' ).split( ';' )[0] : 'text/html' ) + '; charset=' + value );
var func = commitMeta( this.metaCharset ? 'charset' : 'content-type', 1, value );
func.call( this, doc, html, head );
}
},
{
type : 'text',
id : 'charsetOther',
label : lang.charsetOther,
onChange : function(){ this.getDialog().selectedCharset = this.getValue(); }
}
]
},
{
type : 'hbox',
children : [
{
type : 'select',
id : 'docType',
label : lang.docType,
style : 'width: 100%',
items : [
[ langCommon.notSet , '' ],
[ 'XHTML 1.1', '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">' ],
[ 'XHTML 1.0 Transitional', '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">' ],
[ 'XHTML 1.0 Strict', '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">' ],
[ 'XHTML 1.0 Frameset', '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">' ],
[ 'HTML 5', '<!DOCTYPE html>' ],
[ 'HTML 4.01 Transitional', '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">' ],
[ 'HTML 4.01 Strict', '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">' ],
[ 'HTML 4.01 Frameset', '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">' ],
[ 'HTML 3.2', '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">' ],
[ 'HTML 2.0', '<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">' ],
[ lang.other, 'other' ]
],
onChange : handleOther,
setup : function()
{
if ( editor.docType )
{
this.setValue( editor.docType );
if ( !this.getValue() )
{
this.setValue( 'other' );
var other = this.getDialog().getContentElement( 'general', 'docTypeOther' );
other && other.setValue( editor.docType );
}
}
handleOther.call( this );
},
commit : function( doc, html, head, body, isPreview )
{
if ( isPreview )
return;
var value = this.getValue(),
other = this.getDialog().getContentElement( 'general', 'docTypeOther' );
editor.docType = value == 'other' ? ( other ? other.getValue() : '' ) : value;
}
},
{
type : 'text',
id : 'docTypeOther',
label : lang.docTypeOther
}
]
},
{
type : 'checkbox',
id : 'xhtmlDec',
label : lang.xhtmlDec,
setup : function()
{
this.setValue( !!editor.xmlDeclaration );
},
commit : function( doc, html, head, body, isPreview )
{
if ( isPreview )
return;
if ( this.getValue() )
{
editor.xmlDeclaration = '<?xml version="1.0" encoding="' + ( this.getDialog().selectedCharset || 'utf-8' )+ '"?>' ;
html.setAttribute( 'xmlns', 'http://www.w3.org/1999/xhtml' );
}
else
{
editor.xmlDeclaration = '';
html.removeAttribute( 'xmlns' );
}
}
}
]
},
{
id : 'design',
label : lang.design,
elements : [
{
type : 'hbox',
widths : [ '60%', '40%' ],
children : [
{
type : 'vbox',
children : [
colorField( 'txtColor', 'txtColor',
{
setup : function( doc, html, head, body )
{
this.setValue( body.getComputedStyle( 'color' ) );
},
commit : function( doc, html, head, body, isPreview )
{
if ( this.isChanged() || isPreview )
{
body.removeAttribute( 'text' );
var val = this.getValue();
if ( val )
body.setStyle( 'color', val );
else
body.removeStyle( 'color' );
}
}
}),
colorField( 'bgColor', 'bgColor', {
setup : function( doc, html, head, body )
{
var val = body.getComputedStyle( 'background-color' ) || '';
this.setValue( val == 'transparent' ? '' : val );
},
commit : function( doc, html, head, body, isPreview )
{
if ( this.isChanged() || isPreview )
{
body.removeAttribute( 'bgcolor' );
var val = this.getValue();
if ( val )
body.setStyle( 'background-color', val );
else
resetStyle( body, 'background-color', 'transparent' );
}
}
}),
{
type : 'hbox',
widths : [ '60%', '40%' ],
padding : 1,
children : [
{
type : 'text',
id : 'bgImage',
label : lang.bgImage,
setup : function( doc, html, head, body )
{
var val = body.getComputedStyle( 'background-image' ) || '';
if ( val == 'none' )
val = '';
else
{
val = val.replace( /url\(\s*(["']?)\s*([^\)]*)\s*\1\s*\)/i, function( match, quote, url )
{
return url;
});
}
this.setValue( val );
},
commit : function( doc, html, head, body )
{
body.removeAttribute( 'background' );
var val = this.getValue();
if ( val )
body.setStyle( 'background-image', 'url(' + val + ')' );
else
resetStyle( body, 'background-image', 'none' );
}
},
{
type : 'button',
id : 'bgImageChoose',
label : langCommon.browseServer,
style : 'display:inline-block;margin-top:10px;',
hidden : true,
filebrowser : 'design:bgImage'
}
]
},
{
type : 'checkbox',
id : 'bgFixed',
label : lang.bgFixed,
setup : function( doc, html, head, body )
{
this.setValue( body.getComputedStyle( 'background-attachment' ) == 'fixed' );
},
commit : function( doc, html, head, body )
{
if ( this.getValue() )
body.setStyle( 'background-attachment', 'fixed' );
else
resetStyle( body, 'background-attachment', 'scroll' );
}
}
]
},
{
type : 'vbox',
children : [
{
type : 'html',
id : 'marginTitle',
html : '<div style="text-align: center; margin: 0px auto; font-weight: bold">' + lang.margin + '</div>'
},
{
type : 'text',
id : 'marginTop',
label : lang.marginTop,
style : 'width: 80px; text-align: center',
align : 'center',
inputStyle : 'text-align: center',
setup : function( doc, html, head, body )
{
this.setValue( body.getStyle( 'margin-top' ) || body.getAttribute( 'margintop' ) || '' );
},
commit : commitMargin( 'top' )
},
{
type : 'hbox',
children : [
{
type : 'text',
id : 'marginLeft',
label : lang.marginLeft,
style : 'width: 80px; text-align: center',
align : 'center',
inputStyle : 'text-align: center',
setup : function( doc, html, head, body )
{
this.setValue( body.getStyle( 'margin-left' ) || body.getAttribute( 'marginleft' ) || '' );
},
commit : commitMargin( 'left' )
},
{
type : 'text',
id : 'marginRight',
label : lang.marginRight,
style : 'width: 80px; text-align: center',
align : 'center',
inputStyle : 'text-align: center',
setup : function( doc, html, head, body )
{
this.setValue( body.getStyle( 'margin-right' ) || body.getAttribute( 'marginright' ) || '' );
},
commit : commitMargin( 'right' )
}
]
},
{
type : 'text',
id : 'marginBottom',
label : lang.marginBottom,
style : 'width: 80px; text-align: center',
align : 'center',
inputStyle : 'text-align: center',
setup : function( doc, html, head, body )
{
this.setValue( body.getStyle( 'margin-bottom' ) || body.getAttribute( 'marginbottom' ) || '' );
},
commit : commitMargin( 'bottom' )
}
]
}
]
}
]
},
{
id : 'meta',
label : lang.meta,
elements : [
{
type : 'textarea',
id : 'metaKeywords',
label : lang.metaKeywords,
setup : setupMeta( 'keywords' ),
commit : commitMeta( 'keywords' )
},
{
type : 'textarea',
id : 'metaDescription',
label : lang.metaDescription,
setup : setupMeta( 'description' ),
commit : commitMeta( 'description' )
},
{
type : 'text',
id : 'metaAuthor',
label : lang.metaAuthor,
setup : setupMeta( 'author' ),
commit : commitMeta( 'author' )
},
{
type : 'text',
id : 'metaCopyright',
label : lang.metaCopyright,
setup : setupMeta( 'copyright' ),
commit : commitMeta( 'copyright' )
}
]
},
{
id : 'preview',
label : langCommon.preview,
elements : [
{
type : 'html',
id : 'previewHtml',
html : '<iframe src="' + previewSrc + '" style="width: 100%; height: 310px" hidefocus="true" frameborder="0" ' +
'id="cke_docProps_preview_iframe"></iframe>',
onLoad : function()
{
this.getDialog().on( 'selectPage', function( ev )
{
if ( ev.data.page == 'preview' )
{
var self = this;
setTimeout( function()
{
var doc = CKEDITOR.document.getById( 'cke_docProps_preview_iframe' ).getFrameDocument(),
html = doc.getElementsByTag( 'html' ).getItem( 0 ),
head = doc.getHead(),
body = doc.getBody();
self.commitContent( doc, html, head, body, 1 );
}, 50 );
}
});
CKEDITOR.document.getById( 'cke_docProps_preview_iframe' ).getAscendant( 'table' ).setStyle( 'height', '100%' );
}
}
]
}
]
};
});
| JavaScript |
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
/**
* @fileOverview Plugin definition for the a11yhelp, which provides a dialog
* with accessibility related help.
*/
(function()
{
var pluginName = 'a11yhelp',
commandName = 'a11yHelp';
CKEDITOR.plugins.add( pluginName,
{
requires: [ 'dialog' ],
// List of available localizations.
availableLangs : { cs:1, cy:1, da:1, de:1, el:1, en:1, eo:1, fa:1, fi:1, fr:1, gu:1, he:1, it:1, ku:1, mk:1, nb:1, nl:1, no:1, 'pt-br':1, ro:1, tr:1, ug:1, vi:1, 'zh-cn':1 },
init : function( editor )
{
var plugin = this;
editor.addCommand( commandName,
{
exec : function()
{
var langCode = editor.langCode;
langCode = plugin.availableLangs[ langCode ] ? langCode : 'en';
CKEDITOR.scriptLoader.load(
CKEDITOR.getUrl( plugin.path + 'lang/' + langCode + '.js' ),
function()
{
CKEDITOR.tools.extend( editor.lang, plugin.langEntries[ langCode ] );
editor.openDialog( commandName );
});
},
modes : { wysiwyg:1, source:1 },
readOnly : 1,
canUndo : false
});
CKEDITOR.dialog.add( commandName, this.path + 'dialogs/a11yhelp.js' );
}
});
})();
| JavaScript |
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'a11yhelp', 'nl',
{
accessibilityHelp :
{
title : 'Toegankelijkheidsinstructies',
contents : 'Help inhoud. Druk op ESC om dit dialoog te sluiten.',
legend :
[
{
name : 'Algemeen',
items :
[
{
name : 'Werkbalk tekstverwerker',
legend:
'Druk op ${toolbarFocus} om naar de werkbalk te navigeren. Om te schakelen naar de volgende en vorige werkbalkgroep, gebruik TAB en SHIFT+TAB. Om te schakelen naar de volgende en vorige werkbalkknop, gebruik de PIJL RECHTS en PIJL LINKS. Druk op SPATIE of ENTER om een werkbalkknop te activeren.'
},
{
name : 'Dialoog tekstverwerker',
legend :
'In een dialoogvenster, druk op TAB om te navigeren naar het volgende veld. Druk op SHIFT+TAB om naar het vorige veld te navigeren. Druk op ENTER om het dialoogvenster te verzenden. Druk op ESC om het dialoogvenster te sluiten. Voor dialoogvensters met meerdere tabbladen, druk op ALT+F10 om naar de tabset te navigeren. Schakel naar het volgende tabblad met TAB of PIJL RECHTS. Schakel naar het vorige tabblad met SHIFT+TAB of PIJL LINKS. Druk op SPATIE of ENTER om het tabblad te selecteren.'
},
{
name : 'Contextmenu tekstverwerker',
legend :
'Druk op ${contextMenu} of APPLICATION KEY om het contextmenu te openen. Schakel naar de volgende menuoptie met TAB of PIJL OMLAAG. Schakel naar de vorige menuoptie met SHIFT+TAB of PIJL OMHOOG. Druk op SPATIE of ENTER om een menuoptie te selecteren. Op een submenu van de huidige optie met SPATIE, ENTER of PIJL RECHTS. Ga terug naar de bovenliggende menuoptie met ESC of PIJL LINKS. Sluit het contextmenu met ESC.'
},
{
name : 'Keuzelijst tekstverwerker',
legend :
'In een keuzelijst, schakel naar het volgende item met TAB of PIJL OMLAAG. Schakel naar het vorige item met SHIFT+TAB of PIJL OMHOOG. Druk op SPATIE of ENTER om het item te selecteren. Druk op ESC om de keuzelijst te sluiten.'
},
{
name : 'Elementenpad werkbalk tekstverwerker',
legend :
'Druk op ${elementsPathFocus} om naar het elementenpad te navigeren. Om te schakelen naar het volgende element, gebruik TAB of PIJL RECHTS. Om te schakelen naar het vorige element, gebruik SHIFT+TAB or PIJL LINKS. Druk op SPATIE of ENTER om een element te selecteren in de tekstverwerker.'
}
]
},
{
name : 'Opdrachten',
items :
[
{
name : 'Ongedaan maken opdracht',
legend : 'Druk op ${undo}'
},
{
name : 'Opnieuw uitvoeren opdracht',
legend : 'Druk op ${redo}'
},
{
name : 'Vetgedrukt opdracht',
legend : 'Druk up ${bold}'
},
{
name : 'Cursief opdracht',
legend : 'Druk op ${italic}'
},
{
name : 'Onderstrepen opdracht',
legend : 'Druk op ${underline}'
},
{
name : 'Link opdracht',
legend : 'Druk op ${link}'
},
{
name : 'Werkbalk inklappen opdracht',
legend : 'Druk op ${toolbarCollapse}'
},
{
name : 'Toegankelijkheidshulp',
legend : 'Druk op ${a11yHelp}'
}
]
}
]
}
});
| JavaScript |
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'a11yhelp', 'ug',
{
accessibilityHelp :
{
title : 'قوشۇمچە چۈشەندۈرۈش',
contents : 'ياردەم مەزمۇنى. بۇ سۆزلەشكۈنى ياپماقچى بولسىڭىز ESC نى بېسىڭ.',
legend :
[
{
name : 'ئادەتتىكى',
items :
[
{
name : 'قورال بالداق تەھرىر',
legend:
'${toolbarFocus} بېسىلسا قورال بالداققا يېتەكلەيدۇ، TAB ياكى SHIFT+TAB ئارقىلىق قورال بالداق گۇرۇپپىسى تاللىنىدۇ، ئوڭ سول يا ئوقتا توپچا تاللىنىدۇ، بوشلۇق ياكى Enter كۇنۇپكىسىدا تاللانغان توپچىنى قوللىنىدۇ.'
},
{
name : 'تەھرىرلىگۈچ سۆزلەشكۈسى',
legend :
'Inside a dialog, press TAB to navigate to next dialog field, press SHIFT + TAB to move to previous field, press ENTER to submit dialog, press ESC to cancel dialog. For dialogs that have multiple tab pages, press ALT + F10 to navigate to tab-list. Then move to next tab with TAB OR RIGTH ARROW. Move to previous tab with SHIFT + TAB or LEFT ARROW. Press SPACE or ENTER to select the tab page.' // MISSING
},
{
name : 'تەھرىرلىگۈچ تىل مۇھىت تىزىملىكى',
legend :
'Press ${contextMenu} or APPLICATION KEY to open context-menu. Then move to next menu option with TAB or DOWN ARROW. Move to previous option with SHIFT+TAB or UP ARROW. Press SPACE or ENTER to select the menu option. Open sub-menu of current option with SPACE or ENTER or RIGHT ARROW. Go back to parent menu item with ESC or LEFT ARROW. Close context menu with ESC.' // MISSING
},
{
name : 'تەھرىرلىگۈچ تىزىمى',
legend :
'Inside a list-box, move to next list item with TAB OR DOWN ARROW. Move to previous list item with SHIFT + TAB or UP ARROW. Press SPACE or ENTER to select the list option. Press ESC to close the list-box.' // MISSING
},
{
name : 'تەھرىرلىگۈچ ئېلېمېنت يول بالداق',
legend :
'${elementsPathFocus} بېسىلسا ئېلېمېنت يول بالداققا يېتەكلەيدۇ، TAB ياكى ئوڭ يا ئوقتا كېيىنكى ئېلېمېنت تاللىنىدۇ، SHIFT+TAB ياكى سول يا ئوقتا ئالدىنقى ئېلېمېنت تاللىنىدۇ، بوشلۇق ياكى Enter كۇنۇپكىسىدا تەھرىرلىگۈچتىكى ئېلېمېنت تاللىنىدۇ.'
}
]
},
{
name : 'بۇيرۇق',
items :
[
{
name : 'بۇيرۇقتىن يېنىۋال',
legend : '${undo} نى بېسىڭ'
},
{
name : 'قايتىلاش بۇيرۇقى',
legend : '${redo} نى بېسىڭ'
},
{
name : 'توملىتىش بۇيرۇقى',
legend : '${bold} نى بېسىڭ'
},
{
name : 'يانتۇ بۇيرۇقى',
legend : '${italic} نى بېسىڭ'
},
{
name : 'ئاستى سىزىق بۇيرۇقى',
legend : '${underline} نى بېسىڭ'
},
{
name : 'ئۇلانما بۇيرۇقى',
legend : '${link} نى بېسىڭ'
},
{
name : 'قورال بالداق قاتلاش بۇيرۇقى',
legend : '${toolbarCollapse} نى بېسىڭ'
},
{
name : 'توسالغۇسىز لايىھە چۈشەندۈرۈشى',
legend : '${a11yHelp} نى بېسىڭ'
}
]
}
]
}
});
| JavaScript |
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'a11yhelp', 'it',
{
accessibilityHelp :
{
title : 'Istruzioni di Accessibilità',
contents : 'Contenuti di Aiuto. Per chiudere questa finestra premi ESC.',
legend :
[
{
name : 'Generale',
items :
[
{
name : 'Barra degli strumenti Editor',
legend:
'Premi ${toolbarFocus} per navigare fino alla barra degli strumenti. Muoviti tra i gruppi della barra degli strumenti con i tasti Tab e Maiusc-Tab. Spostati tra il successivo ed il precedente pulsante della barra degli strumenti usando le frecce direzionali Destra e Sinistra. Premi Spazio o Invio per attivare il pulsante della barra degli strumenti.'
},
{
name : 'Finestra Editor',
legend :
'All\'interno di una finestra di dialogo, premi Tab per navigare fino al campo successivo della finestra di dialogo, premi Maiusc-Tab per tornare al campo precedente, premi Invio per inviare la finestra di dialogo, premi Esc per uscire. Per le finestre che hanno schede multiple, premi Alt+F10 per navigare nella lista delle schede. Quindi spostati alla scheda successiva con il tasto Tab oppure con la Freccia Destra. Torna alla scheda precedente con Maiusc+Tab oppure con la Freccia Sinistra. Premi Spazio o Invio per scegliere la scheda.'
},
{
name : 'Menù contestuale Editor',
legend :
'Premi ${contextMenu} o TASTO APPLICAZIONE per aprire il menu contestuale. Dunque muoviti all\'opzione successiva del menu con il tasto TAB o con la Freccia Sotto. Muoviti all\'opzione precedente con MAIUSC+TAB o con Freccia Sopra. Premi SPAZIO o INVIO per scegliere l\'opzione di menu. Apri il sottomenu dell\'opzione corrente con SPAZIO o INVIO oppure con la Freccia Destra. Torna indietro al menu superiore con ESC oppure Freccia Sinistra. Chiudi il menu contestuale con ESC.'
},
{
name : 'Box Lista Editor',
legend :
'Dentro un box-lista, muoviti al prossimo elemento della lista con TAB o con la Freccia direzionale giù. Spostati all\'elemento precedente con MAIUSC+TAB oppure con Freccia direzionale sopra. Premi SPAZIO o INVIO per scegliere l\'opzione della lista. Premi ESC per chiudere il box-lista.'
},
{
name : 'Barra percorso elementi editor',
legend :
'Premi ${elementsPathFocus} per navigare tra gli elementi della barra percorso. Muoviti al prossimo pulsante di elemento con TAB o la Freccia direzionale destra. Muoviti al pulsante precedente con MAIUSC+TAB o la Freccia Direzionale Sinistra. Premi SPAZIO o INVIO per scegliere l\'elemento nell\'editor.'
}
]
},
{
name : 'Comandi',
items :
[
{
name : ' Annulla comando',
legend : 'Premi ${undo}'
},
{
name : ' Ripeti comando',
legend : 'Premi ${redo}'
},
{
name : ' Comando Grassetto',
legend : 'Premi ${bold}'
},
{
name : ' Comando Corsivo',
legend : 'Premi ${italic}'
},
{
name : ' Comando Sottolineato',
legend : 'Premi ${underline}'
},
{
name : ' Comando Link',
legend : 'Premi ${link}'
},
{
name : ' Comando riduci barra degli strumenti',
legend : 'Premi ${toolbarCollapse}'
},
{
name : ' Aiuto Accessibilità',
legend : 'Premi ${a11yHelp}'
}
]
}
]
}
});
| JavaScript |
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'a11yhelp', 'de',
{
accessibilityHelp :
{
title : 'Barrierefreiheitinformationen',
contents : 'Hilfeinhalt. Um den Dialog zu schliessen die Taste \'ESC\' drücken.',
legend :
[
{
name : 'Allgemein',
items :
[
{
name : 'Editor Symbolleiste',
legend:
'Drücken Sie ${toolbarFocus} auf der Symbolleiste. Gehen Sie zur nächsten oder vorherigen Symbolleistengruppe mit TAB und SHIFT-TAB. Gehen Sie zur nächsten oder vorherigen Symbolleiste auf die Schaltfläche mit dem RECHTS- oder LINKS-Pfeil. Drücken Sie die Leertaste oder Eingabetaste, um die Schaltfläche in der Symbolleiste aktivieren.'
},
{
name : 'Editor Dialog',
legend :
'Innerhalb des Dialogs drücken Sie TAB um zum nächsten Dialogfeld zu gelangen, drücken Sie SHIFT-TAG um zum vorherigen Feld zu wechseln, drücken Sie ENTER um den Dialog abzusenden und ESC um den Dialog zu abzubrechen. Um zwischen den Reitern innerhalb eines Dialogs zu wechseln drücken sie ALT-F10. Um zum nächsten Reiter zu gelangen können Sie TAB oder die rechte Pfeiltaste. Zurück gelangt man mit SHIFT-TAB oder der linken Pfeiltaste. Mit der Leertaste oder Enter kann man den Reiter auswählen.'
},
{
name : 'Editor Kontextmenü',
legend :
'Dürcken Sie ${contextMenu} oder die Anwendungstaste um das Kontextmenü zu öffnen. Man kann die Pfeiltasten zum Wechsel benutzen. Mit der Leertaste oder der Enter-Taste kann man den Menüpunkt aufrufen. Schliessen Sie das Kontextmenü mit der ESC-Taste.'
},
{
name : 'Editor Listen',
legend :
'Innerhalb einer Listenbox kann man mit der TAB-Taste oder den Pfeilrunter-Taste den nächsten Menüeintrag wählen. Mit der Shift-TAB Tastenkombination oder der Pfeilhoch-Taste gelangt man zum vorherigen Menüpunkt. Mit der Leertaste oder Enter kann man den Menüpunkt auswählen. Drücken Sie ESC zum Verlassen des Menüs.'
},
{
name : 'Editor Elementpfadleiste',
legend :
'Drücken Sie ${elementsPathFocus} um sich durch die Pfadleiste zu bewegen. Um zum nächsten Element zu gelangen drücken Sie TAB oder die Pfeilrechts-Taste. Zum vorherigen Element gelangen Sie mit der SHIFT-TAB oder der Pfeillinks-Taste. Drücken Sie die Leertaste oder Enter um das Element auszuwählen.'
}
]
},
{
name : 'Befehle',
items :
[
{
name : 'Wiederholen Befehl',
legend : 'Drücken Sie ${undo}'
},
{
name : 'Rückgängig Befehl',
legend : 'Drücken Sie ${redo}'
},
{
name : 'Fettschrift Befehl',
legend : 'Drücken Sie ${bold}'
},
{
name : 'Italic Befehl',
legend : 'Drücken Sie ${italic}'
},
{
name : 'Unterstreichung Befehl',
legend : 'Drücken Sie ${underline}'
},
{
name : 'Link Befehl',
legend : 'Drücken Sie ${link}'
},
{
name : 'Symbolleiste zuammenklappen Befehl',
legend : 'Drücken Sie ${toolbarCollapse}'
},
{
name : 'Eingabehilfen',
legend : 'Drücken Sie ${a11yHelp}'
}
]
}
]
}
});
| JavaScript |
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'a11yhelp', 'vi',
{
accessibilityHelp :
{
title : 'Accessibility Instructions', // MISSING
contents : 'Nội dung Hỗ trợ. Nhấn ESC để đóng hộp thoại.',
legend :
[
{
name : 'Chung',
items :
[
{
name : 'Thanh công cụ soạn th',
legend:
'Nhấn ${toolbarFocus} để điều hướng đến thanh công cụ. Nhấn TAB và SHIFT-TAB để chuyển đến nhóm thanh công cụ khác. Nhấn MŨI TÊN PHẢI hoặc MŨI TÊN TRÁI để chuyển sang nút khác trên thanh công cụ. Nhấn PHÍM CÁCH hoặc ENTER để kích hoạt nút trên thanh công c.'
},
{
name : 'Hộp thoại Biên t',
legend :
'Inside a dialog, press TAB to navigate to next dialog field, press SHIFT + TAB to move to previous field, press ENTER to submit dialog, press ESC to cancel dialog. For dialogs that have multiple tab pages, press ALT + F10 to navigate to tab-list. Then move to next tab with TAB OR RIGTH ARROW. Move to previous tab with SHIFT + TAB or LEFT ARROW. Press SPACE or ENTER to select the tab page.' // MISSING
},
{
name : 'Trình đơn Ngữ cảnh cBộ soạn thảo',
legend :
'Press ${contextMenu} or APPLICATION KEY to open context-menu. Then move to next menu option with TAB or DOWN ARROW. Move to previous option with SHIFT+TAB or UP ARROW. Press SPACE or ENTER to select the menu option. Open sub-menu of current option with SPACE or ENTER or RIGHT ARROW. Go back to parent menu item with ESC or LEFT ARROW. Close context menu with ESC.' // MISSING
},
{
name : 'Editor List Box', // MISSING
legend :
'Inside a list-box, move to next list item with TAB OR DOWN ARROW. Move to previous list item with SHIFT + TAB or UP ARROW. Press SPACE or ENTER to select the list option. Press ESC to close the list-box.' // MISSING
},
{
name : 'Editor Element Path Bar', // MISSING
legend :
'Press ${elementsPathFocus} to navigate to the elements path bar. Move to next element button with TAB or RIGHT ARROW. Move to previous button with SHIFT+TAB or LEFT ARROW. Press SPACE or ENTER to select the element in editor.' // MISSING
}
]
},
{
name : 'Commands', // MISSING
items :
[
{
name : ' Undo command', // MISSING
legend : 'Press ${undo}' // MISSING
},
{
name : ' Redo command', // MISSING
legend : 'Press ${redo}' // MISSING
},
{
name : ' Bold command', // MISSING
legend : 'Press ${bold}' // MISSING
},
{
name : ' Italic command', // MISSING
legend : 'Press ${italic}' // MISSING
},
{
name : ' Underline command', // MISSING
legend : 'Press ${underline}' // MISSING
},
{
name : ' Link command', // MISSING
legend : 'Press ${link}' // MISSING
},
{
name : ' Toolbar Collapse command', // MISSING
legend : 'Press ${toolbarCollapse}' // MISSING
},
{
name : ' Accessibility Help', // MISSING
legend : 'Press ${a11yHelp}' // MISSING
}
]
}
]
}
});
| JavaScript |
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'a11yhelp', 'tr',
{
accessibilityHelp :
{
title : 'Erişilebilirlik Talimatları',
contents : 'Yardım içeriği. Bu pencereyi kapatmak için ESC tuşuna basın.',
legend :
[
{
name : 'Genel',
items :
[
{
name : 'Araç Çubuğu Editörü',
legend:
'Araç çubuğunda gezinmek için ${toolbarFocus} basın. TAB ve SHIFT-TAB ile önceki ve sonraki araç çubuğu grubuna taşıyın. SAĞ OK veya SOL OK ile önceki ve sonraki bir araç çubuğu düğmesini hareket ettirin. SPACE tuşuna basın veya araç çubuğu düğmesini etkinleştirmek için ENTER tuşna basın.'
},
{
name : 'Dialog Editörü',
legend :
'Dialog penceresi içinde, sonraki iletişim alanına gitmek için SEKME tuşuna basın, önceki alana geçmek için SHIFT + TAB tuşuna basın, pencereyi göndermek için ENTER tuşuna basın, dialog penceresini iptal etmek için ESC tuşuna basın. Birden çok sekme sayfaları olan diyalogların, sekme listesine gitmek için ALT + F10 tuşlarına basın. Sonra TAB veya SAĞ OK sonraki sekmeye taşıyın. SHIFT + TAB veya SOL OK ile önceki sekmeye geçin. Sekme sayfayı seçmek için SPACE veya ENTER tuşuna basın.'
},
{
name : 'İçerik Menü Editörü',
legend :
'İçerik menüsünü açmak için ${contextMenu} veya UYGULAMA TUŞU\'na basın. Daha sonra SEKME veya AŞAĞI OK ile bir sonraki menü seçeneği taşıyın. SHIFT + TAB veya YUKARI OK ile önceki seçeneğe gider. Menü seçeneğini seçmek için SPACE veya ENTER tuşuna basın. Seçili seçeneğin alt menüsünü SPACE ya da ENTER veya SAĞ OK açın. Üst menü öğesini geçmek için ESC veya SOL OK ile geri dönün. ESC ile bağlam menüsünü kapatın.'
},
{
name : 'Liste Kutusu Editörü',
legend :
'Liste kutusu içinde, bir sonraki liste öğesine SEKME VEYA AŞAĞI OK ile taşıyın. SHIFT + TAB veya YUKARI önceki liste öğesi taşıyın. Liste seçeneği seçmek için SPACE veya ENTER tuşuna basın. Liste kutusunu kapatmak için ESC tuşuna basın.'
},
{
name : 'Element Yol Çubuğu Editörü',
legend :
'Elementlerin yol çubuğunda gezinmek için ${ElementsPathFocus} basın. SEKME veya SAĞ OK ile sonraki element düğmesine taşıyın. SHIFT + TAB veya SOL OK önceki düğmeye hareket ettirin. Editör içindeki elementi seçmek için ENTER veya SPACE tuşuna basın.'
}
]
},
{
name : 'Komutlar',
items :
[
{
name : 'Komutu geri al',
legend : '${undo} basın'
},
{
name : ' Tekrar komutu uygula',
legend : '${redo} basın'
},
{
name : ' Kalın komut',
legend : '${bold} basın'
},
{
name : ' İtalik komutu',
legend : '${italic} basın'
},
{
name : ' Alttan çizgi komutu',
legend : '${underline} basın'
},
{
name : ' Bağlantı komutu',
legend : '${link} basın'
},
{
name : ' Araç çubuğu Toplama komutu',
legend : '${toolbarCollapse} basın'
},
{
name : 'Erişilebilirlik Yardımı',
legend : '${a11yHelp} basın'
}
]
}
]
}
});
| JavaScript |
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'a11yhelp', 'fr',
{
accessibilityHelp :
{
title : 'Instructions pour l\'accessibilité',
contents : 'Contenu de l\'aide. Pour fermer ce dialogue, appuyez sur la touche ESC (Echappement).',
legend :
[
{
name : 'Général',
items :
[
{
name : 'Barre d\'outils de l\'éditeur',
legend:
'Appuyer sur ${toolbarFocus} pour accéder à la barre d\'outils. Se déplacer vers les groupes suivant ou précédent de la barre d\'outil avec les touches TAB et SHIFT-TAB. Se déplacer vers les boutons suivant ou précédent de la barre d\'outils avec les touches FLECHE DROITE et FLECHE GAUCHE. Appuyer sur la barre d\'espace ou la touche ENTRER pour activer le bouton de barre d\'outils.'
},
{
name : 'Dialogue de léditeur',
legend :
'A l\'intérieur d\'un dialogue, appuyer sur la touche TAB pour naviguer jusqu\'au champ de dalogue suivant, appuyez sur les touches SHIFT + TAB pour revenir au champ précédent, appuyez sur la touche ENTRER pour soumettre le dialogue, appuyer sur la touche ESC pour annuler le dialogue. Pour les dialogues avec plusieurs pages d\'onglets, appuyer sur ALT + F10 pour naviguer jusqu\'à la liste des onglets. Puis se déplacer vers l\'onglet suivant avec la touche TAB ou FLECHE DROITE. Se déplacer vers l\'onglet précédent avec les touches SHIFT + TAB ou FLECHE GAUCHE. Appuyer sur la barre d\'espace ou la touche ENTRER pour sélectionner la page de l\'onglet.'
},
{
name : 'Menu contextuel de l\'éditeur',
legend :
'Appuyer sur ${contextMenu} ou entrer le RACCOURCI CLAVIER pour ouvrir le menu contextuel. Puis se déplacer vers l\'option suivante du menu avec les touches TAB ou FLECHE BAS. Se déplacer vers l\'option précédente avec les touches SHIFT+TAB ou FLECHE HAUT. appuyer sur la BARRE D\'ESPACE ou la touche ENTREE pour sélectionner l\'option du menu. Oovrir le sous-menu de l\'option courante avec la BARRE D\'ESPACE ou les touches ENTREE ou FLECHE DROITE. Revenir à l\'élément de menu parent avec les touches ESC ou FLECHE GAUCHE. Fermer le menu contextuel avec ESC.'
},
{
name : 'Zone de liste en menu déroulant de l\'éditeur',
legend :
'A l\'intérieur d\'une liste en menu déroulant, se déplacer vers l\'élément suivant de la liste avec les touches TAB ou FLECHE BAS. Se déplacer vers l\'élément précédent de la liste avec les touches SHIFT + TAB ou FLECHE HAUT. Appuyer sur la BARRE D\'ESPACE ou sur ENTREE pour sélectionner l\'option dans la liste. Appuyer sur ESC pour fermer le menu déroulant.'
},
{
name : 'Barre d\'emplacement des éléments de léditeur',
legend :
'Appuyer sur ${elementsPathFocus} pour naviguer vers la barre d\'emplacement des éléments de léditeur. Se déplacer vers le bouton d\'élément suivant avec les touches TAB ou FLECHE DROITE. Se déplacer vers le bouton d\'élément précédent avec les touches SHIFT+TAB ou FLECHE GAUCHE. Appuyer sur la BARRE D\'ESPACE ou sur ENTREE pour sélectionner l\'élément dans l\'éditeur.'
}
]
},
{
name : 'Commandes',
items :
[
{
name : ' Commande défaire',
legend : 'Appuyer sur ${undo}'
},
{
name : ' Commande refaire',
legend : 'Appuyer sur ${redo}'
},
{
name : ' Commande gras',
legend : 'Appuyer sur ${bold}'
},
{
name : ' Commande italique',
legend : 'Appuyer sur ${italic}'
},
{
name : ' Commande souligné',
legend : 'Appuyer sur ${underline}'
},
{
name : ' Commande lien',
legend : 'Appuyer sur ${link}'
},
{
name : ' Commande enrouler la barre d\'outils',
legend : 'Appuyer sur ${toolbarCollapse}'
},
{
name : ' Aide Accessibilité',
legend : 'Appuyer sur ${a11yHelp}'
}
]
}
]
}
});
| JavaScript |
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'a11yhelp', 'zh-cn',
{
accessibilityHelp :
{
title : '辅助说明',
contents : '帮助内容。要关闭此对话框请按 ESC 键。',
legend :
[
{
name : '常规',
items :
[
{
name : '编辑器工具栏',
legend:
'按 ${toolbarFocus} 导航到工具栏,使用 TAB 键或 SHIFT+TAB 组合键选择工具栏组,使用左右箭头键选择按钮,按空格键或回车键以应用选中的按钮。'
},
{
name : '编辑器对话框',
legend :
'在对话框内,TAB 键移动到下一个字段,SHIFT + TAB 组合键移动到上一个字段,ENTER 键提交对话框,ESC 键取消对话框。对于有多标签的对话框,用ALT + F10来移到标签列表。然后用 TAB 键或者向右箭头来移动到下一个标签;SHIFT + TAB 组合键或者向左箭头移动到上一个标签。用 SPACE 键或者 ENTER 键选择标签。'
},
{
name : '编辑器上下文菜单',
legend :
'用 ${contextMenu}或者 应用程序键 打开上下文菜单。然后用 TAB 键或者下箭头键来移动到下一个菜单项;SHIFT + TAB 组合键或者上箭头键移动到上一个菜单项。用 SPACE 键或者 ENTER 键选择菜单项。用 SPACE 键,ENTER 键或者右箭头键打开子菜单。返回菜单用 ESC 键或者左箭头键。用 ESC 键关闭上下文菜单。'
},
{
name : '编辑器列表框',
legend :
'在列表框中,移到下一列表项用 TAB 键或者下箭头键。移到上一列表项用SHIFT + TAB 组合键或者上箭头键,用 SPACE 键或者 ENTER 键选择列表项。用 ESC 键收起列表框。'
},
{
name : '编辑器元素路径栏',
legend :
'按 ${elementsPathFocus} 以导航到元素路径栏,使用 TAB 键或右箭头键选择下一个元素,使用 SHIFT+TAB 组合键或左箭头键选择上一个元素,按空格键或回车键以选定编辑器里的元素。'
}
]
},
{
name : '命令',
items :
[
{
name : ' 撤消命令',
legend : '按 ${undo}'
},
{
name : ' 重做命令',
legend : '按 ${redo}'
},
{
name : ' 加粗命令',
legend : '按 ${bold}'
},
{
name : ' 倾斜命令',
legend : '按 ${italic}'
},
{
name : ' 下划线命令',
legend : '按 ${underline}'
},
{
name : ' 链接命令',
legend : '按 ${link}'
},
{
name : ' 工具栏折叠命令',
legend : '按 ${toolbarCollapse}'
},
{
name : ' 无障碍设计说明',
legend : '按 ${a11yHelp}'
}
]
}
]
}
});
| JavaScript |
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'a11yhelp', 'eo',
{
accessibilityHelp :
{
title : 'Uzindikoj pri atingeblo',
contents : 'Helpilenhavo. Por fermi tiun dialogon, premu la ESKAPAN klavon.',
legend :
[
{
name : 'Ĝeneralaĵoj',
items :
[
{
name : 'Ilbreto de la redaktilo',
legend:
'Premu ${toolbarFocus} por atingi la ilbreton. Moviĝu al la sekva aŭ antaŭa grupoj de la ilbreto per la klavoj TABA kaj MAJUSKLIGA-TABA. Moviĝu al la sekva aŭ antaŭa butonoj de la ilbreto per la klavoj SAGO DEKSTREN kaj SAGO MALDEKSTREN. Premu la SPACETklavon aŭ la ENENklavon por aktivigi la ilbretbutonon.'
},
{
name : 'Redaktildialogo',
legend :
'En dialogo, premu la TABAN klavon por navigi al la sekva dialogkampo, premu la MAJUSKLIGAN + TABAN klavojn por reveni al la antaŭa kampo, premu la ENENklavon por sendi la dialogon, premu la ESKAPAN klavon por nuligi la dialogon. Por dialogoj kun pluraj retpaĝoj sub langetoj, premu ALT + F10 por navigi al la langetlisto. Poste moviĝu al la sekva langeto per la klavo TABA aŭ SAGO DEKSTREN. Moviĝu al la antaŭa langeto per la klavoj MAJUSKLIGA + TABA aŭ SAGO MALDEKSTREN. Premu la SPACETklavon aŭ la ENENklavon por selekti la langetretpaĝon.'
},
{
name : 'Kunteksta menuo de la redaktilo',
legend :
'Premu ${contextMenu} aŭ entajpu la KLAVKOMBINAĴON por malfermi la kuntekstan menuon. Poste moviĝu al la sekva opcio de la menuo per la klavoj TABA aŭ SAGO SUBEN. Moviĝu al la antaŭa opcio per la klavoj MAJUSKLGA + TABA aŭ SAGO SUPREN. Premu la SPACETklavon aŭ ENENklavon por selekti la menuopcion. Malfermu la submenuon de la kuranta opcio per la SPACETklavo aŭ la ENENklavo aŭ la SAGO DEKSTREN. Revenu al la elemento de la patra menuo per la klavoj ESKAPA aŭ SAGO MALDEKSTREN. Fermu la kuntekstan menuon per la ESKAPA klavo.'
},
{
name : 'Fallisto de la redaktilo',
legend :
'En fallisto, moviĝu al la sekva listelemento per la klavoj TABA aŭ SAGO SUBEN. Moviĝu al la antaŭa listelemento per la klavoj MAJUSKLIGA + TABA aŭ SAGO SUPREN. Premu la SPACETklavon aŭ ENENklavon por selekti la opcion en la listo. Premu la ESKAPAN klavon por fermi la falmenuon.'
},
{
name : 'Breto indikanta la vojon al la redaktilelementoj',
legend :
'Premu ${elementsPathFocus} por navigi al la breto indikanta la vojon al la redaktilelementoj. Moviĝu al la butono de la sekva elemento per la klavoj TABA aŭ SAGO DEKSTREN. Moviĝu al la butono de la antaŭa elemento per la klavoj MAJUSKLIGA + TABA aŭ SAGO MALDEKSTREN. Premu la SPACETklavon aŭ ENENklavon por selekti la elementon en la redaktilo.'
}
]
},
{
name : 'Komandoj',
items :
[
{
name : 'Komando malfari',
legend : 'Premu ${undo}'
},
{
name : 'Komando refari',
legend : 'Premu ${redo}'
},
{
name : 'Komando grasa',
legend : 'Premu ${bold}'
},
{
name : 'Komando kursiva',
legend : 'Premu ${italic}'
},
{
name : 'Komando substreki',
legend : 'Premu ${underline}'
},
{
name : 'Komando ligilo',
legend : 'Premu ${link}'
},
{
name : 'Komando faldi la ilbreton',
legend : 'Premu ${toolbarCollapse}'
},
{
name : 'Helpilo pri atingeblo',
legend : 'Premu ${a11yHelp}'
}
]
}
]
}
});
| JavaScript |
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'a11yhelp', 'sk',
{
accessibilityHelp :
{
title : 'Inštrukcie prístupnosti',
contents : 'Pomocný obsah. Pre zatvorenie tohto okna, stlačte ESC.',
legend :
[
{
name : 'Všeobecne',
items :
[
{
name : 'Lišta nástrojov editora',
legend:
'Stlačte ${toolbarFocus} pre navigáciu na lištu nástrojov. Medzi ďalšou a predchádzajúcou lištou nástrojov sa pohybujete s TAB a SHIFT-TAB. Medzi ďalším a predchádzajúcim tlačidlom na lište nástrojov sa pohybujete s pravou šípkou a ľavou šípkou. Stlačte medzerník alebo ENTER pre aktiváciu tlačidla lišty nástrojov.'
},
{
name : 'Editorový dialóg',
legend :
'V dialogu, stlačte TAB pre navigáciu na ďalšie dialógové pole, stlačte STIFT + TAB pre presun na predchádzajúce pole, stlačte ENTER pre odoslanie dialógu, stlačte ESC pre zrušenie dialógu. Pre dialógy, ktoré majú viac záložiek, stlačte ALT + F10 pre navigácou do zoznamu záložiek. Potom sa posúvajte k ďalšej žáložke pomocou TAB alebo pravou šípkou. Pre presun k predchádzajúcej záložke, stlačte SHIFT + TAB alebo ľavú šípku. Stlačte medzerník alebo ENTER pre vybranie záložky.'
},
{
name : 'Editorové kontextové menu',
legend :
'Stlačte ${contextMenu} alebo APPLICATION KEY pre otvorenie kontextového menu. Potom sa presúvajte na ďalšie možnosti menu s TAB alebo dolnou šípkou. Presunte sa k predchádzajúcej možnosti s SHIFT + TAB alebo hornou šípkou. Stlačte medzerník alebo ENTER pre výber možnosti menu. Otvorte pod-menu danej možnosti s medzerníkom, alebo ENTER, alebo pravou šípkou. Vráťte sa späť do položky rodičovského menu s ESC alebo ľavou šípkou. Zatvorte kontextové menu s ESC.'
},
{
name : 'Editorov box zoznamu',
legend :
'V boxe zoznamu, presuňte sa na ďalšiu položku v zozname s TAB alebo dolnou šípkou. Presuňte sa k predchádzajúcej položke v zozname so SHIFT + TAB alebo hornou šípkou. Stlačte medzerník alebo ENTER pre výber možnosti zoznamu. Stlačte ESC pre zatvorenie boxu zoznamu.'
},
{
name : 'Editorove pásmo cesty prvku',
legend :
'Stlačte ${elementsPathFocus} pre navigovanie na pásmo cesty elementu. Presuňte sa na tlačidlo ďalšieho prvku s TAB alebo pravou šípkou. Presuňte sa k predchádzajúcemu tlačidlu s SHIFT + TAB alebo ľavou šípkou. Stlačte medzerník alebo ENTER pre výber prvku v editore.'
}
]
},
{
name : 'Príkazy',
items :
[
{
name : 'Vrátiť príkazy',
legend : 'Stlačte ${undo}'
},
{
name : 'Nanovo vrátiť príkaz',
legend : 'Stlačte ${redo}'
},
{
name : 'Príkaz na stučnenie',
legend : 'Stlačte ${bold}'
},
{
name : 'Príkaz na kurzívu',
legend : 'Stlačte ${italic}'
},
{
name : 'Príkaz na podčiarknutie',
legend : 'Stlačte ${underline}'
},
{
name : 'Príkaz na odkaz',
legend : 'Stlačte ${link}'
},
{
name : 'Príkaz na zbalenie lišty nástrojov',
legend : 'Stlačte ${toolbarCollapse}'
},
{
name : 'Pomoc prístupnosti',
legend : 'Stlačte ${a11yHelp}'
}
]
}
]
}
});
| JavaScript |
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'a11yhelp', 'en',
{
accessibilityHelp :
{
title : 'Accessibility Instructions',
contents : 'Help Contents. To close this dialog press ESC.',
legend :
[
{
name : 'General',
items :
[
{
name : 'Editor Toolbar',
legend:
'Press ${toolbarFocus} to navigate to the toolbar. ' +
'Move to the next and previous toolbar group with TAB and SHIFT-TAB. ' +
'Move to the next and previous toolbar button with RIGHT ARROW or LEFT ARROW. ' +
'Press SPACE or ENTER to activate the toolbar button.'
},
{
name : 'Editor Dialog',
legend :
'Inside a dialog, press TAB to navigate to next dialog field, press SHIFT + TAB to move to previous field, press ENTER to submit dialog, press ESC to cancel dialog. ' +
'For dialogs that have multiple tab pages, press ALT + F10 to navigate to tab-list. ' +
'Then move to next tab with TAB OR RIGTH ARROW. ' +
'Move to previous tab with SHIFT + TAB or LEFT ARROW. ' +
'Press SPACE or ENTER to select the tab page.'
},
{
name : 'Editor Context Menu',
legend :
'Press ${contextMenu} or APPLICATION KEY to open context-menu. ' +
'Then move to next menu option with TAB or DOWN ARROW. ' +
'Move to previous option with SHIFT+TAB or UP ARROW. ' +
'Press SPACE or ENTER to select the menu option. ' +
'Open sub-menu of current option with SPACE or ENTER or RIGHT ARROW. ' +
'Go back to parent menu item with ESC or LEFT ARROW. ' +
'Close context menu with ESC.'
},
{
name : 'Editor List Box',
legend :
'Inside a list-box, move to next list item with TAB OR DOWN ARROW. ' +
'Move to previous list item with SHIFT + TAB or UP ARROW. ' +
'Press SPACE or ENTER to select the list option. ' +
'Press ESC to close the list-box.'
},
{
name : 'Editor Element Path Bar',
legend :
'Press ${elementsPathFocus} to navigate to the elements path bar. ' +
'Move to next element button with TAB or RIGHT ARROW. ' +
'Move to previous button with SHIFT+TAB or LEFT ARROW. ' +
'Press SPACE or ENTER to select the element in editor.'
}
]
},
{
name : 'Commands',
items :
[
{
name : ' Undo command',
legend : 'Press ${undo}'
},
{
name : ' Redo command',
legend : 'Press ${redo}'
},
{
name : ' Bold command',
legend : 'Press ${bold}'
},
{
name : ' Italic command',
legend : 'Press ${italic}'
},
{
name : ' Underline command',
legend : 'Press ${underline}'
},
{
name : ' Link command',
legend : 'Press ${link}'
},
{
name : ' Toolbar Collapse command',
legend : 'Press ${toolbarCollapse}'
},
{
name : ' Accessibility Help',
legend : 'Press ${a11yHelp}'
}
]
}
]
}
});
| JavaScript |
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'a11yhelp', 'da',
{
accessibilityHelp :
{
title : 'Tilgængelighedsinstrukser',
contents : 'Help Contents. To close this dialog press ESC.', // MISSING
legend :
[
{
name : 'Generelt',
items :
[
{
name : 'Editor værktøjslinje',
legend:
'Press ${toolbarFocus} to navigate to the toolbar. Move to the next and previous toolbar group with TAB and SHIFT-TAB. Move to the next and previous toolbar button with RIGHT ARROW or LEFT ARROW. Press SPACE or ENTER to activate the toolbar button.' // MISSING
},
{
name : 'Editor Dialog', // MISSING
legend :
'Inside a dialog, press TAB to navigate to next dialog field, press SHIFT + TAB to move to previous field, press ENTER to submit dialog, press ESC to cancel dialog. For dialogs that have multiple tab pages, press ALT + F10 to navigate to tab-list. Then move to next tab with TAB OR RIGTH ARROW. Move to previous tab with SHIFT + TAB or LEFT ARROW. Press SPACE or ENTER to select the tab page.' // MISSING
},
{
name : 'Editor Context Menu', // MISSING
legend :
'Press ${contextMenu} or APPLICATION KEY to open context-menu. Then move to next menu option with TAB or DOWN ARROW. Move to previous option with SHIFT+TAB or UP ARROW. Press SPACE or ENTER to select the menu option. Open sub-menu of current option with SPACE or ENTER or RIGHT ARROW. Go back to parent menu item with ESC or LEFT ARROW. Close context menu with ESC.' // MISSING
},
{
name : 'Editor List Box', // MISSING
legend :
'Inside a list-box, move to next list item with TAB OR DOWN ARROW. Move to previous list item with SHIFT + TAB or UP ARROW. Press SPACE or ENTER to select the list option. Press ESC to close the list-box.' // MISSING
},
{
name : 'Editor Element Path Bar', // MISSING
legend :
'Press ${elementsPathFocus} to navigate to the elements path bar. Move to next element button with TAB or RIGHT ARROW. Move to previous button with SHIFT+TAB or LEFT ARROW. Press SPACE or ENTER to select the element in editor.' // MISSING
}
]
},
{
name : 'Kommandoer',
items :
[
{
name : 'Fortryd kommando',
legend : 'Klik på ${undo}'
},
{
name : 'Gentag kommando',
legend : 'Klik ${redo}'
},
{
name : ' Bold command', // MISSING
legend : 'Klik ${bold}'
},
{
name : ' Italic command', // MISSING
legend : 'Press ${italic}' // MISSING
},
{
name : ' Underline command', // MISSING
legend : 'Klik ${underline}'
},
{
name : ' Link command', // MISSING
legend : 'Klik ${link}'
},
{
name : ' Toolbar Collapse command', // MISSING
legend : 'Press ${toolbarCollapse}' // MISSING
},
{
name : ' Accessibility Help', // MISSING
legend : 'Kilk ${a11yHelp}'
}
]
}
]
}
});
| JavaScript |
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'a11yhelp', 'nb',
{
accessibilityHelp :
{
title : 'Instruksjoner for tilgjengelighet',
contents : 'Innhold for hjelp. Trykk ESC for å lukke denne dialogen.',
legend :
[
{
name : 'Generelt',
items :
[
{
name : 'Verktøylinje for editor',
legend:
'Trykk ${toolbarFocus} for å navigere til verktøylinjen. Flytt til neste og forrige verktøylinjegruppe med TAB og SHIFT-TAB. Flytt til neste og forrige verktøylinjeknapp med HØYRE PILTAST og VENSTRE PILTAST. Trykk MELLOMROM eller ENTER for å aktivere verktøylinjeknappen.'
},
{
name : 'Dialog for editor',
legend :
'Mens du er i en dialog, trykk TAB for å navigere til neste dialogfelt, press SHIFT + TAB for å flytte til forrige felt, trykk ENTER for å akseptere dialogen, trykk ESC for å avbryte dialogen. For dialoger med flere faner, trykk ALT + F10 for å navigere til listen over faner. Gå til neste fane med TAB eller HØYRE PILTAST. Gå til forrige fane med SHIFT + TAB eller VENSTRE PILTAST. Trykk MELLOMROM eller ENTER for å velge fanen.'
},
{
name : 'Kontekstmeny for editor',
legend :
'Trykk ${contextMenu} eller MENYKNAPP for å åpne kontekstmeny. Gå til neste alternativ i menyen med TAB eller PILTAST NED. Gå til forrige alternativ med SHIFT+TAB eller PILTAST OPP. Trykk MELLOMROM eller ENTER for å velge menyalternativet. Åpne undermenyen på valgt alternativ med MELLOMROM eller ENTER eller HØYRE PILTAST. Gå tilbake til overordnet menyelement med ESC eller VENSTRE PILTAST. Lukk kontekstmenyen med ESC.'
},
{
name : 'Listeboks for editor',
legend :
'I en listeboks, gå til neste alternativ i listen med TAB eller PILTAST NED. Gå til forrige alternativ i listen med SHIFT + TAB eller PILTAST OPP. Trykk MELLOMROM eller ENTER for å velge alternativet i listen. Trykk ESC for å lukke listeboksen.'
},
{
name : 'Verktøylinje for elementsti',
legend :
'Trykk ${elementsPathFocus} for å navigere til verktøylinjen som viser elementsti. Gå til neste elementknapp med TAB eller HØYRE PILTAST. Gå til forrige elementknapp med SHIFT+TAB eller VENSTRE PILTAST. Trykk MELLOMROM eller ENTER for å velge elementet i editoren.'
}
]
},
{
name : 'Kommandoer',
items :
[
{
name : 'Angre',
legend : 'Trykk ${undo}'
},
{
name : 'Gjør om',
legend : 'Trykk ${redo}'
},
{
name : 'Fet tekst',
legend : 'Trykk ${bold}'
},
{
name : 'Kursiv tekst',
legend : 'Trykk ${italic}'
},
{
name : 'Understreking',
legend : 'Trykk ${underline}'
},
{
name : 'Link',
legend : 'Trykk ${link}'
},
{
name : 'Skjul verktøylinje',
legend : 'Trykk ${toolbarCollapse}'
},
{
name : 'Hjelp for tilgjengelighet',
legend : 'Trykk ${a11yHelp}'
}
]
}
]
}
});
| JavaScript |
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'a11yhelp', 'el',
{
accessibilityHelp :
{
title : 'Οδηγίες Προσβασιμότητας',
contents : 'Περιεχόμενα Βοήθειας. Πατήστε ESC για κλείσιμο.',
legend :
[
{
name : 'Γενικά',
items :
[
{
name : 'Εργαλειοθήκη Επεξεργαστή',
legend:
'Πατήστε ${toolbarFocus} για να περιηγηθείτε στην γραμμή εργαλείων. Μετακινηθείτε ανάμεσα στις ομάδες της γραμμής εργαλείων με TAB και Shift-TAB. Μετακινηθείτε ανάμεσα στα κουμπία εργαλείων με ΔΕΞΙ και ΑΡΙΣΤΕΡΟ ΒΕΛΑΚΙ. Πατήστε ΚΕΝΟ ή ENTER για να ενεργοποιήσετε το ενεργό κουμπί εργαλείου.'
},
{
name : 'Παράθυρο Διαλόγου Επεξεργαστή',
legend :
'Μέσα σε ένα παράθυρο διαλόγου, πατήστε TAB για να μεταβείτε στο επόμενο πεδίο ή SHIFT + TAB για να μεταβείτε στο προηγούμενο. Πατήστε ENTER για να υποβάλετε την φόρμα. Πατήστε ESC για να ακυρώσετε την διαδικασία της φόρμας. Για παράθυρα διαλόγων που έχουν πολλές σελίδες σε καρτέλες πατήστε ALT + F10 για να μεταβείτε στην λίστα των καρτέλων. Στην συνέχεια μπορείτε να μεταβείτε στην επόμενη καρτέλα πατώντας TAB ή RIGHT ARROW. Μπορείτε να μεταβείτε στην προηγούμενη καρτέλα πατώντας SHIFT + TAB ή LEFT ARROW. Πατήστε SPACE ή ENTER για να επιλέξετε την καρτέλα για προβολή.'
},
{
name : 'Αναδυόμενο Μενού Επεξεργαστή',
legend :
'Press ${contextMenu} or APPLICATION KEY to open context-menu. Then move to next menu option with TAB or DOWN ARROW. Move to previous option with SHIFT+TAB or UP ARROW. Press SPACE or ENTER to select the menu option. Open sub-menu of current option with SPACE or ENTER or RIGHT ARROW. Go back to parent menu item with ESC or LEFT ARROW. Close context menu with ESC.' // MISSING
},
{
name : 'Editor List Box', // MISSING
legend :
'Inside a list-box, move to next list item with TAB OR DOWN ARROW. Move to previous list item with SHIFT + TAB or UP ARROW. Press SPACE or ENTER to select the list option. Press ESC to close the list-box.' // MISSING
},
{
name : 'Editor Element Path Bar', // MISSING
legend :
'Press ${elementsPathFocus} to navigate to the elements path bar. Move to next element button with TAB or RIGHT ARROW. Move to previous button with SHIFT+TAB or LEFT ARROW. Press SPACE or ENTER to select the element in editor.' // MISSING
}
]
},
{
name : 'Εντολές',
items :
[
{
name : ' Εντολή αναίρεσης',
legend : 'Πατήστε ${undo}'
},
{
name : ' Εντολή επανάληψης',
legend : 'Πατήστε ${redo}'
},
{
name : ' Εντολή έντονης γραφής',
legend : 'Πατήστε ${bold}'
},
{
name : ' Εντολή πλάγιας γραφής',
legend : 'Πατήστε ${italic}'
},
{
name : ' Εντολή υπογράμμισης',
legend : 'Πατήστε ${underline}'
},
{
name : ' Εντολή συνδέσμου',
legend : 'Πατήστε ${link}'
},
{
name : ' Εντολή Σύμπτηξης Εργαλειοθήκης',
legend : 'Πατήστε ${toolbarCollapse}'
},
{
name : ' Βοήθεια Προσβασιμότητας',
legend : 'Πατήστε ${a11yHelp}'
}
]
}
]
}
});
| JavaScript |
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'a11yhelp', 'fi',
{
accessibilityHelp :
{
title : 'Saavutettavuus ohjeet',
contents : 'Ohjeen sisällöt. Sulkeaksesi tämän dialogin paina ESC.',
legend :
[
{
name : 'Yleinen',
items :
[
{
name : 'Editorin työkalupalkki',
legend:
'Paina ${toolbarFocus} siirtyäksesi työkalupalkkiin. Siirry seuraavaan ja edelliseen työkalupalkin ryhmään TAB ja SHIFT-TAB näppäimillä. Siirry seuraavaan ja edelliseen työkalupainikkeeseen käyttämällä NUOLI OIKEALLE tai NUOLI VASEMMALLE näppäimillä. Paina VÄLILYÖNTI tai ENTER näppäintä aktivoidaksesi työkalupainikkeen.'
},
{
name : 'Editorin dialogi',
legend :
'Dialogin sisällä, painamalla TAB siirryt seuraavaan dialogin kenttään, painamalla SHIFT+TAB siirryt aiempaan kenttään, painamalla ENTER lähetät dialogin, painamalla ESC peruutat dialogin. Dialogeille joissa on useita välilehtiä, paina ALT+F10 siirtyäksesi välillehtilistaan. Siirtyäksesi seuraavaan välilehteen paina TAB tai NUOLI OIKEALLE. Siirry edelliseen välilehteen painamalla SHIFT+TAB tai nuoli vasemmalle. Paina VÄLILYÖNTI tai ENTER valitaksesi välilehden.'
},
{
name : 'Editorin oheisvalikko',
legend :
'Paina ${contextMenu} tai SOVELLUSPAINIKETTA avataksesi oheisvalikon. Liiku seuraavaan valikon vaihtoehtoon TAB tai NUOLI ALAS näppäimillä. Siirry edelliseen vaihtoehtoon SHIFT+TAB tai NUOLI YLÖS näppäimillä. Paina VÄLILYÖNTI tai ENTER valitaksesi valikon kohdan. Avataksesi nykyisen kohdan alivalikon paina VÄLILYÖNTI tai ENTER tai NUOLI OIKEALLE painiketta. Siirtyäksesi takaisin valikon ylemmälle tasolle paina ESC tai NUOLI vasemmalle. Oheisvalikko suljetaan ESC painikkeella.'
},
{
name : 'Editorin listalaatikko',
legend :
'Listalaatikon sisällä siirry seuraavaan listan kohtaan TAB tai NUOLI ALAS painikkeilla. Siirry edelliseen listan kohtaan SHIFT+TAB tai NUOLI YLÖS painikkeilla. Paina VÄLILYÖNTI tai ENTER valitaksesi listan vaihtoehdon. Paina ESC sulkeaksesi listalaatikon.'
},
{
name : 'Editorin elementtipolun palkki',
legend :
'Paina ${elementsPathFocus} siirtyäksesi elementtipolun palkkiin. Siirry seuraavaan elementtipainikkeeseen TAB tai NUOLI OIKEALLE painikkeilla. Siirry aiempaan painikkeeseen SHIFT+TAB tai NUOLI VASEMMALLE painikkeilla. Paina VÄLILYÖNTI tai ENTER valitaksesi elementin editorissa.'
}
]
},
{
name : 'Komennot',
items :
[
{
name : 'Peruuta komento',
legend : 'Paina ${undo}'
},
{
name : 'Tee uudelleen komento',
legend : 'Paina ${redo}'
},
{
name : 'Lihavoi komento',
legend : 'Paina ${bold}'
},
{
name : 'Kursivoi komento',
legend : 'Paina ${italic}'
},
{
name : 'Alleviivaa komento',
legend : 'Paina ${underline}'
},
{
name : 'Linkki komento',
legend : 'Paina ${link}'
},
{
name : 'Pienennä työkalupalkki komento',
legend : 'Paina ${toolbarCollapse}'
},
{
name : 'Saavutettavuus ohjeet',
legend : 'Paina ${a11yHelp}'
}
]
}
]
}
});
| JavaScript |
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'a11yhelp', 'cy',
{
accessibilityHelp :
{
title : 'Canllawiau Hygyrchedd',
contents : 'Cynnwys Cymorth. I gau y deialog hwn, pwyswch ESC.',
legend :
[
{
name : 'Cyffredinol',
items :
[
{
name : 'Bar Offer y Golygydd',
legend:
'Pwyswch $ {toolbarFocus} i fynd at y bar offer. Symudwch i\'r grŵp bar offer nesaf a blaenorol gyda TAB a SHIFT-TAB. Symudwch i\'r botwm bar offer nesaf a blaenorol gyda SAETH DDE neu SAETH CHWITH. Pwyswch SPACE neu ENTER i wneud botwm y bar offer yn weithredol.'
},
{
name : 'Deialog y Golygydd',
legend :
'Tu mewn i\'r deialog, pwyswch TAB i fynd i\'r maes nesaf ar y deialog, pwyswch SHIFT + TAB i symud i faes blaenorol, pwyswch ENTER i gyflwyno\'r deialog, pwyswch ESC i ddiddymu\'r deialog. Ar gyfer deialogau sydd â thudalennau aml-tab, pwyswch ALT + F10 i lywio\'r tab-restr. Yna symudwch i\'r tab nesaf gyda TAB neu SAETH DDE. Symudwch i dab blaenorol gyda SHIFT + TAB neu\'r SAETH CHWITH. Pwyswch SPACE neu ENTER i ddewis y dudalen tab.'
},
{
name : 'Dewislen Cyd-destun y Golygydd',
legend :
'Pwyswch $ {contextMenu} neu\'r ALLWEDD \'APPLICATION\' i agor y ddewislen cyd-destun. Yna symudwch i\'r opsiwn ddewislen nesaf gyda\'r TAB neu\'r SAETH I LAWR. Symudwch i\'r opsiwn blaenorol gyda SHIFT + TAB neu\'r SAETH I FYNY. Pwyswch SPACE neu ENTER i ddewis yr opsiwn ddewislen. Agorwch is-dewislen yr opsiwn cyfredol gyda SPACE neu ENTER neu SAETH DDE. Ewch yn ôl i\'r eitem ar y ddewislen uwch gydag ESC neu SAETH CHWITH. Ceuwch y ddewislen cyd-destun gydag ESC.'
},
{
name : 'Blwch Rhestr y Golygydd',
legend :
'Tu mewn rhestr-bocs, ewch i\'r eitem rhestr nesaf gyda TAB neu\'r SAETH I LAWR. Symudwch i restr eitem flaenorol gyda SHIFT + TAB neu SAETH I FYNY. Pwyswch SPACE neu ENTER i ddewis yr opsiwn o\'r rhestr. Pwyswch ESC i gau\'r rhestr.'
},
{
name : 'Bar Llwybr Elfen y Golygydd',
legend :
'Pwyswch $ {elementsPathFocus} i fynd i\'r elfennau llwybr bar. Symudwch i fotwm yr elfen nesaf gyda TAB neu SAETH DDE. Symudwch i fotwm blaenorol gyda SHIFT + TAB neu SAETH CHWITH. Pwyswch SPACE neu ENTER i ddewis yr elfen yn y golygydd.'
}
]
},
{
name : 'Gorchmynion',
items :
[
{
name : 'Gorchymyn dadwneud',
legend : 'Pwyswch ${undo}'
},
{
name : 'Gorchymyn ailadrodd',
legend : 'Pwyswch ${redo}'
},
{
name : 'Gorchymyn Bras',
legend : 'Pwyswch ${bold}'
},
{
name : 'Gorchymyn italig',
legend : 'Pwyswch ${italig}'
},
{
name : 'Gorchymyn tanlinellu',
legend : 'Pwyso ${underline}'
},
{
name : 'Gorchymyn dolen',
legend : 'Pwyswch ${link}'
},
{
name : 'Gorchymyn Cwympo\'r Dewislen',
legend : 'Pwyswch ${toolbarCollapse}'
},
{
name : 'Cymorth Hygyrchedd',
legend : 'Pwyswch ${a11yHelp}'
}
]
}
]
}
});
| JavaScript |
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'a11yhelp', 'no',
{
accessibilityHelp :
{
title : 'Instruksjoner for tilgjengelighet',
contents : 'Innhold for hjelp. Trykk ESC for å lukke denne dialogen.',
legend :
[
{
name : 'Generelt',
items :
[
{
name : 'Verktøylinje for editor',
legend:
'Trykk ${toolbarFocus} for å navigere til verktøylinjen. Flytt til neste og forrige verktøylinjegruppe med TAB og SHIFT-TAB. Flytt til neste og forrige verktøylinjeknapp med HØYRE PILTAST og VENSTRE PILTAST. Trykk MELLOMROM eller ENTER for å aktivere verktøylinjeknappen.'
},
{
name : 'Dialog for editor',
legend :
'Mens du er i en dialog, trykk TAB for å navigere til neste dialogfelt, press SHIFT + TAB for å flytte til forrige felt, trykk ENTER for å akseptere dialogen, trykk ESC for å avbryte dialogen. For dialoger med flere faner, trykk ALT + F10 for å navigere til listen over faner. Gå til neste fane med TAB eller HØYRE PILTAST. Gå til forrige fane med SHIFT + TAB eller VENSTRE PILTAST. Trykk MELLOMROM eller ENTER for å velge fanen.'
},
{
name : 'Kontekstmeny for editor',
legend :
'Trykk ${contextMenu} eller MENYKNAPP for å åpne kontekstmeny. Gå til neste alternativ i menyen med TAB eller PILTAST NED. Gå til forrige alternativ med SHIFT+TAB eller PILTAST OPP. Trykk MELLOMROM eller ENTER for å velge menyalternativet. Åpne undermenyen på valgt alternativ med MELLOMROM eller ENTER eller HØYRE PILTAST. Gå tilbake til overordnet menyelement med ESC eller VENSTRE PILTAST. Lukk kontekstmenyen med ESC.'
},
{
name : 'Listeboks for editor',
legend :
'I en listeboks, gå til neste alternativ i listen med TAB eller PILTAST NED. Gå til forrige alternativ i listen med SHIFT + TAB eller PILTAST OPP. Trykk MELLOMROM eller ENTER for å velge alternativet i listen. Trykk ESC for å lukke listeboksen.'
},
{
name : 'Verktøylinje for elementsti',
legend :
'Trykk ${elementsPathFocus} for å navigere til verktøylinjen som viser elementsti. Gå til neste elementknapp med TAB eller HØYRE PILTAST. Gå til forrige elementknapp med SHIFT+TAB eller VENSTRE PILTAST. Trykk MELLOMROM eller ENTER for å velge elementet i editoren.'
}
]
},
{
name : 'Kommandoer',
items :
[
{
name : 'Angre',
legend : 'Trykk ${undo}'
},
{
name : 'Gjør om',
legend : 'Trykk ${redo}'
},
{
name : 'Fet tekst',
legend : 'Trykk ${bold}'
},
{
name : 'Kursiv tekst',
legend : 'Trykk ${italic}'
},
{
name : 'Understreking',
legend : 'Trykk ${underline}'
},
{
name : 'Link',
legend : 'Trykk ${link}'
},
{
name : 'Skjul verktøylinje',
legend : 'Trykk ${toolbarCollapse}'
},
{
name : 'Hjelp for tilgjengelighet',
legend : 'Trykk ${a11yHelp}'
}
]
}
]
}
});
| JavaScript |
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'a11yhelp', 'mk',
{
accessibilityHelp :
{
title : 'Инструкции за пристапност',
contents : 'Содржина на делот за помош. За да го затворите овој дијалот притиснете ESC.',
legend :
[
{
name : 'Општо',
items :
[
{
name : 'Мени за едиторот',
legend:
'Press ${toolbarFocus} to navigate to the toolbar. Move to the next and previous toolbar group with TAB and SHIFT-TAB. Move to the next and previous toolbar button with RIGHT ARROW or LEFT ARROW. Press SPACE or ENTER to activate the toolbar button.' // MISSING
},
{
name : 'Дијалот за едиторот',
legend :
'Inside a dialog, press TAB to navigate to next dialog field, press SHIFT + TAB to move to previous field, press ENTER to submit dialog, press ESC to cancel dialog. For dialogs that have multiple tab pages, press ALT + F10 to navigate to tab-list. Then move to next tab with TAB OR RIGTH ARROW. Move to previous tab with SHIFT + TAB or LEFT ARROW. Press SPACE or ENTER to select the tab page.' // MISSING
},
{
name : 'Editor Context Menu', // MISSING
legend :
'Press ${contextMenu} or APPLICATION KEY to open context-menu. Then move to next menu option with TAB or DOWN ARROW. Move to previous option with SHIFT+TAB or UP ARROW. Press SPACE or ENTER to select the menu option. Open sub-menu of current option with SPACE or ENTER or RIGHT ARROW. Go back to parent menu item with ESC or LEFT ARROW. Close context menu with ESC.' // MISSING
},
{
name : 'Editor List Box', // MISSING
legend :
'Inside a list-box, move to next list item with TAB OR DOWN ARROW. Move to previous list item with SHIFT + TAB or UP ARROW. Press SPACE or ENTER to select the list option. Press ESC to close the list-box.' // MISSING
},
{
name : 'Editor Element Path Bar', // MISSING
legend :
'Press ${elementsPathFocus} to navigate to the elements path bar. Move to next element button with TAB or RIGHT ARROW. Move to previous button with SHIFT+TAB or LEFT ARROW. Press SPACE or ENTER to select the element in editor.' // MISSING
}
]
},
{
name : 'Commands', // MISSING
items :
[
{
name : ' Undo command', // MISSING
legend : 'Press ${undo}' // MISSING
},
{
name : ' Redo command', // MISSING
legend : 'Press ${redo}' // MISSING
},
{
name : ' Bold command', // MISSING
legend : 'Press ${bold}' // MISSING
},
{
name : ' Italic command', // MISSING
legend : 'Press ${italic}' // MISSING
},
{
name : ' Underline command', // MISSING
legend : 'Press ${underline}' // MISSING
},
{
name : ' Link command', // MISSING
legend : 'Press ${link}' // MISSING
},
{
name : ' Toolbar Collapse command', // MISSING
legend : 'Press ${toolbarCollapse}' // MISSING
},
{
name : ' Accessibility Help', // MISSING
legend : 'Press ${a11yHelp}' // MISSING
}
]
}
]
}
});
| JavaScript |
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'a11yhelp', 'fa',
{
accessibilityHelp :
{
title : 'دستورالعملهای دسترسی',
contents : 'راهنمای فهرست مطالب. برای بستن این کادر محاورهای ESC را فشار دهید.',
legend :
[
{
name : 'عمومی',
items :
[
{
name : 'نوار ابزار ویرایشگر',
legend:
'${toolbarFocus} را برای باز کردن نوار ابزار بفشارید. با کلید Tab و Shif-Tab در مجموعه نوار ابزار بعدی و قبلی حرکت کنید. برای حرکت در کلید نوار ابزار قبلی و بعدی با کلید جهتنمای راست و چپ جابجا شوید. کلید Space یا Enter را برای فعال کردن کلید نوار ابزار بفشارید.'
},
{
name : 'پنجره محاورهای ویرایشگر',
legend :
'در داخل یک پنجره محاورهای، کلید Tab را بفشارید تا به پنجرهی بعدی بروید، Shift+Tab برای حرکت به فیلد قبلی، فشردن Enter برای ثبت اطلاعات پنجره، فشردن Esc برای لغو پنجره محاورهای و برای پنجرههایی که چندین برگه دارند، فشردن Alt+F10 جهت رفتن به Tab-List. در نهایت حرکت به برگه بعدی با Tab یا کلید جهتنمای راست. حرکت به برگه قبلی با Shift+Tab یا کلید جهتنمای چپ. فشردن Space یا Enter برای انتخاب یک برگه.'
},
{
name : 'منوی متنی ویرایشگر',
legend :
'${contextMenu} یا کلید برنامههای کاربردی را برای باز کردن منوی متن را بفشارید. سپس میتوانید برای حرکت به گزینه بعدی منو با کلید Tab و یا کلید جهتنمای پایین جابجا شوید. حرکت به گزینه قبلی با Shift+Tab یا کلید جهتنمای بالا. فشردن Space یا Enter برای انتخاب یک گزینه از منو. باز کردن زیر شاخه گزینه منو جاری با کلید Space یا Enter و یا کلید جهتنمای راست و چپ. بازگشت به منوی والد با کلید Esc یا کلید جهتنمای چپ. بستن منوی متن با Esc.'
},
{
name : 'جعبه فهرست ویرایشگر',
legend :
'در داخل جعبه لیست، قلم دوم از اقلام لیست بعدی را با TAB و یا Arrow Down حرکت دهید. انتقال به قلم دوم از اقلام لیست قبلی را با SHIFT + TAB یا UP ARROW. کلید Space یا ENTER را برای انتخاب گزینه لیست بفشارید. کلید ESC را برای بستن جعبه لیست بفشارید.'
},
{
name : 'ویرایشگر عنصر نوار راه',
legend :
'برای رفتن به مسیر عناصر ${elementsPathFocus} را بفشارید. حرکت به کلید عنصر بعدی با کلید Tab یا کلید جهتنمای راست. برگشت به کلید قبلی با Shift+Tab یا کلید جهتنمای چپ. فشردن Space یا Enter برای انتخاب یک عنصر در ویرایشگر.'
}
]
},
{
name : 'فرمانها',
items :
[
{
name : 'بازگشت فرمان',
legend : 'فشردن ${undo}'
},
{
name : 'انجام مجدد فرمان',
legend : 'فشردن ${redo}'
},
{
name : 'فرمان متن درشت',
legend : 'فشردن ${bold}'
},
{
name : 'فرمان متن کج',
legend : 'فشردن ${italic}'
},
{
name : 'فرمان متن زیرخطدار',
legend : 'فشردن ${underline}'
},
{
name : 'فرمان پیوند',
legend : 'فشردن ${link}'
},
{
name : 'بستن نوار ابزار فرمان',
legend : 'فشردن ${toolbarCollapse}'
},
{
name : 'راهنمای دسترسی',
legend : 'فشردن ${a11yHelp}'
}
]
}
]
}
});
| JavaScript |
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'a11yhelp', 'ro',
{
accessibilityHelp :
{
title : 'Instrucțiuni de accesibilitate',
contents : 'Cuprins. Pentru a închide acest dialog, apăsați tasta ESC.',
legend :
[
{
name : 'General',
items :
[
{
name : 'Editează bara.',
legend:
'Press ${toolbarFocus} to navigate to the toolbar. Move to the next and previous toolbar group with TAB and SHIFT-TAB. Move to the next and previous toolbar button with RIGHT ARROW or LEFT ARROW. Press SPACE or ENTER to activate the toolbar button.' // MISSING
},
{
name : 'Dialog editor',
legend :
'Inside a dialog, press TAB to navigate to next dialog field, press SHIFT + TAB to move to previous field, press ENTER to submit dialog, press ESC to cancel dialog. For dialogs that have multiple tab pages, press ALT + F10 to navigate to tab-list. Then move to next tab with TAB OR RIGTH ARROW. Move to previous tab with SHIFT + TAB or LEFT ARROW. Press SPACE or ENTER to select the tab page.' // MISSING
},
{
name : 'Editor meniu contextual',
legend :
'Press ${contextMenu} or APPLICATION KEY to open context-menu. Then move to next menu option with TAB or DOWN ARROW. Move to previous option with SHIFT+TAB or UP ARROW. Press SPACE or ENTER to select the menu option. Open sub-menu of current option with SPACE or ENTER or RIGHT ARROW. Go back to parent menu item with ESC or LEFT ARROW. Close context menu with ESC.' // MISSING
},
{
name : 'Editor List Box', // MISSING
legend :
'Inside a list-box, move to next list item with TAB OR DOWN ARROW. Move to previous list item with SHIFT + TAB or UP ARROW. Press SPACE or ENTER to select the list option. Press ESC to close the list-box.' // MISSING
},
{
name : 'Editor Element Path Bar', // MISSING
legend :
'Press ${elementsPathFocus} to navigate to the elements path bar. Move to next element button with TAB or RIGHT ARROW. Move to previous button with SHIFT+TAB or LEFT ARROW. Press SPACE or ENTER to select the element in editor.' // MISSING
}
]
},
{
name : 'Commands', // MISSING
items :
[
{
name : ' Undo command', // MISSING
legend : 'Press ${undo}' // MISSING
},
{
name : ' Redo command', // MISSING
legend : 'Press ${redo}' // MISSING
},
{
name : ' Bold command', // MISSING
legend : 'Press ${bold}' // MISSING
},
{
name : ' Italic command', // MISSING
legend : 'Press ${italic}' // MISSING
},
{
name : ' Underline command', // MISSING
legend : 'Press ${underline}' // MISSING
},
{
name : ' Link command', // MISSING
legend : 'Press ${link}' // MISSING
},
{
name : ' Toolbar Collapse command', // MISSING
legend : 'Press ${toolbarCollapse}' // MISSING
},
{
name : ' Accessibility Help', // MISSING
legend : 'Press ${a11yHelp}' // MISSING
}
]
}
]
}
});
| JavaScript |
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'a11yhelp', 'he',
{
accessibilityHelp :
{
title : 'הוראות נגישות',
contents : 'הוראות נגישות. לסגירה לחץ אסקייפ (ESC).',
legend :
[
{
name : 'כללי',
items :
[
{
name : 'סרגל הכלים',
legend:
'לחץ על ${toolbarFocus} כדי לנווט לסרגל הכלים. עבור לכפתור הבא עם מקש הטאב (TAB) או חץ שמאלי. עבור לכפתור הקודם עם מקש השיפט (SHIFT) + טאב (TAB) או חץ ימני. לחץ רווח או אנטר (ENTER) כדי להפעיל את הכפתור הנבחר.'
},
{
name : 'דיאלוגים (חלונות תשאול)',
legend :
'בתוך דיאלוג, לחץ טאב (TAB) כדי לנווט לשדה הבא, לחץ שיפט (SHIFT) + טאב (TAB) כדי לנווט לשדה הקודם, לחץ אנטר (ENTER) כדי לשלוח את הדיאלוג, לחץ אסקייפ (ESC) כדי לבטל. בתוך דיאלוגים בעלי מספר טאבים (לשוניות), לחץ אלט (ALT) + F10 כדי לנווט לשורת הטאבים. נווט לטאב הבא עם טאב (TAB) או חץ שמאלי. עבור לטאב הקודם עם שיפט (SHIFT) + טאב (TAB) או חץ שמאלי. לחץ רווח או אנטר (ENTER) כדי להיכנס לטאב.'
},
{
name : 'תפריט ההקשר (Context Menu)',
legend :
'לחץ ${contextMenu} או APPLICATION KEYכדי לפתוח את תפריט ההקשר. עבור לאפשרות הבאה עם טאב (TAB) או חץ למטה. עבור לאפשרות הקודמת עם שיפט (SHIFT) + טאב (TAB) או חץ למעלה. לחץ רווח או אנטר (ENTER) כדי לבחור את האפשרות. פתח את תת התפריט (Sub-menu) של האפשרות הנוכחית עם רווח או אנטר (ENTER) או חץ שמאלי. חזור לתפריט האב עם אסקייפ (ESC) או חץ שמאלי. סגור את תפריט ההקשר עם אסקייפ (ESC).'
},
{
name : 'תפריטים צפים (List boxes)',
legend :
'בתוך תפריט צף, עבור לפריט הבא עם טאב (TAB) או חץ למטה. עבור לתפריט הקודם עם שיפט (SHIFT) + טאב (TAB) or חץ עליון. Press SPACE or ENTER to select the list option. Press ESC to close the list-box.'
},
{
name : 'עץ אלמנטים (Elements Path)',
legend :
'לחץ ${elementsPathFocus} כדי לנווט לעץ האלמנטים. עבור לפריט הבא עם טאב (TAB) או חץ ימני. עבור לפריט הקודם עם שיפט (SHIFT) + טאב (TAB) או חץ שמאלי. לחץ רווח או אנטר (ENTER) כדי לבחור את האלמנט בעורך.'
}
]
},
{
name : 'פקודות',
items :
[
{
name : ' ביטול צעד אחרון',
legend : 'לחץ ${undo}'
},
{
name : ' חזרה על צעד אחרון',
legend : 'לחץ ${redo}'
},
{
name : ' הדגשה',
legend : 'לחץ ${bold}'
},
{
name : ' הטייה',
legend : 'לחץ ${italic}'
},
{
name : ' הוספת קו תחתון',
legend : 'לחץ ${underline}'
},
{
name : ' הוספת לינק',
legend : 'לחץ ${link}'
},
{
name : ' כיווץ סרגל הכלים',
legend : 'לחץ ${toolbarCollapse}'
},
{
name : ' הוראות נגישות',
legend : 'לחץ ${a11yHelp}'
}
]
}
]
}
});
| JavaScript |
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'a11yhelp', 'cs',
{
accessibilityHelp :
{
title : 'Instrukce pro přístupnost',
contents : 'Obsah nápovědy. Pro uzavření tohoto dialogu stiskněte klávesu ESC.',
legend :
[
{
name : 'Obecné',
items :
[
{
name : 'Panel nástrojů editoru',
legend:
'Stiskněte${toolbarFocus} k procházení panelu nástrojů. Přejděte na další a předchozí skupiny pomocí TAB a SHIFT-TAB. Přechod na další a předchozí tlačítko panelu nástrojů je pomocí ŠIPKA VPRAVO nebo ŠIPKA VLEVO. Stisknutím mezerníku nebo klávesy ENTER tlačítko aktivujete.'
},
{
name : 'Dialogové okno editoru',
legend :
'Uvnitř dialogového okna stiskněte TAB pro přesunutí na další pole, stiskněte SHIFT + TAB pro přesun na předchozí pole, stiskněte ENTER pro odeslání dialogu, stiskněte ESC pro jeho zrušení. Pro dialogová okna, která mají mnoho karet stiskněte ALT + F10 pr oprocházení seznamu karet. Pak se přesuňte na další kartu pomocí TAB nebo ŠIPKA VPRAVO. Pro přesun na předchozí stiskněte SHIFT + TAB nebo ŠIPKA VLEVO. Stiskněte MEZERNÍK nebo ENTER pro vybrání stránky karet.'
},
{
name : 'Kontextové menu editoru',
legend :
'Stiskněte ${contextMenu} nebo klávesu APPLICATION k otevření kontextového menu. Pak se přesuňte na další možnost menu pomocí TAB nebo ŠIPKY DOLŮ. Přesuňte se na předchozí možnost pomocí SHIFT+TAB nebo ŠIPKY NAHORU. Stiskněte MEZERNÍK nebo ENTER pro zvolení možnosti menu. Podmenu současné možnosti otevřete pomocí MEZERNÍKU nebo ENTER či ŠIPKY DOLEVA. Kontextové menu uzavřete stiskem ESC.'
},
{
name : 'Rámeček seznamu editoru',
legend :
'Uvnitř rámečku seznamu se přesunete na další položku menu pomocí TAB nebo ŠIPKA DOLŮ. Na předchozí položku se přesunete SHIFT + TAB nebo ŠIPKA NAHORU. Stiskněte MEZERNÍK nebo ENTER pro zvolení možnosti seznamu. Stiskněte ESC pro uzavření seznamu.'
},
{
name : 'Lišta cesty prvku v editoru',
legend :
'Stiskněte ${elementsPathFocus} pro procházení lišty cesty prvku. Na další tlačítko prvku se přesunete pomocí TAB nebo ŠIPKA VPRAVO. Na předchozí položku se přesunete pomocí SHIFT + TAB nebo ŠIPKA VLEVO. Stiskněte MEZERNÍK nebo ENTER pro vybrání prvku v editoru.'
}
]
},
{
name : 'Příkazy',
items :
[
{
name : ' Příkaz Zpět',
legend : 'Stiskněte ${undo}'
},
{
name : ' Příkaz Znovu',
legend : 'Stiskněte ${redo}'
},
{
name : ' Příkaz Tučné',
legend : 'Stiskněte ${bold}'
},
{
name : ' Příkaz Kurzíva',
legend : 'Stiskněte ${italic}'
},
{
name : ' Příkaz Podtržení',
legend : 'Stiskněte ${underline}'
},
{
name : ' Příkaz Odkaz',
legend : 'Stiskněte ${link}'
},
{
name : ' Příkaz Skrýt panel nástrojů',
legend : 'Stiskněte ${toolbarCollapse}'
},
{
name : ' Nápověda přístupnosti',
legend : 'Stiskněte ${a11yHelp}'
}
]
}
]
}
});
| JavaScript |
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'a11yhelp', 'ku',
{
accessibilityHelp :
{
title : 'ڕێنمای لەبەردەستدابوون',
contents : 'پێکهاتەی یارمەتی. کلیك ESC بۆ داخستنی ئەم دیالۆگه.',
legend :
[
{
name : 'گشتی',
items :
[
{
name : 'تووڵامرازی دهستكاریكهر',
legend:
'کلیك ${toolbarFocus} بۆ ڕابەری تووڵامراز. بۆ گواستنەوەی پێشوو داهاتووی گرووپی تووڵامرازی داگرتنی کلیلی TAB لهگهڵ SHIFT-TAB. بۆ گواستنەوەی پێشوو داهاتووی دووگمەی تووڵامرازی لەڕێی کلیلی تیری دەستی ڕاست یان کلیلی تیری دەستی چەپ. کلیکی کلیلی SPACE یان ENTER بۆ چالاککردنی دووگمەی تووڵامراز.'
},
{
name : 'دیالۆگی دهستكاریكهر',
legend :
'لەهەمانکاتدا کەتۆ لەدیالۆگی, کلیکی کلیلی TAB بۆ ڕابەری خانەی دیالۆگێکی تر, داگرتنی کلیلی SHIFT + TAB بۆ گواستنەوەی بۆ خانەی پێشووتر, کلیكی کلیلی ENTER بۆ ڕازیکردنی دیالۆگەکە, کلیكی کلیلی ESC بۆ هەڵوەشاندنەوەی دیالۆگەکە. بۆ دیالۆگی لەبازدەری (تابی) زیاتر, کلیكی کلیلی ALT + F10 بۆ ڕابهری لیستی بازدهرهکان. بۆ چوونه بازدهری تابی داهاتوو کلیكی کلیلی TAB یان کلیلی تیری دهستی ڕاست. بۆچوونه بازدهری تابی پێشوو داگرتنی کلیلی SHIFT + TAB یان کلیلی تیری دهستی چهپ. کلیی کلیلی SPACE یان ENTER بۆ ههڵبژاردنی بازدهر (تاب).'
},
{
name : 'پێڕستی سهرنووسهر',
legend :
'کلیك ${contextMenu} یان دوگمهی لیسته(Menu) بۆ کردنهوهی لیستهی دهق. بۆ چوونه ههڵبژاردهیهکی تر له لیسته کلیکی کلیلی TAB یان کلیلی تیری ڕوو لهخوارهوه بۆ چوون بۆ ههڵبژاردهی پێشوو کلیکی کلیلی SHIFT+TAB یان کلیلی تیری ڕوو له سهرهوه. داگرتنی کلیلی SPACE یان ENTER بۆ ههڵبژاردنی ههڵبژاردهی لیسته. بۆ کردنهوهی لقی ژێر لیسته لهههڵبژاردهی لیسته کلیکی کلیلی SPACE یان ENTER یان کلیلی تیری دهستی ڕاست. بۆ گهڕانهوه بۆ سهرهوهی لیسته کلیکی کلیلی ESC یان کلیلی تیری دهستی چهپ. بۆ داخستنی لیسته کلیكی کلیلی ESC بکه.'
},
{
name : 'لیستی سنووقی سهرنووسهر',
legend :
'لهناو سنوقی لیست, چۆن بۆ ههڵنبژاردهی لیستێکی تر کلیکی کلیلی TAB یان کلیلی تیری ڕوو لهخوار. چوون بۆ ههڵبژاردهی لیستی پێشوو کلیکی کلیلی SHIFT + TAB یان کلیلی تیری ڕوو لهسهرهوه. کلیکی کلیلی SPACE یان ENTER بۆ دیاریکردنی ههڵبژاردهی لیست. کلیکی کلیلی ESC بۆ داخستنی سنوقی لیست.'
},
{
name : 'تووڵامرازی توخم',
legend :
'کلیك ${elementsPathFocus} بۆ ڕابهری تووڵامرازی توخمهکان. چوون بۆ دوگمهی توخمێکی تر کلیکی کلیلی TAB یان کلیلی تیری دهستی ڕاست. چوون بۆ دوگمهی توخمی پێشوو کلیلی SHIFT+TAB یان کلیکی کلیلی تیری دهستی چهپ. داگرتنی کلیلی SPACE یان ENTER بۆ دیاریکردنی توخمهکه لهسهرنووسه.'
}
]
},
{
name : 'فهرمانهکان',
items :
[
{
name : 'فهرمانی پووچکردنهوه',
legend : 'کلیك ${undo}'
},
{
name : 'فهرمانی ههڵگهڕانهوه',
legend : 'کلیك ${redo}'
},
{
name : 'فهرمانی دهقی قهڵهو',
legend : 'کلیك ${bold}'
},
{
name : 'فهرمانی دهقی لار',
legend : 'کلیك ${italic}'
},
{
name : 'فهرمانی ژێرهێڵ',
legend : 'کلیك ${underline}'
},
{
name : 'فهرمانی بهستهر',
legend : 'کلیك ${link}'
},
{
name : 'شاردهنهوهی تووڵامراز',
legend : 'کلیك ${toolbarCollapse}'
},
{
name : 'دهستپێگهیشتنی یارمهتی',
legend : 'کلیك ${a11yHelp}'
}
]
}
]
}
});
| JavaScript |
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'a11yhelp', 'pt-br',
{
accessibilityHelp :
{
title : 'Instruções de Acessibilidade',
contents : 'Conteúdo da Ajuda. Para fechar este diálogo pressione ESC.',
legend :
[
{
name : 'Geral',
items :
[
{
name : 'Barra de Ferramentas do Editor',
legend:
'Pressione ${toolbarFocus} para navegar para a barra de ferramentas. Mova para o anterior ou próximo grupo de ferramentas com TAB e SHIFT-TAB. Mova para o anterior ou próximo botão com SETA PARA DIREITA or SETA PARA ESQUERDA. Pressione ESPAÇO ou ENTER para ativar o botão da barra de ferramentas.'
},
{
name : 'Diálogo do Editor',
legend :
'Dentro de um diálogo, pressione TAB para navegar para o próximo campo, pressione SHIFT + TAB para mover para o campo anterior, pressione ENTER para enviar o diálogo, pressione ESC para cancelar o diálogo. Para diálogos que tem múltiplas abas, pressione ALT + F10 para navegar para a lista de abas, então mova para a próxima aba com SHIFT + TAB ou SETA PARA ESQUERDA. Pressione ESPAÇO ou ENTER para selecionar a aba.'
},
{
name : 'Menu de Contexto do Editor',
legend :
'Pressione ${contextMenu} ou TECLA DE MENU para abrir o menu de contexto, então mova para a próxima opção com TAB ou SETA PARA BAIXO. Mova para a anterior com SHIFT+TAB ou SETA PARA CIMA. Pressione ESPAÇO ou ENTER para selecionar a opção do menu. Abra o submenu da opção atual com ESPAÇO ou ENTER ou SETA PARA DIREITA. Volte para o menu pai com ESC ou SETA PARA ESQUERDA. Feche o menu de contexto com ESC.'
},
{
name : 'Caixa de Lista do Editor',
legend :
'Dentro de uma caixa de lista, mova para o próximo item com TAB ou SETA PARA BAIXO. Mova para o item anterior com SHIFT + TAB ou SETA PARA CIMA. Pressione ESPAÇO ou ENTER para selecionar uma opção na lista. Pressione ESC para fechar a caixa de lista.'
},
{
name : 'Barra de Caminho do Elementos do Editor',
legend :
'Pressione ${elementsPathFocus} para a barra de caminho dos elementos. Mova para o próximo botão de elemento com TAB ou SETA PARA DIREITA. Mova para o botão anterior com SHIFT+TAB ou SETA PARA ESQUERDA. Pressione ESPAÇO ou ENTER para selecionar o elemento no editor.'
}
]
},
{
name : 'Comandos',
items :
[
{
name : ' Comando Desfazer',
legend : 'Pressione ${undo}'
},
{
name : ' Comando Refazer',
legend : 'Pressione ${redo}'
},
{
name : ' Comando Negrito',
legend : 'Pressione ${bold}'
},
{
name : ' Comando Itálico',
legend : 'Pressione ${italic}'
},
{
name : ' Comando Sublinhado',
legend : 'Pressione ${underline}'
},
{
name : ' Comando Link',
legend : 'Pressione ${link}'
},
{
name : ' Comando Fechar Barra de Ferramentas',
legend : 'Pressione ${toolbarCollapse}'
},
{
name : ' Ajuda de Acessibilidade',
legend : 'Pressione ${a11yHelp}'
}
]
}
]
}
});
| JavaScript |
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'a11yhelp', 'gu',
{
accessibilityHelp :
{
title : 'એક્ક્ષેબિલિટી ની વિગતો',
contents : 'હેલ્પ. આ બંધ કરવા ESC દબાવો.',
legend :
[
{
name : 'જનરલ',
items :
[
{
name : 'એડિટર ટૂલબાર',
legend:
'Press ${toolbarFocus} to navigate to the toolbar. Move to the next and previous toolbar group with TAB and SHIFT-TAB. Move to the next and previous toolbar button with RIGHT ARROW or LEFT ARROW. Press SPACE or ENTER to activate the toolbar button.' // MISSING
},
{
name : 'એડિટર ડાયલોગ',
legend :
'Inside a dialog, press TAB to navigate to next dialog field, press SHIFT + TAB to move to previous field, press ENTER to submit dialog, press ESC to cancel dialog. For dialogs that have multiple tab pages, press ALT + F10 to navigate to tab-list. Then move to next tab with TAB OR RIGTH ARROW. Move to previous tab with SHIFT + TAB or LEFT ARROW. Press SPACE or ENTER to select the tab page.' // MISSING
},
{
name : 'Editor Context Menu', // MISSING
legend :
'Press ${contextMenu} or APPLICATION KEY to open context-menu. Then move to next menu option with TAB or DOWN ARROW. Move to previous option with SHIFT+TAB or UP ARROW. Press SPACE or ENTER to select the menu option. Open sub-menu of current option with SPACE or ENTER or RIGHT ARROW. Go back to parent menu item with ESC or LEFT ARROW. Close context menu with ESC.' // MISSING
},
{
name : 'Editor List Box', // MISSING
legend :
'Inside a list-box, move to next list item with TAB OR DOWN ARROW. Move to previous list item with SHIFT + TAB or UP ARROW. Press SPACE or ENTER to select the list option. Press ESC to close the list-box.' // MISSING
},
{
name : 'Editor Element Path Bar', // MISSING
legend :
'Press ${elementsPathFocus} to navigate to the elements path bar. Move to next element button with TAB or RIGHT ARROW. Move to previous button with SHIFT+TAB or LEFT ARROW. Press SPACE or ENTER to select the element in editor.' // MISSING
}
]
},
{
name : 'કમાંડસ',
items :
[
{
name : 'અન્ડું કમાંડ',
legend : '$ દબાવો {undo}'
},
{
name : 'ફરી કરો કમાંડ',
legend : '$ દબાવો {redo}'
},
{
name : 'બોલ્દનો કમાંડ',
legend : '$ દબાવો {bold}'
},
{
name : ' Italic command', // MISSING
legend : 'Press ${italic}' // MISSING
},
{
name : ' Underline command', // MISSING
legend : 'Press ${underline}' // MISSING
},
{
name : ' Link command', // MISSING
legend : 'Press ${link}' // MISSING
},
{
name : ' Toolbar Collapse command', // MISSING
legend : 'Press ${toolbarCollapse}' // MISSING
},
{
name : ' Accessibility Help', // MISSING
legend : 'Press ${a11yHelp}' // MISSING
}
]
}
]
}
});
| JavaScript |
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.dialog.add( 'a11yHelp', function( editor )
{
var lang = editor.lang.accessibilityHelp,
id = CKEDITOR.tools.getNextId();
// CharCode <-> KeyChar.
var keyMap =
{
8 : "BACKSPACE",
9 : "TAB" ,
13 : "ENTER" ,
16 : "SHIFT" ,
17 : "CTRL" ,
18 : "ALT" ,
19 : "PAUSE" ,
20 : "CAPSLOCK" ,
27 : "ESCAPE" ,
33 : "PAGE UP" ,
34 : "PAGE DOWN" ,
35 : "END" ,
36 : "HOME" ,
37 : "LEFT ARROW" ,
38 : "UP ARROW" ,
39 : "RIGHT ARROW" ,
40 : "DOWN ARROW" ,
45 : "INSERT" ,
46 : "DELETE" ,
91 : "LEFT WINDOW KEY" ,
92 : "RIGHT WINDOW KEY" ,
93 : "SELECT KEY" ,
96 : "NUMPAD 0" ,
97 : "NUMPAD 1" ,
98 : "NUMPAD 2" ,
99 : "NUMPAD 3" ,
100 : "NUMPAD 4" ,
101 : "NUMPAD 5" ,
102 : "NUMPAD 6" ,
103 : "NUMPAD 7" ,
104 : "NUMPAD 8" ,
105 : "NUMPAD 9" ,
106 : "MULTIPLY" ,
107 : "ADD" ,
109 : "SUBTRACT" ,
110 : "DECIMAL POINT" ,
111 : "DIVIDE" ,
112 : "F1" ,
113 : "F2" ,
114 : "F3" ,
115 : "F4" ,
116 : "F5" ,
117 : "F6" ,
118 : "F7" ,
119 : "F8" ,
120 : "F9" ,
121 : "F10" ,
122 : "F11" ,
123 : "F12" ,
144 : "NUM LOCK" ,
145 : "SCROLL LOCK" ,
186 : "SEMI-COLON" ,
187 : "EQUAL SIGN" ,
188 : "COMMA" ,
189 : "DASH" ,
190 : "PERIOD" ,
191 : "FORWARD SLASH" ,
192 : "GRAVE ACCENT" ,
219 : "OPEN BRACKET" ,
220 : "BACK SLASH" ,
221 : "CLOSE BRAKET" ,
222 : "SINGLE QUOTE"
};
// Modifier keys override.
keyMap[ CKEDITOR.ALT ] = 'ALT';
keyMap[ CKEDITOR.SHIFT ] = 'SHIFT';
keyMap[ CKEDITOR.CTRL ] = 'CTRL';
// Sort in desc.
var modifiers = [ CKEDITOR.ALT, CKEDITOR.SHIFT, CKEDITOR.CTRL ];
function representKeyStroke( keystroke )
{
var quotient,
modifier,
presentation = [];
for ( var i = 0; i < modifiers.length; i++ )
{
modifier = modifiers[ i ];
quotient = keystroke / modifiers[ i ];
if ( quotient > 1 && quotient <= 2 )
{
keystroke -= modifier;
presentation.push( keyMap[ modifier ] );
}
}
presentation.push( keyMap[ keystroke ]
|| String.fromCharCode( keystroke ) );
return presentation.join( '+' );
}
var variablesPattern = /\$\{(.*?)\}/g;
function replaceVariables( match, name )
{
var keystrokes = editor.config.keystrokes,
definition,
length = keystrokes.length;
for ( var i = 0; i < length; i++ )
{
definition = keystrokes[ i ];
if ( definition[ 1 ] == name )
break;
}
return representKeyStroke( definition[ 0 ] );
}
// Create the help list directly from lang file entries.
function buildHelpContents()
{
var pageTpl = '<div class="cke_accessibility_legend" role="document" aria-labelledby="' + id + '_arialbl" tabIndex="-1">%1</div>' +
'<span id="' + id + '_arialbl" class="cke_voice_label">' + lang.contents + ' </span>',
sectionTpl = '<h1>%1</h1><dl>%2</dl>',
itemTpl = '<dt>%1</dt><dd>%2</dd>';
var pageHtml = [],
sections = lang.legend,
sectionLength = sections.length;
for ( var i = 0; i < sectionLength; i++ )
{
var section = sections[ i ],
sectionHtml = [],
items = section.items,
itemsLength = items.length;
for ( var j = 0; j < itemsLength; j++ )
{
var item = items[ j ],
itemHtml;
itemHtml = itemTpl.replace( '%1', item.name ).
replace( '%2', item.legend.replace( variablesPattern, replaceVariables ) );
sectionHtml.push( itemHtml );
}
pageHtml.push( sectionTpl.replace( '%1', section.name ).replace( '%2', sectionHtml.join( '' ) ) );
}
return pageTpl.replace( '%1', pageHtml.join( '' ) );
}
return {
title : lang.title,
minWidth : 600,
minHeight : 400,
contents : [
{
id : 'info',
label : editor.lang.common.generalTab,
expand : true,
elements :
[
{
type : 'html',
id : 'legends',
style : 'white-space:normal;',
focus : function() {},
html : buildHelpContents() +
'<style type="text/css">' +
'.cke_accessibility_legend' +
'{' +
'width:600px;' +
'height:400px;' +
'padding-right:5px;' +
'overflow-y:auto;' +
'overflow-x:hidden;' +
'}' +
// Some adjustments are to be done for IE6 and Quirks to work "properly" (#5757)
'.cke_browser_quirks .cke_accessibility_legend,' +
'.cke_browser_ie6 .cke_accessibility_legend' +
'{' +
'height:390px' +
'}' +
// Override non-wrapping white-space rule in reset css.
'.cke_accessibility_legend *' +
'{' +
'white-space:normal;' +
'}' +
'.cke_accessibility_legend h1' +
'{' +
'font-size: 20px;' +
'border-bottom: 1px solid #AAA;' +
'margin: 5px 0px 15px;' +
'}' +
'.cke_accessibility_legend dl' +
'{' +
'margin-left: 5px;' +
'}' +
'.cke_accessibility_legend dt' +
'{' +
'font-size: 13px;' +
'font-weight: bold;' +
'}' +
'.cke_accessibility_legend dd' +
'{' +
'margin:10px' +
'}' +
'</style>'
}
]
}
],
buttons : [ CKEDITOR.dialog.cancelButton ]
};
});
| JavaScript |
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.add( 'richcombo',
{
requires : [ 'floatpanel', 'listblock', 'button' ],
beforeInit : function( editor )
{
editor.ui.addHandler( CKEDITOR.UI_RICHCOMBO, CKEDITOR.ui.richCombo.handler );
}
});
/**
* Button UI element.
* @constant
* @example
*/
CKEDITOR.UI_RICHCOMBO = 'richcombo';
CKEDITOR.ui.richCombo = CKEDITOR.tools.createClass(
{
$ : function( definition )
{
// Copy all definition properties to this object.
CKEDITOR.tools.extend( this, definition,
// Set defaults.
{
title : definition.label,
modes : { wysiwyg : 1 }
});
// We don't want the panel definition in this object.
var panelDefinition = this.panel || {};
delete this.panel;
this.id = CKEDITOR.tools.getNextNumber();
this.document = ( panelDefinition
&& panelDefinition.parent
&& panelDefinition.parent.getDocument() )
|| CKEDITOR.document;
panelDefinition.className = ( panelDefinition.className || '' ) + ' cke_rcombopanel';
panelDefinition.block =
{
multiSelect : panelDefinition.multiSelect,
attributes : panelDefinition.attributes
};
this._ =
{
panelDefinition : panelDefinition,
items : {},
state : CKEDITOR.TRISTATE_OFF
};
},
statics :
{
handler :
{
create : function( definition )
{
return new CKEDITOR.ui.richCombo( definition );
}
}
},
proto :
{
renderHtml : function( editor )
{
var output = [];
this.render( editor, output );
return output.join( '' );
},
/**
* Renders the combo.
* @param {CKEDITOR.editor} editor The editor instance which this button is
* to be used by.
* @param {Array} output The output array to which append the HTML relative
* to this button.
* @example
*/
render : function( editor, output )
{
var env = CKEDITOR.env;
var id = 'cke_' + this.id;
var clickFn = CKEDITOR.tools.addFunction( function( $element )
{
var _ = this._;
if ( _.state == CKEDITOR.TRISTATE_DISABLED )
return;
this.createPanel( editor );
if ( _.on )
{
_.panel.hide();
return;
}
this.commit();
var value = this.getValue();
if ( value )
_.list.mark( value );
else
_.list.unmarkAll();
_.panel.showBlock( this.id, new CKEDITOR.dom.element( $element ), 4 );
},
this );
var instance = {
id : id,
combo : this,
focus : function()
{
var element = CKEDITOR.document.getById( id ).getChild( 1 );
element.focus();
},
clickFn : clickFn
};
function updateState()
{
var state = this.modes[ editor.mode ] ? CKEDITOR.TRISTATE_OFF : CKEDITOR.TRISTATE_DISABLED;
this.setState( editor.readOnly && !this.readOnly ? CKEDITOR.TRISTATE_DISABLED : state );
this.setValue( '' );
}
editor.on( 'mode', updateState, this );
// If this combo is sensitive to readOnly state, update it accordingly.
!this.readOnly && editor.on( 'readOnly', updateState, this);
var keyDownFn = CKEDITOR.tools.addFunction( function( ev, element )
{
ev = new CKEDITOR.dom.event( ev );
var keystroke = ev.getKeystroke();
switch ( keystroke )
{
case 13 : // ENTER
case 32 : // SPACE
case 40 : // ARROW-DOWN
// Show panel
CKEDITOR.tools.callFunction( clickFn, element );
break;
default :
// Delegate the default behavior to toolbar button key handling.
instance.onkey( instance, keystroke );
}
// Avoid subsequent focus grab on editor document.
ev.preventDefault();
});
var focusFn = CKEDITOR.tools.addFunction( function() { instance.onfocus && instance.onfocus(); } );
// For clean up
instance.keyDownFn = keyDownFn;
output.push(
'<span class="cke_rcombo" role="presentation">',
'<span id=', id );
if ( this.className )
output.push( ' class="', this.className, ' cke_off"');
output.push(
' role="presentation">',
'<span id="' + id+ '_label" class=cke_label>', this.label, '</span>',
'<a hidefocus=true title="', this.title, '" tabindex="-1"',
env.gecko && env.version >= 10900 && !env.hc ? '' : ' href="javascript:void(\'' + this.label + '\')"',
' role="button" aria-labelledby="', id , '_label" aria-describedby="', id, '_text" aria-haspopup="true"' );
// Some browsers don't cancel key events in the keydown but in the
// keypress.
// TODO: Check if really needed for Gecko+Mac.
if ( CKEDITOR.env.opera || ( CKEDITOR.env.gecko && CKEDITOR.env.mac ) )
{
output.push(
' onkeypress="return false;"' );
}
// With Firefox, we need to force it to redraw, otherwise it
// will remain in the focus state.
if ( CKEDITOR.env.gecko )
{
output.push(
' onblur="this.style.cssText = this.style.cssText;"' );
}
output.push(
' onkeydown="CKEDITOR.tools.callFunction( ', keyDownFn, ', event, this );"' +
' onfocus="return CKEDITOR.tools.callFunction(', focusFn, ', event);" ' +
( CKEDITOR.env.ie ? 'onclick="return false;" onmouseup' : 'onclick' ) + // #188
'="CKEDITOR.tools.callFunction(', clickFn, ', this); return false;">' +
'<span>' +
'<span id="' + id + '_text" class="cke_text cke_inline_label">' + this.label + '</span>' +
'</span>' +
'<span class=cke_openbutton><span class=cke_icon>' + ( CKEDITOR.env.hc ? '▼' : CKEDITOR.env.air ? ' ' : '' ) + '</span></span>' + // BLACK DOWN-POINTING TRIANGLE
'</a>' +
'</span>' +
'</span>' );
if ( this.onRender )
this.onRender();
return instance;
},
createPanel : function( editor )
{
if ( this._.panel )
return;
var panelDefinition = this._.panelDefinition,
panelBlockDefinition = this._.panelDefinition.block,
panelParentElement = panelDefinition.parent || CKEDITOR.document.getBody(),
panel = new CKEDITOR.ui.floatPanel( editor, panelParentElement, panelDefinition ),
list = panel.addListBlock( this.id, panelBlockDefinition ),
me = this;
panel.onShow = function()
{
if ( me.className )
this.element.getFirst().addClass( me.className + '_panel' );
me.setState( CKEDITOR.TRISTATE_ON );
list.focus( !me.multiSelect && me.getValue() );
me._.on = 1;
if ( me.onOpen )
me.onOpen();
};
panel.onHide = function( preventOnClose )
{
if ( me.className )
this.element.getFirst().removeClass( me.className + '_panel' );
me.setState( me.modes && me.modes[ editor.mode ] ? CKEDITOR.TRISTATE_OFF : CKEDITOR.TRISTATE_DISABLED );
me._.on = 0;
if ( !preventOnClose && me.onClose )
me.onClose();
};
panel.onEscape = function()
{
panel.hide();
};
list.onClick = function( value, marked )
{
// Move the focus to the main windows, otherwise it will stay
// into the floating panel, even if invisible, and Safari and
// Opera will go a bit crazy.
me.document.getWindow().focus();
if ( me.onClick )
me.onClick.call( me, value, marked );
if ( marked )
me.setValue( value, me._.items[ value ] );
else
me.setValue( '' );
panel.hide( false );
};
this._.panel = panel;
this._.list = list;
panel.getBlock( this.id ).onHide = function()
{
me._.on = 0;
me.setState( CKEDITOR.TRISTATE_OFF );
};
if ( this.init )
this.init();
},
setValue : function( value, text )
{
this._.value = value;
var textElement = this.document.getById( 'cke_' + this.id + '_text' );
if ( textElement )
{
if ( !( value || text ) )
{
text = this.label;
textElement.addClass( 'cke_inline_label' );
}
else
textElement.removeClass( 'cke_inline_label' );
textElement.setHtml( typeof text != 'undefined' ? text : value );
}
},
getValue : function()
{
return this._.value || '';
},
unmarkAll : function()
{
this._.list.unmarkAll();
},
mark : function( value )
{
this._.list.mark( value );
},
hideItem : function( value )
{
this._.list.hideItem( value );
},
hideGroup : function( groupTitle )
{
this._.list.hideGroup( groupTitle );
},
showAll : function()
{
this._.list.showAll();
},
add : function( value, html, text )
{
this._.items[ value ] = text || value;
this._.list.add( value, html, text );
},
startGroup : function( title )
{
this._.list.startGroup( title );
},
commit : function()
{
if ( !this._.committed )
{
this._.list.commit();
this._.committed = 1;
CKEDITOR.ui.fire( 'ready', this );
}
this._.committed = 1;
},
setState : function( state )
{
if ( this._.state == state )
return;
this.document.getById( 'cke_' + this.id ).setState( state );
this._.state = state;
}
}
});
CKEDITOR.ui.prototype.addRichCombo = function( name, definition )
{
this.add( name, CKEDITOR.UI_RICHCOMBO, definition );
};
| JavaScript |
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
/**
* @file Print Plugin
*/
CKEDITOR.plugins.add( 'print',
{
init : function( editor )
{
var pluginName = 'print';
// Register the command.
var command = editor.addCommand( pluginName, CKEDITOR.plugins.print );
// Register the toolbar button.
editor.ui.addButton( 'Print',
{
label : editor.lang.print,
command : pluginName
});
}
} );
CKEDITOR.plugins.print =
{
exec : function( editor )
{
if ( CKEDITOR.env.opera )
return;
else if ( CKEDITOR.env.gecko )
editor.window.$.print();
else
editor.document.$.execCommand( "Print" );
},
canUndo : false,
readOnly : 1,
modes : { wysiwyg : !( CKEDITOR.env.opera ) } // It is imposible to print the inner document in Opera.
};
| JavaScript |
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.colordialog =
{
requires : [ 'dialog' ],
init : function( editor )
{
editor.addCommand( 'colordialog', new CKEDITOR.dialogCommand( 'colordialog' ) );
CKEDITOR.dialog.add( 'colordialog', this.path + 'dialogs/colordialog.js' );
}
};
CKEDITOR.plugins.add( 'colordialog', CKEDITOR.plugins.colordialog );
| JavaScript |
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.dialog.add( 'colordialog', function( editor )
{
// Define some shorthands.
var $el = CKEDITOR.dom.element,
$doc = CKEDITOR.document,
lang = editor.lang.colordialog;
// Reference the dialog.
var dialog;
var spacer =
{
type : 'html',
html : ' '
};
var selected;
function clearSelected()
{
$doc.getById( selHiColorId ).removeStyle( 'background-color' );
dialog.getContentElement( 'picker', 'selectedColor' ).setValue( '' );
selected && selected.removeAttribute( 'aria-selected' );
selected = null;
}
function updateSelected( evt )
{
var target = evt.data.getTarget(),
color;
if ( target.getName() == 'td' &&
( color = target.getChild( 0 ).getHtml() ) )
{
selected = target;
selected.setAttribute( 'aria-selected', true );
dialog.getContentElement( 'picker', 'selectedColor' ).setValue( color );
}
}
// Basing black-white decision off of luma scheme using the Rec. 709 version
function whiteOrBlack( color )
{
color = color.replace( /^#/, '' );
for ( var i = 0, rgb = []; i <= 2; i++ )
rgb[i] = parseInt( color.substr( i * 2, 2 ), 16 );
var luma = (0.2126 * rgb[0]) + (0.7152 * rgb[1]) + (0.0722 * rgb[2]);
return '#' + ( luma >= 165 ? '000' : 'fff' );
}
// Distinguish focused and hover states.
var focused, hovered;
// Apply highlight style.
function updateHighlight( event )
{
// Convert to event.
!event.name && ( event = new CKEDITOR.event( event ) );
var isFocus = !(/mouse/).test( event.name ),
target = event.data.getTarget(),
color;
if ( target.getName() == 'td' && ( color = target.getChild( 0 ).getHtml() ) )
{
removeHighlight( event );
isFocus ? focused = target : hovered = target;
// Apply outline style to show focus.
if ( isFocus )
{
target.setStyle( 'border-color', whiteOrBlack( color ) );
target.setStyle( 'border-style', 'dotted' );
}
$doc.getById( hicolorId ).setStyle( 'background-color', color );
$doc.getById( hicolorTextId ).setHtml( color );
}
}
function clearHighlight()
{
var color = focused.getChild( 0 ).getHtml();
focused.setStyle( 'border-color', color );
focused.setStyle( 'border-style', 'solid' );
$doc.getById( hicolorId ).removeStyle( 'background-color' );
$doc.getById( hicolorTextId ).setHtml( ' ' );
focused = null;
}
// Remove previously focused style.
function removeHighlight( event )
{
var isFocus = !(/mouse/).test( event.name ),
target = isFocus && focused;
if ( target )
{
var color = target.getChild( 0 ).getHtml();
target.setStyle( 'border-color', color );
target.setStyle( 'border-style', 'solid' );
}
if ( ! ( focused || hovered ) )
{
$doc.getById( hicolorId ).removeStyle( 'background-color' );
$doc.getById( hicolorTextId ).setHtml( ' ' );
}
}
function onKeyStrokes( evt )
{
var domEvt = evt.data;
var element = domEvt.getTarget();
var relative, nodeToMove;
var keystroke = domEvt.getKeystroke(),
rtl = editor.lang.dir == 'rtl';
switch ( keystroke )
{
// UP-ARROW
case 38 :
// relative is TR
if ( ( relative = element.getParent().getPrevious() ) )
{
nodeToMove = relative.getChild( [ element.getIndex() ] );
nodeToMove.focus();
}
domEvt.preventDefault();
break;
// DOWN-ARROW
case 40 :
// relative is TR
if ( ( relative = element.getParent().getNext() ) )
{
nodeToMove = relative.getChild( [ element.getIndex() ] );
if ( nodeToMove && nodeToMove.type == 1 )
{
nodeToMove.focus();
}
}
domEvt.preventDefault();
break;
// SPACE
// ENTER
case 32 :
case 13 :
updateSelected( evt );
domEvt.preventDefault();
break;
// RIGHT-ARROW
case rtl ? 37 : 39 :
// relative is TD
if ( ( nodeToMove = element.getNext() ) )
{
if ( nodeToMove.type == 1 )
{
nodeToMove.focus();
domEvt.preventDefault( true );
}
}
// relative is TR
else if ( ( relative = element.getParent().getNext() ) )
{
nodeToMove = relative.getChild( [ 0 ] );
if ( nodeToMove && nodeToMove.type == 1 )
{
nodeToMove.focus();
domEvt.preventDefault( true );
}
}
break;
// LEFT-ARROW
case rtl ? 39 : 37 :
// relative is TD
if ( ( nodeToMove = element.getPrevious() ) )
{
nodeToMove.focus();
domEvt.preventDefault( true );
}
// relative is TR
else if ( ( relative = element.getParent().getPrevious() ) )
{
nodeToMove = relative.getLast();
nodeToMove.focus();
domEvt.preventDefault( true );
}
break;
default :
// Do not stop not handled events.
return;
}
}
function createColorTable()
{
table = CKEDITOR.dom.element.createFromHtml
(
'<table tabIndex="-1" aria-label="' + lang.options + '"' +
' role="grid" style="border-collapse:separate;" cellspacing="0">' +
'<caption class="cke_voice_label">' + lang.options + '</caption>' +
'<tbody role="presentation"></tbody></table>'
);
table.on( 'mouseover', updateHighlight );
table.on( 'mouseout', removeHighlight );
// Create the base colors array.
var aColors = [ '00', '33', '66', '99', 'cc', 'ff' ];
// This function combines two ranges of three values from the color array into a row.
function appendColorRow( rangeA, rangeB )
{
for ( var i = rangeA ; i < rangeA + 3 ; i++ )
{
var row = new $el( table.$.insertRow( -1 ) );
row.setAttribute( 'role', 'row' );
for ( var j = rangeB ; j < rangeB + 3 ; j++ )
{
for ( var n = 0 ; n < 6 ; n++ )
{
appendColorCell( row.$, '#' + aColors[j] + aColors[n] + aColors[i] );
}
}
}
}
// This function create a single color cell in the color table.
function appendColorCell( targetRow, color )
{
var cell = new $el( targetRow.insertCell( -1 ) );
cell.setAttribute( 'class', 'ColorCell' );
cell.setAttribute( 'tabIndex', -1 );
cell.setAttribute( 'role', 'gridcell' );
cell.on( 'keydown', onKeyStrokes );
cell.on( 'click', updateSelected );
cell.on( 'focus', updateHighlight );
cell.on( 'blur', removeHighlight );
cell.setStyle( 'background-color', color );
cell.setStyle( 'border', '1px solid ' + color );
cell.setStyle( 'width', '14px' );
cell.setStyle( 'height', '14px' );
var colorLabel = numbering( 'color_table_cell' );
cell.setAttribute( 'aria-labelledby',colorLabel );
cell.append( CKEDITOR.dom.element.createFromHtml( '<span id="' + colorLabel + '" class="cke_voice_label">' + color + '</span>', CKEDITOR.document ) );
}
appendColorRow( 0, 0 );
appendColorRow( 3, 0 );
appendColorRow( 0, 3 );
appendColorRow( 3, 3 );
// Create the last row.
var oRow = new $el( table.$.insertRow( -1 ) ) ;
oRow.setAttribute( 'role', 'row' );
// Create the gray scale colors cells.
for ( var n = 0 ; n < 6 ; n++ )
{
appendColorCell( oRow.$, '#' + aColors[n] + aColors[n] + aColors[n] ) ;
}
// Fill the row with black cells.
for ( var i = 0 ; i < 12 ; i++ )
{
appendColorCell( oRow.$, '#000000' ) ;
}
}
var numbering = function( id )
{
return CKEDITOR.tools.getNextId() + '_' + id;
},
hicolorId = numbering( 'hicolor' ),
hicolorTextId = numbering( 'hicolortext' ),
selHiColorId = numbering( 'selhicolor' ),
table;
createColorTable();
return {
title : lang.title,
minWidth : 360,
minHeight : 220,
onLoad : function()
{
// Update reference.
dialog = this;
},
onHide : function()
{
clearSelected();
clearHighlight();
},
contents : [
{
id : 'picker',
label : lang.title,
accessKey : 'I',
elements :
[
{
type : 'hbox',
padding : 0,
widths : [ '70%', '10%', '30%' ],
children :
[
{
type : 'html',
html : '<div></div>',
onLoad : function()
{
CKEDITOR.document.getById( this.domId ).append( table );
},
focus : function()
{
// Restore the previously focused cell,
// otherwise put the initial focus on the first table cell.
( focused || this.getElement().getElementsByTag( 'td' ).getItem( 0 ) ).focus();
}
},
spacer,
{
type : 'vbox',
padding : 0,
widths : [ '70%', '5%', '25%' ],
children :
[
{
type : 'html',
html : '<span>' + lang.highlight +'</span>\
<div id="' + hicolorId + '" style="border: 1px solid; height: 74px; width: 74px;"></div>\
<div id="' + hicolorTextId + '"> </div><span>' + lang.selected + '</span>\
<div id="' + selHiColorId + '" style="border: 1px solid; height: 20px; width: 74px;"></div>'
},
{
type : 'text',
label : lang.selected,
labelStyle: 'display:none',
id : 'selectedColor',
style : 'width: 74px',
onChange : function()
{
// Try to update color preview with new value. If fails, then set it no none.
try
{
$doc.getById( selHiColorId ).setStyle( 'background-color', this.getValue() );
}
catch ( e )
{
clearSelected();
}
}
},
spacer,
{
type : 'button',
id : 'clear',
style : 'margin-top: 5px',
label : lang.clear,
onClick : clearSelected
}
]
}
]
}
]
}
]
};
}
);
| JavaScript |
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
/**
* @file Justify commands.
*/
(function()
{
function getAlignment( element, useComputedState )
{
useComputedState = useComputedState === undefined || useComputedState;
var align;
if ( useComputedState )
align = element.getComputedStyle( 'text-align' );
else
{
while ( !element.hasAttribute || !( element.hasAttribute( 'align' ) || element.getStyle( 'text-align' ) ) )
{
var parent = element.getParent();
if ( !parent )
break;
element = parent;
}
align = element.getStyle( 'text-align' ) || element.getAttribute( 'align' ) || '';
}
// Sometimes computed values doesn't tell.
align && ( align = align.replace( /(?:-(?:moz|webkit)-)?(?:start|auto)/i, '' ) );
!align && useComputedState && ( align = element.getComputedStyle( 'direction' ) == 'rtl' ? 'right' : 'left' );
return align;
}
function onSelectionChange( evt )
{
if ( evt.editor.readOnly )
return;
evt.editor.getCommand( this.name ).refresh( evt.data.path );
}
function justifyCommand( editor, name, value )
{
this.editor = editor;
this.name = name;
this.value = value;
var classes = editor.config.justifyClasses;
if ( classes )
{
switch ( value )
{
case 'left' :
this.cssClassName = classes[0];
break;
case 'center' :
this.cssClassName = classes[1];
break;
case 'right' :
this.cssClassName = classes[2];
break;
case 'justify' :
this.cssClassName = classes[3];
break;
}
this.cssClassRegex = new RegExp( '(?:^|\\s+)(?:' + classes.join( '|' ) + ')(?=$|\\s)' );
}
}
function onDirChanged( e )
{
var editor = e.editor;
var range = new CKEDITOR.dom.range( editor.document );
range.setStartBefore( e.data.node );
range.setEndAfter( e.data.node );
var walker = new CKEDITOR.dom.walker( range ),
node;
while ( ( node = walker.next() ) )
{
if ( node.type == CKEDITOR.NODE_ELEMENT )
{
// A child with the defined dir is to be ignored.
if ( !node.equals( e.data.node ) && node.getDirection() )
{
range.setStartAfter( node );
walker = new CKEDITOR.dom.walker( range );
continue;
}
// Switch the alignment.
var classes = editor.config.justifyClasses;
if ( classes )
{
// The left align class.
if ( node.hasClass( classes[ 0 ] ) )
{
node.removeClass( classes[ 0 ] );
node.addClass( classes[ 2 ] );
}
// The right align class.
else if ( node.hasClass( classes[ 2 ] ) )
{
node.removeClass( classes[ 2 ] );
node.addClass( classes[ 0 ] );
}
}
// Always switch CSS margins.
var style = 'text-align';
var align = node.getStyle( style );
if ( align == 'left' )
node.setStyle( style, 'right' );
else if ( align == 'right' )
node.setStyle( style, 'left' );
}
}
}
justifyCommand.prototype = {
exec : function( editor )
{
var selection = editor.getSelection(),
enterMode = editor.config.enterMode;
if ( !selection )
return;
var bookmarks = selection.createBookmarks(),
ranges = selection.getRanges( true );
var cssClassName = this.cssClassName,
iterator,
block;
var useComputedState = editor.config.useComputedState;
useComputedState = useComputedState === undefined || useComputedState;
for ( var i = ranges.length - 1 ; i >= 0 ; i-- )
{
iterator = ranges[ i ].createIterator();
iterator.enlargeBr = enterMode != CKEDITOR.ENTER_BR;
while ( ( block = iterator.getNextParagraph( enterMode == CKEDITOR.ENTER_P ? 'p' : 'div' ) ) )
{
block.removeAttribute( 'align' );
block.removeStyle( 'text-align' );
// Remove any of the alignment classes from the className.
var className = cssClassName && ( block.$.className =
CKEDITOR.tools.ltrim( block.$.className.replace( this.cssClassRegex, '' ) ) );
var apply =
( this.state == CKEDITOR.TRISTATE_OFF ) &&
( !useComputedState || ( getAlignment( block, true ) != this.value ) );
if ( cssClassName )
{
// Append the desired class name.
if ( apply )
block.addClass( cssClassName );
else if ( !className )
block.removeAttribute( 'class' );
}
else if ( apply )
block.setStyle( 'text-align', this.value );
}
}
editor.focus();
editor.forceNextSelectionCheck();
selection.selectBookmarks( bookmarks );
},
refresh : function( path )
{
var firstBlock = path.block || path.blockLimit;
this.setState( firstBlock.getName() != 'body' &&
getAlignment( firstBlock, this.editor.config.useComputedState ) == this.value ?
CKEDITOR.TRISTATE_ON :
CKEDITOR.TRISTATE_OFF );
}
};
CKEDITOR.plugins.add( 'justify',
{
init : function( editor )
{
var left = new justifyCommand( editor, 'justifyleft', 'left' ),
center = new justifyCommand( editor, 'justifycenter', 'center' ),
right = new justifyCommand( editor, 'justifyright', 'right' ),
justify = new justifyCommand( editor, 'justifyblock', 'justify' );
editor.addCommand( 'justifyleft', left );
editor.addCommand( 'justifycenter', center );
editor.addCommand( 'justifyright', right );
editor.addCommand( 'justifyblock', justify );
editor.ui.addButton( 'JustifyLeft',
{
label : editor.lang.justify.left,
command : 'justifyleft'
} );
editor.ui.addButton( 'JustifyCenter',
{
label : editor.lang.justify.center,
command : 'justifycenter'
} );
editor.ui.addButton( 'JustifyRight',
{
label : editor.lang.justify.right,
command : 'justifyright'
} );
editor.ui.addButton( 'JustifyBlock',
{
label : editor.lang.justify.block,
command : 'justifyblock'
} );
editor.on( 'selectionChange', CKEDITOR.tools.bind( onSelectionChange, left ) );
editor.on( 'selectionChange', CKEDITOR.tools.bind( onSelectionChange, right ) );
editor.on( 'selectionChange', CKEDITOR.tools.bind( onSelectionChange, center ) );
editor.on( 'selectionChange', CKEDITOR.tools.bind( onSelectionChange, justify ) );
editor.on( 'dirChanged', onDirChanged );
},
requires : [ 'domiterator' ]
});
})();
/**
* List of classes to use for aligning the contents. If it's null, no classes will be used
* and instead the corresponding CSS values will be used. The array should contain 4 members, in the following order: left, center, right, justify.
* @name CKEDITOR.config.justifyClasses
* @type Array
* @default null
* @example
* // Use the classes 'AlignLeft', 'AlignCenter', 'AlignRight', 'AlignJustify'
* config.justifyClasses = [ 'AlignLeft', 'AlignCenter', 'AlignRight', 'AlignJustify' ];
*/
| JavaScript |
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
/**
* @name CKEDITOR.theme
* @class
*/
CKEDITOR.themes.add( 'default', (function()
{
var hiddenSkins = {};
function checkSharedSpace( editor, spaceName )
{
var container,
element;
// Try to retrieve the target element from the sharedSpaces settings.
element = editor.config.sharedSpaces;
element = element && element[ spaceName ];
element = element && CKEDITOR.document.getById( element );
// If the element is available, we'll then create the container for
// the space.
if ( element )
{
// Creates an HTML structure that reproduces the editor class hierarchy.
var html =
'<span class="cke_shared "' +
' dir="'+ editor.lang.dir + '"' +
'>' +
'<span class="' + editor.skinClass + ' ' + editor.id + ' cke_editor_' + editor.name + '">' +
'<span class="' + CKEDITOR.env.cssClass + '">' +
'<span class="cke_wrapper cke_' + editor.lang.dir + '">' +
'<span class="cke_editor">' +
'<div class="cke_' + spaceName + '">' +
'</div></span></span></span></span></span>';
var mainContainer = element.append( CKEDITOR.dom.element.createFromHtml( html, element.getDocument() ) );
// Only the first container starts visible. Others get hidden.
if ( element.getCustomData( 'cke_hasshared' ) )
mainContainer.hide();
else
element.setCustomData( 'cke_hasshared', 1 );
// Get the deeper inner <div>.
container = mainContainer.getChild( [0,0,0,0] );
// Save a reference to the shared space container.
!editor.sharedSpaces && ( editor.sharedSpaces = {} );
editor.sharedSpaces[ spaceName ] = container;
// When the editor gets focus, we show the space container, hiding others.
editor.on( 'focus', function()
{
for ( var i = 0, sibling, children = element.getChildren() ; ( sibling = children.getItem( i ) ) ; i++ )
{
if ( sibling.type == CKEDITOR.NODE_ELEMENT
&& !sibling.equals( mainContainer )
&& sibling.hasClass( 'cke_shared' ) )
{
sibling.hide();
}
}
mainContainer.show();
});
editor.on( 'destroy', function()
{
mainContainer.remove();
});
}
return container;
}
return /** @lends CKEDITOR.theme */ {
build : function( editor, themePath )
{
var name = editor.name,
element = editor.element,
elementMode = editor.elementMode;
if ( !element || elementMode == CKEDITOR.ELEMENT_MODE_NONE )
return;
if ( elementMode == CKEDITOR.ELEMENT_MODE_REPLACE )
element.hide();
// Get the HTML for the predefined spaces.
var topHtml = editor.fire( 'themeSpace', { space : 'top', html : '' } ).html;
var contentsHtml = editor.fire( 'themeSpace', { space : 'contents', html : '' } ).html;
var bottomHtml = editor.fireOnce( 'themeSpace', { space : 'bottom', html : '' } ).html;
var height = contentsHtml && editor.config.height;
var tabIndex = editor.config.tabIndex || editor.element.getAttribute( 'tabindex' ) || 0;
// The editor height is considered only if the contents space got filled.
if ( !contentsHtml )
height = 'auto';
else if ( !isNaN( height ) )
height += 'px';
var style = '';
var width = editor.config.width;
if ( width )
{
if ( !isNaN( width ) )
width += 'px';
style += "width: " + width + ";";
}
var sharedTop = topHtml && checkSharedSpace( editor, 'top' ),
sharedBottoms = checkSharedSpace( editor, 'bottom' );
sharedTop && ( sharedTop.setHtml( topHtml ) , topHtml = '' );
sharedBottoms && ( sharedBottoms.setHtml( bottomHtml ), bottomHtml = '' );
var hideSkin = '<style>.' + editor.skinClass + '{visibility:hidden;}</style>';
if ( hiddenSkins[ editor.skinClass ] )
hideSkin = '';
else
hiddenSkins[ editor.skinClass ] = 1;
var container = CKEDITOR.dom.element.createFromHtml( [
'<span' +
' id="cke_', name, '"' +
' class="', editor.skinClass, ' ', editor.id, ' cke_editor_', name, '"' +
' dir="', editor.lang.dir, '"' +
' title="', ( CKEDITOR.env.gecko ? ' ' : '' ), '"' +
' lang="', editor.langCode, '"' +
( CKEDITOR.env.webkit? ' tabindex="' + tabIndex + '"' : '' ) +
' role="application"' +
' aria-labelledby="cke_', name, '_arialbl"' +
( style ? ' style="' + style + '"' : '' ) +
'>' +
'<span id="cke_', name, '_arialbl" class="cke_voice_label">' + editor.lang.editor + '</span>' +
'<span class="' , CKEDITOR.env.cssClass, '" role="presentation">' +
'<span class="cke_wrapper cke_', editor.lang.dir, '" role="presentation">' +
'<table class="cke_editor" border="0" cellspacing="0" cellpadding="0" role="presentation"><tbody>' +
'<tr', topHtml ? '' : ' style="display:none"', ' role="presentation"><td id="cke_top_' , name, '" class="cke_top" role="presentation">' , topHtml , '</td></tr>' +
'<tr', contentsHtml ? '' : ' style="display:none"', ' role="presentation"><td id="cke_contents_', name, '" class="cke_contents" style="height:', height, '" role="presentation">', contentsHtml, '</td></tr>' +
'<tr', bottomHtml ? '' : ' style="display:none"', ' role="presentation"><td id="cke_bottom_' , name, '" class="cke_bottom" role="presentation">' , bottomHtml , '</td></tr>' +
'</tbody></table>' +
//Hide the container when loading skins, later restored by skin css.
hideSkin +
'</span>' +
'</span>' +
'</span>' ].join( '' ) );
container.getChild( [1, 0, 0, 0, 0] ).unselectable();
container.getChild( [1, 0, 0, 0, 2] ).unselectable();
if ( elementMode == CKEDITOR.ELEMENT_MODE_REPLACE )
container.insertAfter( element );
else
element.append( container );
/**
* The DOM element that holds the main editor interface.
* @name CKEDITOR.editor.prototype.container
* @type CKEDITOR.dom.element
* @example
* var editor = CKEDITOR.instances.editor1;
* alert( <b>editor.container</b>.getName() ); "span"
*/
editor.container = container;
// Disable browser context menu for editor's chrome.
container.disableContextMenu();
// Use a class to indicate that the current selection is in different direction than the UI.
editor.on( 'contentDirChanged', function( evt )
{
var func = ( editor.lang.dir != evt.data ? 'add' : 'remove' ) + 'Class';
container.getChild( 1 )[ func ]( 'cke_mixed_dir_content' );
// Put the mixed direction class on the respective element also for shared spaces.
var toolbarSpace = this.sharedSpaces && this.sharedSpaces[ this.config.toolbarLocation ];
toolbarSpace && toolbarSpace.getParent().getParent()[ func ]( 'cke_mixed_dir_content' );
});
editor.fireOnce( 'themeLoaded' );
editor.fireOnce( 'uiReady' );
},
buildDialog : function( editor )
{
var baseIdNumber = CKEDITOR.tools.getNextNumber();
var element = CKEDITOR.dom.element.createFromHtml( [
'<div class="', editor.id, '_dialog cke_editor_', editor.name.replace('.', '\\.'), '_dialog cke_skin_', editor.skinName,
'" dir="', editor.lang.dir, '"' +
' lang="', editor.langCode, '"' +
' role="dialog"' +
' aria-labelledby="%title#"' +
'>' +
'<table class="cke_dialog', ' ' + CKEDITOR.env.cssClass,
' cke_', editor.lang.dir, '" style="position:absolute" role="presentation">' +
'<tr><td role="presentation">' +
'<div class="%body" role="presentation">' +
'<div id="%title#" class="%title" role="presentation"></div>' +
'<a id="%close_button#" class="%close_button" href="javascript:void(0)" title="' + editor.lang.common.close+'" role="button"><span class="cke_label">X</span></a>' +
'<div id="%tabs#" class="%tabs" role="tablist"></div>' +
'<table class="%contents" role="presentation">' +
'<tr>' +
'<td id="%contents#" class="%contents" role="presentation"></td>' +
'</tr>' +
'<tr>' +
'<td id="%footer#" class="%footer" role="presentation"></td>' +
'</tr>' +
'</table>' +
'</div>' +
'<div id="%tl#" class="%tl"></div>' +
'<div id="%tc#" class="%tc"></div>' +
'<div id="%tr#" class="%tr"></div>' +
'<div id="%ml#" class="%ml"></div>' +
'<div id="%mr#" class="%mr"></div>' +
'<div id="%bl#" class="%bl"></div>' +
'<div id="%bc#" class="%bc"></div>' +
'<div id="%br#" class="%br"></div>' +
'</td></tr>' +
'</table>',
//Hide the container when loading skins, later restored by skin css.
( CKEDITOR.env.ie ? '' : '<style>.cke_dialog{visibility:hidden;}</style>' ),
'</div>'
].join( '' )
.replace( /#/g, '_' + baseIdNumber )
.replace( /%/g, 'cke_dialog_' ) );
var body = element.getChild( [ 0, 0, 0, 0, 0 ] ),
title = body.getChild( 0 ),
close = body.getChild( 1 );
// IFrame shim for dialog that masks activeX in IE. (#7619)
if ( CKEDITOR.env.ie && !CKEDITOR.env.ie6Compat )
{
var isCustomDomain = CKEDITOR.env.isCustomDomain(),
src = 'javascript:void(function(){' + encodeURIComponent( 'document.open();' + ( isCustomDomain ? ( 'document.domain="' + document.domain + '";' ) : '' ) + 'document.close();' ) + '}())',
iframe = CKEDITOR.dom.element.createFromHtml( '<iframe' +
' frameBorder="0"' +
' class="cke_iframe_shim"' +
' src="' + src + '"' +
' tabIndex="-1"' +
'></iframe>' );
iframe.appendTo( body.getParent() );
}
// Make the Title and Close Button unselectable.
title.unselectable();
close.unselectable();
return {
element : element,
parts :
{
dialog : element.getChild( 0 ),
title : title,
close : close,
tabs : body.getChild( 2 ),
contents : body.getChild( [ 3, 0, 0, 0 ] ),
footer : body.getChild( [ 3, 0, 1, 0 ] )
}
};
},
destroy : function( editor )
{
var container = editor.container,
element = editor.element;
if ( container )
{
container.clearCustomData();
container.remove();
}
if ( element )
{
element.clearCustomData();
editor.elementMode == CKEDITOR.ELEMENT_MODE_REPLACE && element.show();
delete editor.element;
}
}
};
})() );
/**
* Returns the DOM element that represents a theme space. The default theme defines
* three spaces, namely "top", "contents" and "bottom", representing the main
* blocks that compose the editor interface.
* @param {String} spaceName The space name.
* @returns {CKEDITOR.dom.element} The element that represents the space.
* @example
* // Hide the bottom space in the UI.
* var bottom = editor.getThemeSpace( 'bottom' );
* bottom.setStyle( 'display', 'none' );
*/
CKEDITOR.editor.prototype.getThemeSpace = function( spaceName )
{
var spacePrefix = 'cke_' + spaceName;
var space = this._[ spacePrefix ] ||
( this._[ spacePrefix ] = CKEDITOR.document.getById( spacePrefix + '_' + this.name ) );
return space;
};
/**
* Resizes the editor interface.
* @param {Number|String} width The new width. It can be an pixels integer or a
* CSS size value.
* @param {Number|String} height The new height. It can be an pixels integer or
* a CSS size value.
* @param {Boolean} [isContentHeight] Indicates that the provided height is to
* be applied to the editor contents space, not to the entire editor
* interface. Defaults to false.
* @param {Boolean} [resizeInner] Indicates that the first inner interface
* element must receive the size, not the outer element. The default theme
* defines the interface inside a pair of span elements
* (<span><span>...</span></span>). By default the
* first span element receives the sizes. If this parameter is set to
* true, the second span is sized instead.
* @example
* editor.resize( 900, 300 );
* @example
* editor.resize( '100%', 450, true );
*/
CKEDITOR.editor.prototype.resize = function( width, height, isContentHeight, resizeInner )
{
var container = this.container,
contents = CKEDITOR.document.getById( 'cke_contents_' + this.name ),
contentsFrame = CKEDITOR.env.webkit && this.document && this.document.getWindow().$.frameElement,
outer = resizeInner ? container.getChild( 1 ) : container;
// Set as border box width. (#5353)
outer.setSize( 'width', width, true );
// WebKit needs to refresh the iframe size to avoid rendering issues. (1/2) (#8348)
contentsFrame && ( contentsFrame.style.width = '1%' );
// Get the height delta between the outer table and the content area.
// If we're setting the content area's height, then we don't need the delta.
var delta = isContentHeight ? 0 : ( outer.$.offsetHeight || 0 ) - ( contents.$.clientHeight || 0 );
contents.setStyle( 'height', Math.max( height - delta, 0 ) + 'px' );
// WebKit needs to refresh the iframe size to avoid rendering issues. (2/2) (#8348)
contentsFrame && ( contentsFrame.style.width = '100%' );
// Emit a resize event.
this.fire( 'resize' );
};
/**
* Gets the element that can be freely used to check the editor size. This method
* is mainly used by the resize plugin, which adds a UI handle that can be used
* to resize the editor.
* @param {Boolean} forContents Whether to return the "contents" part of the theme instead of the container.
* @returns {CKEDITOR.dom.element} The resizable element.
* @example
*/
CKEDITOR.editor.prototype.getResizable = function( forContents )
{
return forContents ? CKEDITOR.document.getById( 'cke_contents_' + this.name ) : this.container;
};
/**
* Makes it possible to place some of the editor UI blocks, like the toolbar
* and the elements path, into any element in the page.
* The elements used to hold the UI blocks can be shared among several editor
* instances. In that case, only the blocks of the active editor instance will
* display.
* @name CKEDITOR.config.sharedSpaces
* @type Object
* @default undefined
* @example
* // Place the toolbar inside the element with ID "someElementId" and the
* // elements path into the element with ID "anotherId".
* config.sharedSpaces =
* {
* top : 'someElementId',
* bottom : 'anotherId'
* };
* @example
* // Place the toolbar inside the element with ID "someElementId". The
* // elements path will remain attached to the editor UI.
* config.sharedSpaces =
* {
* top : 'someElementId'
* };
*/
/**
* Fired after the editor instance is resized through
* the {@link CKEDITOR.editor.prototype.resize} method.
* @name CKEDITOR.editor#resize
* @event
*/
| JavaScript |
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
/**
* @fileOverview Defines the {@link CKEDITOR.lang} object for the
* Persian language.
*/
/**#@+
@type String
@example
*/
/**
* Contains the dictionary of language entries.
* @namespace
*/
CKEDITOR.lang['fa'] =
{
/**
* The language reading direction. Possible values are "rtl" for
* Right-To-Left languages (like Arabic) and "ltr" for Left-To-Right
* languages (like English).
* @default 'ltr'
*/
dir : 'rtl',
/*
* Screenreader titles. Please note that screenreaders are not always capable
* of reading non-English words. So be careful while translating it.
*/
editorTitle : 'ویرایشگر متن غنی, %1',
editorHelp : 'کلید Alt+0 را برای راهنمایی بفشارید',
// ARIA descriptions.
toolbars : 'نوار ابزار',
editor : 'ویرایشگر متن غنی',
// Toolbar buttons without dialogs.
source : 'منبع',
newPage : 'برگهٴ تازه',
save : 'ذخیره',
preview : 'پیشنمایش',
cut : 'برش',
copy : 'کپی',
paste : 'چسباندن',
print : 'چاپ',
underline : 'زیرخطدار',
bold : 'درشت',
italic : 'خمیده',
selectAll : 'گزینش همه',
removeFormat : 'برداشتن فرمت',
strike : 'میانخط',
subscript : 'زیرنویس',
superscript : 'بالانویس',
horizontalrule : 'گنجاندن خط افقی',
pagebreak : 'گنجاندن شکستگی پایان برگه',
pagebreakAlt : 'شکستن صفحه',
unlink : 'برداشتن پیوند',
undo : 'واچیدن',
redo : 'بازچیدن',
// Common messages and labels.
common :
{
browseServer : 'فهرستنمایی سرور',
url : 'URL',
protocol : 'پروتکل',
upload : 'انتقال به سرور',
uploadSubmit : 'به سرور بفرست',
image : 'تصویر',
flash : 'فلش',
form : 'فرم',
checkbox : 'خانهٴ گزینهای',
radio : 'دکمهٴ رادیویی',
textField : 'فیلد متنی',
textarea : 'ناحیهٴ متنی',
hiddenField : 'فیلد پنهان',
button : 'دکمه',
select : 'فیلد چندگزینهای',
imageButton : 'دکمهٴ تصویری',
notSet : '<تعین نشده>',
id : 'شناسه',
name : 'نام',
langDir : 'جهتنمای زبان',
langDirLtr : 'چپ به راست (LTR)',
langDirRtl : 'راست به چپ (RTL)',
langCode : 'کد زبان',
longDescr : 'URL توصیف طولانی',
cssClass : 'کلاسهای شیوهنامه(Stylesheet)',
advisoryTitle : 'عنوان کمکی',
cssStyle : 'شیوه(style)',
ok : 'پذیرش',
cancel : 'انصراف',
close : 'بستن',
preview : 'پیشنمایش',
generalTab : 'عمومی',
advancedTab : 'پیشرفته',
validateNumberFailed : 'این مقدار یک عدد نیست.',
confirmNewPage : 'هر تغییر ایجاد شدهی ذخیره نشده از بین خواهد رفت. آیا اطمینان دارید که قصد بارگیری صفحه جدیدی را دارید؟',
confirmCancel : 'برخی از گزینهها تغییر کردهاند. آیا واقعا قصد بستن این پنجره را دارید؟',
options : 'گزینهها',
target : 'مسیر',
targetNew : 'پنجره جدید (_blank)',
targetTop : 'بالاترین پنجره (_top)',
targetSelf : 'همان پنجره (_self)',
targetParent : 'پنجره والد (_parent)',
langDirLTR : 'چپ به راست (LTR)',
langDirRTL : 'راست به چپ (RTL)',
styles : 'سبک',
cssClasses : 'کلاسهای شیوهنامه',
width : 'پهنا',
height : 'درازا',
align : 'چینش',
alignLeft : 'چپ',
alignRight : 'راست',
alignCenter : 'وسط',
alignTop : 'بالا',
alignMiddle : 'وسط',
alignBottom : 'پائین',
invalidValue : 'Invalid value.', // MISSING
invalidHeight : 'ارتفاع باید یک عدد باشد.',
invalidWidth : 'پهنا باید یک عدد باشد.',
invalidCssLength : 'عدد تعیین شده برای فیلد "%1" باید یک عدد مثبت با یا بدون یک واحد اندازه گیری CSS معتبر باشد (px, %, in, cm, mm, em, ex, pt, or pc).',
invalidHtmlLength : 'عدد تعیین شده برای فیلد "%1" باید یک عدد مثبت با یا بدون یک واحد اندازه گیری HTML معتبر باشد (px or %).',
invalidInlineStyle : 'عدد تعیین شده برای سبک درونخطی(Inline Style) باید دارای یک یا چند چندتایی با شکلی شبیه "name : value" که باید با یک ","(semi-colons) از هم جدا شوند.',
cssLengthTooltip : 'یک عدد برای یک مقدار بر حسب پیکسل و یا یک عدد با یک واحد CSS معتبر وارد کنید (px, %, in, cm, mm, em, ex, pt, or pc).',
// Put the voice-only part of the label in the span.
unavailable : '%1<span class="cke_accessibility">، غیر قابل دسترس</span>'
},
contextmenu :
{
options : 'گزینههای منوی زمینه'
},
// Special char dialog.
specialChar :
{
toolbar : 'گنجاندن نویسهٴ ویژه',
title : 'گزینش نویسهٴ ویژه',
options : 'گزینههای نویسههای ویژه'
},
// Link dialog.
link :
{
toolbar : 'گنجاندن/ویرایش پیوند',
other : '<سایر>',
menu : 'ویرایش پیوند',
title : 'پیوند',
info : 'اطلاعات پیوند',
target : 'مقصد',
upload : 'انتقال به سرور',
advanced : 'پیشرفته',
type : 'نوع پیوند',
toUrl : 'URL',
toAnchor : 'لنگر در همین صفحه',
toEmail : 'پست الکترونیکی',
targetFrame : '<فریم>',
targetPopup : '<پنجرهٴ پاپاپ>',
targetFrameName : 'نام فریم مقصد',
targetPopupName : 'نام پنجرهٴ پاپاپ',
popupFeatures : 'ویژگیهای پنجرهٴ پاپاپ',
popupResizable : 'قابل تغییر اندازه',
popupStatusBar : 'نوار وضعیت',
popupLocationBar: 'نوار موقعیت',
popupToolbar : 'نوارابزار',
popupMenuBar : 'نوار منو',
popupFullScreen : 'تمامصفحه (IE)',
popupScrollBars : 'میلههای پیمایش',
popupDependent : 'وابسته (Netscape)',
popupLeft : 'موقعیت چپ',
popupTop : 'موقعیت بالا',
id : 'شناسه',
langDir : 'جهتنمای زبان',
langDirLTR : 'چپ به راست (LTR)',
langDirRTL : 'راست به چپ (RTL)',
acccessKey : 'کلید دستیابی',
name : 'نام',
langCode : 'جهتنمای زبان',
tabIndex : 'نمایهٴ دسترسی با برگه',
advisoryTitle : 'عنوان کمکی',
advisoryContentType : 'نوع محتوای کمکی',
cssClasses : 'کلاسهای شیوهنامه(Stylesheet)',
charset : 'نویسهگان منبع پیوند شده',
styles : 'شیوه(style)',
rel : 'وابستگی',
selectAnchor : 'یک لنگر برگزینید',
anchorName : 'با نام لنگر',
anchorId : 'با شناسهٴ المان',
emailAddress : 'نشانی پست الکترونیکی',
emailSubject : 'موضوع پیام',
emailBody : 'متن پیام',
noAnchors : '(در این سند لنگری دردسترس نیست)',
noUrl : 'لطفا URL پیوند را بنویسید',
noEmail : 'لطفا نشانی پست الکترونیکی را بنویسید'
},
// Anchor dialog
anchor :
{
toolbar : 'گنجاندن/ویرایش لنگر',
menu : 'ویژگیهای لنگر',
title : 'ویژگیهای لنگر',
name : 'نام لنگر',
errorName : 'لطفا نام لنگر را بنویسید',
remove : 'حذف لنگر'
},
// List style dialog
list:
{
numberedTitle : 'ویژگیهای فهرست شمارهدار',
bulletedTitle : 'ویژگیهای فهرست گلولهدار',
type : 'نوع',
start : 'شروع',
validateStartNumber :'فهرست شماره شروع باید یک عدد صحیح باشد.',
circle : 'دایره',
disc : 'صفحه گرد',
square : 'چهارگوش',
none : 'هیچ',
notset : '<تنظیم نشده>',
armenian : 'شمارهگذاری ارمنی',
georgian : 'شمارهگذاری گریگورین (an, ban, gan, etc.)',
lowerRoman : 'پانویس رومی (i, ii, iii, iv, v, etc.)',
upperRoman : 'بالانویس رومی (I, II, III, IV, V, etc.)',
lowerAlpha : 'پانویس الفبایی (a, b, c, d, e, etc.)',
upperAlpha : 'بالانویس الفبایی (A, B, C, D, E, etc.)',
lowerGreek : 'پانویس یونانی (alpha, beta, gamma, etc.)',
decimal : 'دهدهی (1, 2, 3, etc.)',
decimalLeadingZero : 'دهدهی همراه با صفر (01, 02, 03, etc.)'
},
// Find And Replace Dialog
findAndReplace :
{
title : 'جستجو و جایگزینی',
find : 'جستجو',
replace : 'جایگزینی',
findWhat : 'چه چیز را مییابید:',
replaceWith : 'جایگزینی با:',
notFoundMsg : 'متن موردنظر یافت نشد.',
findOptions : 'گزینههای جستجو',
matchCase : 'همسانی در بزرگی و کوچکی نویسهها',
matchWord : 'همسانی با واژهٴ کامل',
matchCyclic : 'همسانی با چرخه',
replaceAll : 'جایگزینی همهٴ یافتهها',
replaceSuccessMsg : '%1 رخداد جایگزین شد.'
},
// Table Dialog
table :
{
toolbar : 'جدول',
title : 'ویژگیهای جدول',
menu : 'ویژگیهای جدول',
deleteTable : 'پاک کردن جدول',
rows : 'سطرها',
columns : 'ستونها',
border : 'اندازهٴ لبه',
widthPx : 'پیکسل',
widthPc : 'درصد',
widthUnit : 'واحد پهنا',
cellSpace : 'فاصلهٴ میان سلولها',
cellPad : 'فاصلهٴ پرشده در سلول',
caption : 'عنوان',
summary : 'خلاصه',
headers : 'سرنویسها',
headersNone : 'هیچ',
headersColumn : 'اولین ستون',
headersRow : 'اولین ردیف',
headersBoth : 'هردو',
invalidRows : 'تعداد ردیفها باید یک عدد بزرگتر از 0 باشد.',
invalidCols : 'تعداد ستونها باید یک عدد بزرگتر از 0 باشد.',
invalidBorder : 'مقدار اندازه خطوط باید یک عدد باشد.',
invalidWidth : 'مقدار پهنای جدول باید یک عدد باشد.',
invalidHeight : 'مقدار ارتفاع جدول باید یک عدد باشد.',
invalidCellSpacing : 'مقدار فاصلهگذاری سلول باید یک عدد باشد.',
invalidCellPadding : 'بالشتک سلول باید یک عدد باشد.',
cell :
{
menu : 'سلول',
insertBefore : 'افزودن سلول قبل از',
insertAfter : 'افزودن سلول بعد از',
deleteCell : 'حذف سلولها',
merge : 'ادغام سلولها',
mergeRight : 'ادغام به راست',
mergeDown : 'ادغام به پایین',
splitHorizontal : 'جدا کردن افقی سلول',
splitVertical : 'جدا کردن عمودی سلول',
title : 'ویژگیهای سلول',
cellType : 'نوع سلول',
rowSpan : 'محدوده ردیفها',
colSpan : 'محدوده ستونها',
wordWrap : 'شکستن کلمه',
hAlign : 'چینش افقی',
vAlign : 'چینش عمودی',
alignBaseline : 'خط مبنا',
bgColor : 'رنگ زمینه',
borderColor : 'رنگ خطوط',
data : 'اطلاعات',
header : 'سرنویس',
yes : 'بله',
no : 'خیر',
invalidWidth : 'عرض سلول باید یک عدد باشد.',
invalidHeight : 'ارتفاع سلول باید عدد باشد.',
invalidRowSpan : 'مقدار محدوده ردیفها باید یک عدد باشد.',
invalidColSpan : 'مقدار محدوده ستونها باید یک عدد باشد.',
chooseColor : 'انتخاب'
},
row :
{
menu : 'سطر',
insertBefore : 'افزودن سطر قبل از',
insertAfter : 'افزودن سطر بعد از',
deleteRow : 'حذف سطرها'
},
column :
{
menu : 'ستون',
insertBefore : 'افزودن ستون قبل از',
insertAfter : 'افزودن ستون بعد از',
deleteColumn : 'حذف ستونها'
}
},
// Button Dialog.
button :
{
title : 'ویژگیهای دکمه',
text : 'متن (مقدار)',
type : 'نوع',
typeBtn : 'دکمه',
typeSbm : 'ثبت',
typeRst : 'بازنشانی (Reset)'
},
// Checkbox and Radio Button Dialogs.
checkboxAndRadio :
{
checkboxTitle : 'ویژگیهای خانهٴ گزینهای',
radioTitle : 'ویژگیهای دکمهٴ رادیویی',
value : 'مقدار',
selected : 'برگزیده'
},
// Form Dialog.
form :
{
title : 'ویژگیهای فرم',
menu : 'ویژگیهای فرم',
action : 'رویداد',
method : 'متد',
encoding : 'رمزنگاری'
},
// Select Field Dialog.
select :
{
title : 'ویژگیهای فیلد چندگزینهای',
selectInfo : 'اطلاعات',
opAvail : 'گزینههای دردسترس',
value : 'مقدار',
size : 'اندازه',
lines : 'خطوط',
chkMulti : 'گزینش چندگانه فراهم باشد',
opText : 'متن',
opValue : 'مقدار',
btnAdd : 'افزودن',
btnModify : 'ویرایش',
btnUp : 'بالا',
btnDown : 'پائین',
btnSetValue : 'تنظیم به عنوان مقدار برگزیده',
btnDelete : 'پاککردن'
},
// Textarea Dialog.
textarea :
{
title : 'ویژگیهای ناحیهٴ متنی',
cols : 'ستونها',
rows : 'سطرها'
},
// Text Field Dialog.
textfield :
{
title : 'ویژگیهای فیلد متنی',
name : 'نام',
value : 'مقدار',
charWidth : 'پهنای نویسه',
maxChars : 'بیشینهٴ نویسهها',
type : 'نوع',
typeText : 'متن',
typePass : 'گذرواژه'
},
// Hidden Field Dialog.
hidden :
{
title : 'ویژگیهای فیلد پنهان',
name : 'نام',
value : 'مقدار'
},
// Image Dialog.
image :
{
title : 'ویژگیهای تصویر',
titleButton : 'ویژگیهای دکمهٴ تصویری',
menu : 'ویژگیهای تصویر',
infoTab : 'اطلاعات تصویر',
btnUpload : 'به سرور بفرست',
upload : 'انتقال به سرور',
alt : 'متن جایگزین',
lockRatio : 'قفل کردن نسبت',
resetSize : 'بازنشانی اندازه',
border : 'لبه',
hSpace : 'فاصلهٴ افقی',
vSpace : 'فاصلهٴ عمودی',
alertUrl : 'لطفا URL تصویر را بنویسید',
linkTab : 'پیوند',
button2Img : 'آیا مایلید از یک تصویر ساده روی دکمه تصویری انتخاب شده استفاده کنید؟',
img2Button : 'آیا مایلید از یک دکمه تصویری روی تصویر انتخاب شده استفاده کنید؟',
urlMissing : 'آدرس URL اصلی تصویر یافت نشد.',
validateBorder : 'مقدار خطوط باید یک عدد باشد.',
validateHSpace : 'مقدار فاصلهگذاری افقی باید یک عدد باشد.',
validateVSpace : 'مقدار فاصلهگذاری عمودی باید یک عدد باشد.'
},
// Flash Dialog
flash :
{
properties : 'ویژگیهای فلش',
propertiesTab : 'ویژگیها',
title : 'ویژگیهای فلش',
chkPlay : 'آغاز خودکار',
chkLoop : 'اجرای پیاپی',
chkMenu : 'در دسترس بودن منوی فلش',
chkFull : 'اجازه تمام صفحه',
scale : 'مقیاس',
scaleAll : 'نمایش همه',
scaleNoBorder : 'بدون کران',
scaleFit : 'جایگیری کامل',
access : 'دسترسی به اسکریپت',
accessAlways : 'همیشه',
accessSameDomain: 'همان دامنه',
accessNever : 'هرگز',
alignAbsBottom : 'پائین مطلق',
alignAbsMiddle : 'وسط مطلق',
alignBaseline : 'خط پایه',
alignTextTop : 'متن بالا',
quality : 'کیفیت',
qualityBest : 'بهترین',
qualityHigh : 'بالا',
qualityAutoHigh : 'بالا - خودکار',
qualityMedium : 'متوسط',
qualityAutoLow : 'پایین - خودکار',
qualityLow : 'پایین',
windowModeWindow: 'پنجره',
windowModeOpaque: 'مات',
windowModeTransparent : 'شفاف',
windowMode : 'حالت پنجره',
flashvars : 'مقادیر برای فلش',
bgcolor : 'رنگ پسزمینه',
hSpace : 'فاصلهٴ افقی',
vSpace : 'فاصلهٴ عمودی',
validateSrc : 'لطفا URL پیوند را بنویسید',
validateHSpace : 'مقدار فاصلهگذاری افقی باید یک عدد باشد.',
validateVSpace : 'مقدار فاصلهگذاری عمودی باید یک عدد باشد.'
},
// Speller Pages Dialog
spellCheck :
{
toolbar : 'بررسی املا',
title : 'بررسی املا',
notAvailable : 'با عرض پوزش خدمات الان در دسترس نیستند.',
errorLoading : 'خطا در بارگیری برنامه خدمات میزبان: %s.',
notInDic : 'در واژه~نامه یافت نشد',
changeTo : 'تغییر به',
btnIgnore : 'چشمپوشی',
btnIgnoreAll : 'چشمپوشی همه',
btnReplace : 'جایگزینی',
btnReplaceAll : 'جایگزینی همه',
btnUndo : 'واچینش',
noSuggestions : '- پیشنهادی نیست -',
progress : 'بررسی املا در حال انجام...',
noMispell : 'بررسی املا انجام شد. هیچ غلط املائی یافت نشد',
noChanges : 'بررسی املا انجام شد. هیچ واژهای تغییر نیافت',
oneChange : 'بررسی املا انجام شد. یک واژه تغییر یافت',
manyChanges : 'بررسی املا انجام شد. %1 واژه تغییر یافت',
ieSpellDownload : 'بررسی کنندهٴ املا نصب نشده است. آیا میخواهید آن را هماکنون دریافت کنید؟'
},
smiley :
{
toolbar : 'خندانک',
title : 'گنجاندن خندانک',
options : 'گزینههای خندانک'
},
elementsPath :
{
eleLabel : 'مسیر عناصر',
eleTitle : '%1 عنصر'
},
numberedlist : 'فهرست شمارهدار',
bulletedlist : 'فهرست نقطهای',
indent : 'افزایش تورفتگی',
outdent : 'کاهش تورفتگی',
justify :
{
left : 'چپچین',
center : 'میانچین',
right : 'راستچین',
block : 'بلوکچین'
},
blockquote : 'بلوک نقل قول',
clipboard :
{
title : 'چسباندن',
cutError : 'تنظیمات امنیتی مرورگر شما اجازه نمیدهد که ویرایشگر به طور خودکار عملکردهای برش را انجام دهد. لطفا با دکمههای صفحه کلید این کار را انجام دهید (Ctrl/Cmd+X).',
copyError : 'تنظیمات امنیتی مرورگر شما اجازه نمیدهد که ویرایشگر به طور خودکار عملکردهای کپی کردن را انجام دهد. لطفا با دکمههای صفحه کلید این کار را انجام دهید (Ctrl/Cmd+C).',
pasteMsg : 'لطفا متن را با کلیدهای (<STRONG>Ctrl/Cmd+V</STRONG>) در این جعبهٴ متنی بچسبانید و <STRONG>پذیرش</STRONG> را بزنید.',
securityMsg : 'به خاطر تنظیمات امنیتی مرورگر شما، ویرایشگر نمیتواند دسترسی مستقیم به دادههای clipboard داشته باشد. شما باید دوباره آنرا در این پنجره بچسبانید.',
pasteArea : 'محل چسباندن'
},
pastefromword :
{
confirmCleanup : 'متنی که میخواهید بچسبانید به نظر میرسد که از Word کپی شده است. آیا میخواهید قبل از چسباندن آن را پاکسازی کنید؟',
toolbar : 'چسباندن از Word',
title : 'چسباندن از Word',
error : 'به دلیل بروز خطای داخلی امکان پاکسازی اطلاعات بازنشانی شده وجود ندارد.'
},
pasteText :
{
button : 'چسباندن به عنوان متن ِساده',
title : 'چسباندن به عنوان متن ِساده'
},
templates :
{
button : 'الگوها',
title : 'الگوهای محتویات',
options : 'گزینههای الگو',
insertOption : 'محتویات کنونی جایگزین شوند',
selectPromptMsg : 'لطفا الگوی موردنظر را برای بازکردن در ویرایشگر برگزینید<br>(محتویات کنونی از دست خواهند رفت):',
emptyListMsg : '(الگوئی تعریف نشده است)'
},
showBlocks : 'نمایش بلوکها',
stylesCombo :
{
label : 'سبک',
panelTitle : 'سبکهای قالببندی',
panelTitle1 : 'سبکهای بلوک',
panelTitle2 : 'سبکهای درونخطی',
panelTitle3 : 'سبکهای شیء'
},
format :
{
label : 'فرمت',
panelTitle : 'فرمت',
tag_p : 'نرمال',
tag_pre : 'فرمت شده',
tag_address : 'آدرس',
tag_h1 : 'سرنویس 1',
tag_h2 : 'سرنویس 2',
tag_h3 : 'سرنویس 3',
tag_h4 : 'سرنویس 4',
tag_h5 : 'سرنویس 5',
tag_h6 : 'سرنویس 6',
tag_div : 'بند'
},
div :
{
title : 'ایجاد یک محل DIV',
toolbar : 'ایجاد یک محل DIV',
cssClassInputLabel : 'کلاسهای شیوهنامه',
styleSelectLabel : 'سبک',
IdInputLabel : 'شناسه',
languageCodeInputLabel : ' کد زبان',
inlineStyleInputLabel : 'سبک درونخطی(Inline Style)',
advisoryTitleInputLabel : 'عنوان مشاوره',
langDirLabel : 'جهت نوشتاری زبان',
langDirLTRLabel : 'چپ به راست (LTR)',
langDirRTLLabel : 'راست به چپ (RTL)',
edit : 'ویرایش Div',
remove : 'حذف Div'
},
iframe :
{
title : 'ویژگیهای IFrame',
toolbar : 'IFrame',
noUrl : 'لطفا مسیر URL iframe را درج کنید',
scrolling : 'نمایش خطکشها',
border : 'نمایش خطوط frame'
},
font :
{
label : 'قلم',
voiceLabel : 'قلم',
panelTitle : 'قلم'
},
fontSize :
{
label : 'اندازه',
voiceLabel : 'اندازه قلم',
panelTitle : 'اندازه'
},
colorButton :
{
textColorTitle : 'رنگ متن',
bgColorTitle : 'رنگ پسزمینه',
panelTitle : 'رنگها',
auto : 'خودکار',
more : 'رنگهای بیشتر...'
},
colors :
{
'000' : 'سیاه',
'800000' : 'خرمایی',
'8B4513' : 'قهوهای شکلاتی',
'2F4F4F' : 'ارغوانی مایل به خاکستری',
'008080' : 'آبی مایل به خاکستری',
'000080' : 'آبی سیر',
'4B0082' : 'نیلی',
'696969' : 'خاکستری تیره',
'B22222' : 'آتش آجری',
'A52A2A' : 'قهوهای',
'DAA520' : 'میلهی طلایی',
'006400' : 'سبز تیره',
'40E0D0' : 'فیروزهای',
'0000CD' : 'آبی روشن',
'800080' : 'ارغوانی',
'808080' : 'خاکستری',
'F00' : 'قرمز',
'FF8C00' : 'نارنجی پررنگ',
'FFD700' : 'طلایی',
'008000' : 'سبز',
'0FF' : 'آبی مایل به سبز',
'00F' : 'آبی',
'EE82EE' : 'بنفش',
'A9A9A9' : 'خاکستری مات',
'FFA07A' : 'صورتی کدر روشن',
'FFA500' : 'نارنجی',
'FFFF00' : 'زرد',
'00FF00' : 'فسفری',
'AFEEEE' : 'فیروزهای رنگ پریده',
'ADD8E6' : 'آبی کمرنگ',
'DDA0DD' : 'آلویی',
'D3D3D3' : 'خاکستری روشن',
'FFF0F5' : 'بنفش کمرنگ',
'FAEBD7' : 'عتیقه سفید',
'FFFFE0' : 'زرد روشن',
'F0FFF0' : 'عسلی',
'F0FFFF' : 'لاجوردی',
'F0F8FF' : 'آبی براق',
'E6E6FA' : 'بنفش کمرنگ',
'FFF' : 'سفید'
},
scayt :
{
title : 'بررسی املای تایپ شما',
opera_title : 'توسط اپرا پشتیبانی نمیشود',
enable : 'فعالسازی SCAYT',
disable : 'غیرفعالسازی SCAYT',
about : 'درباره SCAYT',
toggle : 'ضامن SCAYT',
options : 'گزینهها',
langs : 'زبانها',
moreSuggestions : 'پیشنهادهای بیشتر',
ignore : 'عبور کردن',
ignoreAll : 'عبور کردن از همه',
addWord : 'افزودن Word',
emptyDic : 'نام دیکشنری نباید خالی باشد.',
optionsTab : 'گزینهها',
allCaps : 'نادیده گرفتن همه کلاه-واژهها',
ignoreDomainNames : 'عبور از نامهای دامنه',
mixedCase : 'عبور از کلماتی مرکب از حروف بزرگ و کوچک',
mixedWithDigits : 'عبور از کلمات به همراه عدد',
languagesTab : 'زبانها',
dictionariesTab : 'دیکشنریها',
dic_field_name : 'نام دیکشنری',
dic_create : 'ایجاد',
dic_restore : 'بازیافت',
dic_delete : 'حذف',
dic_rename : 'تغییر نام',
dic_info : 'در ابتدا دیکشنری کاربر در کوکی ذخیره میشود. با این حال، کوکیها در اندازه محدود شدهاند. وقتی که دیکشنری کاربری بزرگ میشود و به نقطهای که نمیتواند در کوکی ذخیره شود، پس از آن دیکشنری ممکن است بر روی سرور ما ذخیره شود. برای ذخیره دیکشنری شخصی شما بر روی سرور ما، باید یک نام برای دیکشنری خود مشخص نمایید. اگر شما قبلا یک دیکشنری روی سرور ما ذخیره کردهاید، لطفا نام آنرا درج و روی دکمه بازیافت کلیک نمایید.',
aboutTab : 'درباره'
},
about :
{
title : 'درباره CKEditor',
dlgTitle : 'درباره CKEditor',
help : 'بررسی $1 برای راهنمایی.',
userGuide : 'راهنمای کاربران CKEditor',
moreInfo : 'برای کسب اطلاعات مجوز لطفا به وب سایت ما مراجعه کنید:',
copy : 'حق نشر © $1. کلیه حقوق محفوظ است.'
},
maximize : 'حداکثر کردن',
minimize : 'حداقل کردن',
fakeobjects :
{
anchor : 'لنگر',
flash : 'انیمشن فلش',
iframe : 'IFrame',
hiddenfield : 'فیلد پنهان',
unknown : 'شیء ناشناخته'
},
resize : 'کشیدن برای تغییر اندازه',
colordialog :
{
title : 'انتخاب رنگ',
options : 'گزینههای رنگ',
highlight : 'متمایز',
selected : 'رنگ انتخاب شده',
clear : 'پاک کردن'
},
toolbarCollapse : 'بستن نوار ابزار',
toolbarExpand : 'بازکردن نوار ابزار',
toolbarGroups :
{
document : 'سند',
clipboard : 'حافظه موقت/برگشت',
editing : 'در حال ویرایش',
forms : 'فرمها',
basicstyles : 'شیوههای پایه',
paragraph : 'بند',
links : 'پیوندها',
insert : 'ورود',
styles : 'شیوهها',
colors : 'رنگها',
tools : 'ابزارها'
},
bidi :
{
ltr : 'نوشتار متن از چپ به راست',
rtl : 'نوشتار متن از راست به چپ'
},
docprops :
{
label : 'ویژگیهای سند',
title : 'ویژگیهای سند',
design : 'طراحی',
meta : 'فراداده',
chooseColor : 'انتخاب',
other : '<سایر>',
docTitle : 'عنوان صفحه',
charset : 'رمزگذاری نویسهگان',
charsetOther : 'رمزگذاری نویسهگان دیگر',
charsetASCII : 'ASCII',
charsetCE : 'اروپای مرکزی',
charsetCT : 'چینی رسمی (Big5)',
charsetCR : 'سیریلیک',
charsetGR : 'یونانی',
charsetJP : 'ژاپنی',
charsetKR : 'کرهای',
charsetTR : 'ترکی',
charsetUN : 'یونیکُد (UTF-8)',
charsetWE : 'اروپای غربی',
docType : 'عنوان نوع سند',
docTypeOther : 'عنوان نوع سند دیگر',
xhtmlDec : 'شامل تعاریف XHTML',
bgColor : 'رنگ پسزمینه',
bgImage : 'URL تصویر پسزمینه',
bgFixed : 'پسزمینهٴ پیمایش ناپذیر',
txtColor : 'رنگ متن',
margin : 'حاشیههای صفحه',
marginTop : 'بالا',
marginLeft : 'چپ',
marginRight : 'راست',
marginBottom : 'پایین',
metaKeywords : 'کلیدواژگان نمایهگذاری سند (با کاما جدا شوند)',
metaDescription : 'توصیف سند',
metaAuthor : 'نویسنده',
metaCopyright : 'حق انتشار',
previewHtml : '<p>این یک <strong>متن نمونه</strong> است. شما در حال استفاده از <a href="javascript:void(0)">CKEditor</a> هستید.</p>'
}
};
| JavaScript |
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
/**
* @fileOverview
*/
/**#@+
@type String
@example
*/
/**
* Contains the dictionary of language entries.
* @namespace
*/
CKEDITOR.lang['ku'] =
{
/**
* The language reading direction. Possible values are "rtl" for
* Right-To-Left languages (like Arabic) and "ltr" for Left-To-Right
* languages (like English).
* @default 'ltr'
*/
dir : 'rtl',
/*
* Screenreader titles. Please note that screenreaders are not always capable
* of reading non-English words. So be careful while translating it.
*/
editorTitle : 'دهسکاریکهری ناونیشان',
editorHelp : 'کلیکی ALT لهگهڵ 0 بکه بۆ یارمهتی',
// ARIA descriptions.
toolbars : 'تووڵاەرازی دەسکاریکەر',
editor : 'سەرنووسەی دەقی بەپیت',
// Toolbar buttons without dialogs.
source : 'سەرچاوە',
newPage : 'پەڕەیەکی نوێ',
save : 'پاشکەوتکردن',
preview : 'پێشبینین',
cut : 'بڕین',
copy : 'لەبەرگرنتەوه',
paste : 'لکاندن',
print : 'چاپکردن',
underline : 'ژێرهێڵ',
bold : 'قەڵەو',
italic : 'لار',
selectAll : 'نیشانکردنی هەمووی',
removeFormat : 'لابردنی داڕشتەکە',
strike : 'لێدان',
subscript : 'ژێرنووس',
superscript : 'سەرنووس',
horizontalrule : 'دانانی هێلی ئاسۆیی',
pagebreak : 'دانانی پشووی پەڕە بۆ چاپکردن',
pagebreakAlt : 'پشووی پەڕە',
unlink : 'لابردنی بەستەر',
undo : 'پووچکردنەوه',
redo : 'هەڵگەڕاندنەوه',
// Common messages and labels.
common :
{
browseServer : 'هێنانی ڕاژە',
url : 'ناونیشانی بەستەر',
protocol : 'پڕۆتۆکۆڵ',
upload : 'بارکردن',
uploadSubmit : 'ناردنی بۆ ڕاژە',
image : 'وێنە',
flash : 'فلاش',
form : 'داڕشتە',
checkbox : 'خانەی نیشانکردن',
radio : 'جێگرەوەی دوگمە',
textField : 'خانەی دەق',
textarea : 'ڕووبەری دەق',
hiddenField : 'شاردنەوی خانە',
button : 'دوگمە',
select : 'هەڵبژاردەی خانە',
imageButton : 'دوگمەی وێنە',
notSet : '<هیچ دانەدراوە>',
id : 'ناسنامە',
name : 'ناو',
langDir : 'ئاراستەی زمان',
langDirLtr : 'چەپ بۆ ڕاست (LTR)',
langDirRtl : 'ڕاست بۆ چەپ (RTL)',
langCode : 'هێمای زمان',
longDescr : 'پێناسەی درێژی بەستەر',
cssClass : 'شێوازی چینی پهڕە',
advisoryTitle : 'ڕاوێژکاری سەردێڕ',
cssStyle : 'شێواز',
ok : 'باشە',
cancel : 'هەڵوەشاندن',
close : 'داخستن',
preview : 'پێشبینین',
generalTab : 'گشتی',
advancedTab : 'پهرهسهندوو',
validateNumberFailed : 'ئەم نرخە ژمارە نیه، تکایە نرخێکی ژمارە بنووسە.',
confirmNewPage : 'سەرجەم گۆڕانکاریەکان و پێکهاتەکانی ناوەووە لەدەست دەدەی گەر بێتوو پاشکەوتی نەکەی یەکەم جار، تۆ هەر دڵنیایی لەکردنەوەی پەنجەرەکی نوێ؟',
confirmCancel : 'هەندێك هەڵبژاردە گۆڕدراوە. تۆ دڵنیایی لهداخستنی ئەم دیالۆگە؟',
options : 'هەڵبژاردە',
target : 'ئامانج',
targetNew : 'پەنجەرەیهکی نوێ (_blank)',
targetTop : 'لووتکەی پەنجەرە (_top)',
targetSelf : 'لەهەمان پەنجەرە (_self)',
targetParent : 'پەنجەرەی باوان (_parent)',
langDirLTR : 'چەپ بۆ ڕاست (LTR)',
langDirRTL : 'ڕاست بۆ چەپ (RTL)',
styles : 'شێواز',
cssClasses : 'شێوازی چینی پەڕە',
width : 'پانی',
height : 'درێژی',
align : 'ڕێککەرەوە',
alignLeft : 'چەپ',
alignRight : 'ڕاست',
alignCenter : 'ناوەڕاست',
alignTop : 'سەرەوە',
alignMiddle : 'ناوەند',
alignBottom : 'ژێرەوە',
invalidValue : 'نرخێکی نادرووست.',
invalidHeight : 'درێژی دەبێت ژمارە بێت.',
invalidWidth : 'پانی دەبێت ژمارە بێت.',
invalidCssLength : 'ئەم نرخەی دراوە بۆ خانەی "%1" دەبێت ژمارەکی درووست بێت یان بێ ناونیشانی ئامرازی (px, %, in, cm, mm, em, ex, pt, یان pc).',
invalidHtmlLength : 'ئەم نرخەی دراوە بۆ خانەی "%1" دەبێت ژمارەکی درووست بێت یان بێ ناونیشانی ئامرازی HTML (px یان %).',
invalidInlineStyle : 'دانهی نرخی شێوازی ناوهێڵ دهبێت پێکهاتبێت لهیهك یان زیاتری داڕشته "ناو : نرخ", جیاکردنهوهی بهفاریزهوخاڵ',
cssLengthTooltip : 'ژمارهیهك بنووسه بۆ نرخی piksel یان ئامرازێکی درووستی CSS (px, %, in, cm, mm, em, ex, pt, یان pc).',
// Put the voice-only part of the label in the span.
unavailable : '%1<span class="cke_accessibility">, ئامادە نیە</span>'
},
contextmenu :
{
options : 'هەڵبژاردەی لیستەی کلیکی دەستی ڕاست'
},
// Special char dialog.
specialChar :
{
toolbar : 'دانانەی نووسەی تایبەتی',
title : 'هەڵبژاردنی نووسەی تایبەتی',
options : 'هەڵبژاردەی نووسەی تایبەتی'
},
// Link dialog.
link :
{
toolbar : 'دانان/ڕێکخستنی بەستەر',
other : '<هیتر>',
menu : 'چاکسازی بەستەر',
title : 'بەستەر',
info : 'زانیاری بەستەر',
target : 'ئامانج',
upload : 'بارکردن',
advanced : 'پێشکهوتوو',
type : 'جۆری بهستهر',
toUrl : 'ناونیشانی بهستهر',
toAnchor : 'بهستهر بۆ لهنگهر له دهق',
toEmail : 'ئیمهیل',
targetFrame : '<چووارچێوه>',
targetPopup : '<پهنجهرهی سهرههڵدهر>',
targetFrameName : 'ناوی ئامانجی چووارچێوه',
targetPopupName : 'ناوی پهنجهرهی سهرههڵدهر',
popupFeatures : 'خاسیهتی پهنجهرهی سهرههڵدهر',
popupResizable : 'توانای گۆڕینی قهباره',
popupStatusBar : 'هێڵی دۆخ',
popupLocationBar: 'هێڵی ناونیشانی بهستهر',
popupToolbar : 'هێڵی تووڵامراز',
popupMenuBar : 'هێڵی لیسته',
popupFullScreen : 'پڕ بهپڕی شاشه (IE)',
popupScrollBars : 'هێڵی هاتووچۆپێکردن',
popupDependent : 'پێوهبهستراو (Netscape)',
popupLeft : 'جێگای چهپ',
popupTop : 'جێگای سهرهوه',
id : 'ناسنامه',
langDir : 'ئاراستهی زمان',
langDirLTR : 'چهپ بۆ ڕاست (LTR)',
langDirRTL : 'ڕاست بۆ چهپ (RTL)',
acccessKey : 'کلیلی دهستپێگهیشتن',
name : 'ناو',
langCode : 'هێمای زمان',
tabIndex : 'بازدهری تابی ئیندێکس',
advisoryTitle : 'ڕاوێژکاری سهردێڕ',
advisoryContentType : 'جۆری ناوهڕۆکی ڕاویژکار',
cssClasses : 'شێوازی چینی پهڕه',
charset : 'بەستەری سەرچاوەی نووسه',
styles : 'شێواز',
rel : 'پهیوهندی (rel)',
selectAnchor : 'ههڵبژاردنی لهنگهرێك',
anchorName : 'بهپێی ناوی لهنگهر',
anchorId : 'بهپێی ناسنامهی توخم',
emailAddress : 'ناونیشانی ئیمهیل',
emailSubject : 'بابهتی نامه',
emailBody : 'ناوهڕۆکی نامه',
noAnchors : '(هیچ جۆرێکی لهنگهر ئاماده نیه لهم پهڕهیه)',
noUrl : 'تکایه ناونیشانی بهستهر بنووسه',
noEmail : 'تکایه ناونیشانی ئیمهیل بنووسه'
},
// Anchor dialog
anchor :
{
toolbar : 'دانان/چاکسازی لهنگهر',
menu : 'چاکسازی لهنگهر',
title : 'خاسیهتی لهنگهر',
name : 'ناوی لهنگهر',
errorName : 'تکایه ناوی لهنگهر بنووسه',
remove : 'لابردنی لهنگهر'
},
// List style dialog
list:
{
numberedTitle : 'خاسیهتی لیستی ژمارهیی',
bulletedTitle : 'خاسیهتی لیستی خاڵی',
type : 'جۆر',
start : 'دهستپێکردن',
validateStartNumber :'دهستپێکهری لیستی ژمارهیی دهبێت تهنها ژماره بێت.',
circle : 'بازنه',
disc : 'پهپکه',
square : 'چووراگۆشه',
none : 'هیچ',
notset : '<دانهندراوه>',
armenian : 'ئاراستهی ژمارهی ئهرمهنی',
georgian : 'ئاراستهی ژمارهی جۆڕجی (an, ban, gan, وههیتر.)',
lowerRoman : 'ژمارهی ڕۆمی بچووك (i, ii, iii, iv, v, وههیتر.)',
upperRoman : 'ژمارهی ڕۆمی گهوره (I, II, III, IV, V, وههیتر.)',
lowerAlpha : 'ئهلفابێی بچووك (a, b, c, d, e, وههیتر.)',
upperAlpha : 'ئهلفابێی گهوره (A, B, C, D, E, وههیتر.)',
lowerGreek : 'یۆنانی بچووك (alpha, beta, gamma, وههیتر.)',
decimal : 'ژماره (1, 2, 3, وههیتر.)',
decimalLeadingZero : 'ژماره سفڕی لهپێشهوه (01, 02, 03, وههیتر.)'
},
// Find And Replace Dialog
findAndReplace :
{
title : 'گهڕان وه لهبریدانان',
find : 'گهڕان',
replace : 'لهبریدانان',
findWhat : 'گهڕان بهدووای:',
replaceWith : 'لهبریدانان به:',
notFoundMsg : 'هیچ دهقه گهڕانێك نهدۆزراوه.',
findOptions : 'ههڵبژاردهکانی گهڕان',
matchCase : 'جیاکردنهوه لهنێوان پیتی گهورهو بچووك',
matchWord : 'تهنها ههموو وشهکه',
matchCyclic : 'گهڕان لهههموو پهڕهکه',
replaceAll : 'لهبریدانانی ههمووی',
replaceSuccessMsg : ' پێشهاته(ی) لهبری دانرا. %1'
},
// Table Dialog
table :
{
toolbar : 'خشته',
title : 'خاسیهتی خشته',
menu : 'خاسیهتی خشته',
deleteTable : 'سڕینهوهی خشته',
rows : 'ڕیز',
columns : 'ستوونهکان',
border : 'گهورهیی پهراوێز',
widthPx : 'وێنهخاڵ - پیکسل',
widthPc : 'لهسهدا',
widthUnit : 'پانی یهکه',
cellSpace : 'بۆشایی خانه',
cellPad : 'بۆشایی ناوپۆش',
caption : 'سهردێڕ',
summary : 'کورته',
headers : 'سهرپهڕه',
headersNone : 'هیچ',
headersColumn : 'یهکهم ئهستوون',
headersRow : 'یهکهم ڕیز',
headersBoth : 'ههردووك',
invalidRows : 'ژمارهی ڕیز دهبێت گهورهتر بێت لهژمارهی 0.',
invalidCols : 'ژمارهی ئهستوونی دهبێت گهورهتر بێت لهژمارهی 0.',
invalidBorder : 'ژمارهی پهراوێز دهبێت تهنها ژماره بێت.',
invalidWidth : 'پانی خشته دهبێت تهنها ژماره بێت.',
invalidHeight : 'درێژی خشته دهبێت تهنها ژماره بێت.',
invalidCellSpacing : 'بۆشایی خانه دهبێت ژمارهکی درووست بێت.',
invalidCellPadding : 'ناوپۆشی خانه دهبێت ژمارهکی درووست بێت.',
cell :
{
menu : 'خانه',
insertBefore : 'دانانی خانه لهپێش',
insertAfter : 'دانانی خانه لهپاش',
deleteCell : 'سڕینهوهی خانه',
merge : 'تێکهڵکردنی خانه',
mergeRight : 'تێکهڵکردنی لهگهڵ ڕاست',
mergeDown : 'تێکهڵکردنی لهگهڵ خوارهوه',
splitHorizontal : 'دابهشکردنی خانهی ئاسۆیی',
splitVertical : 'دابهشکردنی خانهی ئهستونی',
title : 'خاسیهتی خانه',
cellType : 'جۆری خانه',
rowSpan : 'ماوهی نێوان ڕیز',
colSpan : 'بستی ئهستونی',
wordWrap : 'پێچانهوهی وشه',
hAlign : 'ڕیزکردنی ئاسۆیی',
vAlign : 'ڕیزکردنی ئهستونی',
alignBaseline : 'هێڵهبنهڕهت',
bgColor : 'ڕهنگی پاشبنهما',
borderColor : 'ڕهنگی پهراوێز',
data : 'داتا',
header : 'سهرپهڕه',
yes : 'بهڵێ',
no : 'نهخێر',
invalidWidth : 'پانی خانه دهبێت بهتهواوی ژماره بێت.',
invalidHeight : 'درێژی خانه بهتهواوی دهبێت ژماره بێت.',
invalidRowSpan : 'ماوهی نێوان ڕیز بهتهواوی دهبێت ژماره بێت.',
invalidColSpan : 'ماوهی نێوان ئهستونی بهتهواوی دهبێت ژماره بێت.',
chooseColor : 'ههڵبژاردن'
},
row :
{
menu : 'ڕیز',
insertBefore : 'دانانی ڕیز لهپێش',
insertAfter : 'دانانی ڕیز لهپاش',
deleteRow : 'سڕینهوهی ڕیز'
},
column :
{
menu : 'ئهستون',
insertBefore : 'دانانی ئهستون لهپێش',
insertAfter : 'دانانی ئهستوون لهپاش',
deleteColumn : 'سڕینهوهی ئهستوون'
}
},
// Button Dialog.
button :
{
title : 'خاسیهتی دوگمه',
text : '(نرخی) دهق',
type : 'جۆر',
typeBtn : 'دوگمه',
typeSbm : 'ناردن',
typeRst : 'ڕێکخستنهوه'
},
// Checkbox and Radio Button Dialogs.
checkboxAndRadio :
{
checkboxTitle : 'خاسیهتی چووارگۆشی پشکنین',
radioTitle : 'خاسیهتی جێگرهوهی دوگمه',
value : 'نرخ',
selected : 'ههڵبژاردرا'
},
// Form Dialog.
form :
{
title : 'خاسیهتی داڕشته',
menu : 'خاسیهتی داڕشته',
action : 'کردار',
method : 'ڕێگه',
encoding : 'بهکۆدکهر'
},
// Select Field Dialog.
select :
{
title : 'ههڵبژاردهی خاسیهتی خانه',
selectInfo : 'زانیاری',
opAvail : 'ههڵبژاردهی ههبوو',
value : 'نرخ',
size : 'گهورهیی',
lines : 'هێڵهکان',
chkMulti : 'ڕێدان بهفره ههڵبژارده',
opText : 'دهق',
opValue : 'نرخ',
btnAdd : 'زیادکردن',
btnModify : 'گۆڕانکاری',
btnUp : 'سهرهوه',
btnDown : 'خوارهوه',
btnSetValue : 'دابنێ وهك نرخێکی ههڵبژێردراو',
btnDelete : 'سڕینهوه'
},
// Textarea Dialog.
textarea :
{
title : 'خاسیهتی ڕووبهری دهق',
cols : 'ئهستونیهکان',
rows : 'ڕیزهکان'
},
// Text Field Dialog.
textfield :
{
title : 'خاسیهتی خانهی دهق',
name : 'ناو',
value : 'نرخ',
charWidth : 'پانی نووسه',
maxChars : 'ئهوپهڕی نووسه',
type : 'جۆر',
typeText : 'دهق',
typePass : 'پێپهڕهوشه'
},
// Hidden Field Dialog.
hidden :
{
title : 'خاسیهتی خانهی شاردراوه',
name : 'ناو',
value : 'نرخ'
},
// Image Dialog.
image :
{
title : 'خاسیهتی وێنه',
titleButton : 'خاسیهتی دوگمهی وێنه',
menu : 'خاسیهتی وێنه',
infoTab : 'زانیاری وێنه',
btnUpload : 'ناردنی بۆ ڕاژه',
upload : 'بارکردن',
alt : 'جێگرهوهی دهق',
lockRatio : 'داخستنی ڕێژه',
resetSize : 'ڕێکخستنهوهی قهباره',
border : 'پهراوێز',
hSpace : 'بۆشایی ئاسۆیی',
vSpace : 'بۆشایی ئهستونی',
alertUrl : 'تکایه ناونیشانی بهستهری وێنه بنووسه',
linkTab : 'بهستهر',
button2Img : 'تۆ دهتهوێت دوگمهی وێنهی دیاریکراو بگۆڕیت بۆ وێنهکی ئاسایی؟',
img2Button : 'تۆ دهتهوێت وێنهی دیاریکراو بگۆڕیت بۆ دوگمهی وێنه؟',
urlMissing : 'سهرچاوهی بهستهری وێنه بزره',
validateBorder : 'پهراوێز دهبێت بهتهواوی تهنها ژماره بێت.',
validateHSpace : 'بۆشایی ئاسۆیی دهبێت بهتهواوی تهنها ژماره بێت.',
validateVSpace : 'بۆشایی ئهستونی دهبێت بهتهواوی تهنها ژماره بێت.'
},
// Flash Dialog
flash :
{
properties : 'خاسیهتی فلاش',
propertiesTab : 'خاسیهت',
title : 'خاسیهتی فلاش',
chkPlay : 'پێکردنی یان لێدانی خۆکار',
chkLoop : 'گرێ',
chkMenu : 'چالاککردنی لیستهی فلاش',
chkFull : 'ڕێپێدان به پڕ بهپڕی شاشه',
scale : 'پێوانه',
scaleAll : 'نیشاندانی ههموو',
scaleNoBorder : 'بێ پهراوێز',
scaleFit : 'بهوردی بگونجێت',
access : 'دهستپێگهیشتنی نووسراو',
accessAlways : 'ههمیشه',
accessSameDomain: 'ههمان دۆمهین',
accessNever : 'ههرگیز',
alignAbsBottom : 'له ژێرهوه',
alignAbsMiddle : 'لهناوهند',
alignBaseline : 'هێڵەبنەڕەت',
alignTextTop : 'دهق لهسهرهوه',
quality : 'جۆرایهتی',
qualityBest : 'باشترین',
qualityHigh : 'بهرزی',
qualityAutoHigh : 'بهرزی خۆکار',
qualityMedium : 'مامناوهند',
qualityAutoLow : 'نزمی خۆکار',
qualityLow : 'نزم',
windowModeWindow: 'پهنجهره',
windowModeOpaque: 'ناڕوون',
windowModeTransparent : 'ڕۆشن',
windowMode : 'شێوازی پهنجهره',
flashvars : 'گۆڕاوهکان بۆ فلاش',
bgcolor : 'ڕهنگی پاشبنهما',
hSpace : 'بۆشایی ئاسۆیی',
vSpace : 'بۆشایی ئهستونی',
validateSrc : 'ناونیشانی بهستهر نابێت خاڵی بێت',
validateHSpace : 'بۆشایی ئاسۆیی دهبێت ژماره بێت.',
validateVSpace : 'بۆشایی ئهستونی دهبێت ژماره بێت.'
},
// Speller Pages Dialog
spellCheck :
{
toolbar : 'پشکنینی ڕێنووس',
title : 'پشکنینی ڕێنووس',
notAvailable : 'ببووره، لهمکاتهدا ڕاژهکه لهبهردهستا نیه.',
errorLoading : 'ههڵه لههێنانی داخوازینامهی خانهخۆێی ڕاژه: %s.',
notInDic : 'لهفهرههنگ دانیه',
changeTo : 'گۆڕینی بۆ',
btnIgnore : 'پشتگوێ کردن',
btnIgnoreAll : 'پشتگوێکردنی ههمووی',
btnReplace : 'لهبریدانن',
btnReplaceAll : 'لهبریدانانی ههمووی',
btnUndo : 'پووچکردنهوه',
noSuggestions : '- هیچ پێشنیارێك -',
progress : 'پشکنینی ڕێنووس لهبهردهوامبوون دایه...',
noMispell : 'پشکنینی ڕێنووس کۆتای هات: هیچ ههڵهیهکی ڕێنووس نهدۆزراوه',
noChanges : 'پشکنینی ڕێنووس کۆتای هات: هیچ وشهیهك نۆگۆڕدرا',
oneChange : 'پشکنینی ڕێنووس کۆتای هات: یهك وشه گۆڕدرا',
manyChanges : 'پشکنینی ڕێنووس کۆتای هات: لهسهدا %1 ی وشهکان گۆڕدرا',
ieSpellDownload : 'پشکنینی ڕێنووس دانهمزراوه. دهتهوێت ئێستا دایبگریت?'
},
smiley :
{
toolbar : 'زهردهخهنه',
title : 'دانانی زهردهخهنهیهك',
options : 'ههڵبژاردهی زهردهخهنه'
},
elementsPath :
{
eleLabel : 'ڕێڕهوی توخمهکان',
eleTitle : '%1 توخم'
},
numberedlist : 'دانان/لابردنی ژمارەی لیست',
bulletedlist : 'دانان/لابردنی خاڵی لیست',
indent : 'زیادکردنی بۆشایی',
outdent : 'کەمکردنەوەی بۆشایی',
justify :
{
left : 'بههێڵ کردنی چهپ',
center : 'ناوهڕاست',
right : 'بههێڵ کردنی ڕاست',
block : 'هاوستوونی'
},
blockquote : 'بەربەستکردنی وتەی وەرگیراو',
clipboard :
{
title : 'لکاندن',
cutError : 'پارێزی وێبگەڕەکەت ڕێگهنادات بە سەرنووسەکە لهبڕینی خۆکار. تکایە لەبری ئەمە ئەم فەرمانە بەکاربهێنە بەداگرتنی کلیلی (Ctrl/Cmd+X).',
copyError : 'پارێزی وێبگەڕەکەت ڕێگهنادات بەسەرنووسەکە لە لکاندنی دەقی خۆکار. تکایە لەبری ئەمە ئەم فەرمانە بەکاربهێنە بەداگرتنی کلیلی (Ctrl/Cmd+C).',
pasteMsg : 'تکایه بیلکێنه لهناوهوهی ئهم سنوقه لهڕێی تهختهکلیلهکهت بهباکارهێنانی کلیلی (<STRONG>Ctrl/Cmd+V</STRONG>) دووای کلیکی باشه بکه.',
securityMsg : 'بههۆی شێوهپێدانی پارێزی وێبگهڕهکهت، سهرنووسهکه ناتوانێت دهستبگهیهنێت بهههڵگیراوهکه ڕاستهوخۆ. بۆیه پێویسته دووباره بیلکێنیت لهم پهنجهرهیه.',
pasteArea : 'ناوچهی لکاندن'
},
pastefromword :
{
confirmCleanup : 'ئهم دهقهی بهتهمای بیلکێنی پێدهچێت له word هێنرابێت. دهتهوێت پاکی بکهیوه پێش ئهوهی بیلکێنی؟',
toolbar : 'لکاندنی لهڕێی Word',
title : 'لکاندنی لهلایهن Word',
error : 'هیچ ڕێگهیهك نهبوو لهلکاندنی دهقهکه بههۆی ههڵهکی ناوهخۆیی'
},
pasteText :
{
button : 'لکاندنی وهك دهقی ڕوون',
title : 'لکاندنی وهك دهقی ڕوون'
},
templates :
{
button : 'ڕووکار',
title : 'پێکهاتهی ڕووکار',
options : 'ههڵبژاردهکانی ڕووکار',
insertOption : 'لهشوێن دانانی ئهم پێکهاتانهی ئێستا',
selectPromptMsg : 'ڕووکارێك ههڵبژێره بۆ کردنهوهی له سهرنووسهر:',
emptyListMsg : '(هیچ ڕووکارێك دیارینهکراوه)'
},
showBlocks : 'نیشاندانی بەربەستەکان',
stylesCombo :
{
label : 'شێواز',
panelTitle : 'شێوازی ڕازاندنهوه',
panelTitle1 : 'شێوازی خشت',
panelTitle2 : 'شێوازی ناوهێڵ',
panelTitle3 : 'شێوازی بهرکار'
},
format :
{
label : 'ڕازاندنهوه',
panelTitle : 'بهشی ڕازاندنهوه',
tag_p : 'ئاسایی',
tag_pre : 'شێوازکراو',
tag_address : 'ناونیشان',
tag_h1 : 'سهرنووسهی ١',
tag_h2 : 'سهرنووسهی ٢',
tag_h3 : 'سهرنووسهی ٣',
tag_h4 : 'سهرنووسهی ٤',
tag_h5 : 'سهرنووسهی ٥',
tag_h6 : 'سهرنووسهی ٦',
tag_div : '(DIV)-ی ئاسایی'
},
div :
{
title : 'دانانی لهخۆگری Div',
toolbar : 'دانانی لهخۆگری Div',
cssClassInputLabel : 'شێوازی چینی پهڕه',
styleSelectLabel : 'شێواز',
IdInputLabel : 'ناسنامه',
languageCodeInputLabel : 'هێمای زمان',
inlineStyleInputLabel : 'شێوازی ناوهێڵ',
advisoryTitleInputLabel : 'سهردێڕ',
langDirLabel : 'ئاراستهی زمان',
langDirLTRLabel : 'چهپ بۆ ڕاست (LTR)',
langDirRTLLabel : 'ڕاست بۆ چهپ (RTL)',
edit : 'چاکسازی Div',
remove : 'لابردنی Div'
},
iframe :
{
title : 'دیالۆگی چووارچێوه',
toolbar : 'چووارچێوه',
noUrl : 'تکایه ناونیشانی بهستهر بنووسه بۆ چووارچێوه',
scrolling : 'چالاککردنی هاتووچۆپێکردن',
border : 'نیشاندانی لاکێشه بهچوواردهوری چووارچێوه'
},
font :
{
label : 'فۆنت',
voiceLabel : 'فۆنت',
panelTitle : 'ناوی فۆنت'
},
fontSize :
{
label : 'گهورهیی',
voiceLabel : 'گهورهیی فۆنت',
panelTitle : 'گهورهیی فۆنت'
},
colorButton :
{
textColorTitle : 'ڕهنگی دهق',
bgColorTitle : 'ڕهنگی پاشبنهما',
panelTitle : 'ڕهنگهکان',
auto : 'خۆکار',
more : 'ڕهنگی زیاتر...'
},
colors :
{
'000' : 'ڕهش',
'800000' : 'سۆرو ماڕوونی',
'8B4513' : 'ماڕوونی',
'2F4F4F' : 'سهوزی تاریك',
'008080' : 'سهوزو شین',
'000080' : 'شینی تۆخ',
'4B0082' : 'مۆری تۆخ',
'696969' : 'ڕهساسی تۆخ',
'B22222' : 'سۆری تۆخ',
'A52A2A' : 'قاوهیی',
'DAA520' : 'قاوهیی بریسکهدار',
'006400' : 'سهوزی تۆخ',
'40E0D0' : 'شینی ناتۆخی بریسکهدار',
'0000CD' : 'شینی مامناوهند',
'800080' : 'پهمبهیی',
'808080' : 'ڕهساسی',
'F00' : 'سۆر',
'FF8C00' : 'نارهنجی تۆخ',
'FFD700' : 'زهرد',
'008000' : 'سهوز',
'0FF' : 'شینی ئاسمانی',
'00F' : 'شین',
'EE82EE' : 'پهمهیی',
'A9A9A9' : 'ڕهساسی ناتۆخ',
'FFA07A' : 'نارهنجی ناتۆخ',
'FFA500' : 'نارهنجی',
'FFFF00' : 'زهرد',
'00FF00' : 'سهوز',
'AFEEEE' : 'شینی ناتۆخ',
'ADD8E6' : 'شینی زۆر ناتۆخ',
'DDA0DD' : 'پهمهیی ناتۆخ',
'D3D3D3' : 'ڕهساسی بریسکهدار',
'FFF0F5' : 'جهرگی زۆر ناتۆخ',
'FAEBD7' : 'جهرگی ناتۆخ',
'FFFFE0' : 'سپی ناتۆخ',
'F0FFF0' : 'ههنگوینی ناتۆخ',
'F0FFFF' : 'شینێکی زۆر ناتۆخ',
'F0F8FF' : 'شینێکی ئاسمانی زۆر ناتۆخ',
'E6E6FA' : 'شیری',
'FFF' : 'سپی'
},
scayt :
{
title : 'پشکنینی نووسه لهکاتی نووسین',
opera_title : 'پشتیوانی نهکراوه لهلایهن Opera',
enable : 'چالاککردنی SCAYT',
disable : 'ناچالاککردنی SCAYT',
about : 'دهربارهی SCAYT',
toggle : 'گۆڕینی SCAYT',
options : 'ههڵبژارده',
langs : 'زمانهکان',
moreSuggestions : 'پێشنیاری زیاتر',
ignore : 'پشتگوێخستن',
ignoreAll : 'پشتگوێخستنی ههمووی',
addWord : 'زیادکردنی ووشه',
emptyDic : 'ناوی فهرههنگ نابێت خاڵی بێت.',
optionsTab : 'ههڵبژارده',
allCaps : 'پشتگوێخستنی وشانهی پێکهاتووه لهپیتی گهوره',
ignoreDomainNames : 'پشتگوێخستنی دۆمهین',
mixedCase : 'پشتگوێخستنی وشانهی پێکهاتووه لهپیتی گهورهو بچووك',
mixedWithDigits : 'پشتگوێخستنی وشانهی پێکهاتووه لهژماره',
languagesTab : 'زمانهکان',
dictionariesTab : 'فهرههنگهکان',
dic_field_name : 'ناوی فهرههنگ',
dic_create : 'درووستکردن',
dic_restore : 'گهڕاندنهوه',
dic_delete : 'سڕینهوه',
dic_rename : 'گۆڕینی ناو',
dic_info : 'لهبنچینهدا فهرههنگی بهکارهێنهر کۆگاکردن کراوه له شهکرۆکه Cookie, ههرچۆنێك بێت شهکۆرکه سنووردار کراوه له قهباره کۆگاکردن.کاتێك فهرههنگی بهکارهێنهر گهیشته ئهم خاڵهی کهناتوانرێت زیاتر کۆگاکردن بکرێت له شهکرۆکه، ئهوسا فهرههنگهکه پێویسته کۆگابکرێت له ڕاژهکهی ئێمه. بۆ کۆگاکردنی زانیاری تایبهتی فهرههنگهکه له ڕاژهکهی ئێمه, پێویسته ناوێك ههڵبژێریت بۆ فهرههنگهکه. گهر تۆ فهرههنگێکی کۆگاکراوت ههیه, تکایه ناوی فهرههنگهکه بنووسه وه کلیکی دوگمهی گهڕاندنهوه بکه.',
aboutTab : 'دهربارهی'
},
about :
{
title : 'دهربارهی CKEditor',
dlgTitle : 'دهربارهی CKEditor',
help : 'سهیری $1 بکه بۆ یارمهتی.',
userGuide : 'ڕێپیشاندهری CKEditors',
moreInfo : 'بۆ زانیاری زیاتری مۆڵهت, تکایه سهردانی ماڵپهڕهکهمان بکه:',
copy : 'مافی لهبهرگرتنهوهی © $1. گشتی پارێزراوه.'
},
maximize : 'ئەوپهڕی گەورەیی',
minimize : 'ئەوپەڕی بچووکی',
fakeobjects :
{
anchor : 'لهنگهر',
flash : 'فلاش',
iframe : 'لهچوارچێوه',
hiddenfield : 'شاردنهوهی خانه',
unknown : 'بهرکارێکی نهناسراو'
},
resize : 'ڕابکێشە بۆ گۆڕینی قەبارەکەی',
colordialog :
{
title : 'ههڵبژاردنی ڕهنگ',
options : 'ههڵبژاردهی ڕهنگهکان',
highlight : 'نیشانکردن',
selected : 'ههڵبژاردرا',
clear : 'پاککردنهوه'
},
toolbarCollapse : 'شاردنەوی هێڵی تووڵامراز',
toolbarExpand : 'نیشاندانی هێڵی تووڵامراز',
toolbarGroups :
{
document : 'پهڕه',
clipboard : 'بڕین/پووچکردنهوه',
editing : 'چاکسازی',
forms : 'داڕشته',
basicstyles : 'شێوازی بنچینهیی',
paragraph : 'بڕگه',
links : 'بهستهر',
insert : 'خستنه ناو',
styles : 'شێواز',
colors : 'ڕهنگهکان',
tools : 'ئامرازهکان'
},
bidi :
{
ltr : 'ئاراستهی نووسه لهچهپ بۆ ڕاست',
rtl : 'ئاراستهی نووسه لهڕاست بۆ چهپ'
},
docprops :
{
label : 'خاسییهتی پهڕه',
title : 'خاسییهتی پهڕه',
design : 'شێوهکار',
meta : 'زانیاری مێتا',
chooseColor : 'ههڵبژێره',
other : 'هیتر...',
docTitle : 'سهردێڕی پهڕه',
charset : 'دهستهی نووسهی بهکۆدهکهر',
charsetOther : 'دهستهی نووسهی بهکۆدهکهری تر',
charsetASCII : 'ASCII',
charsetCE : 'ناوهڕاست ئهوروپا',
charsetCT : 'چینی(Big5)',
charsetCR : 'سیریلیك',
charsetGR : 'یۆنانی',
charsetJP : 'ژاپۆن',
charsetKR : 'کۆریا',
charsetTR : 'تورکیا',
charsetUN : 'Unicode (UTF-8)',
charsetWE : 'ڕۆژئاوای ئهوروپا',
docType : 'سهرپهڕهی جۆری پهڕه',
docTypeOther : 'سهرپهڕهی جۆری پهڕهی تر',
xhtmlDec : 'بهیاننامهکانی XHTML لهگهڵدابێت',
bgColor : 'ڕهنگی پاشبنهما',
bgImage : 'ناونیشانی بهستهری وێنهی پاشبنهما',
bgFixed : 'بێ هاتووچوپێکردنی (چهسپاو) پاشبنهمای وێنه',
txtColor : 'ڕهنگی دهق',
margin : 'تهنیشت پهڕه',
marginTop : 'سهرهوه',
marginLeft : 'چهپ',
marginRight : 'ڕاست',
marginBottom : 'ژێرهوه',
metaKeywords : 'بهڵگهنامهی وشهی کاریگهر(به کۆما لێکیان جیابکهوه)',
metaDescription : 'پێناسهی لاپهڕه',
metaAuthor : 'نووسهر',
metaCopyright : 'مافی بڵاوکردنهوهی',
previewHtml : '<p>ئهمه وهك نموونهی <strong>دهقه</strong>. تۆ بهکاردههێنیت <a href="javascript:void(0)">CKEditor</a>.</p>'
}
};
| JavaScript |
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.editorConfig = function( config )
{
// Define changes to default configuration here. For example:
// config.language = 'fr';
// config.uiColor = '#AADC6E';
};
| JavaScript |
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang('placeholder','nl',{placeholder:{title:'Eigenschappen placeholder',toolbar:'Placeholder aanmaken',text:'Placeholder tekst',edit:'Placeholder wijzigen',textMissing:'De placeholder moet tekst bevatten.'}});
| JavaScript |
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang('placeholder','ug',{placeholder:{title:'ئورۇن بەلگە خاسلىقى',toolbar:'ئورۇن بەلگە قۇر',text:'ئورۇن بەلگە تېكىستى',edit:'ئورۇن بەلگە تەھرىر',textMissing:'ئورۇن بەلگىسىدە چوقۇم تېكىست بولۇشى لازىم'}});
| JavaScript |
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang('placeholder','it',{placeholder:{title:'Proprietà segnaposto',toolbar:'Crea segnaposto',text:'Testo segnaposto',edit:'Modifica segnaposto',textMissing:'Il segnaposto deve contenere del testo.'}});
| JavaScript |
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang('placeholder','de',{placeholder:{title:'Platzhalter Einstellungen',toolbar:'Platzhalter erstellen',text:'Platzhalter Text',edit:'Platzhalter bearbeiten',textMissing:'Der Platzhalter muss einen Text beinhalten.'}});
| JavaScript |
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang('placeholder','pl',{placeholder:{title:'Właściwości wypełniacza',toolbar:'Utwórz wypełniacz',text:'Tekst wypełnienia',edit:'Edytuj wypełnienie',textMissing:'Wypełnienie musi posiadać jakiś tekst.'}});
| JavaScript |
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang('placeholder','vi',{placeholder:{title:'Thuộc tính đặt chỗ',toolbar:'Tạo đặt chỗ',text:'Văn bản đặt chỗ',edit:'Chỉnh sửa ',textMissing:'The placeholder must contain text.'}});
| JavaScript |
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang('placeholder','hr',{placeholder:{title:'Svojstva rezerviranog mjesta',toolbar:'Napravi rezervirano mjesto',text:'Tekst rezerviranog mjesta',edit:'Uredi rezervirano mjesto',textMissing:'Rezervirano mjesto mora sadržavati tekst.'}});
| JavaScript |
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang('placeholder','tr',{placeholder:{title:'Yer tutucu özellikleri',toolbar:'Yer tutucu oluşturun',text:'Yer tutucu metini',edit:'Yer tutucuyu düzenle',textMissing:'Yer tutucu metin içermelidir.'}});
| JavaScript |
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang('placeholder','fr',{placeholder:{title:"Propriétés de l'Espace réservé",toolbar:"Créer l'Espace réservé",text:"Texte de l'Espace réservé",edit:"Modifier l'Espace réservé",textMissing:"L'Espace réservé doit contenir du texte."}});
| JavaScript |
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang('placeholder','zh-cn',{placeholder:{title:'占位符属性',toolbar:'创建占位符',text:'占位符文字',edit:'编辑占位符',textMissing:'占位符必须包含文字。'}});
| JavaScript |
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang('placeholder','eo',{placeholder:{title:'Atributoj de la rezervita spaco',toolbar:'Krei la rezervitan spacon',text:'Texto de la rezervita spaco',edit:'Modifi la rezervitan spacon',textMissing:'La rezervita spaco devas enteni tekston.'}});
| JavaScript |
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang('placeholder','sk',{placeholder:{title:'Vlastnosti placeholdera',toolbar:'Vytvoriť placeholder',text:'Text placeholdera',edit:'Upraviť placeholder',textMissing:'Placeholder musí obsahovať text.'}});
| JavaScript |
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang('placeholder','en',{placeholder:{title:'Placeholder Properties',toolbar:'Create Placeholder',text:'Placeholder Text',edit:'Edit Placeholder',textMissing:'The placeholder must contain text.'}});
| JavaScript |
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang('placeholder','da',{placeholder:{title:'Egenskaber for pladsholder',toolbar:'Opret pladsholder',text:'Tekst til pladsholder',edit:'Redigér pladsholder',textMissing:'Pladsholder skal indeholde tekst'}});
| JavaScript |
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang('placeholder','nb',{placeholder:{title:'Egenskaper for plassholder',toolbar:'Opprett plassholder',text:'Tekst for plassholder',edit:'Rediger plassholder',textMissing:'Plassholderen må inneholde tekst.'}});
| JavaScript |
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang('placeholder','bg',{placeholder:{title:'Настройки на контейнера',toolbar:'Нов контейнер',text:'Текст за контейнера',edit:'Промяна на контейнер',textMissing:'Контейнера трябва да съдържа текст.'}});
| JavaScript |
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang('placeholder','el',{placeholder:{title:'Ιδιότητες Υποκατάστατου Κειμένου',toolbar:'Δημιουργία Υποκατάσταστου Κειμένου',text:'Υποκαθιστόμενο Κείμενο',edit:'Επεξεργασία Υποκατάσταστου Κειμένου',textMissing:'Πρέπει να υπάρχει υποκαθιστόμενο κείμενο.'}});
| JavaScript |
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang('placeholder','fi',{placeholder:{title:'Paikkamerkin ominaisuudet',toolbar:'Luo paikkamerkki',text:'Paikkamerkin teksti',edit:'Muokkaa paikkamerkkiä',textMissing:'Paikkamerkin täytyy sisältää tekstiä'}});
| JavaScript |
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang('placeholder','cy',{placeholder:{title:"Priodweddau'r Daliwr Geiriau",toolbar:'Creu Daliwr Geiriau',text:'Testun y Daliwr Geiriau',edit:"Golygu'r Dailwr Geiriau",textMissing:"Mae'n rhaid i'r daliwr geiriau gynnwys testun."}});
| JavaScript |
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang('placeholder','no',{placeholder:{title:'Egenskaper for plassholder',toolbar:'Opprett plassholder',text:'Tekst for plassholder',edit:'Rediger plassholder',textMissing:'Plassholderen må inneholde tekst.'}});
| JavaScript |
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'placeholder', 'fa',
{
placeholder :
{
title : 'ویژگیهای محل نگهداری',
toolbar : 'ایجاد یک محل نگهداری',
text : 'متن محل نگهداری',
edit : 'ویرایش محل نگهداری',
textMissing : 'محل نگهداری باید محتوی متن باشد.'
}
});
| JavaScript |
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang('placeholder','et',{placeholder:{title:'Kohahoidja omadused',toolbar:'Kohahoidja loomine',text:'Kohahoidja tekst',edit:'Kohahoidja muutmine',textMissing:'Kohahoidja peab sisaldama teksti.'}});
| JavaScript |
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang('placeholder','he',{placeholder:{title:'מאפייני שומר מקום',toolbar:'צור שומר מקום',text:'תוכן שומר המקום',edit:'ערוך שומר מקום',textMissing:'שומר המקום חייב להכיל טקסט.'}});
| JavaScript |
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang('placeholder','uk',{placeholder:{title:'Налаштування Заповнювача',toolbar:'Створити Заповнювач',text:'Текст Заповнювача',edit:'Редагувати Заповнювач',textMissing:'Заповнювач повинен містити текст.'}});
| JavaScript |
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang('placeholder','cs',{placeholder:{title:'Vlastnosti vyhrazeného prostoru',toolbar:'Vytvořit vyhrazený prostor',text:'Vyhrazený text',edit:'Upravit vyhrazený prostor',textMissing:'Vyhrazený prostor musí obsahovat text.'}});
| JavaScript |
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'placeholder', 'ku',
{
placeholder :
{
title : 'خاسیهتی شوێن ههڵگر',
toolbar : 'درووستکردنی شوێن ههڵگر',
text : 'دهق بۆ شوێن ههڵگڕ',
edit : 'چاکسازی شوێن ههڵگڕ',
textMissing : 'شوێن ههڵگڕ دهبێت لهدهق پێکهاتبێت.'
}
});
| JavaScript |
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang('placeholder','pt-br',{placeholder:{title:'Propriedades do Espaço Reservado',toolbar:'Criar Espaço Reservado',text:'Texto do Espaço Reservado',edit:'Editar Espaço Reservado',textMissing:'O espaço reservado deve conter texto.'}});
| JavaScript |
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang('uicolor','nl',{uicolor:{title:'UI Kleurenkiezer',preview:'Live voorbeeld',config:'Plak deze tekst in jouw config.js bestand',predefined:'Voorgedefinieerde kleurensets'}});
| JavaScript |
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang('uicolor','ug',{uicolor:{title:'ئىشلەتكۈچى ئارايۈزى رەڭ تاللىغۇچ',preview:'شۇئان ئالدىن كۆزىتىش',config:'بۇ ھەرپ تىزىقىنى config.js ھۆججەتكە چاپلايدۇ',predefined:'ئالدىن بەلگىلەنگەن رەڭلەر'}});
| JavaScript |
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang('uicolor','it',{uicolor:{title:'Selettore Colore UI',preview:'Anteprima Live',config:'Incolla questa stringa nel tuo file config.js',predefined:'Set di colori predefiniti'}});
| JavaScript |
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang('uicolor','de',{uicolor:{title:'UI Pipette',preview:'Live-Vorschau',config:"Fügen Sie diese Zeichenfolge in die 'config.js' Datei.",predefined:'Vordefinierte Farbsätze'}});
| JavaScript |
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang('uicolor','pl',{uicolor:{title:'Wybór koloru interfejsu',preview:'Podgląd na żywo',config:'Wklej poniższy łańcuch znaków do pliku config.js:',predefined:'Predefiniowane zestawy kolorów'}});
| JavaScript |
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang('uicolor','vi',{uicolor:{title:'Giao diện người dùng Color Picker',preview:'Xem trước trực tiếp',config:'Dán chuỗi này vào tập tin config.js của bạn',predefined:'Tập màu định nghĩa sẵn'}});
| JavaScript |
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang('uicolor','hr',{uicolor:{title:'UI odabir boja',preview:'Pregled uživo',config:'Zalijepite ovaj tekst u Vašu config.js datoteku.',predefined:'Već postavljeni setovi boja'}});
| JavaScript |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.