code stringlengths 1 2.01M | repo_name stringlengths 3 62 | path stringlengths 1 267 | language stringclasses 231 values | license stringclasses 13 values | size int64 1 2.01M |
|---|---|---|---|---|---|
<?php
session_start();
require "../../../global.php";//$dirname."/".
require RootDir."/"."inc/config.php";
require RootDir."/"."inc/Uifunction.php";
require RootDir."/".$SystemConest[1]."/UIFunction/adminClass.php";
require RootDir."/".$SystemConest[1]."/system/Config.php";
require RootDir."/".$SystemConest[1]."/system/menusys/function.php";
require RootDir."/".$SystemConest[1]."/system/classsys/function.php";
$mydb=new YYBDB();
//权限检查
$TableName= $mydb->getTableName($MenuId);
CheckRule($MenuId,$mydb,$TableName,"");//检查登陆权限
if(strlen($MenuId)==0) die;
$CurrPage=$_REQUEST["CurrPage"];
?>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>客户关系管理系统</title>
<link href="../../inc/Css.css" rel="stylesheet" type="text/css" />
</head>
<body>
<?
echo CurrPosition($MenuId,$mydb)
?>
<br>
<?
ShowList($mydb,$MenuId,$CurrPage,$StrWhere,"YKTtable","YKTth","YKTtd");
?>
</body>
</html>
| 10npsite | trunk/guanli/system/kefuguanxi/Index.php | PHP | asf20 | 1,043 |
<?php
//===============================================
// 单页图文系统
// 用于保存单页信息 如:公司介绍 公告等
//===============================================
$MyOnePageFields=array(8);
$MyOnePageDB=new YYBDB();
$MyOnePageDB->TableName="OnePageSys";
//加载栏目 返回RS或Nothing
function OnePageSys_Load($mydb,$MenuId)
{
$sqlrs="Select * from OnePageSys Where OnePageSys5=$MenuId";
$rsc=$mydb->db_select_query($sqlrs);
if($mydb->db_num_rows($rsc)>0)
{
return $mydb->db_fetch_array($rsc);
}
else
{
return NULL;
}
}
//Sub onePageSys_Add_Save(Conn)
// Set MyOnePageDB.Conn=Conn
// MyOnePageDB.ArrFields=MyOnePageFields
// MyOnePageDB.Add
// End Sub
//新建栏目保存
function onePageSys_Add_Save($mydb)
{
$mydb->ArrFields=$MyOnePageFields;
$mydb->Add();
}
//修改栏目保存
function onePageSys_UpDate_Save($mydb,$MenuId)
{
$MyOnePageFields[0]=GetOnePageID($mydb,$MenuId);
$mydb->ArrFields=$MyOnePageFields;
$mydb->Update();
}
//删除栏目
function onePageSys_Delete($mydb,$MenuId)
{
$MyOnePageFields[0]=GetOnePageID($mydb,$MenuId);
$mydb->ArrFields=$MyOnePageFields;
$mydb->Delete();
}
//获取栏目ID
function GetOnePageID($mydb,$MenuId)
{
global $SystemConest;
$TableName=reTableName($mydb,$MenuId);
$sqlrs="Select * from ".$SystemConest[7].$TableName." where $TableName".$mydb->getMenuIdNum($MenuId)."=$MenuId";
$rsc=$mydb->db_select_query($sqlrs);
if($rs=$mydb->db_fetch_array($rsc))
{
return $rs[0];
}
else
return 0;
}
?> | 10npsite | trunk/guanli/system/onepage/function.php | PHP | asf20 | 1,638 |
<?php
session_start();
require "../../../global.php";//$dirname."/".
require RootDir."/"."inc/config.php";
require RootDir."/"."inc/Uifunction.php";
require RootDir."/".$SystemConest[1]."/UIFunction/adminClass.php";
require RootDir."/".$SystemConest[1]."/system/Config.php";
require RootDir."/".$SystemConest[1]."/system/menusys/function.php";
require RootDir."/".$SystemConest[1]."/system/classsys/function.php";
require "function.php";
$mydb=new YYBDB();
$TableName= $mydb->getTableName($MenuId);
CheckRule($MenuId,$mydb,$TableName,"");//检查登陆权限
?>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="../../Inc/Css.css" rel="stylesheet" type="text/css" />
<title>增加单页信息</title>
</head>
<body>
<?php
$MenuId=$_REQUEST["MenuId"];
if(mb_strlen($MenuId)<1)
{
$MenuId=0;
}
$mydb=new YYBDB();
$ID=GetOnePageID($mydb,$MenuId);
if($ID==0)
{
gourl("/".$SystemConest[1]."/system/menusys/Sys_Add.php?MenuId=" .$MenuId,1);
}
else
{
gourl("/".$SystemConest[1]."/system/menusys/Sys_Update.php?MenuId=".$MenuId ."&ID=".$ID,1);
}
?>
</body>
</html>
| 10npsite | trunk/guanli/system/onepage/Index.php | PHP | asf20 | 1,231 |
<?php
session_start();
require "../../../global.php";//$dirname."/".
require RootDir."/"."inc/config.php";
require RootDir."/"."inc/Uifunction.php";
require RootDir."/".$SystemConest[1]."/UIFunction/adminClass.php";
require RootDir."/".$SystemConest[1]."/system/Config.php";
require RootDir."/".$SystemConest[1]."/system/menusys/function.php";
require RootDir."/".$SystemConest[1]."/system/classsys/function.php";
$mydb=new YYBDB();
//权限检查
$TableName= $mydb->getTableName($MenuId);
CheckRule($MenuId,$mydb,$TableName,"");//检查登陆权限
if(strlen($MenuId)==0) die;
$CurrPage=$_REQUEST["CurrPage"];
?>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>旅游价格管理</title>
<link href="../../Inc/Css.css" rel="stylesheet" type="text/css" />
</head>
<body>
<?
echo CurrPosition($MenuId,$mydb)
?>
<br>
<?
ShowList($mydb,$MenuId,$CurrPage,$StrWhere,"YKTtable","YKTth","YKTtd");
?>
</body>
</html>
| 10npsite | trunk/guanli/system/price/Index.php | PHP | asf20 | 1,035 |
<?php
$SystemTablename=array();
$SystemTablename[0]="classsys";//类别表名
$SystemTablename[1]="sysadmin";
$SystemTablename[2]="menusys";
$SystemTablename[3]="sysset";
$SystemTablename[4]="price,pic";//价格表名
$SystemTablename[5]="info,pic";//列表属性表名
function systemList($nselectItem,$sselectname)
{
/*
===================================================
配置功能系统 [易勇斌 2008-8-19]
----------------------------------
0 系统名称
1 系统入口URL
2 系统配置入口URL
3 系统操作的表名
===================================================
*/
$systemnum=29;
$ver="ver1.4";
$system=array(
"0" =>array(
"0"=>"",
"1"=>"",
"2"=>"",
"3"=>""),
"1" =>array(
"0"=>"财到个人会员系统 $ver",
"1"=>"system/pmenbersys/Index.php",
"2"=>" ",
"3"=>"pmenbersys"),
"2" =>array(
"0"=>"财到单位会员系统 $ver",
"1"=>"system/cmenbersys/Index.php",
"2"=>" ",
"3"=>"cmenbersys"),
"3" =>array(
"0"=>"财到产品展示系统 $ver",
"1"=>"system/productsys/Index.php",
"2"=>" ",
"3"=>"productsys"),
"4" =>array(
"0"=>"财到订单管理系统 $ver",
"1"=>"system/orderform/Index.php",
"2"=>" ",
"3"=>"orderform"),
"5" =>array(
"0"=>"财到广告管理系统 $ver",
"1"=>"system/adsys/Index.php",
"2"=>" ",
"3"=>"adsys"),
"6" =>array(
"0"=>"财到单页图文系统 $ver",
"1"=>"system/onepage/Index.php",
"2"=>" ",
"3"=>"onepage"),
"7" =>array(
"0"=>"财到信息发布系统 $ver",
"1"=>"system/info/Index.php",
"2"=>" ",
"3"=>"info"),
"8" =>array(
"0"=>"财到分类管理系统 $ver",
"1"=>"system/classsys/Index.php",
"2"=>" ",
"3"=>"classsys"),
"9" =>array(
"0"=>"财到新闻管理系统 $ver",
"1"=>"system/news/Index.php",
"2"=>" ",
"3"=>"news"),
"10" =>array(
"0"=>"财到留言反馈系统 $ver",
"1"=>"system/messagesys/Index.php",
"2"=>" ",
"3"=>"messagesys"),
"11" =>array(
"0"=>"财到市场调查系统 $ver",
"1"=>"system/votesys/Index.php",
"2"=>" ",
"3"=>"votesys"),
"12" =>array(
"0"=>"财到统计分析系统 $ver",
"1"=>"system/TongJisys/Index.php",
"2"=>" ",
"3"=>"TongJisys"),
"13" =>array(
"0"=>"财到用户管理系统 $ver",
"1"=>"system/adminsys/Index.php",
"2"=>" ",
"3"=>"sysadmin"),
"14" =>array(
"0"=>"财到网站设置系统 $ver",
"1"=>"system/sysset/Index.php",
"2"=>" ",
"3"=>"sysset"),
"15" =>array(
"0"=>"财到招聘会系统 $ver",
"1"=>"system/JobMeetsys/Index.php",
"2"=>" ",
"3"=>"JobMeetsys"),
"16" =>array(
"0"=>"财到关系系统 $ver",
"1"=>"system/connectsys/Index.php",
"2"=>" ",
"3"=>"connectsys"),
"17" =>array(
"0"=>"财到招聘职位系统 $ver",
"1"=>"system/worksys/Index.php",
"2"=>" ",
"3"=>"worksys"),
"18" =>array(
"0"=>"财到物业租购系统 $ver",
"1"=>"system/zhugousys/Index.php",
"2"=>" ",
"3"=>"zhugousys"),
"19" =>array(
"0"=>"财到客户关系系统 $ver",
"1"=>"system/kefuguanxi/Index.php",
"2"=>" ",
"3"=>"kefuguanxi"),
"20" =>array(
"0"=>"财到签证系统 $ver",
"1"=>"system/visa/Index.php",
"2"=>" ",
"3"=>"visa"),
"21" =>array(
"0"=>"财到旅游线路系统 $ver",
"1"=>"system/tour/Index.php",
"2"=>" ",
"3"=>"tour"),
"22" =>array(
"0"=>"财到日志系统 $ver",
"1"=>"system/log/Index.php",
"2"=>" ",
"3"=>"log"),
"23" =>array(
"0"=>"财到价格系统 $ver",
"1"=>"system/price/Index.php",
"2"=>" ",
"3"=>"price"),
"24" =>array(
"0"=>"财到支付系统 $ver",
"1"=>"system/pay/Index.php",
"2"=>" ",
"3"=>"pay"),
"25" =>array(
"0"=>"财到评论系统 $ver",
"1"=>"system/pinglun/Index.php",
"2"=>" ",
"3"=>"pinglun"),
"26" =>array(
"0"=>"财到酒店系统 $ver",
"1"=>"system/hotel/Index.php",
"2"=>" ",
"3"=>"hotel"),
"27" =>array(
"0"=>"财到主推产品系统 $ver",
"1"=>"system/topproduct/Index.php",
"2"=>" ",
"3"=>"topproduct"),
"28" =>array(
"0"=>"财到酒店房间系统 $ver",
"1"=>"system/hotelroom/Index.php",
"2"=>" ",
"3"=>"hotelroom"),
"29" =>array(
"0"=>"财到图片系统 $ver",
"1"=>"system/pic/Index.php",
"2"=>" ",
"3"=>"pic"),
);
?>
<label>
<select name="<? echo $sselectname;?>">
<? for($i=0;$i<=$systemnum;$i++)
{
?>
<option value="<? echo $system[$i][1];?><? echo "|"; ?><? echo $system[$i][0] . "|" . $system[$i][2]. "|" . $system[$i][3]; ?>" <? if($system[$i][1]==$nselectItem) echo "selected" ?>><? echo $system[$i][0];?></option>
<?
}
?>
</select>
</label>
<?
}
?> | 10npsite | trunk/guanli/system/Config.php | PHP | asf20 | 4,890 |
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
@media print
{
.cke_path
{
display: none;
}
}
.cke_skin_kama .cke_path
{
display: inline-block;
float: left;
margin-top: 5px;
}
.cke_skin_kama .cke_rtl .cke_path
{
float: right;
}
.cke_shared .cke_skin_kama .cke_path
{
_width: 100%;
margin: 0 0 5px;
}
.cke_skin_kama .cke_path a,
.cke_skin_kama .cke_path .cke_empty
{
display: inline-block;
float: left;
padding: 1px 4px 0;
color: #60676a;
cursor: default;
}
.cke_skin_kama .cke_path .cke_empty
{
visibility: hidden;
}
.cke_skin_kama .cke_rtl .cke_path a,
.cke_skin_kama .cke_rtl .cke_path cke_empty
{
float: right;
}
.cke_skin_kama .cke_path a:hover,
.cke_skin_kama .cke_path a:focus,
.cke_skin_kama .cke_path a:active /* IE */
{
background-color: #dff1ff;
padding: 1px 4px 0;
outline: none;
color : #000;
}
/* IE double float-right workaround */
.cke_skin_kama .cke_browser_ie .cke_rtl .cke_path a,
.cke_skin_kama .cke_browser_ie .cke_rtl .cke_path .cke_empty
{
float: none;
}
.cke_skin_kama .cke_path .cke_label
{
display: none;
}
| 10npsite | trunk/guanli/system/ckeditor/_source/skins/kama/elementspath.css | CSS | asf20 | 1,236 |
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
@import url("reset.css");
@import url("mainui.css");
@import url("panel.css");
@import url("toolbar.css");
@import url("menu.css");
@import url("richcombo.css");
@import url("elementspath.css");
@import url("icons.css");
@import url("presets.css");
/* Restore the container visibility */
html .cke_skin_kama
{
visibility: inherit;
}
html.cke_skin_kama_container
{
visibility: visible;
}
| 10npsite | trunk/guanli/system/ckeditor/_source/skins/kama/editor.css | CSS | asf20 | 562 |
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
/* Restore the dialog visibility */
body .cke_dialog
{
visibility: visible;
}
/* Force Gecko to consider table as positioned */
.cke_skin_kama table.cke_dialog.cke_browser_gecko
{
display:block;
}
.cke_skin_kama .cke_dialog_body
{
z-index: 1;
border: solid 1px #ddd;
padding: 5px;
background-color: #fff;
-moz-border-radius: 5px;
-webkit-border-radius: 5px;
border-radius: 5px;
/* 'cke_dialog' element has been fixed positioned in all but IE6, while we
need it to be positioned to hold e.g. close button. */
_position: static;
}
.cke_skin_kama .cke_dialog_tl,
.cke_skin_kama .cke_dialog_tr,
.cke_skin_kama .cke_dialog_tc,
.cke_skin_kama .cke_dialog_bl,
.cke_skin_kama .cke_dialog_br,
.cke_skin_kama .cke_dialog_bc,
.cke_skin_kama .cke_dialog_ml,
.cke_skin_kama .cke_dialog_mr
{
display:none;
}
.cke_skin_kama .cke_dialog_title
{
font-weight: bold;
font-size: 14px;
padding: 3px 3px 8px;
cursor: move;
position: relative;
border-bottom: 1px solid #eee;
}
.cke_skin_kama .cke_browser_iequirks .cke_dialog_title,
.cke_skin_kama .cke_browser_ie6 .cke_dialog_title,
.cke_skin_kama .cke_browser_ie7 .cke_dialog_title
{
margin-bottom: 22px;
}
.cke_skin_kama .cke_browser_iequirks.cke_single_page .cke_dialog_title,
.cke_skin_kama .cke_browser_ie6.cke_single_page .cke_dialog_title,
.cke_skin_kama .cke_browser_ie7.cke_single_page .cke_dialog_title
{
margin-bottom: 10px;
}
.cke_skin_kama .cke_dialog_contents
{
background-color: #ebebeb;
border: solid 1px #fff;
border-bottom: none;
overflow: auto;
padding: 17px 10px 5px 10px;
-moz-border-radius-topleft: 5px;
-moz-border-radius-topright: 5px;
-webkit-border-top-left-radius: 5px;
-webkit-border-top-right-radius: 5px;
border-top-left-radius: 5px;
border-top-right-radius: 5px;
margin-top: 22px;
}
.cke_skin_kama .cke_dialog_footer
{
text-align: right;
background-color: #ebebeb;
border: solid 1px #fff;
border-bottom: none;
-moz-border-radius-bottomleft: 5px;
-moz-border-radius-bottomright: 5px;
-webkit-border-bottom-left-radius: 5px;
-webkit-border-bottom-right-radius: 5px;
border-bottom-left-radius: 5px;
border-bottom-right-radius: 5px;
}
.cke_skin_kama .cke_rtl .cke_dialog_footer
{
text-align: left;
}
.cke_skin_kama .cke_dialog_footer .cke_resizer
{
margin-top: 20px;
}
.cke_skin_kama .cke_browser_iequirks .cke_dialog_footer .cke_resizer,
.cke_skin_kama .cke_browser_ie6 .cke_dialog_footer .cke_resizer
{
margin-top: 27px;
}
/* tabs */
.cke_skin_kama .cke_dialog_tabs
{
height: 23px;
display: inline-block;
_display: block;
margin-left:10px;
margin-right:10px;
margin-top: 11px;
position: absolute;
z-index: 2;
}
.cke_skin_kama .cke_browser_iequirks .cke_dialog_tabs,
.cke_skin_kama .cke_browser_ie6 .cke_dialog_tabs,
.cke_skin_kama .cke_browser_ie7 .cke_dialog_tabs
{
top: 33px;
}
.cke_skin_kama .cke_rtl .cke_dialog_tabs
{
right: 10px;
}
.cke_skin_kama a.cke_dialog_tab,
.cke_skin_kama a:link.cke_dialog_tab,
.cke_skin_kama a:active.cke_dialog_tab,
.cke_skin_kama a:hover.cke_dialog_tab,
.cke_skin_kama a:visited.cke_dialog_tab
{
background-image: url(images/sprites.png);
background-repeat: repeat-x;
background-position: 0 -1323px;
background-color: #ebebeb;
height: 14px;
padding: 4px 8px;
display: inline-block;
cursor: pointer;
}
/* Gecko 1.8 layout workaround. */
.cke_skin_kama .cke_browser_gecko18 a.cke_dialog_tab,
.cke_skin_kama .cke_browser_gecko18 a:link.cke_dialog_tab,
.cke_skin_kama .cke_browser_gecko18 a:active.cke_dialog_tab,
.cke_skin_kama .cke_browser_gecko18 a:hover.cke_dialog_tab,
.cke_skin_kama .cke_browser_gecko18 a:visited.cke_dialog_tab
{
display: inline;
position: relative;
top: 6px;
}
.cke_skin_kama a:hover.cke_dialog_tab
{
background-color: #f1f1e3;
}
.cke_skin_kama .cke_hc a:hover.cke_dialog_tab
{
padding: 2px 6px !important;
border-width: 3px;
}
.cke_skin_kama a.cke_dialog_tab_selected,
.cke_skin_kama a:link.cke_dialog_tab_selected,
.cke_skin_kama a:active.cke_dialog_tab_selected,
.cke_skin_kama a:hover.cke_dialog_tab_selected,
.cke_skin_kama a:visited.cke_dialog_tab_selected
{
background-position: 0 -1279px;
cursor: default;
}
.cke_skin_kama .cke_hc a.cke_dialog_tab_selected,
.cke_skin_kama .cke_hc a:link.cke_dialog_tab_selected,
.cke_skin_kama .cke_hc a:active.cke_dialog_tab_selected,
.cke_skin_kama .cke_hc a:hover.cke_dialog_tab_selected,
.cke_skin_kama .cke_hc a:visited.cke_dialog_tab_selected
{
padding: 2px 6px !important;
border-width: 3px;
}
/* single_page */
.cke_skin_kama .cke_single_page .cke_dialog_tabs
{
display: none;
}
.cke_skin_kama .cke_single_page .cke_dialog_contents
{
padding-top: 5px;
margin-top: 10px;
}
.cke_skin_kama .cke_dialog_ui_vbox table,
.cke_skin_kama .cke_dialog_ui_hbox table
{
margin: auto;
}
.cke_skin_kama .cke_dialog_ui_vbox_child
{
padding: 5px 0px;
}
.cke_skin_kama input.cke_dialog_ui_input_text,
.cke_skin_kama input.cke_dialog_ui_input_password
{
background-color: white;
border: none;
padding: 0px;
width: 100%;
height: 14px;
}
.cke_skin_kama div.cke_dialog_ui_input_text,
.cke_skin_kama div.cke_dialog_ui_input_password
{
background-color: white;
border: 1px solid #a0a0a0;
padding: 1px 0px;
/* IE6/Quirks - make sure the content does not overflow (#7321) */
_width: 99.9%;
}
/* The absolute position is required for IE7 on text inputs not to stretch dialog horizontally. (#8971)*/
.cke_skin_kama .cke_browser_ie7 input.cke_dialog_ui_input_text,
.cke_skin_kama .cke_browser_ie7 input.cke_dialog_ui_input_password
{
position: absolute;
}
.cke_skin_kama .cke_browser_ie7 div.cke_dialog_ui_input_text,
.cke_skin_kama .cke_browser_ie7 div.cke_dialog_ui_input_password
{
height:14px;
position: relative;
}
/* Opera/IE doesn't leave enough padding in text input for cursor to blink in RTL. (#6087) */
.cke_skin_kama .cke_browser_ie.cke_rtl input.cke_dialog_ui_input_text,
.cke_skin_kama .cke_browser_opera.cke_rtl input.cke_dialog_ui_input_text,
.cke_skin_kama .cke_browser_ie.cke_rtl input.cke_dialog_ui_input_password,
.cke_skin_kama .cke_browser_opera.cke_rtl input.cke_dialog_ui_input_password
{
padding-right: 2px;
}
/* Compensate the padding added above on container. */
.cke_skin_kama .cke_browser_ie.cke_rtl div.cke_dialog_ui_input_text,
.cke_skin_kama .cke_browser_opera.cke_rtl div.cke_dialog_ui_input_text,
.cke_skin_kama .cke_browser_ie.cke_rtl div.cke_dialog_ui_input_password,
.cke_skin_kama .cke_browser_opera.cke_rtl div.cke_dialog_ui_input_password
{
padding-left: 2px;
}
.cke_skin_kama .cke_browser_ie.cke_rtl .cke_dialog_ui_vbox_child,
.cke_skin_kama .cke_browser_ie.cke_rtl .cke_dialog_ui_hbox_child,
.cke_skin_kama .cke_browser_ie.cke_rtl .cke_dialog_ui_hbox_first,
.cke_skin_kama .cke_browser_ie.cke_rtl .cke_dialog_ui_hbox_last
{
padding-right: 2px !important;
}
.cke_skin_kama .cke_browser_ie.cke_rtl div.cke_dialog_ui_input_text {
padding-right: 1px;
}
.cke_skin_kama .cke_browser_gecko.cke_hc div.cke_dialog_ui_input_text,
.cke_skin_kama .cke_browser_gecko.cke_hc div.cke_dialog_ui_input_password
{
border-width: 0px;
}
.cke_skin_kama .cke_browser_gecko18.cke_hc div.cke_dialog_ui_input_text,
.cke_skin_kama .cke_browser_gecko18.cke_hc div.cke_dialog_ui_input_password
{
border-width: 1px;
}
.cke_skin_kama textarea.cke_dialog_ui_input_textarea
{
background-color: white;
border: none;
padding: 0px;
width: 100%;
/*
* IE6 BUG: Scrollbars in textareas can overflow even if the outer DIV is set to overflow:hidden.
* So leave 1% width for the scrollbar. In most situations the 1% isn't noticeable by users.
*/
_width: 99%;
overflow: auto;
resize: none;
}
.cke_skin_kama div.cke_dialog_ui_input_textarea
{
background-color: white;
border: 1px solid #a0a0a0;
padding: 1px 0px;
}
.cke_skin_kama div.cke_disabled .cke_dialog_ui_labeled_content *
{
background-color : #a0a0a0;
cursor : default;
}
/* RTL + IE6: Input overflows dialog element. (#7321) */
.cke_skin_kama .cke_rtl .cke_dialog_ui_labeled_content
{
_width: 95%;
}
.cke_skin_kama .cke_dialog_ui_hbox
{
width: 100%;
}
.cke_skin_kama .cke_dialog_ui_hbox_first,
.cke_skin_kama .cke_dialog_ui_hbox_child,
.cke_skin_kama .cke_dialog_ui_hbox_last
{
vertical-align: top;
}
.cke_skin_kama .cke_ltr .cke_dialog_ui_hbox_first,
.cke_skin_kama .cke_ltr .cke_dialog_ui_hbox_child
{
padding-right: 10px;
}
.cke_skin_kama .cke_rtl .cke_dialog_ui_hbox_first,
.cke_skin_kama .cke_rtl .cke_dialog_ui_hbox_child
{
padding-left: 10px;
}
/* button */
.cke_skin_kama a.cke_dialog_ui_button
{
border-collapse: separate;
cursor: default;
-moz-border-radius: 5px;
-webkit-border-radius: 5px;
border-radius: 5px;
background: transparent url(images/sprites.png) repeat-x scroll 0 -1069px;
_background: none;
padding: 5px 0;
text-align: center;
}
.cke_skin_kama .cke_browser_iequirks a.cke_dialog_ui_button
{
padding: 0;
}
/* IE6 buttons. */
.cke_skin_kama .cke_browser_ie6 a.cke_dialog_ui_button span
{
width: 70px;
}
.cke_skin_kama .cke_browser_iequirks a.cke_dialog_ui_button span,
.cke_skin_kama .cke_browser_iequirks a.cke_dialog_ui_button span
{
width: 100px;
}
.cke_skin_kama .cke_browser_iequirks a.cke_dialog_ui_button span,
.cke_skin_kama .cke_browser_iequirks a.cke_dialog_ui_button span,
.cke_skin_kama .cke_browser_ie6 a.cke_dialog_ui_button span
{
padding: 5px 15px;
text-align: center;
color: #3b3b1f;
background: #53D9F0 none;
display: inline-block;
cursor: default;
}
/* END IE6 buttons. */
.cke_skin_kama .cke_browser_webkit a.cke_dialog_ui_button span.cke_dialog_ui_button
{
margin: 0;
}
.cke_skin_kama .cke_browser_webkit a.cke_dialog_ui_button
{
display:inline-block;
padding-top: 3px;
padding-bottom: 2px;
margin: 2px 0;
}
.cke_skin_kama a.cke_dialog_ui_button_ok span,
.cke_skin_kama a.cke_dialog_ui_button_cancel span
{
width:60px;
padding-right: 20px;
padding-left: 20px;
}
.cke_skin_kama a.cke_dialog_ui_button_ok
{
background-position: 0 -1143px;
}
.cke_skin_kama a.cke_dialog_ui_button_ok span
{
background: transparent url(images/sprites.png) no-repeat scroll right -1219px;
}
.cke_skin_kama .cke_rtl a.cke_dialog_ui_button_ok span
{
background-position: left -1219px;
}
.cke_skin_kama .cke_browser_iequirks a.cke_dialog_ui_button_ok span,
.cke_skin_kama .cke_browser_ie6 a.cke_dialog_ui_button_ok span
{
background-color: #B8E834;
margin-right: 0;
}
.cke_skin_kama a.cke_dialog_ui_button_cancel
{
background-position: 0 -1104px;
}
.cke_skin_kama a.cke_dialog_ui_button_cancel span
{
background: transparent url(images/sprites.png) no-repeat scroll right -1245px;
}
.cke_skin_kama .cke_rtl a.cke_dialog_ui_button_cancel span
{
background-position: left -1245px;
}
.cke_skin_kama .cke_browser_iequirks a.cke_dialog_ui_button_cancel span,
.cke_skin_kama .cke_browser_ie6 a.cke_dialog_ui_button_cancel span
{
background-color: #F65D20;
}
.cke_skin_kama .cke_browser_iequirks a.cke_dialog_ui_button_cancel span,
.cke_skin_kama .cke_browser_ie6 a.cke_dialog_ui_button_cancel span,
.cke_skin_kama .cke_browser_iequirks a.cke_dialog_ui_button_ok span,
.cke_skin_kama .cke_browser_ie6 a.cke_dialog_ui_button_ok span
{
background-image: none;
}
.cke_skin_kama span.cke_dialog_ui_button
{
padding: 2px 10px;
text-align: center;
color: #222;
display: inline-block;
cursor: default;
min-width: 60px;
+margin: 2px 0; /* IE7 */
}
/* Gecko 1.8 does not support display: inline-block */
.cke_skin_kama .cke_browser_gecko18 .cke_dialog_footer_buttons span.cke_dialog_ui_button
{
display: block;
}
.cke_skin_kama a.cke_dialog_ui_button span.cke_disabled
{
border: #898980 1px solid;
color: #5e5e55;
background-color: #c5c5b3;
}
.cke_skin_kama a:hover.cke_dialog_ui_button,
.cke_skin_kama a:focus.cke_dialog_ui_button,
.cke_skin_kama a:active.cke_dialog_ui_button
{
background-position: 0 -1180px;
}
.cke_skin_kama .cke_hc a:hover.cke_dialog_ui_button,
.cke_skin_kama .cke_hc a:focus.cke_dialog_ui_button,
.cke_skin_kama .cke_hc a:active.cke_dialog_ui_button
{
border-width: 2px;
}
/* Skip hover effect on IE6 */
.cke_skin_kama .cke_browser_iequirks a:hover.cke_dialog_ui_button span,
.cke_skin_kama .cke_browser_iequirks a:focus.cke_dialog_ui_button span,
.cke_skin_kama .cke_browser_iequirks a:active.cke_dialog_ui_button span,
.cke_skin_kama .cke_browser_ie6 a:hover.cke_dialog_ui_button span,
.cke_skin_kama .cke_browser_ie6 a:focus.cke_dialog_ui_button span,
.cke_skin_kama .cke_browser_ie6 a:active.cke_dialog_ui_button span
{
background-image: none;
background: #F7A922;
}
.cke_skin_kama .cke_dialog_footer_buttons
{
display: inline-table;
margin-right: 12px;
margin-left: 12px;
width: auto;
position: relative;
}
/* IE7 needs position static #6806 */
.cke_skin_kama .cke_browser_ie7 .cke_dialog_footer_buttons
{
position: static;
}
/* Gecko 1.8 does not support for display: inline-table */
.cke_skin_kama .cke_browser_gecko18 .cke_dialog_footer_buttons
{
display: inline;
}
.cke_skin_kama .cke_dialog_footer_buttons span.cke_dialog_ui_button
{
margin: 7px 0;
text-align: center;
}
/* Firefox2 buttons */
.cke_skin_kama .cke_browser_gecko18 .cke_dialog_footer_buttons a.cke_dialog_ui_button
{
display: block;
padding: 0;
}
.cke_skin_kama .cke_browser_gecko18 .cke_dialog_footer_buttons span.cke_dialog_ui_button
{
padding-bottom: 5px;
padding-top: 6px;
margin-bottom: 0;
}
.cke_skin_kama .cke_browser_gecko18 .cke_dialog_footer_buttons .cke_dialog_ui_button_ok .cke_dialog_ui_button
{
background-position: right -1214px;
}
.cke_skin_kama .cke_browser_gecko18 .cke_dialog_footer_buttons .cke_dialog_ui_button_cancel .cke_dialog_ui_button
{
background-position: right -1242px;
}
/* END Firefox2 buttons */
.cke_skin_kama .cke_browser_ie9.cke_rtl .cke_dialog_footer_buttons td
{
padding-left: 2px;
}
.cke_skin_kama strong
{
font-weight: bold;
}
/* close_button */
.cke_skin_kama .cke_dialog .cke_dialog_body .cke_dialog_close_button
{
background-image: url(images/sprites.png);
background-repeat: no-repeat;
background-position: 0 -1022px;
position: absolute;
cursor: pointer;
text-align: center;
height: 20px;
width: 20px;
top: 5px;
/* IE 6 */
_background-image: url(images/sprites_ie6.png);
}
.cke_skin_kama .cke_dialog_close_button span
{
display: none;
}
.cke_skin_kama .cke_dialog_close_button:hover
{
background-position: 0 -1045px;
}
.cke_skin_kama .cke_ltr .cke_dialog_close_button
{
right: 10px;
}
.cke_skin_kama .cke_browser_ie8.cke_rtl .cke_dialog_close_button
{
left: 8px;
}
.cke_skin_kama .cke_rtl .cke_dialog_close_button
{
left: 10px;
}
.cke_skin_kama .cke_browser_ie7.cke_rtl .cke_dialog_close_button
{
left: 16px;
top: 0;
}
/*.cke_skin_kama .cke_browser_ie6.cke_rtl .cke_dialog_close_button
{
left: 16px;
}*/
/* IE7 + IE quirks */
.cke_skin_kama .cke_browser_ie7.cke_rtl .cke_dialog_close_button
{
position: absolute;
left: 10px;
top: 5px;
}
/* IE7 + IE quirks */
.cke_skin_kama .cke_browser_ie7.cke_single_page .cke_dialog_footer
{
margin-top: 22px;
}
.cke_skin_kama .cke_browser_ie6 .cke_dialog_close_button,
.cke_skin_kama .cke_browser_iequirks .cke_dialog_close_button
{
top: 7px;
}
/* IE7 + IE quirks */
.cke_skin_kama .cke_browser_ie7.cke_ltr .cke_dialog_close_button
{
margin-top: 0;
}
.cke_skin_kama .cke_dialog_ui_input_select
{
border: 1px solid #a0a0a0;
background-color: white;
}
.cke_skin_kama .cke_dialog_ui_input_file
{
width: 100%;
height: 25px;
}
/*
* Some utility CSS classes for dialog authors.
*/
.cke_skin_kama .cke_dialog .cke_dark_background
{
background-color: #eaead1;
}
.cke_skin_kama .cke_dialog .cke_hand
{
cursor: pointer;
}
.cke_skin_kama .cke_dialog .cke_centered
{
text-align: center;
}
.cke_skin_kama .cke_dialog a.cke_btn_reset
{
float: right;
background-position: 0 -32px;
background-image: url(images/mini.gif);
width: 16px;
height: 16px;
background-repeat: no-repeat;
border: 1px none;
font-size: 1px;
}
.cke_skin_kama .cke_rtl .cke_dialog a.cke_btn_reset
{
float: left;
}
.cke_skin_kama .cke_dialog a.cke_btn_locked,
.cke_skin_kama .cke_dialog a.cke_btn_unlocked
{
float: left;
background-position: 0 0;
background-image: url(images/mini.gif);
width: 16px;
height: 16px;
background-repeat: no-repeat;
border: none 1px;
font-size: 1px;
}
.cke_skin_kama .cke_dialog a.cke_btn_locked .cke_icon
{
display:none;
}
.cke_skin_kama .cke_rtl .cke_dialog a.cke_btn_locked,
.cke_skin_kama .cke_rtl .cke_dialog a.cke_btn_unlocked
{
float: right;
}
.cke_skin_kama .cke_dialog a.cke_btn_unlocked
{
background-position: 0 -16px;
background-image: url(images/mini.gif);
}
.cke_skin_kama .cke_dialog .cke_btn_over
{
border: outset 1px;
cursor: pointer;
}
.cke_skin_kama .cke_dialog .ImagePreviewBox
{
border : 2px ridge black;
overflow : scroll;
height : 200px;
width : 300px;
padding : 2px;
background-color : white;
}
.cke_skin_kama .cke_dialog .ImagePreviewBox table td {
white-space: normal;
}
/* Fix iframedialog's height doesn't stretch to 100% #4863.*/
.cke_skin_kama .cke_browser_iequirks .cke_dialog_page_contents
{
_position: absolute;
}
.cke_skin_kama .cke_dialog .ImagePreviewLoader
{
position: absolute;
white-space : normal;
overflow : hidden;
height : 160px;
width : 230px;
margin : 2px;
padding : 2px;
opacity : 0.9;
filter : alpha(opacity=90);
background-color : #e4e4e4;
}
.cke_skin_kama .cke_dialog .FlashPreviewBox
{
white-space : normal;
border : 2px ridge black;
overflow : auto;
height : 160px;
width : 390px;
padding : 2px;
background-color : white;
}
.cke_skin_kama .cke_dialog .cke_pastetext
{
width: 346px;
height: 170px;
}
.cke_skin_kama .cke_dialog .cke_pastetext textarea
{
width: 340px;
height: 170px;
resize: none;
}
.cke_skin_kama .cke_dialog iframe.cke_pasteframe
{
width: 346px;
height: 130px;
background-color: white;
border: 1px solid black;
}
.cke_skin_kama .cke_dialog .cke_dark_background
{
text-align : center;
background-color: #eaead1;
font-size : 14px;
}
.cke_skin_kama .cke_dialog .cke_light_background
{
text-align : center;
background-color: #ffffbe;
}
.cke_skin_kama .cke_dialog .cke_hand
{
cursor: pointer;
}
.cke_skin_kama .cke_disabled
{
color: #a0a0a0;
}
/* High Contrast Mode */
.cke_skin_kama .cke_hc .cke_dialog_title,
.cke_skin_kama .cke_hc .cke_dialog_tabs,
.cke_skin_kama .cke_hc .cke_dialog_contents,
.cke_skin_kama .cke_hc .cke_dialog_footer
{
border-left: 1px solid;
border-right: 1px solid;
}
.cke_skin_kama .cke_hc .cke_dialog_title
{
border-top: 1px solid;
}
.cke_skin_kama .cke_hc .cke_dialog_footer
{
border-bottom: 1px solid;
}
.cke_skin_kama .cke_hc .cke_dialog_close_button span
{
display: inline;
cursor: pointer;
font-weight: bold;
position: relative;
top: 3px;
}
.cke_skin_kama .cke_dialog_body .cke_label
{
display: none;
}
.cke_skin_kama .cke_dialog_body label.cke_required
{
font-weight: bold;
}
.cke_skin_kama .cke_hc .cke_dialog_body .cke_label
{
display: inline;
cursor: inherit;
}
.cke_skin_kama .cke_hc a.cke_btn_locked,
.cke_skin_kama .cke_hc a.cke_btn_unlocked,
.cke_skin_kama .cke_hc a.cke_btn_reset
{
border-style: solid;
float: left;
width: auto;
height: auto;
padding: 0 2px;
}
.cke_skin_kama .cke_rtl.cke_hc a.cke_btn_locked,
.cke_skin_kama .cke_rtl.cke_hc a.cke_btn_unlocked,
.cke_skin_kama .cke_rtl.cke_hc a.cke_btn_reset
{
float: right;
}
.cke_skin_kama .cke_hc a.cke_btn_locked .cke_icon
{
display:inline;
}
.cke_skin_kama a.cke_smile img
{
/* IE6 does not support transparent borders */
border: 2px solid #eaead1;
}
.cke_skin_kama a.cke_smile:focus img,
.cke_skin_kama a.cke_smile:active img,
.cke_skin_kama a.cke_smile:hover img
{
border-color: #C7C78F;
}
.cke_skin_kama .cke_hc .cke_dialog_tabs a,
.cke_skin_kama .cke_hc .cke_dialog_footer a
{
opacity: 1.0;
filter: alpha(opacity=100);
border: 1px solid white;
}
.cke_skin_kama .cke_hc .ImagePreviewBox
{
width: 260px;
}
/**
* Styles specific to "cellProperties" dialog.
*/
.cke_skin_kama .cke_dialog_contents a.colorChooser
{
display:block;
margin-top:6px;
margin-left: 10px;
width: 80px;
}
.cke_skin_kama .cke_rtl .cke_dialog_contents a.colorChooser
{
margin-right: 10px;
}
/* Compensate focus outline for some input elements. (#6200) */
.cke_skin_kama .cke_browser_gecko .cke_dialog_ui_checkbox_input:focus,
.cke_skin_kama .cke_browser_gecko .cke_dialog_ui_radio_input:focus,
.cke_skin_kama .cke_browser_opera .cke_dialog_ui_checkbox_input:focus,
.cke_skin_kama .cke_browser_opera .cke_dialog_ui_radio_input:focus,
.cke_skin_kama .cke_browser_gecko .cke_dialog_ui_input_select:focus,
.cke_skin_kama .cke_browser_gecko .cke_btn_over,
.cke_skin_kama .cke_browser_opera .cke_btn_over,
.cke_skin_kama .cke_browser_ie .cke_btn_over
{
outline: 1px dotted #696969;
}
/* IE<8 instead doesn't support CSS outline property, emulated with dotted border. */
/* Predefined border to avoid visual size change impact. */
.cke_skin_kama .cke_browser_ie .cke_dialog_ui_checkbox_input,
.cke_skin_kama .cke_browser_ie .cke_dialog_ui_ratio_input,
.cke_skin_kama .cke_browser_ie .cke_btn_reset,
.cke_skin_kama .cke_browser_ie .cke_btn_locked,
.cke_skin_kama .cke_browser_ie .cke_btn_unlocked
{
*border: 1px solid transparent !important;
/* Emulating border-color: transparent in IE6.*/
-border: 1px solid red !important;
-filter: chroma(color=red);
}
.cke_skin_kama .cke_browser_ie .cke_dialog_ui_focused,
.cke_skin_kama .cke_browser_ie .cke_btn_over
{
*border: 1px dotted #696969 !important;
}
.cke_skin_kama .cke_iframe_shim
{
display:block;
position:absolute;
top:0;
left:0;
z-index:-1;
filter:alpha(opacity=0);
width:100%;
height:100%;
}
.cke_dialog label
{
display: inline;
margin-bottom: auto;
cursor: default;
}
| 10npsite | trunk/guanli/system/ckeditor/_source/skins/kama/dialog.css | CSS | asf20 | 22,725 |
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
/* "Source" button label */
.cke_skin_kama .cke_button_source .cke_label
{
display: inline;
}
/* "Styles" panel size */
.cke_skin_kama .cke_styles_panel
{
width: 150px;
height: 170px;
}
/* "Format" panel size */
.cke_skin_kama .cke_format_panel
{
width: 150px;
height: 170px;
}
/* "Font" panel size */
.cke_skin_kama .cke_font_panel
{
width: 150px;
height: 170px;
}
/* "Font Size" panel size */
.cke_skin_kama .cke_fontSize_panel
{
height: 170px;
}
/* "Font Size" combo width */
.cke_skin_kama .cke_fontSize .cke_text
{
width: 25px;
}
/* "Font Size" combo width (IE Quirks) */
.cke_skin_kama .cke_browser_iequirks .cke_fontSize .cke_text
{
width: 32px;
}
| 10npsite | trunk/guanli/system/ckeditor/_source/skins/kama/presets.css | CSS | asf20 | 866 |
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
.cke_skin_kama .cke_button_source .cke_icon
{
background-position: 0 0;
}
.cke_skin_kama .cke_button_docProps .cke_icon
{
background-position: 0 -16px;
}
.cke_skin_kama .cke_button_newpage .cke_icon
{
background-position: 0 -48px;
}
.cke_skin_kama .cke_button_preview .cke_icon
{
background-position: 0 -64px;
}
.cke_skin_kama .cke_button_cut .cke_icon
{
background-position: 0 -96px;
}
.cke_skin_kama .cke_button_copy .cke_icon
{
background-position: 0 -112px;
}
.cke_skin_kama .cke_button_paste .cke_icon
{
background-position: 0 -128px;
}
.cke_skin_kama .cke_button_pastetext .cke_icon
{
background-position: 0 -144px;
}
.cke_skin_kama .cke_button_find .cke_icon
{
background-position: 0 -240px;
}
.cke_skin_kama .cke_button_replace .cke_icon
{
background-position: 0 -256px;
}
.cke_skin_kama .cke_button_selectAll .cke_icon
{
background-position: 0 -272px;
}
.cke_skin_kama .cke_button_removeFormat .cke_icon
{
background-position: 0 -288px;
}
.cke_skin_kama .cke_button_bold .cke_icon
{
background-position: 0 -304px;
}
.cke_skin_kama .cke_button_italic .cke_icon
{
background-position: 0 -320px;
}
.cke_skin_kama .cke_button_underline .cke_icon
{
background-position: 0 -336px;
}
.cke_skin_kama .cke_button_strike .cke_icon
{
background-position: 0 -352px;
}
.cke_skin_kama .cke_button_subscript .cke_icon
{
background-position: 0 -368px;
}
.cke_skin_kama .cke_button_superscript .cke_icon
{
background-position: 0 -384px;
}
.cke_skin_kama .cke_button_table .cke_icon
{
background-position: 0 -608px;
}
.cke_skin_kama .cke_button_horizontalrule .cke_icon
{
background-position: 0 -624px;
}
.cke_skin_kama .cke_button_smiley .cke_icon
{
background-position: 0 -640px;
}
.cke_skin_kama .cke_button_link .cke_icon
{
background-position: 0 -528px;
}
.cke_skin_kama .cke_button_unlink .cke_icon
{
background-position: 0 -544px;
}
.cke_skin_kama .cke_button_anchor .cke_icon
{
background-position: 0 -560px;
}
.cke_skin_kama .cke_button_image .cke_icon
{
background-position: 0 -576px;
}
.cke_skin_kama .cke_button_flash .cke_icon
{
background-position: 0 -592px;
}
.cke_skin_kama .cke_button_specialchar .cke_icon
{
background-position: 0 -656px;
}
.cke_skin_kama .cke_button_pagebreak .cke_icon
{
background-position: 0 -672px;
}
.cke_skin_kama .cke_button_print .cke_icon
{
background-position: 0 -176px;
}
.cke_skin_kama .cke_button_checkspell .cke_icon,
.cke_skin_kama .cke_button_scayt .cke_icon
{
background-position: 0 -192px;
}
.cke_skin_kama .cke_button_pagebreak .cke_icon
{
background-position: 0 -672px;
}
.cke_skin_kama .cke_button_textcolor .cke_icon
{
background-position: 0 -704px;
}
.cke_skin_kama .cke_button_bgcolor .cke_icon
{
background-position: 0 -720px;
}
.cke_skin_kama .cke_button_form .cke_icon
{
background-position: 0 -752px;
}
.cke_skin_kama .cke_button_checkbox .cke_icon
{
background-position: 0 -768px;
}
.cke_skin_kama .cke_button_radio .cke_icon
{
background-position: 0 -784px;
}
.cke_skin_kama .cke_button_textfield .cke_icon
{
background-position: 0 -800px;
}
.cke_skin_kama .cke_button_textarea .cke_icon
{
background-position: 0 -816px;
}
.cke_skin_kama .cke_button_showblocks .cke_icon
{
background-position: 0 -1136px;
}
.cke_skin_kama .cke_button_select .cke_icon
{
background-position: 0 -832px;
}
.cke_skin_kama .cke_button_button .cke_icon
{
background-position: 0 -848px;
}
.cke_skin_kama .cke_button_imagebutton .cke_icon
{
background-position: 0 -864px;
}
.cke_skin_kama .cke_button_hiddenfield .cke_icon
{
background-position: 0 -880px;
}
.cke_skin_kama .cke_button_undo .cke_icon
{
background-position: 0 -208px;
}
.cke_skin_kama .cke_rtl .cke_button_undo .cke_icon
{
background-position: 0 -224px;
}
.cke_skin_kama .cke_button_redo .cke_icon
{
background-position: 0 -224px;
}
.cke_skin_kama .cke_rtl .cke_button_redo .cke_icon
{
background-position: 0 -208px;
}
.cke_skin_kama .cke_button_templates .cke_icon
{
background-position: 0 -80px;
}
.cke_skin_kama .cke_button_numberedlist .cke_icon
{
background-position: 0 -400px;
}
.cke_skin_kama .cke_button_bulletedlist .cke_icon
{
background-position: 0 -416px;
}
.cke_skin_kama .cke_mixed_dir_content .cke_button_numberedlist .cke_icon
{
background-position: 0 -1217px;
}
.cke_skin_kama .cke_mixed_dir_content .cke_button_bulletedlist .cke_icon
{
background-position: 0 -1233px;
}
.cke_skin_kama .cke_button_outdent .cke_icon
{
background-position: 0 -432px;
}
.cke_skin_kama .cke_button_indent .cke_icon
{
background-position: 0 -448px;
}
.cke_skin_kama .cke_mixed_dir_content .cke_button_indent .cke_icon
{
background-position: 0 -1265px;
}
.cke_skin_kama .cke_mixed_dir_content .cke_button_outdent .cke_icon
{
background-position: 0 -1249px;
}
.cke_skin_kama .cke_button_justifyleft .cke_icon
{
background-position: 0 -464px;
}
.cke_skin_kama .cke_button_justifycenter .cke_icon
{
background-position: 0 -480px;
}
.cke_skin_kama .cke_button_justifyright .cke_icon
{
background-position: 0 -496px;
}
.cke_skin_kama .cke_button_justifyblock .cke_icon
{
background-position: 0 -512px;
}
.cke_skin_kama .cke_button_blockquote .cke_icon
{
background-position: 0 -1152px;
}
.cke_skin_kama .cke_button_creatediv .cke_icon
{
background-position: 0 -1168px;
}
.cke_skin_kama .cke_button_editdiv .cke_icon
{
background-position: 0 -1184px;
}
.cke_skin_kama .cke_button_removediv .cke_icon
{
background-position: 0 -1200px;
}
.cke_skin_kama .cke_button_flash .cke_icon
{
background-position: 0 -592px;
}
.cke_skin_kama .cke_button_pastefromword .cke_icon
{
background-position: 0 -160px;
}
.cke_skin_kama .cke_button_save .cke_icon
{
background-position: 0 -32px;
}
.cke_skin_kama .cke_button_about .cke_icon
{
background-position: 0 -736px;
}
.cke_skin_kama .cke_button_maximize .cke_icon
{
background-position: 0 -1040px;
}
.cke_skin_kama .cke_button_editdiv .cke_icon
{
background-position: 0 -1184px;
}
.cke_skin_kama .cke_button_bidirtl .cke_icon
{
background-position: 0 -1072px;
}
.cke_skin_kama .cke_button_bidiltr .cke_icon
{
background-position: 0 -1056px;
}
.cke_skin_kama .cke_button_iframe .cke_icon
{
background-position: 0 -1279px;
}
| 10npsite | trunk/guanli/system/ckeditor/_source/skins/kama/icons.css | CSS | asf20 | 6,698 |
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
.cke_skin_kama .cke_panel
{
border: 1px solid #8f8f73;
background-color: #fff;
width: 120px;
height: 100px;
overflow: hidden;
-moz-border-radius: 3px;
-webkit-border-radius: 3px;
border-radius: 3px;
}
.cke_skin_kama .cke_contextmenu
{
margin: 0;
}
/* Ideally we would use "inherit here"... but you know... IE :( */
.cke_skin_kama .cke_panel iframe
{
width: 100%;
height: 100%;
}
/*
* All the following styles are to be used inside the iframe that holds panel
* contents. We don't use the cke_skin_default there to avoid the reset to be
* active.
* This is not an issue as we'll never have two skins running inside the same
* panel iframe.
*/
html.cke_skin_kama_container
{
overflow: auto;
overflow-x: hidden;
}
body.cke_panel_frame
{
overflow: auto;
}
.cke_panel_frame .cke_label
{
display: none;
}
ul.cke_panel_list
{
list-style-type: none;
margin: 3px;
padding: 0px;
white-space: nowrap;
}
li.cke_panel_listItem
{
margin: 0px;
}
.cke_panel_listItem a
{
padding: 2px;
display: block;
border: 1px solid #fff;
color: inherit !important;
text-decoration: none;
overflow: hidden;
text-overflow: ellipsis;
}
/* IE6 */
* html .cke_panel_listItem a
{
width : 100%;
/* IE is not able to inherit the color, so we must force it to black */
color: #000;
}
/* IE7 */
*:first-child+html .cke_panel_listItem a
{
/* IE is not able to inherit the color, so we must force it to black */
color: #000;
}
.cke_panel_listItem.cke_selected a
{
border: 1px solid #ccc;
background-color: #e9f5ff;
}
.cke_panel_listItem a:hover,
.cke_panel_listItem a:focus,
.cke_panel_listItem a:active
{
border-color: #316ac5;
background-color: #dff1ff;
}
.cke_hc .cke_panel_listItem.cke_selected a,
.cke_hc .cke_panel_listItem a:hover,
.cke_hc .cke_panel_listItem a:focus,
.cke_hc .cke_panel_listItem a:active
{
border-width: 3px;
padding: 0px;
}
.cke_panel_grouptitle
{
font-size: 11px;
font-family: 'Microsoft Sans Serif' , Tahoma, Arial, Verdana, Sans-Serif;
font-weight: bold;
white-space: nowrap;
background-color: #dcdcdc;
color: #000;
margin:0px;
padding:3px;
}
.cke_panel_listItem p,
.cke_panel_listItem h1,
.cke_panel_listItem h2,
.cke_panel_listItem h3,
.cke_panel_listItem h4,
.cke_panel_listItem h5,
.cke_panel_listItem h6,
.cke_panel_listItem pre
{
margin-top: 3px;
margin-bottom: 3px;
}
.cke_skin_kama .cke_button_textcolor_panel,
.cke_skin_kama .cke_button_bgcolor_panel
{
width: 150px;
height: 135px;
}
.cke_colorblock
{
padding: 3px;
font-size: 11px;
font-family: 'Microsoft Sans Serif', Tahoma, Arial, Verdana, Sans-Serif;
}
.cke_colorblock,
.cke_colorblock a
{
text-decoration: none;
color: #000;
}
span.cke_colorbox
{
width: 10px;
height: 10px;
border: #808080 1px solid;
float: left;
}
.cke_rtl span.cke_colorbox
{
float: right;
}
a.cke_colorbox
{
border: #fff 1px solid;
padding: 2px;
float: left;
}
.cke_rtl a.cke_colorbox
{
float: right;
}
a:hover.cke_colorbox,
a:focus.cke_colorbox,
a:active.cke_colorbox
{
border: #316ac5 1px solid;
background-color: #dff1ff;
}
a.cke_colorauto,
a.cke_colormore
{
border: #fff 1px solid;
padding: 2px;
display: block;
cursor: pointer;
}
a:hover.cke_colorauto,
a:hover.cke_colormore,
a:focus.cke_colorauto,
a:focus.cke_colormore,
a:active.cke_colorauto,
a:active.cke_colormore
{
border: #316ac5 1px solid;
background-color: #dff1ff;
}
| 10npsite | trunk/guanli/system/ckeditor/_source/skins/kama/panel.css | CSS | asf20 | 3,732 |
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
@media print
{
/* For printing, we simply hide the toolbar */
.cke_skin_kama .cke_toolbox
{
display: none;
}
}
.cke_skin_kama .cke_browser_webkit .cke_toolbox,
.cke_skin_kama .cke_browser_webkit .cke_toolbox > span
{
white-space: normal;
}
.cke_skin_kama .cke_toolbox
{
clear: both;
/* Define the padding-bottom otherwise the collapser button will not be clickable #4932*/
padding-bottom: 1px;
}
.cke_skin_kama a.cke_toolbox_collapser,
.cke_skin_kama a:hover.cke_toolbox_collapser
{
/* arrowtop.gif */
background-image: url(images/sprites.png);
_background-image: url(images/sprites_ie6.png);
background-position: 3px -1366px; /* +3px +4px */
background-repeat: no-repeat;
width: 11px;
height: 11px;
float: right;
border: 1px outset #D3D3D3;
margin: 11px 0 2px;
cursor: pointer;
}
.cke_skin_kama .cke_rtl a.cke_toolbox_collapser,
.cke_skin_kama .cke_rtl a:hover.cke_toolbox_collapser
{
float: left;
}
.cke_skin_kama a.cke_toolbox_collapser span
{
display: none;
}
.cke_skin_kama .cke_hc a.cke_toolbox_collapser span
{
font-size: 10px;
font-weight: bold;
font-family: Arial;
display: inline;
}
.cke_skin_kama a.cke_toolbox_collapser_min,
.cke_skin_kama a:hover.cke_toolbox_collapser_min
{
/* arrowleft.gif*/
background-image: url(images/sprites.png);
_background-image: url(images/sprites_ie6.png);
background-position: 4px -1387px; /* +4px +3px */
background-repeat: no-repeat;
margin: 2px 4px;
}
.cke_skin_kama .cke_rtl a.cke_toolbox_collapser_min,
.cke_skin_kama .cke_rtl a:hover.cke_toolbox_collapser_min
{
/* arrowright.gif*/
background-position: 4px -1408px; /* +2px +3px */
}
.cke_skin_kama .cke_separator
{
display: inline-block;
border-left: solid 1px #D3D3D3;
margin: 3px 2px 0;
height: 16px;
/* These are for IE < 8, but it's ok for the others */
vertical-align: top;
}
.cke_skin_kama .cke_break
{
font-size: 0;
clear: left;
}
.cke_skin_kama .cke_rtl .cke_break
{
clear: right;
}
.cke_skin_kama .cke_toolbar_start
{
display: none;
}
.cke_skin_kama .cke_toolgroup
{
-moz-border-radius:5px;
-webkit-border-radius: 5px;
border-radius: 5px;
background-image: url(images/sprites.png);
_background-image: url(images/sprites_ie6.png);
background-repeat: repeat-x;
background-position: 0 -500px;
float: left;
margin-right: 6px;
margin-bottom: 5px;
padding: 2px;
display: inline;
}
.cke_skin_kama .cke_rtl .cke_toolgroup
{
float: right;
margin-right: 0;
margin-left: 6px;
}
.cke_skin_kama .cke_button a,
.cke_skin_kama .cke_button a:hover,
.cke_skin_kama .cke_button a:focus,
.cke_skin_kama .cke_button a:active,
.cke_skin_kama .cke_button a.cke_off
{
border-radius: 3px;
outline: none;
padding: 2px 4px;
height: 18px;
display: inline-block;
cursor: default;
}
.cke_skin_kama .cke_button a,
.cke_skin_kama .cke_button a.cke_off
{
filter: alpha(opacity=70); /* IE */
opacity: 0.70; /* Safari, Opera and Mozilla */
-moz-border-radius: 3px;
-webkit-border-radius: 3px;
}
.cke_skin_kama .cke_hc .cke_button a,
.cke_skin_kama .cke_hc .cke_button a.cke_off
{
opacity: 1.0;
filter: alpha(opacity=100);
border: 1px solid white;
}
.cke_skin_kama .cke_button a.cke_on
{
background-color: #a3d7ff;
filter: alpha(opacity=100); /* IE */
opacity: 1; /* Safari, Opera and Mozilla */
padding: 2px 4px;
}
.cke_skin_kama .cke_hc .cke_button a.cke_on
{
padding: 0 2px !important;
border-width: 3px;
}
.cke_skin_kama .cke_button a.cke_disabled *
{
filter: alpha(opacity=30); /* IE */
opacity: 0.3; /* Safari, Opera and Mozilla */
}
/* IE with zoom != 100% will distort the icons otherwise #4821 */
.cke_skin_kama .cke_browser_ie .cke_button a.cke_disabled *,
.cke_skin_kama .cke_browser_ie a:hover.cke_button .cke_disabled *
{
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(sizingMethod='scale'), alpha(opacity=30);
}
.cke_skin_kama .cke_browser_ie .cke_rtl .cke_button a.cke_disabled *,
.cke_skin_kama .cke_browser_ie .cke_rtl a:hover.cke_button .cke_disabled *
{
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(sizingMethod='scale'), alpha(opacity=30);
}
.cke_skin_kama .cke_browser_ie6 .cke_button a.cke_disabled *,
.cke_skin_kama .cke_browser_ie6 a:hover.cke_button .cke_disabled *,
.cke_skin_kama .cke_browser_ie .cke_button.cke_noalphafix a.cke_disabled *
{
filter: alpha(opacity=30);
}
.cke_skin_kama .cke_hc .cke_button a.cke_disabled *,
.cke_skin_kama .cke_browser_ie.cke_hc a:hover.cke_button .cke_disabled *
{
filter: alpha(opacity=60);
opacity: 0.6;
}
.cke_skin_kama .cke_button a:hover.cke_on,
.cke_skin_kama .cke_button a:focus.cke_on,
.cke_skin_kama .cke_button a:active.cke_on, /* IE */
.cke_skin_kama .cke_button a:hover.cke_off,
.cke_skin_kama .cke_button a:focus.cke_off,
.cke_skin_kama .cke_button a:active.cke_off /* IE */
{
filter: alpha(opacity=100); /* IE */
opacity: 1; /* Safari, Opera and Mozilla */
padding: 2px 4px;
}
.cke_skin_kama .cke_button a:hover,
.cke_skin_kama .cke_button a:focus,
.cke_skin_kama .cke_button a:active /* IE */
{
background-color: #dff1ff;
}
.cke_skin_kama .cke_button a:hover.cke_on,
.cke_skin_kama .cke_button a:focus.cke_on,
.cke_skin_kama .cke_button a:active.cke_on /* IE */
{
background-color: #86caff;
}
.cke_skin_kama .cke_hc .cke_button a:hover,
.cke_skin_kama .cke_hc .cke_button a:focus,
.cke_skin_kama .cke_hc .cke_button a:active /* IE */
{
padding: 0 2px !important;
border-width: 3px;
}
.cke_skin_kama .cke_button .cke_icon
{
background-image: url(icons.png);
background-position: 100px;
background-repeat: no-repeat;
margin-top: 1px;
width: 16px;
height: 16px;
display: inline-block;
cursor: default;
}
.cke_skin_kama .cke_rtl .cke_button .cke_icon
{
background-image: url(icons_rtl.png);
}
/* IE with zoom != 100% will distort the icons otherwise #4821 */
.cke_skin_kama .cke_browser_ie .cke_button .cke_icon
{
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(sizingMethod='scale');
}
.cke_skin_kama .cke_browser_ie .cke_rtl .cke_button .cke_icon
{
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(sizingMethod='scale');
}
.cke_skin_kama .cke_browser_ie6 .cke_button .cke_icon,
.cke_skin_kama .cke_browser_ie6 .cke_rtl .cke_button .cke_icon,
.cke_skin_kama .cke_browser_ie .cke_button.cke_noalphafix .cke_icon,
.cke_skin_kama .cke_browser_ie .cke_rtl .cke_button.cke_noalphafix .cke_icon
{
filter: ;
}
.cke_skin_kama .cke_button .cke_label
{
cursor: default;
display: none;
padding-left: 3px;
line-height: 18px;
vertical-align: middle;
}
.cke_skin_kama .cke_hc .cke_button .cke_label
{
padding: 0;
display: inline-block;
}
.cke_skin_kama .cke_hc .cke_button .cke_icon
{
display: none;
}
.cke_skin_kama .cke_accessibility
{
position: absolute;
display: block;
width: 0;
height: 0;
overflow: hidden;
}
.cke_skin_kama .cke_button .cke_buttonarrow
{
display: inline-block;
height: 17px;
width: 8px;
background-position: 2px -1469px; /* (+2, -5) */
background-image: url(images/sprites.png);
_background-image: url(images/sprites_ie6.png);
background-repeat: no-repeat;
cursor: default;
}
/* IE with zoom != 100% will distort the icons otherwise #4821 */
.cke_skin_kama .cke_browser_ie .cke_button .cke_buttonarrow
{
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(sizingMethod='scale');
}
.cke_skin_kama .cke_browser_ie6 .cke_button .cke_buttonarrow
{
filter: ;
}
/*** Firefox 2 ***/
.cke_skin_kama .cke_browser_gecko .cke_toolbar,
.cke_skin_kama .cke_browser_gecko .cke_button a,
.cke_skin_kama .cke_browser_gecko .cke_button a.cke_off,
.cke_skin_kama .cke_browser_gecko .cke_button .cke_icon,
.cke_skin_kama .cke_browser_gecko .cke_button .cke_buttonarrow,
.cke_skin_kama .cke_browser_gecko .cke_separator,
.cke_skin_kama .cke_browser_gecko .cke_toolbar_start
{
display: block;
float: left;
}
.cke_skin_kama .cke_browser_gecko.cke_hc .cke_button .cke_icon
{
display: none;
}
.cke_skin_kama .cke_browser_gecko .cke_rtl .cke_toolbar,
.cke_skin_kama .cke_browser_gecko .cke_rtl .cke_button a,
.cke_skin_kama .cke_browser_gecko .cke_rtl.cke_button a.cke_off,
.cke_skin_kama .cke_browser_gecko .cke_rtl .cke_button .cke_icon,
.cke_skin_kama .cke_browser_gecko .cke_rtl .cke_button .cke_buttonarrow,
.cke_skin_kama .cke_browser_gecko .cke_rtl .cke_separator,
.cke_skin_kama .cke_browser_gecko .cke_rtl .cke_toolbar_start
{
float: right;
}
.cke_skin_kama .cke_browser_gecko .cke_button .cke_label,
.cke_skin_kama .cke_browser_gecko .cke_break
{
float: left;
}
.cke_skin_kama .cke_browser_gecko .cke_rtl .cke_button .cke_label,
.cke_skin_kama .cke_browser_gecko .cke_rtl .cke_break
{
float: right;
}
/*** WebKit ***/
/* We have originally used display:inline-block+float for cke_toolbar and it
worked well in all browsers, except IE+RTL. We had to change it to inline
and remove the float. This change didn't play well with Safari. */
.cke_skin_kama .cke_browser_webkit .cke_toolbar
{
float: left;
}
.cke_skin_kama .cke_browser_webkit .cke_rtl .cke_toolbar
{
float: right;
}
/*** Mixed Fixes ***/
.cke_skin_kama .cke_browser_ie .cke_button .cke_label
{
line-height: 16px;
}
/* Fix cursor shape consistency on toolbar combos (#4031) */
.cke_skin_kama .cke_browser_ie .cke_rcombo,
.cke_skin_kama .cke_browser_ie .cke_rcombo *
{
cursor: default;
}
.cke_skin_kama .cke_browser_ie .cke_toolbox
{
padding-bottom: 5px;
_padding-bottom: 6px;
}
.cke_shared .cke_skin_kama .cke_browser_ie .cke_toolbox
{
padding-bottom: 0;
}
| 10npsite | trunk/guanli/system/ckeditor/_source/skins/kama/toolbar.css | CSS | asf20 | 9,963 |
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
.cke_skin_kama
{
display: block;
}
/* Main editor only settings. */
span.cke_skin_kama
{
-moz-border-radius: 5px;
-webkit-border-radius: 5px;
border-radius: 5px;
border: 1px solid #D3D3D3;
padding: 5px;
}
.cke_skin_kama span.cke_browser_webkit,
.cke_skin_kama span.cke_browser_gecko18
{
display: block;
}
.cke_skin_kama .cke_wrapper
{
-moz-border-radius: 5px;
-webkit-border-radius: 5px;
-webkit-touch-callout: none;
border-radius: 5px;
background-color: #d3d3d3;
background-image: url(images/sprites.png);
background-repeat: repeat-x;
background-position: 0 -1950px;
display: block;
/* IE Quirks: editor chrome overflow horizontally without an explicit width. */
_display: inline-block;
padding: 5px;
/*background-color: Red;*/
}
.cke_shared .cke_skin_kama .cke_wrapper
{
padding-bottom: 0;
}
.cke_skin_kama .cke_browser_ie6 .cke_wrapper,
.cke_skin_kama .cke_browser_iequirks .cke_wrapper
{
background-image: none;
}
.cke_skin_kama .cke_editor
{
display: inline-table;
width: 100%;
}
.cke_skin_kama .cke_browser_ie .cke_editor,
.cke_skin_kama .cke_browser_webkit .cke_editor
{
display: table; /* #6684, #8342 */
}
.cke_skin_kama .ltr .cke_browser_ie iframe
{
margin-right: -10px;
}
.cke_skin_kama .rtl .cke_browser_ie iframe
{
margin-left: -10px;
}
.cke_skin_kama .cke_browser_opera .cke_editor.cke_skin_kama .cke_resizer
{
display: table;
}
.cke_skin_kama .cke_contents
{
margin: 5px;
}
.cke_skin_kama .cke_hc .cke_contents
{
border: 1px solid black;
}
.cke_skin_kama .cke_contents iframe
{
background-color: #fff;
}
.cke_skin_kama .cke_focus
{
outline: auto 5px -webkit-focus-ring-color;
}
.cke_skin_kama textarea.cke_source
{
font-family: 'Courier New' , Monospace;
font-size: small;
background-color: #fff;
white-space: pre;
}
.cke_skin_kama .cke_browser_iequirks textarea.cke_source
{
/* For IE6+Quirks only */
_white-space: normal;
}
.cke_skin_kama .cke_resizer
{
width: 12px;
height: 12px;
margin-top: 9px;
display: block;
float: right;
/* resizer.gif*/
background-image: url(images/sprites.png);
_background-image: url(images/sprites_ie6.png);
background-position: 0 -1428px;
background-repeat: no-repeat;
cursor: se-resize;
}
/* Adobe AIR doesn't support *-resize cursor shape. */
.cke_skin_kama .cke_browser_air .cke_resizer,
.cke_skin_kama .cke_browser_air .cke_rtl .cke_resizer
{
cursor: move;
}
.cke_skin_kama .cke_resizer_rtl
{
cursor: sw-resize;
/* resizer_rtl.gif*/
background-position: 0 -1455px;
float: left;
}
.cke_skin_kama .cke_resizer_horizontal,
.cke_skin_kama .cke_rtl .cke_resizer_horizontal
{
cursor: e-resize;
}
.cke_skin_kama .cke_resizer_vertical,
.cke_skin_kama .cke_rtl .cke_resizer_vertical
{
cursor: n-resize;
}
.cke_skin_kama .cke_maximized .cke_resizer
{
display: none;
}
.cke_skin_kama .cke_browser_ie6 .cke_contents textarea,
.cke_skin_kama .cke_browser_ie7 .cke_contents textarea
{
position: absolute;
}
.cke_skin_kama .cke_browser_ie.cke_browser_quirks .cke_contents iframe
{
position: absolute;
top: 0;
}
.cke_skin_kama .cke_browser_ie6 .cke_editor,
.cke_skin_kama .cke_browser_ie7 .cke_editor
{
display: inline-block;
}
.cke_skin_kama .cke_browser_ie6 .cke_editor,
.cke_shared .cke_skin_kama .cke_browser_ie7 .cke_wrapper
{
padding-bottom: 5px;
}
/* All voice labels are not displayed. */
.cke_skin_kama .cke_voice_label
{
display: none;
}
.cke_skin_kama legend.cke_voice_label
{
display: none;
}
.cke_skin_kama .cke_browser_ie legend.cke_voice_label
{
position: absolute;
display: block;
width: 0;
height: 0;
overflow: hidden;
}
| 10npsite | trunk/guanli/system/ckeditor/_source/skins/kama/mainui.css | CSS | asf20 | 3,923 |
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
/* Special Combo */
.cke_skin_kama .cke_rcombo
{
display: inline;
}
.cke_skin_kama .cke_rtl .cke_rcombo
{
}
.cke_skin_kama .cke_rcombopanel
{
border: 1px solid #8F8F73;
-moz-border-radius-topleft: 0;
-webkit-border-top-left-radius: 0;
border-top-left-radius: 0;
height: auto;
_height: 100px;
}
/* IE6 workaround, shouldn't be here */
.cke_skin_kama .cke_browser_iequirks .cke_rcombopanel,
.cke_skin_kama .cke_browser_ie6 .cke_rcombopanel
{
/* width: 150px;*/
}
.cke_skin_kama .cke_rcombo a,
.cke_skin_kama .cke_rcombo a:active,
.cke_skin_kama .cke_rcombo a:hover
{
-moz-border-radius: 5px;
-webkit-border-radius: 5px;
border-radius: 5px;
background-image: url(images/sprites.png);
_background-image: url(images/sprites_ie6.png);
background-repeat: repeat-x;
background-position: 0 -100px;
border-bottom:1px solid #DAD9D9;
border-right:1px solid #DAD9D9;
float:left;
padding: 2px;
height: 21px;
margin-right: 6px;
margin-bottom: 5px;
}
.cke_skin_kama .cke_rtl .cke_rcombo a,
.cke_skin_kama .cke_rtl .cke_rcombo a:active,
.cke_skin_kama .cke_rtl .cke_rcombo a:hover
{
float:right;
margin-right: 0;
margin-left: 6px;
}
.cke_skin_kama .cke_hc .cke_rcombo a
{
filter: alpha(opacity=100); /* IE */
opacity: 1.0; /* Safari, Opera and Mozilla */
}
.cke_skin_kama .cke_rcombo .cke_label
{
display: none;
line-height: 26px;
vertical-align: top;
margin-right: 5px;
filter: alpha(opacity=70); /* IE */
opacity: 0.70; /* Safari, Opera and Mozilla */
/* background-color: #f1f1e3; Because of IE6+ClearType */
}
.cke_skin_kama .cke_rtl .cke_rcombo .cke_label
{
margin-right: 0;
margin-left: 5px;
}
.cke_skin_kama .cke_rcombo .cke_inline_label
{
line-height: 21px;
font-style: italic;
color: #666666;
}
.cke_skin_kama .cke_hc .cke_rcombo .cke_openbutton
{
vertical-align: top;
}
.cke_skin_kama .cke_hc .cke_rcombo .cke_label
{
filter: alpha(opacity=100);
opacity: 1.0;
}
.cke_skin_kama .cke_rcombo .cke_text
{
filter: alpha(opacity=70); /* IE */
opacity: 0.70; /* Safari, Opera and Mozilla */
height: 21px;
line-height: 21px;
width:60px;
text-overflow: ellipsis;
overflow: hidden;
display: inline-block;
margin: 0 2px 0 4px;
cursor: default;
}
.cke_skin_kama .cke_rtl .cke_rcombo .cke_text
{
margin: 0 4px 0 2px;
}
.cke_skin_kama .cke_rcombo .cke_openbutton
{
display: inline-block;
}
.cke_skin_kama .cke_rcombo .cke_openbutton .cke_icon
{
display: inline-block;
background-image: url(images/sprites.png);
_background-image: url(images/sprites_ie6.png);
background-position: 0 -68px;
background-repeat: no-repeat;
width: 17px;
height: 19px;
margin: 1px 2px;
}
.cke_skin_kama .cke_hc .cke_rcombo .cke_openbutton .cke_icon
{
background: none;
}
.cke_skin_kama .cke_browser_iequirks .cke_rcombo .cke_openbutton
{
margin-bottom: 0;
}
.cke_skin_kama .cke_rcombo .cke_off a:hover .cke_text,
.cke_skin_kama .cke_rcombo .cke_off a:focus .cke_text,
.cke_skin_kama .cke_rcombo .cke_off a:active .cke_text,
.cke_skin_kama .cke_rcombo .cke_on .cke_text
{
border-color: #316ac5;
filter: alpha(opacity=100); /* IE */
opacity: 1; /* Safari, Opera and Mozilla */
}
.cke_skin_kama .cke_rcombo .cke_off a:hover .cke_openbutton,
.cke_skin_kama .cke_rcombo .cke_off a:focus .cke_openbutton,
.cke_skin_kama .cke_rcombo .cke_off a:active .cke_openbutton,
.cke_skin_kama .cke_rcombo .cke_on .cke_openbutton
{
border-color: #316ac5;
background-color: #dff1ff;
}
.cke_skin_kama .cke_rcombo .cke_on .cke_text
{
-moz-border-radius-bottomleft: 0px;
-webkit-border-bottom-left-radius: 0px;
border-bottom-left-radius: 0px;
}
.cke_skin_kama .cke_rcombo .cke_on .cke_openbutton
{
-moz-border-radius-bottomright: 0px;
-webkit-border-bottom-right-radius: 0px;
border-bottom-right-radius: 0px;
}
.cke_skin_kama .cke_rcombo .cke_disabled .cke_label
{
filter: alpha(opacity=30); /* IE */
opacity: 0.3; /* Safari, Opera and Mozilla */
}
.cke_skin_kama .cke_hc .cke_rcombo .cke_disabled .cke_label
{
filter: alpha(opacity=70);
opacity: 0.7;
}
.cke_skin_kama .cke_rcombo .cke_disabled .cke_text,
.cke_skin_kama .cke_rcombo .cke_disabled .cke_openbutton
{
filter: alpha(opacity=50); /* IE */
opacity: 0.5; /* Safari, Opera and Mozilla */
}
/* IE with zoom != 100% will distort the icons otherwise #4821 */
.cke_skin_kama .cke_browser_ie .cke_rcombo .cke_disabled .cke_openbutton
{
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(sizingMethod='scale'), alpha(opacity=50);
}
.cke_skin_kama .cke_browser_ie6 .cke_rcombo .cke_disabled .cke_openbutton
{
filter: alpha(opacity=50);
}
.cke_skin_kama .cke_hc .cke_rcombo .cke_disabled .cke_text,
.cke_skin_kama .cke_hc .cke_rcombo .cke_disabled .cke_openbutton
{
filter: alpha(opacity=80);
opacity: 0.8;
}
.cke_skin_kama .cke_rcombo .cke_disabled .cke_text
{
color: #fff;
}
/* RTL */
.cke_skin_kama .cke_rtl .cke_rcombo span
{
/* _zoom: 1;*/
}
.cke_skin_kama .cke_rtl .cke_rcombo .cke_text
{
/* _float: left;*/
}
/* Firefox 2 & WebKit Section */
.cke_skin_kama .cke_browser_gecko .cke_rcombo .cke_text,
.cke_skin_kama .cke_browser_gecko .cke_rcombo .cke_openbutton,
.cke_skin_kama .cke_browser_webkit .cke_rcombo .cke_text,
.cke_skin_kama .cke_browser_webkit .cke_rcombo .cke_openbutton
{
display: block;
float: left;
}
.cke_skin_kama .cke_browser_gecko .cke_rtl .cke_rcombo .cke_text,
.cke_skin_kama .cke_browser_webkit .cke_rtl .cke_rcombo .cke_text
{
/* float: right;*/
}
.cke_skin_kama .cke_browser_gecko .cke_rcombo .cke_label,
.cke_skin_kama .cke_browser_webkit .cke_rcombo .cke_label
{
/*display: block;*/
float: left;
}
.cke_skin_kama .cke_browser_gecko .cke_rtl .cke_rcombo .cke_label,
.cke_skin_kama .cke_browser_gecko .cke_rtl .cke_rcombo .cke_text,
.cke_skin_kama .cke_browser_gecko .cke_rtl .cke_rcombo .cke_openbutton,
.cke_skin_kama .cke_browser_webkit .cke_rtl .cke_rcombo .cke_label,
.cke_skin_kama .cke_browser_webkit .cke_rtl .cke_rcombo .cke_text,
.cke_skin_kama .cke_browser_webkit .cke_rtl .cke_rcombo .cke_openbutton
{
float: right;
}
.cke_skin_kama .cke_browser_ie7 .cke_rcombo .cke_text
{
line-height: 18px;
}
.cke_skin_kama .cke_browser_ie6 .cke_rcombo .cke_text,
.cke_skin_kama .cke_browser_iequirks .cke_rcombo .cke_text
{
height: auto;
line-height: 17px;
}
.cke_skin_kama .cke_rtl .cke_rcombo .cke_font .cke_text,
.cke_skin_kama .cke_rtl .cke_rcombo .cke_fontSize .cke_text
{
direction: ltr;
}
| 10npsite | trunk/guanli/system/ckeditor/_source/skins/kama/richcombo.css | CSS | asf20 | 6,786 |
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
/**
* Reset and Default Values
*/
.cke_skin_kama *,
.cke_skin_kama a:hover,
.cke_skin_kama a:link,
.cke_skin_kama a:visited,
.cke_skin_kama a:active
{
margin: 0;
padding: 0;
border: 0;
background: transparent;
text-decoration: none;
font: normal normal normal 100% Sans-Serif;
width: auto;
height: auto;
border-collapse: collapse;
text-align: left;
vertical-align: baseline;
white-space: nowrap;
cursor: auto;
color: #000;
float: none;
font-size: 12px;
font-family: Arial,Helvetica,Tahoma,Verdana,Sans-Serif;
}
.cke_skin_kama .cke_rtl *,
.cke_skin_kama .cke_rtl a:hover,
.cke_skin_kama .cke_rtl a:link,
.cke_skin_kama .cke_rtl a:visited,
.cke_skin_kama .cke_rtl a:active,
.cke_rtl .cke_skin_kama *,
.cke_rtl .cke_skin_kama a:hover,
.cke_rtl .cke_skin_kama a:link,
.cke_rtl .cke_skin_kama a:visited,
.cke_rtl .cke_skin_kama a:active
{
text-align: right;
}
.cke_skin_kama iframe
{
vertical-align: inherit; /** For IE */
}
.cke_skin_kama textarea
{
white-space: pre;
}
.cke_skin_kama .cke_browser_gecko textarea
{
cursor: text;
}
.cke_skin_kama .cke_browser_gecko textarea[disabled]
{
cursor: default;
}
.cke_skin_kama input[type="text"],
.cke_skin_kama input[type="password"]
{
cursor: text;
}
.cke_skin_kama input[type="text"][disabled],
.cke_skin_kama input[type="password"][disabled]
{
cursor: default;
}
.cke_skin_kama fieldset
{
padding: 10px;
border: 2px groove #E0DFE3;
}
| 10npsite | trunk/guanli/system/ckeditor/_source/skins/kama/reset.css | CSS | asf20 | 1,651 |
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
/**
* Styles for the "templates" plugin.
*/
.cke_skin_kama .cke_tpl_list
{
border: #dcdcdc 2px solid;
background-color: #ffffff;
overflow-y: auto;
overflow-x: hidden;
width: 100%;
height: 220px;
}
.cke_skin_kama .cke_tpl_item
{
margin: 5px;
padding: 7px;
border: #eeeeee 1px solid;
*width: 88%;
}
.cke_skin_kama .cke_tpl_preview
{
border-collapse: separate;
text-indent:0;
width: 100%;
}
.cke_skin_kama .cke_tpl_preview td
{
padding: 2px;
vertical-align: middle;
}
.cke_skin_kama .cke_tpl_preview .cke_tpl_preview_img
{
width: 100px;
}
.cke_skin_kama .cke_tpl_preview span
{
white-space: normal;
}
.cke_skin_kama .cke_tpl_title
{
font-weight: bold;
}
.cke_skin_kama .cke_tpl_list a:active .cke_tpl_item,
.cke_skin_kama .cke_tpl_list a:hover .cke_tpl_item,
.cke_skin_kama .cke_tpl_list a:focus .cke_tpl_item
{
border: #ff9933 1px solid;
background-color: #fffacd;
}
.cke_skin_kama .cke_tpl_list a:active *,
.cke_skin_kama .cke_tpl_list a:hover *,
.cke_skin_kama .cke_tpl_list a:focus *
{
cursor: pointer;
}
/* IE6 contextual selectors childs won't get :hover transition until,
the hover style of the link itself contains certain CSS declarations.*/
.cke_skin_kama .cke_browser_ie6 .cke_tpl_list a:active,
.cke_skin_kama .cke_browser_ie6 .cke_tpl_list a:hover,
.cke_skin_kama .cke_browser_ie6 .cke_tpl_list a:focus
{
background-position: 0 0;
}
.cke_skin_kama .cke_hc .cke_tpl_list a:active .cke_tpl_item,
.cke_skin_kama .cke_hc .cke_tpl_list a:hover .cke_tpl_item,
.cke_skin_kama .cke_hc .cke_tpl_list a:focus .cke_tpl_item
{
border-width: 3px;
}
.cke_skin_kama .cke_tpl_empty, .cke_tpl_loading
{
text-align: center;
padding: 5px;
}
| 10npsite | trunk/guanli/system/ckeditor/_source/skins/kama/templates.css | CSS | asf20 | 1,903 |
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.skins.add( 'kama', (function()
{
var uiColorStylesheetId = 'cke_ui_color';
return {
editor : { css : [ 'editor.css' ] },
dialog : { css : [ 'dialog.css' ] },
richcombo : { canGroup: false },
templates : { css : [ 'templates.css' ] },
margins : [ 0, 0, 0, 0 ],
init : function( editor )
{
if ( editor.config.width && !isNaN( editor.config.width ) )
editor.config.width -= 12;
var uiColorMenus = [];
var uiColorRegex = /\$color/g;
var uiColorMenuCss = "/* UI Color Support */\
.cke_skin_kama .cke_menuitem .cke_icon_wrapper\
{\
background-color: $color !important;\
border-color: $color !important;\
}\
\
.cke_skin_kama .cke_menuitem a:hover .cke_icon_wrapper,\
.cke_skin_kama .cke_menuitem a:focus .cke_icon_wrapper,\
.cke_skin_kama .cke_menuitem a:active .cke_icon_wrapper\
{\
background-color: $color !important;\
border-color: $color !important;\
}\
\
.cke_skin_kama .cke_menuitem a:hover .cke_label,\
.cke_skin_kama .cke_menuitem a:focus .cke_label,\
.cke_skin_kama .cke_menuitem a:active .cke_label\
{\
background-color: $color !important;\
}\
\
.cke_skin_kama .cke_menuitem a.cke_disabled:hover .cke_label,\
.cke_skin_kama .cke_menuitem a.cke_disabled:focus .cke_label,\
.cke_skin_kama .cke_menuitem a.cke_disabled:active .cke_label\
{\
background-color: transparent !important;\
}\
\
.cke_skin_kama .cke_menuitem a.cke_disabled:hover .cke_icon_wrapper,\
.cke_skin_kama .cke_menuitem a.cke_disabled:focus .cke_icon_wrapper,\
.cke_skin_kama .cke_menuitem a.cke_disabled:active .cke_icon_wrapper\
{\
background-color: $color !important;\
border-color: $color !important;\
}\
\
.cke_skin_kama .cke_menuitem a.cke_disabled .cke_icon_wrapper\
{\
background-color: $color !important;\
border-color: $color !important;\
}\
\
.cke_skin_kama .cke_menuseparator\
{\
background-color: $color !important;\
}\
\
.cke_skin_kama .cke_menuitem a:hover,\
.cke_skin_kama .cke_menuitem a:focus,\
.cke_skin_kama .cke_menuitem a:active\
{\
background-color: $color !important;\
}";
// We have to split CSS declarations for webkit.
if ( CKEDITOR.env.webkit )
{
uiColorMenuCss = uiColorMenuCss.split( '}' ).slice( 0, -1 );
for ( var i = 0 ; i < uiColorMenuCss.length ; i++ )
uiColorMenuCss[ i ] = uiColorMenuCss[ i ].split( '{' );
}
function getStylesheet( document )
{
var node = document.getById( uiColorStylesheetId );
if ( !node )
{
node = document.getHead().append( 'style' );
node.setAttribute( "id", uiColorStylesheetId );
node.setAttribute( "type", "text/css" );
}
return node;
}
function updateStylesheets( styleNodes, styleContent, replace )
{
var r, i, content;
for ( var id = 0 ; id < styleNodes.length ; id++ )
{
if ( CKEDITOR.env.webkit )
{
for ( i = 0 ; i < styleContent.length ; i++ )
{
content = styleContent[ i ][ 1 ];
for ( r = 0 ; r < replace.length ; r++ )
content = content.replace( replace[ r ][ 0 ], replace[ r ][ 1 ] );
styleNodes[ id ].$.sheet.addRule( styleContent[ i ][ 0 ], content );
}
}
else
{
content = styleContent;
for ( r = 0 ; r < replace.length ; r++ )
content = content.replace( replace[ r ][ 0 ], replace[ r ][ 1 ] );
if ( CKEDITOR.env.ie )
styleNodes[ id ].$.styleSheet.cssText += content;
else
styleNodes[ id ].$.innerHTML += content;
}
}
}
var uiColorRegexp = /\$color/g;
CKEDITOR.tools.extend( editor,
{
uiColor: null,
getUiColor : function()
{
return this.uiColor;
},
setUiColor : function( color )
{
var cssContent,
uiStyle = getStylesheet( CKEDITOR.document ),
cssId = '.' + editor.id;
var cssSelectors =
[
cssId + " .cke_wrapper",
cssId + "_dialog .cke_dialog_contents",
cssId + "_dialog a.cke_dialog_tab",
cssId + "_dialog .cke_dialog_footer"
].join( ',' );
var cssProperties = "background-color: $color !important;";
if ( CKEDITOR.env.webkit )
cssContent = [ [ cssSelectors, cssProperties ] ];
else
cssContent = cssSelectors + '{' + cssProperties + '}';
return ( this.setUiColor =
function( color )
{
var replace = [ [ uiColorRegexp, color ] ];
editor.uiColor = color;
// Update general style.
updateStylesheets( [ uiStyle ], cssContent, replace );
// Update menu styles.
updateStylesheets( uiColorMenus, uiColorMenuCss, replace );
})( color );
}
});
editor.on( 'menuShow', function( event )
{
var panel = event.data[ 0 ];
var iframe = panel.element.getElementsByTag( 'iframe' ).getItem( 0 ).getFrameDocument();
// Add stylesheet if missing.
if ( !iframe.getById( 'cke_ui_color' ) )
{
var node = getStylesheet( iframe );
uiColorMenus.push( node );
var color = editor.getUiColor();
// Set uiColor for new menu.
if ( color )
updateStylesheets( [ node ], uiColorMenuCss, [ [ uiColorRegexp, color ] ] );
}
});
// Apply UI color if specified in config.
if ( editor.config.uiColor )
editor.setUiColor( editor.config.uiColor );
}
};
})() );
(function()
{
CKEDITOR.dialog ? dialogSetup() : CKEDITOR.on( 'dialogPluginReady', dialogSetup );
function dialogSetup()
{
CKEDITOR.dialog.on( 'resize', function( evt )
{
var data = evt.data,
width = data.width,
height = data.height,
dialog = data.dialog,
contents = dialog.parts.contents;
if ( data.skin != 'kama' )
return;
contents.setStyles(
{
width : width + 'px',
height : height + 'px'
});
});
}
})();
/**
* The base user interface color to be used by the editor. Not all skins are
* compatible with this setting.
* @name CKEDITOR.config.uiColor
* @type String
* @default '' (empty)
* @example
* // Using a color code.
* config.uiColor = '#AADC6E';
* @example
* // Using an HTML color name.
* config.uiColor = 'Gold';
*/
| 10npsite | trunk/guanli/system/ckeditor/_source/skins/kama/skin.js | JavaScript | asf20 | 6,434 |
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
.cke_skin_kama .cke_contextmenu
{
padding: 2px;
}
.cke_skin_kama .cke_menuitem a
{
display:block;
}
.cke_skin_kama .cke_menuitem span
{
cursor: default;
}
.cke_skin_kama .cke_menuitem a:hover,
.cke_skin_kama .cke_menuitem a:focus,
.cke_skin_kama .cke_menuitem a:active
{
background-color: #D3D3D3;
display:block;
}
.cke_hc .cke_menuitem a:hover,
.cke_hc .cke_menuitem a:focus,
.cke_hc .cke_menuitem a:active
{
border: 2px solid;
}
.cke_skin_kama .cke_menuitem .cke_icon
{
background-image: url(icons.png);
background-position: 100px;
background-repeat:no-repeat;
background-color: transparent;
width: 16px;
height: 16px;
float: left;
}
.cke_rtl .cke_skin_kama .cke_menuitem .cke_icon
{
background-image: url(icons_rtl.png);
}
/* IE with zoom != 100% will distort the icons otherwise #4821 */
.cke_browser_ie .cke_skin_kama .cke_menuitem .cke_icon
{
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(sizingMethod='scale');
}
.cke_browser_ie.cke_rtl .cke_skin_kama .cke_menuitem .cke_icon
{
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(sizingMethod='scale');
}
.cke_browser_ie6 .cke_skin_kama .cke_menuitem .cke_icon,
.cke_browser_ie .cke_skin_kama .cke_menuitem.cke_noalphafix .cke_icon
{
filter: ;
}
.cke_skin_kama .cke_menuitem .cke_disabled .cke_icon
{
filter: alpha(opacity=70); /* IE */
opacity: 0.70; /* Safari, Opera and Mozilla */
}
/* IE with zoom != 100% will distort the icons otherwise #4821 */
.cke_browser_ie .cke_skin_kama .cke_menuitem .cke_disabled .cke_icon
{
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(sizingMethod='scale');
}
.cke_browser_ie.cke_rtl .cke_skin_kama .cke_menuitem .cke_disabled .cke_icon
{
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(sizingMethod='scale');
}
.cke_browser_ie6 .cke_skin_kama .cke_menuitem .cke_disabled .cke_icon,
.cke_browser_ie .cke_skin_kama .cke_menuitem.cke_noalphafix .cke_disabled .cke_icon
{
filter: ;
}
.cke_skin_kama .cke_menuitem .cke_icon_wrapper
{
background-color: #D3D3D3;
border: solid 4px #D3D3D3;
width: 16px;
height: 16px;
float: left;
filter: alpha(opacity=70); /* IE */
opacity: 0.70; /* Safari, Opera and Mozilla */
clear: both;
}
.cke_rtl .cke_skin_kama .cke_menuitem .cke_icon_wrapper
{
float: right;
}
.cke_skin_kama .cke_menuitem a:hover .cke_icon_wrapper,
.cke_skin_kama .cke_menuitem a:focus .cke_icon_wrapper,
.cke_skin_kama .cke_menuitem a:active .cke_icon_wrapper
{
background-color: #9d9d9d;
border: solid 4px #9d9d9d;
filter: alpha(opacity=70); /* IE */
opacity: 0.70; /* Safari, Opera and Mozilla */
}
.cke_skin_kama .cke_menuitem a:hover.cke_disabled .cke_icon_wrapper,
.cke_skin_kama .cke_menuitem a:focus.cke_disabled .cke_icon_wrapper,
.cke_skin_kama .cke_menuitem a:active.cke_disabled .cke_icon_wrapper
{
background-color: #D3D3D3;
border: solid 4px #D3D3D3;
}
.cke_skin_kama .cke_menuitem .cke_label
{
display:block;
padding-right: 3px;
padding-top: 5px;
padding-left: 4px;
height:19px;
margin-left: 24px;
background-color: #fff;
}
/* Set these after the document has been loaded and we know the dimensions*/
.cke_skin_kama .cke_frameLoaded .cke_menuitem .cke_label
{
filter: alpha(opacity=70); /* IE */
opacity: 0.70; /* Safari, Opera and Mozilla */
}
.cke_rtl .cke_skin_kama .cke_menuitem .cke_label
{
padding-right: 0;
margin-left: 0;
padding-left: 3px;
margin-right: 28px;
}
.cke_skin_kama .cke_menuitem a.cke_disabled .cke_label
{
filter: alpha(opacity=30); /* IE */
opacity: 0.30; /* Safari, Opera and Mozilla */
}
.cke_skin_kama .cke_menuitem a:hover .cke_label,
.cke_skin_kama .cke_menuitem a:focus .cke_label,
.cke_skin_kama .cke_menuitem a:active .cke_label
{
background-color: #D3D3D3;
}
.cke_skin_kama .cke_menuitem a.cke_disabled:hover .cke_label,
.cke_skin_kama .cke_menuitem a.cke_disabled:focus .cke_label,
.cke_skin_kama .cke_menuitem a.cke_disabled:active .cke_label
{
background-color: transparent;
}
.cke_skin_kama .cke_menuseparator
{
background-color: #D3D3D3;
height: 2px;
filter: alpha(opacity=70); /* IE */
opacity: 0.70; /* Safari, Opera and Mozilla */
_font-size: 0;
}
.cke_skin_kama .cke_menuarrow
{
/* arrowright.gif*/
background-image: url(images/sprites.png);
_background-image: url(images/sprites_ie6.png);
background-position: 0 -1411px;
background-repeat: no-repeat;
height: 5px;
width: 3px;
float: right;
margin-right: 2px;
margin-top: 3px;
}
.cke_rtl .cke_skin_kama .cke_menuarrow
{
float: left;
margin-right: 0;
margin-left: 2px;
/* arrowleft.gif*/
background-image: url(images/sprites.png);
_background-image: url(images/sprites_ie6.png);
background-position: 0px -1390px;
background-repeat: no-repeat;
}
.cke_skin_kama .cke_menuarrow span
{
display: none;
}
.cke_hc .cke_skin_kama .cke_menuarrow
{
width: auto;
margin-top: 0;
}
.cke_hc .cke_skin_kama .cke_menuarrow span
{
display: inline;
}
/* #3766 In the context menu, long labels with second level menu get wrapped */
.cke_browser_ie.cke_ltr .cke_skin_kama .cke_menuarrow
{
position: absolute;
right: 2px;
}
.cke_browser_ie.cke_rtl .cke_skin_kama .cke_menuarrow
{
position: absolute;
left: 2px;
}
/* END #3766 */
| 10npsite | trunk/guanli/system/ckeditor/_source/skins/kama/menu.css | CSS | asf20 | 5,541 |
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
@media print
{
.cke_path
{
display: none;
}
}
.cke_skin_v2 .cke_path
{
padding: 3px 3px 0 3px;
display: inline-block;
float: left;
}
.cke_skin_v2 .cke_rtl .cke_path
{
float: right;
}
.cke_skin_v2 .cke_path a,
.cke_skin_v2 .cke_path .cke_empty
{
display: inline-block;
float: left;
border: solid 1px #efefde;
background-color: #efefde;
padding-top: 1px;
padding-bottom: 1px;
padding-left: 4px;
padding-right: 4px;
margin-bottom : 3px;
cursor: default;
}
.cke_skin_v2 .cke_path .cke_empty
{
visibility: hidden;
}
.cke_skin_v2 .cke_rtl .cke_path a,
.cke_skin_v2 .cke_rtl .cke_path cke_empty
{
float: right;
}
.cke_skin_v2 .cke_path a:hover,
.cke_skin_v2 .cke_path a:focus,
.cke_skin_v2 .cke_path a:active /* IE */
{
border: solid 1px #316ac5;
background-color: #dff1ff;
padding-top: 1px;
padding-bottom: 1px;
padding-left: 4px;
padding-right: 4px;
outline: none;
}
.cke_skin_v2 .cke_browser_ie .cke_rtl .cke_path a,
.cke_skin_v2 .cke_browser_ie .cke_rtl .cke_path .cke_empty
{
float: none;
}
.cke_skin_v2 .cke_path .cke_label
{
display: none;
}
| 10npsite | trunk/guanli/system/ckeditor/_source/skins/v2/elementspath.css | CSS | asf20 | 1,300 |
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
@import url("reset.css");
@import url("mainui.css");
@import url("panel.css");
@import url("toolbar.css");
@import url("menu.css");
@import url("richcombo.css");
@import url("elementspath.css");
@import url("icons.css");
@import url("presets.css");
/* Restore the container visibility */
html .cke_skin_v2
{
visibility: inherit;
}
html.cke_skin_v2_container
{
visibility: visible;
}
| 10npsite | trunk/guanli/system/ckeditor/_source/skins/v2/editor.css | CSS | asf20 | 558 |
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
/* Restore the dialog visibility */
body .cke_dialog
{
visibility: visible;
}
/* Force Gecko to consider table as positioned */
.cke_skin_v2 table.cke_dialog.cke_browser_gecko
{
display:block;
}
.cke_skin_v2 .cke_dialog_body
{
margin-left: 16px;
margin-right: 16px;
margin-top: 2px;
margin-bottom: 20px;
z-index: 1;
/* 'cke_dialog' element has been fixed positioned in all but IE6, while we
need it to be positioned to hold e.g. close button. */
_position: static;
}
.cke_skin_v2 .cke_dialog_tl,
.cke_skin_v2 .cke_dialog_tr,
.cke_skin_v2 .cke_dialog_tc,
.cke_skin_v2 .cke_dialog_bl,
.cke_skin_v2 .cke_dialog_br,
.cke_skin_v2 .cke_dialog_bc
{
background-image: url(images/sprites.png);
background-repeat: no-repeat;
position: absolute;
/* IE6 does not support full color transparent PNG. */
_background-image: url(images/sprites_ie6.png);
/* Dialog corner parts require a negative z-index to avoid covering dialog body. (#4954) */
z-index: -1;
}
.cke_skin_v2 .cke_dialog_tl
{
background-position: -16px -16px;
height: 16px;
width: 16px;
top: 0;
left: 0;
}
.cke_skin_v2 .cke_rtl .cke_dialog_tl
{
background-position: -16px -397px;
}
.cke_skin_v2 .cke_dialog_tr
{
background-position: -16px -76px;
height: 16px;
width: 16px;
top: 0;
right: 0;
}
.cke_skin_v2 .cke_rtl .cke_dialog_tr
{
background-position: -16px -457px;
}
.cke_skin_v2 .cke_dialog_tc
{
background-position: 0 -136px;
background-repeat: repeat-x;
height: 16px;
top: 0;
left: 16px;
right: 16px;
}
.cke_skin_v2 .cke_dialog_bl
{
background-position: -16px -196px;
height: 51px;
width: 30px;
bottom: 0;
left: 0;
}
.cke_skin_v2 .cke_rtl .cke_dialog_bl
{
background-position: -16px -517px;
}
.cke_skin_v2 .cke_dialog_br
{
background-position: -16px -263px;
height: 51px;
width: 30px;
bottom: 0;
right: 0;
}
.cke_skin_v2 .cke_rtl .cke_dialog_br
{
background-position: -16px -584px;
}
.cke_skin_v2 .cke_dialog_bc
{
background-position: 0 -330px;
background-repeat: repeat-x;
height: 51px;
bottom: 0;
left: 30px;
right: 30px;
}
.cke_skin_v2 .cke_dialog_ml,
.cke_skin_v2 .cke_dialog_mr
{
background-image: url(images/dialog_sides.png);
background-repeat: repeat-y;
position: absolute;
width: 16px;
top: 16px;
bottom: 51px;
/* IE6 does not support full color transparent PNG. */
_background-image: url(images/dialog_sides.gif);
/* IE quirks gets confused when we have both top and bottom. */
_top: auto;
}
.cke_skin_v2 .cke_rtl .cke_dialog_ml,
.cke_skin_v2 .cke_rtl .cke_dialog_mr
{
background-image: url(images/dialog_sides_rtl.png);
/* IE6 does not support full color transparent PNG. */
_background-image: url(images/dialog_sides.gif);
}
.cke_skin_v2 .cke_dialog_ml
{
background-position: 0 0;
left: 0;
}
.cke_skin_v2 .cke_dialog_mr
{
background-position: -16px 0;
right: 0;
}
.cke_skin_v2 .cke_browser_iequirks .cke_dialog_ml,
.cke_skin_v2 .cke_browser_iequirks .cke_dialog_mr
{
margin-top: 3px;
}
.cke_skin_v2 .cke_dialog_title
{
font-weight: bold;
font-size: 14pt;
color: #737357;
background-color: #e3e3c7;
padding: 3px 10px 26px 10px;
cursor: move;
position: relative;
}
.cke_skin_v2 .cke_browser_ie.cke_rtl .cke_dialog_title
{
position: static;
}
.cke_skin_v2 .cke_dialog_contents
{
background-color: #f1f1e3;
border: #d5d59d 1px solid;
overflow: auto;
padding: 5px 10px;
}
.cke_skin_v2 .cke_dialog_footer
{
background-color: #e3e3c7;
text-align: right;
}
.cke_skin_v2 .cke_rtl .cke_dialog_footer
{
text-align: left;
}
.cke_skin_v2 .cke_dialog_footer .cke_resizer {
margin-top: 21px;
}
/* tabs */
.cke_skin_v2 .cke_dialog_tabs
{
height: 23px;
background-color: #e3e3c7;
display: inline-block;
margin-left:10px;
margin-right:10px;
margin-top:-23px;
position: absolute;
z-index: 2;
}
.cke_skin_v2 .cke_rtl .cke_dialog_tabs
{
right: 10px;
}
.cke_skin_v2 a.cke_dialog_tab,
.cke_skin_v2 a:link.cke_dialog_tab,
.cke_skin_v2 a:active.cke_dialog_tab,
.cke_skin_v2 a:hover.cke_dialog_tab,
.cke_skin_v2 a:visited.cke_dialog_tab
{
color: #737357;
border-left: 1px solid #d5d59d;
border-right: 1px solid #d5d59d;
border-top: 1px solid #d5d59d;
height: 14px;
padding: 4px 5px;
display: inline-block;
cursor: pointer;
}
/* Gecko 1.8 layout workaround. */
.cke_skin_v2 .cke_browser_gecko18 a.cke_dialog_tab,
.cke_skin_v2 .cke_browser_gecko18 a:link.cke_dialog_tab,
.cke_skin_v2 .cke_browser_gecko18 a:active.cke_dialog_tab,
.cke_skin_v2 .cke_browser_gecko18 a:hover.cke_dialog_tab,
.cke_skin_v2 .cke_browser_gecko18 a:visited.cke_dialog_tab
{
display: inline;
position: relative;
top: 6px;
}
.cke_skin_v2 a:hover.cke_dialog_tab
{
background-color: #f1f1e3;
}
.cke_skin_v2 .cke_hc a:hover.cke_dialog_tab
{
padding: 2px 3px !important;
border-width: 3px;
}
.cke_skin_v2 a.cke_dialog_tab_selected,
.cke_skin_v2 a:link.cke_dialog_tab_selected,
.cke_skin_v2 a:active.cke_dialog_tab_selected,
.cke_skin_v2 a:hover.cke_dialog_tab_selected,
.cke_skin_v2 a:visited.cke_dialog_tab_selected
{
border-bottom: 1px solid #f1f1e3;
background-color: #f1f1e3;
font-weight: bold;
cursor: default;
}
.cke_skin_v2 .cke_hc a.cke_dialog_tab_selected,
.cke_skin_v2 .cke_hc a:link.cke_dialog_tab_selected,
.cke_skin_v2 .cke_hc a:active.cke_dialog_tab_selected,
.cke_skin_v2 .cke_hc a:hover.cke_dialog_tab_selected,
.cke_skin_v2 .cke_hc a:visited.cke_dialog_tab_selected
{
padding: 2px 3px !important;
border-width: 3px;
}
.cke_skin_v2 .cke_hc .cke_dialog_tabs a,
.cke_skin_v2 .cke_hc .cke_dialog_footer a
{
opacity: 1.0;
filter: alpha(opacity=100);
border: 1px solid white;
}
/* single_page */
.cke_skin_v2 .cke_single_page .cke_dialog_tabs
{
display: none;
}
.cke_skin_v2 .cke_single_page .cke_dialog_title
{
padding-bottom: 3px;
}
.cke_skin_v2 .cke_dialog_ui_vbox table,
.cke_skin_v2 .cke_dialog_ui_hbox table
{
margin: auto;
}
.cke_skin_v2 .cke_dialog_ui_vbox_child
{
padding: 5px 0px;
}
.cke_skin_v2 input.cke_dialog_ui_input_text,
.cke_skin_v2 input.cke_dialog_ui_input_password
{
background-color: white;
border: none;
padding: 0px;
width: 100%;
height: 14px;
}
.cke_skin_v2 .cke_browser_gecko.cke_hc div.cke_dialog_ui_input_text,
.cke_skin_v2 .cke_browser_gecko.cke_hc div.cke_dialog_ui_input_password
{
border-width: 0px;
}
.cke_skin_v2 .cke_browser_gecko18.cke_hc div.cke_dialog_ui_input_text,
.cke_skin_v2 .cke_browser_gecko18.cke_hc div.cke_dialog_ui_input_password
{
border-width: 1px;
}
/* Opera/IE doesn't leave enough padding in text input for cursor to blink in RTL. (#6087) */
.cke_skin_v2 .cke_browser_ie.cke_rtl input.cke_dialog_ui_input_text,
.cke_skin_v2 .cke_browser_opera.cke_rtl input.cke_dialog_ui_input_text,
.cke_skin_v2 .cke_browser_ie.cke_rtl input.cke_dialog_ui_input_password,
.cke_skin_v2 .cke_browser_opera.cke_rtl input.cke_dialog_ui_input_password
{
padding-right: 2px
}
/* Compensate the padding added above on container. */
.cke_skin_v2 .cke_browser_ie.cke_rtl div.cke_dialog_ui_input_text,
.cke_skin_v2 .cke_browser_opera.cke_rtl div.cke_dialog_ui_input_text,
.cke_skin_v2 .cke_browser_ie.cke_rtl div.cke_dialog_ui_input_password,
.cke_skin_v2 .cke_browser_opera.cke_rtl div.cke_dialog_ui_input_password
{
padding-left: 2px;
}
.cke_skin_v2 .cke_browser_ie.cke_rtl .cke_dialog_ui_vbox_child,
.cke_skin_v2 .cke_browser_ie.cke_rtl .cke_dialog_ui_hbox_child,
.cke_skin_v2 .cke_browser_ie.cke_rtl .cke_dialog_ui_hbox_first,
.cke_skin_v2 .cke_browser_ie.cke_rtl .cke_dialog_ui_hbox_last
{
padding-right: 2px !important;
}
.cke_skin_v2 div.cke_dialog_ui_input_text,
.cke_skin_v2 div.cke_dialog_ui_input_password
{
background-color: white;
border: 1px solid #a0a0a0;
padding: 1px 0px;
/* IE6/Quirks - make sure the content does not overflow (#7321) */
_width: 99.9%;
}
/* The absolute position is required for IE7 on text inputs not to stretch dialog horizontally. (#8971)*/
.cke_skin_v2 .cke_browser_ie7 input.cke_dialog_ui_input_text,
.cke_skin_v2 .cke_browser_ie7 input.cke_dialog_ui_input_password
{
position: absolute;
}
.cke_skin_v2 .cke_browser_ie7 div.cke_dialog_ui_input_text,
.cke_skin_v2 .cke_browser_ie7 div.cke_dialog_ui_input_password
{
height:14px;
position: relative;
}
.cke_skin_v2 .cke_browser_ie.cke_rtl div.cke_dialog_ui_input_text {
padding-right: 1px;
}
.cke_skin_v2 textarea.cke_dialog_ui_input_textarea
{
background-color: white;
border: none;
padding: 0px;
width: 100%;
/*
* IE6 BUG: Scrollbars in textareas can overflow even if the outer DIV is set to overflow:hidden.
* So leave 1% width for the scrollbar. In most situations the 1% isn't noticeable by users.
*/
_width: 99%;
overflow: auto;
resize: none;
}
.cke_skin_v2 div.cke_dialog_ui_input_textarea
{
background-color: white;
border: 1px solid #a0a0a0;
padding: 1px 0px;
}
/* RTL + IE6: Input overflows dialog element. (#7321) */
.cke_skin_v2 .cke_rtl .cke_dialog_ui_labeled_content
{
_width: 95%;
}
.cke_skin_v2 div.cke_disabled .cke_dialog_ui_labeled_content *
{
background-color : #a0a0a0;
cursor : default;
}
.cke_skin_v2 .cke_dialog_ui_hbox
{
width: 100%;
}
.cke_skin_v2 .cke_dialog_ui_hbox_first,
.cke_skin_v2 .cke_dialog_ui_hbox_child,
.cke_skin_v2 .cke_dialog_ui_hbox_last
{
vertical-align: top;
}
.cke_skin_v2 .cke_ltr .cke_dialog_ui_hbox_first,
.cke_skin_v2 .cke_ltr .cke_dialog_ui_hbox_child
{
padding-right: 10px;
}
.cke_skin_v2 .cke_rtl .cke_dialog_ui_hbox_first,
.cke_skin_v2 .cke_rtl .cke_dialog_ui_hbox_child
{
padding-left: 10px;
}
/* button */
.cke_skin_v2 a.cke_dialog_ui_button
{
border-collapse: separate;
cursor: default;
}
.cke_skin_v2 a.cke_dialog_ui_button_ok span,
.cke_skin_v2 a.cke_dialog_ui_button_cancel span
{
width:60px;
}
.cke_skin_v2 span.cke_dialog_ui_button
{
border: #737357 1px solid;
padding: 2px 10px;
text-align: center;
color: #3b3b1f;
background-color: #c7c78f;
display: inline-block;
cursor: default;
}
/* Gecko 1.8 does not support display: inline-block */
.cke_skin_v2 .cke_browser_gecko18 .cke_dialog_footer_buttons span.cke_dialog_ui_button
{
display: block;
}
.cke_skin_v2 a.cke_dialog_ui_button span.cke_disabled
{
border: #898980 1px solid;
color: #5e5e55;
background-color: #c5c5b3;
}
.cke_skin_v2 a:focus span.cke_dialog_ui_button,
.cke_skin_v2 a:active span.cke_dialog_ui_button
{
background-color: #e3e3c7;
}
.cke_skin_v2 .cke_hc a:focus span.cke_dialog_ui_button,
.cke_skin_v2 .cke_hc a:active span.cke_dialog_ui_button
{
border-width: 2px;
}
.cke_skin_v2 .cke_dialog_footer_buttons
{
display: inline-table;
margin-right: 12px;
margin-left: 12px;
width: auto;
position: relative;
}
/* Gecko 1.8 does not support for display: inline-table */
.cke_skin_v2 .cke_browser_gecko18 .cke_dialog_footer_buttons
{
display: inline;
}
.cke_skin_v2 .cke_dialog_footer_buttons span.cke_dialog_ui_button
{
margin: 7px 0;
}
.cke_skin_v2 .cke_browser_ie7 .cke_dialog_footer_buttons
{
position: static;
}
.cke_skin_v2 strong
{
font-weight: bold;
}
/* close_button */
.cke_skin_v2 a.cke_dialog_close_button,
.cke_skin_v2 a:hover.cke_dialog_close_button,
.cke_skin_v2 .cke_browser_ie6 a.cke_dialog_close_button,
.cke_skin_v2 .cke_browser_ie6 a:hover.cke_dialog_close_button
{
background-image: url(images/sprites.png);
background-repeat: no-repeat;
background-position: -16px -651px;
position: absolute;
cursor: pointer;
text-align: center;
height: 20px;
width: 20px;
top: 5px;
/* IE6 does not support full color transparent PNG. */
_background-image: url(images/sprites_ie6.png);
}
.cke_skin_v2 a.cke_dialog_close_button span
{
display: none;
}
.cke_skin_v2 a:hover.cke_dialog_close_button
{
background-position: -16px -687px;
}
.cke_skin_v2 .cke_ltr a.cke_dialog_close_button,
.cke_skin_v2 .cke_ltr a:hover.cke_dialog_close_button
{
right: 22px;
}
.cke_skin_v2 .cke_rtl a.cke_dialog_close_button,
.cke_skin_v2 .cke_rtl a:hover.cke_dialog_close_button
{
left: 16px;
_top: 7px;
}
.cke_skin_v2 .cke_browser_ie6.cke_rtl a.cke_dialog_close_button,
.cke_skin_v2 .cke_browser_ie6.cke_rtl a:hover.cke_dialog_close_button
{
position: relative;
float: left;
margin-top: -55px;
margin-left: -7px;
}
.cke_skin_v2 .cke_browser_iequirks.cke_rtl.cke_single_page a.cke_dialog_close_button,
.cke_skin_v2 .cke_browser_iequirks.cke_rtl.cke_single_page a:hover.cke_dialog_close_button
{
margin-top: -32px;
}
.cke_skin_v2 .cke_browser_iequirks.cke_ltr a.cke_dialog_close_button,
.cke_skin_v2 .cke_browser_iequirks.cke_ltr a:hover.cke_dialog_close_button
{
margin-top: 0;
}
.cke_skin_v2 .cke_dialog_ui_input_select
{
border: 1px solid #a0a0a0;
background-color: white;
}
.cke_skin_v2 .cke_dialog_ui_input_file
{
width: 100%;
height: 25px;
}
/*
* Some utility CSS classes for dialog authors.
*/
.cke_skin_v2 .cke_dialog .cke_dark_background
{
background-color: #eaead1;
}
.cke_skin_v2 .cke_dialog .cke_hand
{
cursor: pointer;
}
.cke_skin_v2 .cke_dialog .cke_centered
{
text-align: center;
}
.cke_skin_v2 .cke_dialog a.cke_btn_reset
{
float: right;
background-position: 0 -32px;
background-image: url(images/mini.gif);
width: 16px;
height: 16px;
background-repeat: no-repeat;
border: 1px none;
font-size: 1px;
}
.cke_skin_v2 .cke_rtl .cke_dialog a.cke_btn_reset
{
float: left;
}
.cke_skin_v2 .cke_dialog a.cke_btn_locked,
.cke_skin_v2 .cke_dialog a.cke_btn_unlocked
{
float: left;
background-position: 0 0;
background-image: url(images/mini.gif);
width: 16px;
height: 16px;
background-repeat: no-repeat;
border: none 1px;
font-size: 1px;
}
.cke_skin_v2 .cke_dialog a.cke_btn_locked .cke_icon
{
display:none;
}
.cke_skin_v2 .cke_rtl .cke_dialog a.cke_btn_locked,
.cke_skin_v2 .cke_rtl .cke_dialog a.cke_btn_unlocked
{
float: right;
}
.cke_skin_v2 .cke_dialog a.cke_btn_unlocked
{
background-position: 0 -16px;
background-image: url(images/mini.gif);
}
.cke_skin_v2 .cke_dialog .cke_btn_over
{
border: outset 1px;
cursor: pointer;
}
.cke_skin_v2 .cke_dialog .ImagePreviewBox
{
border : 2px ridge black;
overflow : scroll;
height : 210px;
width : 230px;
padding : 2px;
background-color : white;
}
.cke_skin_v2 .cke_dialog .ImagePreviewBox table td {
white-space: normal;
}
/* Fix iframedialog's height doesn't stretch to 100% #4863.*/
.cke_skin_v2 .cke_browser_iequirks .cke_dialog_page_contents
{
_position: absolute;
}
.cke_skin_v2 .cke_dialog .ImagePreviewLoader
{
position: absolute;
white-space : normal;
overflow : hidden;
height : 160px;
width : 230px;
margin : 2px;
padding : 2px;
opacity : 0.9;
filter : alpha(opacity=90);
background-color : #e4e4e4;
}
.cke_skin_v2 .cke_dialog .FlashPreviewBox
{
white-space : normal;
border : 2px ridge black;
overflow : auto;
height : 160px;
width : 390px;
padding : 2px;
background-color : white;
}
.cke_skin_v2 .cke_dialog .cke_pastetext
{
width: 346px;
height: 170px;
}
.cke_skin_v2 .cke_dialog .cke_pastetext textarea
{
width: 340px;
height: 170px;
resize: none;
}
.cke_skin_v2 .cke_dialog iframe.cke_pasteframe
{
width: 346px;
height: 130px;
background-color: white;
border: 1px solid black;
}
.cke_skin_v2 .cke_dialog .cke_dark_background
{
text-align : center;
background-color: #eaead1;
font-size : 14px;
}
.cke_skin_v2 .cke_dialog .cke_light_background
{
text-align : center;
background-color: #ffffbe;
}
.cke_skin_v2 .cke_dialog .cke_hand
{
cursor: pointer;
}
.cke_skin_v2 .cke_disabled
{
color: #a0a0a0;
}
/* High Contrast Mode */
.cke_skin_v2 .cke_hc .cke_dialog_title,
.cke_skin_v2 .cke_hc .cke_dialog_tabs,
.cke_skin_v2 .cke_hc .cke_dialog_contents,
.cke_skin_v2 .cke_hc .cke_dialog_footer
{
border-left: 1px solid;
border-right: 1px solid;
}
.cke_skin_v2 .cke_hc .cke_dialog_title
{
border-top: 1px solid;
}
.cke_skin_v2 .cke_hc .cke_dialog_footer
{
border-bottom: 1px solid;
}
.cke_skin_v2 .cke_hc .cke_dialog_close_button span
{
display: inline;
cursor: pointer;
font-weight: bold;
position: relative;
top: 3px;
}
.cke_skin_v2 .cke_dialog_body .cke_label
{
display: none;
}
.cke_skin_v2 .cke_dialog_body label.cke_required
{
font-weight: bold;
}
.cke_skin_v2 .cke_hc .cke_dialog_body .cke_label
{
display: inline;
cursor: inherit;
}
.cke_skin_v2 .cke_hc a.cke_btn_locked,
.cke_skin_v2 .cke_hc a.cke_btn_unlocked,
.cke_skin_v2 .cke_hc a.cke_btn_reset
{
border-style: solid;
float:left;
width:auto;
height:auto;
padding: 0 2px;
}
.cke_skin_v2 .cke_hc a.cke_btn_locked .cke_icon
{
display:inline;
}
.cke_skin_v2 .cke_rtl.cke_hc a.cke_btn_locked,
.cke_skin_v2 .cke_rtl.cke_hc a.cke_btn_unlocked,
.cke_skin_v2 .cke_rtl.cke_hc a.cke_btn_reset
{
float:right;
}
.cke_skin_v2 a.cke_smile img
{
/* IE6 does not support transparent borders */
border: 2px solid #eaead1;
}
.cke_skin_v2 a.cke_smile:focus img,
.cke_skin_v2 a.cke_smile:active img,
.cke_skin_v2 a.cke_smile:hover img
{
border-color: #C7C78F;
}
/**
* Styles specific to "cellProperties" dialog.
*/
.cke_skin_v2 .cke_dialog_contents a.colorChooser
{
display:block;
margin-top:12px;
margin-left: 10px;
width: 40px;
}
.cke_skin_v2 .cke_dialog_contents a.colorChooser .cke_dialog_ui_button
{
width:100%;
}
.cke_skin_v2 .cke_rtl .cke_dialog_contents a.colorChooser
{
margin-right: 10px;
}
/* Compensate focus outline for some input elements. (#6200) */
.cke_skin_v2 .cke_browser_gecko .cke_dialog_ui_checkbox_input:focus,
.cke_skin_v2 .cke_browser_gecko .cke_dialog_ui_radio_input:focus,
.cke_skin_v2 .cke_browser_opera .cke_dialog_ui_checkbox_input:focus,
.cke_skin_v2 .cke_browser_opera .cke_dialog_ui_radio_input:focus,
.cke_skin_v2 .cke_browser_gecko .cke_dialog_ui_input_select:focus,
.cke_skin_v2 .cke_browser_gecko .cke_btn_over,
.cke_skin_v2 .cke_browser_opera .cke_btn_over,
.cke_skin_v2 .cke_browser_ie .cke_btn_over
{
outline: 1px dotted #696969;
}
/* IE<8 instead doesn't support CSS outline property, emulated with dotted border. */
/* Predefined border to avoid visual size change impact. */
.cke_skin_v2 .cke_browser_ie .cke_dialog_ui_checkbox_input,
.cke_skin_v2 .cke_browser_ie .cke_dialog_ui_ratio_input,
.cke_skin_v2 .cke_browser_ie .cke_btn_reset,
.cke_skin_v2 .cke_browser_ie .cke_btn_locked,
.cke_skin_v2 .cke_browser_ie .cke_btn_unlocked
{
*border: 1px solid transparent !important;
/* Emulating border-color: transparent in IE6.*/
-border: 1px solid red !important;
-filter: chroma(color=red);
}
.cke_skin_v2 .cke_browser_ie .cke_dialog_ui_focused,
.cke_skin_v2 .cke_browser_ie .cke_btn_over
{
*border: 1px dotted #696969 !important;
}
.cke_skin_v2 .cke_iframe_shim
{
display:block;
position:absolute;
top:0;
left:0;
z-index:-1;
filter:alpha(opacity=0);
width:100%;
height:100%;
}
.cke_dialog label
{
display: inline;
margin-bottom: auto;
cursor: default;
}
| 10npsite | trunk/guanli/system/ckeditor/_source/skins/v2/dialog.css | CSS | asf20 | 19,673 |
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
/* "Source" button label */
.cke_skin_v2 .cke_button_source .cke_label
{
display: inline; /* FF2 */
display: inline-block;
}
/* "Styles" panel size */
.cke_skin_v2 .cke_styles_panel
{
width: 150px;
height: 170px;
}
/* "Format" panel size */
.cke_skin_v2 .cke_format_panel
{
width: 150px;
height: 170px;
}
/* "Font" panel size */
.cke_skin_v2 .cke_font_panel
{
width: 150px;
height: 170px;
}
/* "Font Size" panel size */
.cke_skin_v2 .cke_fontSize_panel
{
height: 170px;
}
/* "Font Size" combo width */
.cke_skin_v2 .cke_fontSize .cke_text
{
width: 20px;
}
/* "Font Size" combo width (IE Quirks) */
.cke_skin_v2 .cke_browser_iequirks .cke_fontSize .cke_text
{
width: 32px;
}
| 10npsite | trunk/guanli/system/ckeditor/_source/skins/v2/presets.css | CSS | asf20 | 888 |
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
.cke_skin_v2 .cke_button_source .cke_icon
{
background-position: 0 0;
}
.cke_skin_v2 .cke_button_docProps .cke_icon
{
background-position: 0 -16px;
}
.cke_skin_v2 .cke_button_newpage .cke_icon
{
background-position: 0 -48px;
}
.cke_skin_v2 .cke_button_preview .cke_icon
{
background-position: 0 -64px;
}
.cke_skin_v2 .cke_button_cut .cke_icon
{
background-position: 0 -96px;
}
.cke_skin_v2 .cke_button_copy .cke_icon
{
background-position: 0 -112px;
}
.cke_skin_v2 .cke_button_paste .cke_icon
{
background-position: 0 -128px;
}
.cke_skin_v2 .cke_button_pastetext .cke_icon
{
background-position: 0 -144px;
}
.cke_skin_v2 .cke_button_find .cke_icon
{
background-position: 0 -240px;
}
.cke_skin_v2 .cke_button_replace .cke_icon
{
background-position: 0 -256px;
}
.cke_skin_v2 .cke_button_selectAll .cke_icon
{
background-position: 0 -272px;
}
.cke_skin_v2 .cke_button_removeFormat .cke_icon
{
background-position: 0 -288px;
}
.cke_skin_v2 .cke_button_bold .cke_icon
{
background-position: 0 -304px;
}
.cke_skin_v2 .cke_button_italic .cke_icon
{
background-position: 0 -320px;
}
.cke_skin_v2 .cke_button_underline .cke_icon
{
background-position: 0 -336px;
}
.cke_skin_v2 .cke_button_strike .cke_icon
{
background-position: 0 -352px;
}
.cke_skin_v2 .cke_button_subscript .cke_icon
{
background-position: 0 -368px;
}
.cke_skin_v2 .cke_button_superscript .cke_icon
{
background-position: 0 -384px;
}
.cke_skin_v2 .cke_button_table .cke_icon
{
background-position: 0 -608px;
}
.cke_skin_v2 .cke_button_horizontalrule .cke_icon
{
background-position: 0 -624px;
}
.cke_skin_v2 .cke_button_smiley .cke_icon
{
background-position: 0 -640px;
}
.cke_skin_v2 .cke_button_link .cke_icon
{
background-position: 0 -528px;
}
.cke_skin_v2 .cke_button_unlink .cke_icon
{
background-position: 0 -544px;
}
.cke_skin_v2 .cke_button_anchor .cke_icon
{
background-position: 0 -560px;
}
.cke_skin_v2 .cke_button_image .cke_icon
{
background-position: 0 -576px;
}
.cke_skin_v2 .cke_button_flash .cke_icon
{
background-position: 0 -592px;
}
.cke_skin_v2 .cke_button_specialchar .cke_icon
{
background-position: 0 -656px;
}
.cke_skin_v2 .cke_button_pagebreak .cke_icon
{
background-position: 0 -672px;
}
.cke_skin_v2 .cke_button_print .cke_icon
{
background-position: 0 -176px;
}
.cke_skin_v2 .cke_button_checkspell .cke_icon,
.cke_skin_v2 .cke_button_scayt .cke_icon
{
background-position: 0 -192px;
}
.cke_skin_v2 .cke_button_pagebreak .cke_icon
{
background-position: 0 -672px;
}
.cke_skin_v2 .cke_button_textcolor .cke_icon
{
background-position: 0 -704px;
}
.cke_skin_v2 .cke_button_bgcolor .cke_icon
{
background-position: 0 -720px;
}
.cke_skin_v2 .cke_button_form .cke_icon
{
background-position: 0 -752px;
}
.cke_skin_v2 .cke_button_checkbox .cke_icon
{
background-position: 0 -768px;
}
.cke_skin_v2 .cke_button_radio .cke_icon
{
background-position: 0 -784px;
}
.cke_skin_v2 .cke_button_textfield .cke_icon
{
background-position: 0 -800px;
}
.cke_skin_v2 .cke_button_textarea .cke_icon
{
background-position: 0 -816px;
}
.cke_skin_v2 .cke_button_showblocks .cke_icon
{
background-position: 0 -1136px;
}
.cke_skin_v2 .cke_button_select .cke_icon
{
background-position: 0 -832px;
}
.cke_skin_v2 .cke_button_button .cke_icon
{
background-position: 0 -848px;
}
.cke_skin_v2 .cke_button_imagebutton .cke_icon
{
background-position: 0 -864px;
}
.cke_skin_v2 .cke_button_hiddenfield .cke_icon
{
background-position: 0 -880px;
}
.cke_skin_v2 .cke_button_undo .cke_icon
{
background-position: 0 -208px;
}
.cke_skin_v2 .cke_rtl .cke_button_undo .cke_icon
{
background-position: 0 -224px;
}
.cke_skin_v2 .cke_button_redo .cke_icon
{
background-position: 0 -224px;
}
.cke_skin_v2 .cke_rtl .cke_button_redo .cke_icon
{
background-position: 0 -208px;
}
.cke_skin_v2 .cke_button_templates .cke_icon
{
background-position: 0 -80px;
}
.cke_skin_v2 .cke_button_numberedlist .cke_icon
{
background-position: 0 -400px;
}
.cke_skin_v2 .cke_button_bulletedlist .cke_icon
{
background-position: 0 -416px;
}
.cke_skin_v2 .cke_mixed_dir_content .cke_button_numberedlist .cke_icon
{
background-position: 0 -1217px;
}
.cke_skin_v2 .cke_mixed_dir_content .cke_button_bulletedlist .cke_icon
{
background-position: 0 -1233px;
}
.cke_skin_v2 .cke_button_outdent .cke_icon
{
background-position: 0 -432px;
}
.cke_skin_v2 .cke_button_indent .cke_icon
{
background-position: 0 -448px;
}
.cke_skin_v2 .cke_mixed_dir_content .cke_button_indent .cke_icon
{
background-position: 0 -1265px;
}
.cke_skin_v2 .cke_mixed_dir_content .cke_button_outdent .cke_icon
{
background-position: 0 -1249px;
}
.cke_skin_v2 .cke_button_justifyleft .cke_icon
{
background-position: 0 -464px;
}
.cke_skin_v2 .cke_button_justifycenter .cke_icon
{
background-position: 0 -480px;
}
.cke_skin_v2 .cke_button_justifyright .cke_icon
{
background-position: 0 -496px;
}
.cke_skin_v2 .cke_button_justifyblock .cke_icon
{
background-position: 0 -512px;
}
.cke_skin_v2 .cke_button_blockquote .cke_icon
{
background-position: 0 -1152px;
}
.cke_skin_v2 .cke_button_flash .cke_icon
{
background-position: 0 -592px;
}
.cke_skin_v2 .cke_button_pastefromword .cke_icon
{
background-position: 0 -160px;
}
.cke_skin_v2 .cke_button_save .cke_icon
{
background-position: 0 -32px;
}
.cke_skin_v2 .cke_button_about .cke_icon
{
background-position: 0 -736px;
}
.cke_skin_v2 .cke_button_maximize .cke_icon
{
background-position: 0 -1040px;
}
.cke_skin_v2 .cke_button_creatediv .cke_icon
{
background-position: 0 -1168px;
}
.cke_skin_v2 .cke_button_editdiv .cke_icon
{
background-position: 0 -1184px;
}
.cke_skin_v2 .cke_button_removediv .cke_icon
{
background-position: 0 -1200px;
}
.cke_skin_v2 .cke_button_bidirtl .cke_icon
{
background-position: 0 -1072px;
}
.cke_skin_v2 .cke_button_bidiltr .cke_icon
{
background-position: 0 -1056px;
}
.cke_skin_v2 .cke_button_iframe .cke_icon
{
background-position: 0 -1279px;
}
| 10npsite | trunk/guanli/system/ckeditor/_source/skins/v2/icons.css | CSS | asf20 | 6,468 |
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
.cke_skin_v2 .cke_panel
{
border: 1px solid #8f8f73;
background-color: #fff;
width: 120px;
height: 100px;
overflow:hidden;
-moz-border-radius: 3px;
-webkit-border-radius: 3px;
border-radius: 3px;
}
/* Ideally we would use "inherit here"... but you know... IE :( */
.cke_skin_v2 .cke_panel iframe
{
width: 100%;
height: 100%;
}
.cke_skin_v2 .cke_panel_frame .cke_label
{
display: none;
}
/*
* All the following styles are to be used inside the iframe that holds panel
* contents. We don't use the cke_skin_default there to avoid the reset to be
* active.
* This is not an issue as we'll never have two skins running inside the same
* panel iframe.
*/
html.cke_skin_v2_container
{
overflow: auto;
overflow-x: hidden;
}
body.cke_panel_frame
{
overflow: auto;
}
ul.cke_panel_list
{
list-style-type: none;
margin: 3px;
padding: 0px;
white-space: nowrap;
}
li.cke_panel_listItem
{
margin: 0px;
}
.cke_panel_listItem a
{
padding: 2px;
display: block;
border: 1px solid #fff;
color: inherit !important;
text-decoration: none;
overflow: hidden;
text-overflow: ellipsis;
}
/* IE6 */
* html .cke_panel_listItem a
{
width : 100%;
/* IE is not able to inherit the color, so we must force it to black */
color: #000;
}
/* IE7 */
*:first-child+html .cke_panel_listItem a
{
/* IE is not able to inherit the color, so we must force it to black */
color: #000;
}
.cke_panel_listItem.cke_selected a
{
border: 1px solid #ccc;
background-color: #e9f5ff;
}
.cke_panel_listItem a:hover,
.cke_panel_listItem a:focus,
.cke_panel_listItem a:active
{
border-color: #316ac5;
background-color: #dff1ff;
}
.cke_hc .cke_panel_listItem.cke_selected a,
.cke_hc .cke_panel_listItem a:hover,
.cke_hc .cke_panel_listItem a:focus,
.cke_hc .cke_panel_listItem a:active
{
border-width: 3px;
padding: 0px;
}
.cke_panel_grouptitle
{
font-size: 11px;
font-family: 'Microsoft Sans Serif' , Tahoma, Arial, Verdana, Sans-Serif;
font-weight: bold;
white-space: nowrap;
background-color: #dcdcdc;
color: #000;
margin:0px;
padding:3px;
}
.cke_panel_listItem p,
.cke_panel_listItem h1,
.cke_panel_listItem h2,
.cke_panel_listItem h3,
.cke_panel_listItem h4,
.cke_panel_listItem h5,
.cke_panel_listItem h6,
.cke_panel_listItem pre
{
margin-top: 3px;
margin-bottom: 3px;
}
.cke_skin_v2 .cke_button_textcolor_panel,
.cke_skin_v2 .cke_button_bgcolor_panel
{
width: 150px;
height: 135px;
}
.cke_colorblock
{
padding: 3px;
font-size: 11px;
font-family: 'Microsoft Sans Serif', Tahoma, Arial, Verdana, Sans-Serif;
}
.cke_colorblock,
.cke_colorblock a
{
text-decoration: none;
color: #000;
}
span.cke_colorbox
{
width: 10px;
height: 10px;
border: #808080 1px solid;
float: left;
}
.cke_rtl span.cke_colorbox
{
float: right;
}
a.cke_colorbox
{
border: #fff 1px solid;
padding: 2px;
float: left;
}
.cke_rtl a.cke_colorbox
{
float: right;
}
a:hover.cke_colorbox,
a:focus.cke_colorbox,
a:active.cke_colorbox
{
border: #316ac5 1px solid;
background-color: #dff1ff;
}
a.cke_colorauto,
a.cke_colormore
{
border: #fff 1px solid;
padding: 2px;
display: block;
cursor: pointer;
}
a:hover.cke_colorauto,
a:hover.cke_colormore,
a:focus.cke_colorauto,
a:focus.cke_colormore,
a:active.cke_colorauto,
a:active.cke_colormore
{
border: #316ac5 1px solid;
background-color: #dff1ff;
}
| 10npsite | trunk/guanli/system/ckeditor/_source/skins/v2/panel.css | CSS | asf20 | 3,689 |
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
@media print
{
.cke_skin_v2 .cke_toolbox
{
display: none;
}
}
.cke_skin_v2 .cke_browser_webkit .cke_toolbox,
.cke_skin_v2 .cke_browser_webkit .cke_toolbox > span
{
white-space: normal;
}
.cke_skin_v2 .cke_toolbox
{
clear: both;
/* Define the padding-bottom otherwise the collapser button will not be clickable #4932*/
padding-bottom: 1px;
}
.cke_skin_v2 a.cke_toolbox_collapser,
.cke_skin_v2 a:hover.cke_toolbox_collapser
{
background-image: url(images/sprites.png);
_background-image: url(images/sprites_ie6.png);
background-position: 3px -739px; /* +3px +4px */
background-repeat: no-repeat;
width: 11px;
height: 11px;
float: right;
border: outset 1px;
margin: 11px 2px 2px;
cursor: pointer;
}
.cke_skin_v2 a.cke_toolbox_collapser span
{
display: none;
}
.cke_skin_v2 .cke_hc a.cke_toolbox_collapser span
{
font-size: 10px;
font-weight: bold;
font-family: Arial;
display: inline;
}
.cke_skin_v2 .cke_rtl a.cke_toolbox_collapser,
.cke_skin_v2 .cke_rtl a:hover.cke_toolbox_collapser
{
float: left;
}
.cke_skin_v2 a.cke_toolbox_collapser_min,
.cke_skin_v2 a:hover.cke_toolbox_collapser_min
{
/* arrowleft.gif*/
background-image: url(images/sprites.png);
_background-image: url(images/sprites_ie6.png);
background-position: 4px -760px; /* +4px +3px */
background-repeat: no-repeat;
margin: 2px;
}
.cke_skin_v2 .cke_rtl a.cke_toolbox_collapser_min,
.cke_skin_v2 .cke_rtl a:hover.cke_toolbox_collapser_min
{
/* arrowright.gif*/
background-position: 4px -781px; /* +2px +3px */
}
.cke_skin_v2 .cke_toolbar
{
padding-top: 1px;
padding-bottom: 1px;
display: inline-block;
float: left;
}
.cke_skin_v2 .cke_rtl .cke_toolbar
{
float: right;
}
.cke_skin_v2 .cke_toolgroup
{
display: inline-block;
float: left;
}
.cke_skin_v2 .cke_browser_ie .cke_toolgroup
{
#float: none;
#display: inline;
}
.cke_skin_v2 .cke_rtl .cke_toolgroup
{
float: right;
}
.cke_skin_v2 .cke_browser_ie .cke_rtl .cke_toolgroup
{
#float: none;
}
.cke_skin_v2 .cke_separator
{
display: inline-block;
float: left;
border-left: solid 1px #999;
margin: 4px 2px;
height: 16px;
}
.cke_skin_v2 .cke_browser_ie .cke_separator
{
#float: none;
#display: inline;
}
.cke_skin_v2 .cke_rtl .cke_separator
{
float: right;
}
.cke_skin_v2 .cke_browser_ie .cke_rtl .cke_separator
{
#float: none;
}
.cke_skin_v2 .cke_break
{
clear: left;
}
.cke_skin_v2 .cke_rtl .cke_break
{
clear: right;
}
.cke_skin_v2 .cke_toolbar_start
{
display: inline-block;
background-image: url(images/toolbar_start.gif);
background-repeat: no-repeat;
margin: 4px 2px 0 2px;
width: 3px;
height: 20px;
float: left;
}
.cke_skin_v2 .cke_browser_ie .cke_toolbar_start
{
#float: none;
#display: inline;
}
.cke_skin_v2 .cke_rtl .cke_toolbar_start
{
float: right;
}
.cke_skin_v2 .cke_browser_ie .cke_rtl .cke_toolbar_start
{
#float: none;
}
.cke_skin_v2 .cke_toolbar_end
{
display: inline-block;
float: left;
}
.cke_skin_v2 .cke_browser_ie .cke_toolbar_end
{
#float: none;
#display: inline
}
.cke_skin_v2 .cke_rtl .cke_toolbar_end
{
float: right;
}
.cke_skin_v2 .cke_browser_ie .cke_rtl .cke_toolbar_end
{
#float: none;
}
/*#7181*/
.cke_skin_v2 .cke_browser_ie9 .cke_rtl .cke_separator,
.cke_skin_v2 .cke_browser_ie9 .cke_rtl .cke_toolbar_start,
.cke_skin_v2 .cke_browser_ie9 .cke_rtl .cke_toolbar_end
{
vertical-align:middle;
}
.cke_skin_v2 .cke_button a,
.cke_skin_v2 .cke_button a:hover,
.cke_skin_v2 .cke_button a:focus,
.cke_skin_v2 .cke_button a:active,
.cke_skin_v2 .cke_button a.cke_off
{
border: solid 1px #efefde;
display: inline-block;
border-radius: 3px;
outline: none;
padding-top: 2px;
padding-left: 4px;
padding-right: 4px;
padding-bottom: 2px;
height: 18px;
cursor: default;
}
.cke_skin_v2 .cke_button a,
.cke_skin_v2 .cke_button a.cke_off
{
background-color: #efefde;
filter: alpha(opacity=70); /* IE */
opacity: 0.70; /* Safari, Opera and Mozilla */
-moz-border-radius: 3px;
-webkit-border-radius: 3px;
}
.cke_skin_v2 .cke_hc .cke_button a,
.cke_skin_v2 .cke_hc .cke_button a.cke_off
{
opacity: 1.0;
filter: alpha(opacity=100);
}
.cke_skin_v2 .cke_button a.cke_on
{
border: solid 1px #316ac5;
background-color: #a3d7ff;
filter: alpha(opacity=100); /* IE */
opacity: 1; /* Safari, Opera and Mozilla */
}
.cke_skin_v2 .cke_button a.cke_disabled *
{
filter: alpha(opacity=30); /* IE */
opacity: 0.3; /* Safari, Opera and Mozilla */
}
/* IE with zoom != 100% will distort the icons otherwise #4821 */
.cke_skin_v2 .cke_browser_ie .cke_button a.cke_disabled *,
.cke_skin_v2 .cke_browser_ie a:hover.cke_button .cke_disabled *
{
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(sizingMethod='scale'), alpha(opacity=30);
}
.cke_skin_v2 .cke_browser_ie .cke_rtl .cke_button a.cke_disabled *,
.cke_skin_v2 .cke_browser_ie .cke_rtl a:hover.cke_button .cke_disabled *
{
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(sizingMethod='scale'), alpha(opacity=30);
}
.cke_skin_v2 .cke_browser_ie6 .cke_button a.cke_disabled *,
.cke_skin_v2 .cke_browser_ie6 a:hover.cke_button .cke_disabled *,
.cke_skin_v2 .cke_browser_ie .cke_button.cke_noalphafix a.cke_disabled *
{
filter: alpha(opacity=30);
}
.cke_skin_v2 .cke_hc .cke_button a.cke_disabled *,
.cke_skin_v2 .cke_browser_ie.cke_hc a:hover.cke_button .cke_disabled *
{
filter: alpha(opacity=60);
opacity: 0.6;
}
.cke_skin_v2 .cke_button a:hover,
.cke_skin_v2 .cke_button a:focus,
.cke_skin_v2 .cke_button a:active /* IE */
{
border: solid 1px #316ac5;
background-color: #dff1ff;
padding: 2px 4px;
}
.cke_skin_v2 .cke_hc .cke_button a:hover,
.cke_skin_v2 .cke_hc .cke_button a:focus,
.cke_skin_v2 .cke_hc .cke_button a:active /* IE */
{
padding: 0 2px !important;
border-width: 3px;
}
.cke_skin_v2 .cke_button .cke_icon
{
background-image: url(icons.png);
background-position: 100px;
background-repeat:no-repeat;
margin-top:1px;
width: 16px;
height: 16px;
display: inline-block;
cursor: default;
}
.cke_skin_v2 .cke_rtl .cke_button .cke_icon
{
background-image: url(icons_rtl.png);
}
/* IE with zoom != 100% will distort the icons otherwise #4821 */
.cke_skin_v2 .cke_browser_ie .cke_button .cke_icon
{
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(sizingMethod='scale');
}
.cke_skin_v2 .cke_browser_ie .cke_rtl .cke_button .cke_icon
{
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(sizingMethod='scale');
}
.cke_skin_v2 .cke_browser_ie6 .cke_button .cke_icon,
.cke_skin_v2 .cke_browser_ie6 .cke_rtl .cke_button .cke_icon,
.cke_skin_v2 .cke_browser_ie .cke_button.cke_noalphafix .cke_icon,
.cke_skin_v2 .cke_browser_ie .cke_rtl .cke_button.cke_noalphafix .cke_icon
{
filter: ;
}
.cke_skin_v2 .cke_button .cke_label
{
cursor: default;
display: none;
padding-left: 3px;
vertical-align:middle;
}
.cke_skin_v2 .cke_hc .cke_button .cke_label
{
padding: 0;
display: inline-block;
}
.cke_skin_v2 .cke_hc .cke_button .cke_icon
{
display: none;
}
.cke_skin_v2 .cke_accessibility
{
position: absolute;
display: block;
width: 0;
height: 0;
overflow: hidden;
}
.cke_skin_v2 .cke_button .cke_buttonarrow
{
display: inline-block;
height: 17px;
width: 8px;
background-position: 2px -717px;
background-image: url(images/sprites.png);
_background-image: url(images/sprites_ie6.png);
background-repeat: no-repeat;
cursor: default;
}
.cke_skin_v2 .cke_rtl .cke_button .cke_buttonarrow
{
background-position: 0 -717px;
background-image: url(images/sprites.png);
_background-image: url(images/sprites_ie6.png);
}
/*** Firefox 2 ***/
.cke_skin_v2 .cke_browser_gecko18 .cke_toolbar,
.cke_skin_v2 .cke_browser_gecko18 .cke_button a,
.cke_skin_v2 .cke_browser_gecko18 .cke_button a.cke_off,
.cke_skin_v2 .cke_browser_gecko18 .cke_button .cke_icon,
.cke_skin_v2 .cke_browser_gecko18 .cke_button .cke_buttonarrow,
.cke_skin_v2 .cke_browser_gecko18 .cke_separator,
.cke_skin_v2 .cke_browser_gecko18 .cke_toolbar_start
{
display: block;
float: left;
}
.cke_skin_v2 .cke_browser_gecko18 .cke_hc .cke_button .cke_icon
{
display: none;
}
.cke_skin_v2 .cke_browser_gecko18 .cke_rtl .cke_toolbar,
.cke_skin_v2 .cke_browser_gecko18 .cke_rtl .cke_button a,
.cke_skin_v2 .cke_browser_gecko18 .cke_rtl .cke_button a.cke_off,
.cke_skin_v2 .cke_browser_gecko18 .cke_rtl .cke_button .cke_icon,
.cke_skin_v2 .cke_browser_gecko18 .cke_rtl .cke_button .cke_buttonarrow,
.cke_skin_v2 .cke_browser_gecko18 .cke_rtl .cke_separator,
.cke_skin_v2 .cke_browser_gecko18 .cke_rtl .cke_toolbar_start
{
float: right;
}
.cke_skin_v2 .cke_browser_gecko18 .cke_button .cke_label,
.cke_skin_v2 .cke_browser_gecko18 .cke_break
{
float: left;
}
.cke_skin_v2 .cke_browser_gecko18 .cke_rtl span.cke_inline_label
{
float: right;
}
.cke_skin_v2 .cke_browser_gecko18 .cke_rtl .cke_button .cke_label,
.cke_skin_v2 .cke_browser_gecko18 .cke_rtl .cke_break
{
float: right;
}
.cke_skin_v2 .cke_browser_gecko18 .cke_separator
{
margin-top: 4px;
}
.cke_skin_v2 .cke_browser_gecko18 .cke_button .cke_label
{
padding-top: 3px;
}
/*** IE6 ***/
.cke_skin_v2 .cke_browser_ie .cke_rtl .cke_toolgroup,
.cke_skin_v2 .cke_browser_ie .cke_rtl .cke_separator,
.cke_skin_v2 .cke_browser_ie .cke_rtl .cke_toolbar_start,
.cke_skin_v2 .cke_browser_ie .cke_rtl .cke_toolbar_end
{
float: none;
}
/*** IE8 ***/
.cke_skin_v2 .cke_browser_ie8 .cke_toolbar,
.cke_skin_v2 .cke_browser_ie8 .cke_toolgroup
{
vertical-align: top;
}
.cke_skin_v2 .cke_browser_iequirks.cke_browser_ie8 .cke_toolbar,
.cke_skin_v2 .cke_browser_iequirks.cke_browser_ie8 .cke_toolgroup
{
/* revert previous */
vertical-align: baseline;
}
/* Fix cursor shape consistency on toolbar combos (#4031) */
.cke_skin_v2 .cke_browser_ie .cke_rcombo,
.cke_skin_v2 .cke_browser_ie .cke_rcombo *
{
cursor: default;
}
| 10npsite | trunk/guanli/system/ckeditor/_source/skins/v2/toolbar.css | CSS | asf20 | 10,325 |
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
.cke_skin_v2 .cke_editor
{
display: inline-table;
width: 100%;
}
.cke_skin_v2 .cke_browser_webkit .cke_editor
{
display: table; /* #6684 */
}
.cke_skin_v2
{
display: block;
}
.cke_skin_v2 span.cke_browser_webkit,
.cke_skin_v2 span.cke_browser_gecko18
{
display: block;
}
.cke_skin_v2 .cke_wrapper
{
display: block;
}
.cke_skin_v2 .cke_browser_opera .cke_editor
{
display: table;
}
.cke_skin_v2 .cke_top,
.cke_skin_v2 .cke_bottom,
.cke_shared .cke_skin_v2
{
background-color: #efefde;
}
.cke_skin_v2 .cke_top
{
border-top: solid 1px #fafaf5;
border-left: solid 1px #fafaf5;
border-right: solid 1px #696969;
border-bottom: solid 2px #696969;
}
.cke_skin_v2 .cke_rtl .cke_top
{
border-left: solid 1px #696969;
border-right: solid 1px #fafaf5;
}
.cke_skin_v2 .cke_bottom
{
border-left: solid 1px #696969;
border-right: solid 1px #696969;
border-bottom: solid 1px #696969;
}
.cke_skin_v2 .cke_contents
{
border: solid 1px #696969;
/* Prevent background content from penetrate through when switching between editing modes. (#4918) */
background-color: white;
}
.cke_skin_v2 .cke_focus
{
outline: auto 5px -webkit-focus-ring-color;
}
.cke_skin_v2 textarea.cke_source
{
font-family: 'Courier New' , Monospace;
font-size: small;
background-color: #fff;
white-space: pre;
}
.cke_skin_v2 .cke_browser_iequirks textarea.cke_source
{
/* For IE6+Quirks only */
_white-space: normal;
}
.cke_skin_v2 .cke_resizer
{
width: 12px;
height: 12px;
margin-top: 16px;
display: block;
float: right;
/* resizer.gif*/
background-image: url(images/sprites.png);
_background-image: url(images/sprites_ie6.png);
background-position: 0 -801px;
background-repeat: no-repeat;
cursor: se-resize;
}
/* Adobe AIR doesn't support *-resize cursor shape. */
.cke_skin_v2 .cke_browser_air .cke_resizer,
.cke_skin_v2 .cke_browser_air .cke_rtl .cke_resizer
{
cursor: move;
}
.cke_skin_v2 .cke_resizer_rtl
{
cursor: sw-resize;
/* resizer_rtl.gif*/
background-position: 0 -828px;
float: left;
}
.cke_skin_v2 .cke_resizer_horizontal,
.cke_skin_v2 .cke_rtl .cke_resizer_horizontal
{
cursor: e-resize;
}
.cke_skin_v2 .cke_resizer_vertical,
.cke_skin_v2 .cke_rtl .cke_resizer_vertical
{
cursor: n-resize;
}
.cke_skin_v2 .cke_maximized .cke_resizer
{
display: none;
}
.cke_skin_v2 .cke_browser_ie6 .cke_contents textarea,
.cke_skin_v2 .cke_browser_ie7 .cke_contents textarea
{
position: absolute;
}
/* All voice labels are not displayed. */
.cke_skin_v2 .cke_voice_label
{
display: none;
}
.cke_skin_v2 legend.cke_voice_label
{
display: none;
}
.cke_skin_v2 .cke_browser_ie legend.cke_voice_label
{
position: absolute;
display: block;
width: 0;
height: 0;
overflow: hidden;
}
| 10npsite | trunk/guanli/system/ckeditor/_source/skins/v2/mainui.css | CSS | asf20 | 3,039 |
/* Special Combo */
.cke_skin_v2 .cke_rcombo
{
display: inline-block;
margin-left: 2px;
margin-right: 2px;
margin-top: 2px;
vertical-align: top;
}
.cke_skin_v2 .cke_browser_ie .cke_rcombo
{
#display: inline;
}
.cke_skin_v2 .cke_rcombopanel
{
border: 1px solid #316ac5;
-moz-border-radius-topleft: 0;
-webkit-border-top-left-radius: 0;
border-top-left-radius: 0;
/*margin-left: 1px;*/
/*_margin-left: 0;*/
}
.cke_skin_v2 .cke_rcombo a
{
display: inline-block;
float: left;
filter: alpha(opacity=70); /* IE */
opacity: 0.70; /* Safari, Opera and Mozilla */
}
.cke_skin_v2 .cke_rtl .cke_rcombo a
{
float: right;
}
.cke_skin_v2 .cke_hc .cke_rcombo a
{
filter: alpha(opacity=100); /* IE */
opacity: 1.0; /* Safari, Opera and Mozilla */
}
.cke_skin_v2 .cke_rcombo .cke_label
{
float: left;
line-height: 20px;
line-height: 22px\9;
height: 22px;
padding-left: 4px;
padding-right: 5px;
filter: alpha(opacity=70); /* IE */
opacity: 0.70; /* Safari, Opera and Mozilla */
background-color: #f1f1e3; /* Because of IE6+ClearType */
cursor: default;
}
.cke_skin_v2 .cke_rtl .cke_rcombo .cke_label
{
float: right;
padding-right: 4px;
padding-left: 5px;
}
.cke_skin_v2 .cke_hc .cke_rcombo .cke_label
{
filter: alpha(opacity=100);
opacity: 1.0;
}
.cke_skin_v2 .cke_rcombo .cke_inline_label
{
color: #fff;
}
.cke_skin_v2 .cke_rcombo .cke_text
{
border: 1px solid #8f8f73;
background-color: #fff;
height: 12px;
width:60px;
padding-top: 4px;
padding-bottom: 4px;
padding-left: 5px;
padding-right: 5px;
text-overflow: ellipsis;
overflow: hidden;
display: inline-block;
vertical-align: top;
cursor: default;
}
.cke_skin_v2 .cke_ltr .cke_rcombo .cke_text
{
-moz-border-radius-topleft: 3px;
-webkit-border-top-left-radius: 3px;
border-top-left-radius: 3px;
-moz-border-radius-bottomleft: 3px;
-webkit-border-bottom-left-radius: 3px;
border-bottom-left-radius: 3px;
}
.cke_skin_v2 .cke_rtl .cke_rcombo .cke_text
{
-moz-border-radius-topright: 3px;
-webkit-border-top-right-radius: 3px;
border-top-right-radius: 3px;
-moz-border-radius-bottomright: 3px;
-webkit-border-bottom-right-radius: 3px;
border-bottom-right-radius: 3px;
}
/* Fix for IE height */
.cke_skin_v2 .cke_browser_iequirks .cke_rcombo .cke_text
{
height: 22px;
}
.cke_skin_v2 .cke_rcombo .cke_openbutton
{
display: inline-block;
border-top: 1px solid #8f8f73;
border-bottom: 1px solid #8f8f73;
}
.cke_skin_v2 .cke_rcombo .cke_openbutton .cke_icon
{
display: inline-block;
background-position: 5px -715px;
background-image: url(images/sprites.png);
_background-image: url(images/sprites_ie6.png);
background-repeat: no-repeat;
width: 14px;
height: 20px;
}
/* IE with zoom != 100% will distort the icons otherwise #4821 */
.cke_skin_v2 .cke_browser_ie .cke_rcombo .cke_openbutton .cke_icon
{
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(sizingMethod='scale');
}
.cke_skin_v2 .cke_browser_ie6 .cke_rcombo .cke_openbutton .cke_icon
{
filter: ;
}
.cke_skin_v2 .cke_hc .cke_rcombo .cke_openbutton .cke_icon
{
background: none;
filter: ;
}
.cke_skin_v2 .cke_ltr .cke_rcombo .cke_openbutton
{
border-right: 1px solid #8f8f73;
-moz-border-radius-topright: 3px;
-webkit-border-top-right-radius: 3px;
border-top-right-radius: 3px;
-moz-border-radius-bottomright: 3px;
-webkit-border-bottom-right-radius: 3px;
border-bottom-right-radius: 3px;
}
.cke_skin_v2 .cke_rtl .cke_rcombo .cke_openbutton
{
border-left: 1px solid #8f8f73;
-moz-border-radius-topleft: 3px;
-webkit-border-top-left-radius: 3px;
border-top-left-radius: 3px;
-moz-border-radius-bottomleft: 3px;
-webkit-border-bottom-left-radius: 3px;
border-bottom-left-radius: 3px;
}
.cke_skin_v2 .cke_rcombo .cke_off a:hover,
.cke_skin_v2 .cke_rcombo .cke_off a:focus,
.cke_skin_v2 .cke_rcombo .cke_off a:active,
.cke_skin_v2 .cke_rcombo .cke_on a
{
filter: alpha(opacity=100); /* IE */
opacity: 1; /* Safari, Opera and Mozilla */
}
.cke_skin_v2 .cke_rcombo .cke_off a:hover .cke_text,
.cke_skin_v2 .cke_rcombo .cke_off a:focus .cke_text,
.cke_skin_v2 .cke_rcombo .cke_off a:active .cke_text,
.cke_skin_v2 .cke_rcombo .cke_on .cke_text
{
border-color: #316ac5;
}
.cke_skin_v2 .cke_rcombo .cke_off a:hover .cke_openbutton,
.cke_skin_v2 .cke_rcombo .cke_off a:focus .cke_openbutton,
.cke_skin_v2 .cke_rcombo .cke_off a:active .cke_openbutton,
.cke_skin_v2 .cke_rcombo .cke_on .cke_openbutton
{
border-color: #316ac5;
background-color: #dff1ff;
}
.cke_skin_v2 .cke_rcombo .cke_on .cke_text
{
-moz-border-radius-bottomleft: 0px;
-webkit-border-bottom-left-radius: 0px;
border-bottom-left-radius: 0px;
}
.cke_skin_v2 .cke_rcombo .cke_on .cke_openbutton
{
-moz-border-radius-bottomright: 0px;
-webkit-border-bottom-right-radius: 0px;
border-bottom-right-radius: 0px;
}
.cke_skin_v2 .cke_rcombo .cke_disabled .cke_label
{
filter: alpha(opacity=30); /* IE */
opacity: 0.3; /* Safari, Opera and Mozilla */
}
.cke_skin_v2 .cke_hc .cke_rcombo .cke_disabled .cke_label
{
filter: alpha(opacity=70);
opacity: 0.7;
}
.cke_skin_v2 .cke_rcombo .cke_disabled .cke_text,
.cke_skin_v2 .cke_rcombo .cke_disabled .cke_openbutton
{
filter: alpha(opacity=50); /* IE */
opacity: 0.5; /* Safari, Opera and Mozilla */
}
/* IE with zoom != 100% will distort the icons otherwise #4821 */
.cke_skin_v2 .cke_browser_ie .cke_rcombo .cke_disabled .cke_openbutton
{
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(sizingMethod='scale'), alpha(opacity=50);
}
.cke_skin_v2 .cke_browser_ie6 .cke_rcombo .cke_disabled .cke_openbutton
{
filter: alpha(opacity=50);
}
.cke_skin_v2 .cke_hc .cke_rcombo .cke_disabled .cke_text,
.cke_skin_v2 .cke_hc .cke_rcombo .cke_disabled .cke_openbutton
{
filter: alpha(opacity=80);
opacity: 0.8;
}
.cke_skin_v2 .cke_rcombo .cke_disabled .cke_text
{
color: #fff;
}
/* Firefox 2 & WebKit Section */
.cke_skin_v2 .cke_browser_gecko18 .cke_rcombo,
.cke_skin_v2 .cke_browser_gecko18 .cke_rcombo .cke_label,
.cke_skin_v2 .cke_browser_gecko18 .cke_rcombo .cke_text,
.cke_skin_v2 .cke_browser_gecko18 .cke_rcombo .cke_openbutton,
.cke_skin_v2 .cke_browser_webkit .cke_rcombo .cke_label,
.cke_skin_v2 .cke_browser_webkit .cke_rcombo .cke_text,
.cke_skin_v2 .cke_browser_webkit .cke_rcombo .cke_openbutton
{
display: block;
float: left;
}
.cke_skin_v2 .cke_browser_gecko18 .cke_rtl .cke_rcombo,
.cke_skin_v2 .cke_browser_gecko18 .cke_rtl .cke_rcombo .cke_label,
.cke_skin_v2 .cke_browser_gecko18 .cke_rtl .cke_rcombo .cke_text,
.cke_skin_v2 .cke_browser_gecko18 .cke_rtl .cke_rcombo .cke_openbutton,
.cke_skin_v2 .cke_browser_webkit .cke_rtl .cke_rcombo .cke_label,
.cke_skin_v2 .cke_browser_webkit .cke_rtl .cke_rcombo .cke_text,
.cke_skin_v2 .cke_browser_webkit .cke_rtl .cke_rcombo .cke_openbutton
{
float: right;
}
/*** IE ***/
.cke_skin_v2 .cke_browser_ie .cke_rtl .cke_rcombo,
.cke_skin_v2 .cke_browser_ie .cke_rtl .cke_rcombo a,
.cke_skin_v2 .cke_browser_ie .cke_rtl .cke_rcombo .cke_label
{
float: none;
}
.cke_skin_v2 .cke_browser_iequirks .cke_rcombo .cke_openbutton
{
height: 22px;
}
.cke_skin_v2 .cke_rtl .cke_rcombo .cke_font .cke_text,
.cke_skin_v2 .cke_rtl .cke_rcombo .cke_fontSize .cke_text
{
direction: ltr;
}
| 10npsite | trunk/guanli/system/ckeditor/_source/skins/v2/richcombo.css | CSS | asf20 | 7,484 |
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
/**
* Reset and Default Values
*/
.cke_skin_v2 *,
.cke_skin_v2 a:hover,
.cke_skin_v2 a:link,
.cke_skin_v2 a:visited,
.cke_skin_v2 a:active
{
margin: 0;
padding: 0;
border: 0;
background: transparent;
text-decoration: none;
font: normal normal normal 100% Sans-Serif;
width: auto;
height: auto;
border-collapse: collapse;
text-align: left;
vertical-align: baseline;
white-space: nowrap;
cursor: auto;
color: #000;
float: none;
font-size: 11px;
font-family: 'Microsoft Sans Serif' , Tahoma, Arial, Verdana, Sans-Serif;
}
.cke_skin_v2 .cke_rtl *,
.cke_skin_v2 .cke_rtl a:hover,
.cke_skin_v2 .cke_rtl a:link,
.cke_skin_v2 .cke_rtl a:visited,
.cke_skin_v2 .cke_rtl a:active,
.cke_rtl .cke_skin_v2 *,
.cke_rtl .cke_skin_v2 a:hover,
.cke_rtl .cke_skin_v2 a:link,
.cke_rtl .cke_skin_v2 a:visited,
.cke_rtl .cke_skin_v2 a:active
{
text-align: right;
}
.cke_skin_v2 iframe
{
vertical-align: inherit; /** For IE */
}
.cke_skin_v2 textarea
{
white-space: pre;
}
.cke_skin_v2 .cke_browser_gecko textarea
{
cursor: text;
}
.cke_skin_v2 .cke_browser_gecko textarea[disabled]
{
cursor: default;
}
.cke_skin_v2 input[type="text"],
.cke_skin_v2 input[type="password"]
{
cursor: text;
}
.cke_skin_v2 input[type="text"][disabled],
.cke_skin_v2 input[type="password"][disabled]
{
cursor: default;
}
.cke_skin_v2 fieldset
{
padding: 10px;
border: 2px groove #E0DFE3;
}
| 10npsite | trunk/guanli/system/ckeditor/_source/skins/v2/reset.css | CSS | asf20 | 1,621 |
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
/**
* Styles for the "templates" plugin.
*/
.cke_skin_v2 .cke_tpl_list
{
border: #dcdcdc 2px solid;
background-color: #ffffff;
overflow: auto;
width: 100%;
height: 220px;
}
.cke_skin_v2 .cke_tpl_item
{
margin: 5px;
padding: 7px;
border: #eeeeee 1px solid;
*width: 88%;
}
.cke_skin_v2 .cke_tpl_preview
{
border-collapse: separate;
text-indent:0;
width: 100%;
}
.cke_skin_v2 .cke_tpl_preview td
{
padding: 2px;
vertical-align: middle;
}
.cke_skin_v2 .cke_tpl_preview .cke_tpl_preview_img
{
width: 100px;
}
.cke_skin_v2 .cke_tpl_preview span
{
white-space: normal;
}
.cke_skin_v2 .cke_tpl_title
{
font-weight: bold;
}
.cke_skin_v2 .cke_tpl_list a:active .cke_tpl_item,
.cke_skin_v2 .cke_tpl_list a:hover .cke_tpl_item,
.cke_skin_v2 .cke_tpl_list a:focus .cke_tpl_item
{
border: #ff9933 1px solid !important;
background-color: #fffacd !important;
}
.cke_skin_v2 .cke_tpl_list a:active *,
.cke_skin_v2 .cke_tpl_list a:hover *,
.cke_skin_v2 .cke_tpl_list a:focus *
{
cursor: pointer;
}
/* IE6 contextual selectors childs won't get :hover transition until,
the hover style of the link itself contains certain CSS declarations.*/
.cke_skin_v2 .cke_browser_ie6 .cke_tpl_list a:active,
.cke_skin_v2 .cke_browser_ie6 .cke_tpl_list a:hover,
.cke_skin_v2 .cke_browser_ie6 .cke_tpl_list a:focus
{
background-position: 0 0;
}
.cke_skin_v2 .cke_tpl_list a:active .cke_tpl_item,
.cke_skin_v2 .cke_tpl_list a:hover .cke_tpl_item,
.cke_skin_v2 .cke_tpl_list a:focus .cke_tpl_item
{
border-width: 3px;
}
.cke_skin_v2 .cke_tpl_empty, .cke_tpl_loading
{
text-align: center;
padding: 5px;
}
| 10npsite | trunk/guanli/system/ckeditor/_source/skins/v2/templates.css | CSS | asf20 | 1,837 |
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.skins.add( 'v2', (function()
{
return {
editor : { css : [ 'editor.css' ] },
dialog : { css : [ 'dialog.css' ] },
separator : { canGroup: false },
templates : { css : [ 'templates.css' ] },
margins : [ 0, 14, 18, 14 ]
};
})() );
(function()
{
CKEDITOR.dialog ? dialogSetup() : CKEDITOR.on( 'dialogPluginReady', dialogSetup );
function dialogSetup()
{
CKEDITOR.dialog.on( 'resize', function( evt )
{
var data = evt.data,
width = data.width,
height = data.height,
dialog = data.dialog,
contents = dialog.parts.contents;
if ( data.skin != 'v2' )
return;
contents.setStyles(
{
width : width + 'px',
height : height + 'px'
});
if ( !CKEDITOR.env.ie || CKEDITOR.env.ie9Compat )
return;
// Fix the size of the elements which have flexible lengths.
setTimeout( function()
{
var innerDialog = dialog.parts.dialog.getChild( [ 0, 0, 0 ] ),
body = innerDialog.getChild( 0 ),
bodyWidth = body.getSize( 'width' );
height += body.getChild( 0 ).getSize( 'height' ) + 1;
// tc
var el = innerDialog.getChild( 2 );
el.setSize( 'width', bodyWidth );
// bc
el = innerDialog.getChild( 7 );
el.setSize( 'width', bodyWidth - 28 );
// ml
el = innerDialog.getChild( 4 );
el.setSize( 'height', height );
// mr
el = innerDialog.getChild( 5 );
el.setSize( 'height', height );
},
100 );
});
}
})();
| 10npsite | trunk/guanli/system/ckeditor/_source/skins/v2/skin.js | JavaScript | asf20 | 1,724 |
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
.cke_skin_v2 .cke_contextmenu
{
padding: 2px;
}
.cke_skin_v2 .cke_menuitem a
{
display:block;
}
.cke_skin_v2 .cke_menuitem span
{
cursor: default;
}
.cke_skin_v2 .cke_menuitem a:hover,
.cke_skin_v2 .cke_menuitem a:focus,
.cke_skin_v2 .cke_menuitem a:active
{
background-color: #8f8f73;
display:block;
}
.cke_hc .cke_menuitem a:hover,
.cke_hc .cke_menuitem a:focus,
.cke_hc .cke_menuitem a:active
{
border: 2px solid;
}
.cke_skin_v2 .cke_menuitem .cke_icon
{
background-image: url(icons.png);
background-position: 100px;
background-repeat:no-repeat;
background-color: transparent;
width: 16px;
height: 16px;
float: left;
}
.cke_rtl .cke_skin_v2 .cke_menuitem .cke_icon
{
background-image: url(icons_rtl.png);
}
/* IE with zoom != 100% will distort the icons otherwise #4821 */
.cke_browser_ie .cke_skin_v2 .cke_menuitem .cke_icon
{
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(sizingMethod='scale');
}
.cke_browser_ie.cke_rtl .cke_skin_v2 .cke_menuitem .cke_icon
{
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(sizingMethod='scale');
}
.cke_browser_ie6 .cke_skin_v2 .cke_menuitem .cke_icon,
.cke_browser_ie .cke_skin_v2 .cke_menuitem.cke_noalphafix .cke_icon
{
filter: ;
}
.cke_skin_v2 .cke_menuitem .cke_disabled .cke_icon
{
filter: alpha(opacity=70); /* IE */
opacity: 0.70; /* Safari, Opera and Mozilla */
}
/* IE with zoom != 100% will distort the icons otherwise #4821 */
.cke_browser_ie .cke_skin_v2 .cke_menuitem .cke_disabled .cke_icon
{
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(sizingMethod='scale');
}
.cke_browser_ie.cke_rtl .cke_skin_v2 .cke_menuitem .cke_disabled .cke_icon
{
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(sizingMethod='scale');
}
.cke_browser_ie6 .cke_skin_v2 .cke_menuitem .cke_disabled .cke_icon,
.cke_browser_ie .cke_skin_v2 .cke_menuitem.cke_noalphafix .cke_disabled .cke_icon
{
filter: ;
}
.cke_skin_v2 .cke_menuitem .cke_icon_wrapper
{
background-color: #e3e3c7;
border: solid 4px #e3e3c7;
width: 16px;
height: 16px;
float: left;
filter: alpha(opacity=70); /* IE */
opacity: 0.70; /* Safari, Opera and Mozilla */
clear: both;
}
.cke_rtl .cke_skin_v2 .cke_menuitem .cke_icon_wrapper
{
float: right;
}
.cke_skin_v2 .cke_menuitem a:hover .cke_icon_wrapper,
.cke_skin_v2 .cke_menuitem a:focus .cke_icon_wrapper,
.cke_skin_v2 .cke_menuitem a:active .cke_icon_wrapper
{
background-color: #9d9d9d;
border: solid 4px #9d9d9d;
filter: alpha(opacity=70); /* IE */
opacity: 0.70; /* Safari, Opera and Mozilla */
}
.cke_skin_v2 .cke_menuitem a:hover.cke_disabled .cke_icon_wrapper,
.cke_skin_v2 .cke_menuitem a:focus.cke_disabled .cke_icon_wrapper,
.cke_skin_v2 .cke_menuitem a:active.cke_disabled .cke_icon_wrapper
{
background-color: #e3e3c7;
border: solid 4px #e3e3c7;
}
.cke_skin_v2 .cke_menuitem .cke_label
{
display:block;
padding-right: 3px;
padding-top: 5px;
padding-left: 4px;
height:19px;
margin-left: 24px;
background-color: #fff;
}
/* Set these after the document has been loaded and we know the dimensions*/
.cke_skin_v2 .cke_frameLoaded .cke_menuitem .cke_label
{
filter: alpha(opacity=70); /* IE */
opacity: 0.70; /* Safari, Opera and Mozilla */
}
.cke_rtl .cke_skin_v2 .cke_menuitem .cke_label
{
padding-right: 0;
margin-left: 0;
padding-left: 3px;
margin-right: 28px;
}
.cke_skin_v2 .cke_menuitem a.cke_disabled .cke_label
{
filter: alpha(opacity=30); /* IE */
opacity: 0.30; /* Safari, Opera and Mozilla */
}
.cke_skin_v2 .cke_menuitem a:hover .cke_label,
.cke_skin_v2 .cke_menuitem a:focus .cke_label,
.cke_skin_v2 .cke_menuitem a:active .cke_label
{
background-color: #8f8f73;
color: white;
}
.cke_skin_v2 .cke_menuitem a.cke_disabled:hover .cke_label,
.cke_skin_v2 .cke_menuitem a.cke_disabled:focus .cke_label,
.cke_skin_v2 .cke_menuitem a.cke_disabled:active .cke_label
{
background-color: transparent;
color: black;
}
.cke_skin_v2 .cke_menuseparator
{
background-color: #e3e3c7;
height: 2px;
filter: alpha(opacity=70); /* IE */
opacity: 0.70; /* Safari, Opera and Mozilla */
_font-size: 0;
}
.cke_skin_v2 .cke_menuarrow
{
/* arrowright.gif*/
background-image: url(images/sprites.png);
_background-image: url(images/sprites_ie6.png);
background-position: 0 -784px;
background-repeat: no-repeat;
height: 5px;
width: 3px;
float: right;
margin-right: 2px;
margin-top: 3px;
}
/* Never applied */
.cke_rtl .cke_skin_v2 .cke_menuarrow
{
float: left;
margin-right: 0;
margin-left: 2px;
/* arrowleft.gif*/
background-position: 0 -763px;
}
.cke_skin_v2 .cke_menuarrow span
{
display: none;
}
.cke_hc .cke_skin_v2 .cke_menuarrow
{
width: auto;
margin-top: 0;
}
.cke_hc .cke_skin_v2 .cke_menuarrow span
{
display: inline;
}
/* #3766 In the context menu, long labels with second level menu get wrapped */
.cke_browser_ie.cke_ltr .cke_skin_v2 .cke_menuarrow
{
position: absolute;
right: 2px;
}
.cke_browser_ie.cke_rtl .cke_skin_v2 .cke_menuarrow
{
position: absolute;
left: 2px;
}
/* END #3766 */
| 10npsite | trunk/guanli/system/ckeditor/_source/skins/v2/menu.css | CSS | asf20 | 5,377 |
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
@media print
{
.cke_path
{
display: none;
}
}
.cke_skin_office2003 .cke_path
{
padding: 3px 3px 0 3px;
display: inline-block;
float: left;
}
.cke_skin_office2003 .cke_rtl .cke_path
{
float: right;
}
.cke_skin_office2003 .cke_path a,
.cke_skin_office2003 .cke_path .cke_empty
{
display: inline-block;
float: left;
border: solid 1px #f7f8fd;
background-color: #f7f8fd;
padding-top: 1px;
padding-bottom: 1px;
padding-left: 4px;
padding-right: 4px;
margin-bottom : 3px;
cursor: default;
}
.cke_skin_office2003 .cke_path .cke_empty
{
visibility: hidden;
}
.cke_skin_office2003 .cke_rtl .cke_path a,
.cke_skin_office2003 .cke_rtl .cke_path cke_empty
{
float: right;
}
.cke_skin_office2003 .cke_path a:hover,
.cke_skin_office2003 .cke_path a:focus,
.cke_skin_office2003 .cke_path a:active /* IE */
{
border: solid 1px #316ac5;
background-color: #dff1ff;
padding-top: 1px;
padding-bottom: 1px;
padding-left: 4px;
padding-right: 4px;
outline: none;
}
.cke_skin_office2003 .cke_browser_ie .cke_rtl .cke_path a,
.cke_skin_office2003 .cke_browser_ie .cke_rtl .cke_path .cke_empty
{
float: none;
}
.cke_skin_office2003 .cke_path .cke_label
{
display: none;
}
| 10npsite | trunk/guanli/system/ckeditor/_source/skins/office2003/elementspath.css | CSS | asf20 | 1,404 |
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
@import url("reset.css");
@import url("mainui.css");
@import url("panel.css");
@import url("toolbar.css");
@import url("menu.css");
@import url("richcombo.css");
@import url("elementspath.css");
@import url("icons.css");
@import url("presets.css");
/* Restore the container visibility */
html .cke_skin_office2003
{
visibility: inherit;
}
html.cke_skin_office2003_container
{
visibility: visible;
}
| 10npsite | trunk/guanli/system/ckeditor/_source/skins/office2003/editor.css | CSS | asf20 | 574 |
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
/* Restore the dialog visibility */
body .cke_dialog
{
visibility: visible;
}
/* Force Gecko to consider table as positioned */
.cke_skin_office2003 table.cke_dialog.cke_browser_gecko
{
display:block;
}
.cke_skin_office2003 .cke_dialog_body
{
margin-left: 16px;
margin-right: 16px;
margin-top: 2px;
margin-bottom: 20px;
z-index: 1;
/* 'cke_dialog' element has been fixed positioned in all but IE6, while we
need it to be positioned to hold e.g. close button. */
_position: static;
}
.cke_skin_office2003 .cke_dialog_tl,
.cke_skin_office2003 .cke_dialog_tr,
.cke_skin_office2003 .cke_dialog_tc,
.cke_skin_office2003 .cke_dialog_bl,
.cke_skin_office2003 .cke_dialog_br,
.cke_skin_office2003 .cke_dialog_bc
{
background-image: url(images/sprites.png);
background-repeat: no-repeat;
position: absolute;
/* IE6 does not support full color transparent PNG. */
_background-image: url(images/sprites_ie6.png);
/* Dialog corner parts require a negative z-index to avoid covering dialog body. (#4954) */
z-index: -1;
}
.cke_skin_office2003 .cke_dialog_tl
{
background-position: -16px -16px;
height: 16px;
width: 16px;
top: 0;
left: 0;
}
.cke_skin_office2003 .cke_rtl .cke_dialog_tl
{
background-position: -16px -397px;
}
.cke_skin_office2003 .cke_dialog_tr
{
background-position: -16px -76px;
height: 16px;
width: 16px;
top: 0;
right: 0;
}
.cke_skin_office2003 .cke_rtl .cke_dialog_tr
{
background-position: -16px -457px;
}
.cke_skin_office2003 .cke_dialog_tc
{
background-position: 0 -136px;
background-repeat: repeat-x;
height: 16px;
top: 0;
left: 16px;
right: 16px;
}
.cke_skin_office2003 .cke_dialog_bl
{
background-position: -16px -196px;
height: 51px;
width: 30px;
bottom: 0;
left: 0;
}
.cke_skin_office2003 .cke_rtl .cke_dialog_bl
{
background-position: -16px -517px;
}
.cke_skin_office2003 .cke_dialog_br
{
background-position: -16px -263px;
height: 51px;
width: 30px;
bottom: 0;
right: 0;
}
.cke_skin_office2003 .cke_rtl .cke_dialog_br
{
background-position: -16px -584px;
}
.cke_skin_office2003 .cke_dialog_bc
{
background-position: 0 -330px;
background-repeat: repeat-x;
height: 51px;
bottom: 0;
left: 30px;
right: 30px;
}
.cke_skin_office2003 .cke_dialog_ml,
.cke_skin_office2003 .cke_dialog_mr
{
background-image: url(images/dialog_sides.png);
background-repeat: repeat-y;
position: absolute;
width: 16px;
top: 16px;
bottom: 51px;
/* IE6 does not support full color transparent PNG. */
_background-image: url(images/dialog_sides.gif);
/* IE quirks gets confused when we have both top and bottom. */
_top: auto;
}
.cke_skin_office2003 .cke_rtl .cke_dialog_ml,
.cke_skin_office2003 .cke_rtl .cke_dialog_mr
{
background-image: url(images/dialog_sides_rtl.png);
/* IE6 does not support full color transparent PNG. */
_background-image: url(images/dialog_sides.gif);
}
.cke_skin_office2003 .cke_dialog_ml
{
background-position: 0 0;
left: 0;
}
.cke_skin_office2003 .cke_dialog_mr
{
background-position: -16px 0;
right: 0;
}
.cke_skin_office2003 .cke_browser_iequirks .cke_dialog_ml,
.cke_skin_office2003 .cke_browser_iequirks .cke_dialog_mr
{
margin-top: 3px;
}
.cke_skin_office2003 .cke_dialog_title
{
background-image: url(images/sprites.png);
_background-image: url(images/sprites_ie6.png);
background-position: 0 -678px;
background-repeat: repeat-x;
font-weight: bold;
font-size: 14pt;
color: #0E3460;
background-color: #8db1ff;
padding: 3px 10px 26px 10px;
cursor: move;
position: relative;
}
.cke_skin_office2003 .cke_browser_ie.cke_rtl .cke_dialog_title
{
position: static;
}
.cke_skin_office2003 .cke_dialog_contents
{
background-color: #f7f8fd;
border: #2b66c9 1px solid;
overflow: auto;
padding: 5px 10px;
}
.cke_skin_office2003 .cke_dialog_footer
{
background-color: #8db1ff;
text-align: right;
}
.cke_skin_office2003 .cke_rtl .cke_dialog_footer
{
text-align: left;
}
.cke_skin_office2003 .cke_dialog_footer .cke_resizer {
margin-top: 21px;
}
/* tabs */
.cke_skin_office2003 .cke_dialog_tabs
{
height: 23px;
background-color: #8db1ff;
display: inline-block;
margin-left:10px;
margin-right:10px;
margin-top:-23px;
position: absolute;
z-index: 2;
}
.cke_skin_office2003 .cke_rtl .cke_dialog_tabs
{
right: 10px;
}
.cke_skin_office2003 a.cke_dialog_tab,
.cke_skin_office2003 a:link.cke_dialog_tab,
.cke_skin_office2003 a:active.cke_dialog_tab,
.cke_skin_office2003 a:hover.cke_dialog_tab,
.cke_skin_office2003 a:visited.cke_dialog_tab
{
color: #0E3460;
border-left: 1px solid #2b66c9;
border-right: 1px solid #2b66c9;
border-top: 1px solid #2b66c9;
height: 14px;
padding: 4px 5px;
display: inline-block;
cursor: pointer;
}
/* Gecko 1.8 layout workaround. */
.cke_skin_office2003 .cke_browser_gecko18 a.cke_dialog_tab,
.cke_skin_office2003 .cke_browser_gecko18 a:link.cke_dialog_tab,
.cke_skin_office2003 .cke_browser_gecko18 a:active.cke_dialog_tab,
.cke_skin_office2003 .cke_browser_gecko18 a:hover.cke_dialog_tab,
.cke_skin_office2003 .cke_browser_gecko18 a:visited.cke_dialog_tab
{
display: inline;
position: relative;
top: 6px;
}
.cke_skin_office2003 a:hover.cke_dialog_tab
{
background-color: #f7f8fd;
}
.cke_skin_office2003 .cke_hc a:hover.cke_dialog_tab
{
padding: 2px 3px !important;
border-width: 3px;
}
.cke_skin_office2003 a.cke_dialog_tab_selected,
.cke_skin_office2003 a:link.cke_dialog_tab_selected,
.cke_skin_office2003 a:active.cke_dialog_tab_selected,
.cke_skin_office2003 a:hover.cke_dialog_tab_selected,
.cke_skin_office2003 a:visited.cke_dialog_tab_selected
{
border-bottom: 1px solid #f7f8fd;
background-color: #f7f8fd;
font-weight: bold;
cursor: default;
}
.cke_skin_office2003 .cke_hc a.cke_dialog_tab_selected,
.cke_skin_office2003 .cke_hc a:link.cke_dialog_tab_selected,
.cke_skin_office2003 .cke_hc a:active.cke_dialog_tab_selected,
.cke_skin_office2003 .cke_hc a:hover.cke_dialog_tab_selected,
.cke_skin_office2003 .cke_hc a:visited.cke_dialog_tab_selected
{
padding: 2px 3px !important;
border-width: 3px;
}
/* single_page */
.cke_skin_office2003 .cke_single_page .cke_dialog_tabs
{
display: none;
}
.cke_skin_office2003 .cke_hc .cke_dialog_tabs a,
.cke_skin_office2003 .cke_hc .cke_dialog_footer a
{
opacity: 1.0;
filter: alpha(opacity=100);
border: 1px solid white;
}
.cke_skin_office2003 .cke_single_page .cke_dialog_title
{
padding-bottom: 3px;
}
.cke_skin_office2003 .cke_dialog_ui_vbox table,
.cke_skin_office2003 .cke_dialog_ui_hbox table
{
margin: auto;
}
.cke_skin_office2003 .cke_dialog_ui_vbox_child
{
padding: 5px 0px;
}
.cke_skin_office2003 input.cke_dialog_ui_input_text,
.cke_skin_office2003 input.cke_dialog_ui_input_password
{
background-color: white;
border: none;
padding: 0px;
width: 100%;
height: 14px;
}
.cke_skin_office2003 div.cke_dialog_ui_input_text,
.cke_skin_office2003 div.cke_dialog_ui_input_password
{
background-color: white;
border: 1px solid #a0a0a0;
padding: 1px 0px;
/* IE6/Quirks - make sure the content does not overflow (#7321) */
_width: 99.9%;
}
/* The absolute position is required for IE7 on text inputs not to stretch dialog horizontally. (#8971)*/
.cke_skin_office2003 .cke_browser_ie7 input.cke_dialog_ui_input_text,
.cke_skin_office2003 .cke_browser_ie7 input.cke_dialog_ui_input_password
{
position: absolute;
}
.cke_skin_office2003 .cke_browser_ie7 div.cke_dialog_ui_input_text,
.cke_skin_office2003 .cke_browser_ie7 div.cke_dialog_ui_input_password
{
height:14px;
position: relative;
}
/* Opera/IE doesn't leave enough padding in text input for cursor to blink in RTL. (#6087) */
.cke_skin_office2003 .cke_browser_ie.cke_rtl input.cke_dialog_ui_input_text,
.cke_skin_office2003 .cke_browser_opera.cke_rtl input.cke_dialog_ui_input_text,
.cke_skin_office2003 .cke_browser_ie.cke_rtl input.cke_dialog_ui_input_password,
.cke_skin_office2003 .cke_browser_opera.cke_rtl input.cke_dialog_ui_input_password
{
padding-right: 2px
}
/* Compensate the padding added above on container. */
.cke_skin_office2003 .cke_browser_ie.cke_rtl div.cke_dialog_ui_input_text,
.cke_skin_office2003 .cke_browser_opera.cke_rtl div.cke_dialog_ui_input_text,
.cke_skin_office2003 .cke_browser_ie.cke_rtl div.cke_dialog_ui_input_password,
.cke_skin_office2003 .cke_browser_opera.cke_rtl div.cke_dialog_ui_input_password
{
padding-left: 2px;
}
.cke_skin_office2003 .cke_browser_ie.cke_rtl .cke_dialog_ui_vbox_child,
.cke_skin_office2003 .cke_browser_ie.cke_rtl .cke_dialog_ui_hbox_child,
.cke_skin_office2003 .cke_browser_ie.cke_rtl .cke_dialog_ui_hbox_first,
.cke_skin_office2003 .cke_browser_ie.cke_rtl .cke_dialog_ui_hbox_last
{
padding-right: 2px !important;
}
.cke_skin_office2003 .cke_browser_ie.cke_rtl div.cke_dialog_ui_input_text {
padding-right: 1px;
}
.cke_skin_office2003 .cke_browser_gecko.cke_hc div.cke_dialog_ui_input_text,
.cke_skin_office2003 .cke_browser_gecko.cke_hc div.cke_dialog_ui_input_password
{
border-width: 0px;
}
.cke_skin_office2003 .cke_browser_gecko18.cke_hc div.cke_dialog_ui_input_text,
.cke_skin_office2003 .cke_browser_gecko18.cke_hc div.cke_dialog_ui_input_password
{
border-width: 1px;
}
.cke_skin_office2003 textarea.cke_dialog_ui_input_textarea
{
background-color: white;
border: none;
padding: 0px;
width: 100%;
/*
* IE6 BUG: Scrollbars in textareas can overflow even if the outer DIV is set to overflow:hidden.
* So leave 1% width for the scrollbar. In most situations the 1% isn't noticeable by users.
*/
_width: 99%;
overflow: auto;
resize: none;
}
.cke_skin_office2003 div.cke_dialog_ui_input_textarea
{
background-color: white;
border: 1px solid #a0a0a0;
padding: 1px 0px;
}
/* RTL + IE6: Input overflows dialog element. (#7321) */
.cke_skin_office2003 .cke_rtl .cke_dialog_ui_labeled_content
{
_width: 95%;
}
.cke_skin_office2003 div.cke_disabled .cke_dialog_ui_labeled_content *
{
background-color : #a0a0a0;
cursor : default;
}
.cke_skin_office2003 .cke_dialog_ui_hbox
{
width: 100%;
}
.cke_skin_office2003 .cke_dialog_ui_hbox_first,
.cke_skin_office2003 .cke_dialog_ui_hbox_child,
.cke_skin_office2003 .cke_dialog_ui_hbox_last
{
vertical-align: top;
}
.cke_skin_office2003 .cke_ltr .cke_dialog_ui_hbox_first,
.cke_skin_office2003 .cke_ltr .cke_dialog_ui_hbox_child
{
padding-right: 10px;
}
.cke_skin_office2003 .cke_rtl .cke_dialog_ui_hbox_first,
.cke_skin_office2003 .cke_rtl .cke_dialog_ui_hbox_child
{
padding-left: 10px;
}
/* button */
.cke_skin_office2003 a.cke_dialog_ui_button
{
border-collapse: separate;
cursor: default;
}
.cke_skin_office2003 a.cke_dialog_ui_button_ok span,
.cke_skin_office2003 a.cke_dialog_ui_button_cancel span
{
width:60px;
}
.cke_skin_office2003 span.cke_dialog_ui_button
{
background-image: url(images/sprites.png);
_background-image: url(images/sprites_ie6.png);
background-position: 0 -678px;
background-repeat: repeat-x;
border: #0E3460 1px solid;
padding: 2px 10px;
text-align: center;
color: #0E3460;
background-color: #8db1ff;
display: inline-block;
cursor: default;
}
/* Gecko 1.8 does not support display: inline-block */
.cke_skin_office2003 .cke_browser_gecko18 .cke_dialog_footer_buttons span.cke_dialog_ui_button
{
display: block;
}
.cke_skin_office2003 a.cke_dialog_ui_button span.cke_disabled
{
border: #898980 1px solid;
color: #5e5e55;
background-color: #c5c5b3;
}
.cke_skin_office2003 a:focus span.cke_dialog_ui_button,
.cke_skin_office2003 a:active span.cke_dialog_ui_button
{
background-color: #8db1ff;
}
.cke_skin_office2003 .cke_hc a:focus span.cke_dialog_ui_button,
.cke_skin_office2003 .cke_hc a:active span.cke_dialog_ui_button
{
border-width: 2px;
}
.cke_skin_office2003 .cke_dialog_footer_buttons
{
display: inline-table;
margin-right: 12px;
margin-left: 12px;
width: auto;
position: relative;
}
/* Gecko 1.8 does not support for display: inline-table */
.cke_skin_office2003 .cke_browser_gecko18 .cke_dialog_footer_buttons
{
display: inline;
}
.cke_skin_office2003 .cke_dialog_footer_buttons span.cke_dialog_ui_button
{
margin: 7px 0;
}
.cke_skin_office2003 .cke_browser_ie7 .cke_dialog_footer_buttons
{
position: static;
}
.cke_skin_office2003 strong
{
font-weight: bold;
}
/* close_button */
.cke_skin_office2003 a.cke_dialog_close_button,
.cke_skin_office2003 a:hover.cke_dialog_close_button,
.cke_skin_office2003 .cke_browser_ie6 a.cke_dialog_close_button,
.cke_skin_office2003 .cke_browser_ie6 a:hover.cke_dialog_close_button
{
background-image: url(images/sprites.png);
background-repeat: no-repeat;
background-position: -20px -655px;
position: absolute;
cursor: pointer;
text-align: center;
height: 21px;
width: 21px;
top: 4px;
/* IE6 does not support full color transparent PNG. */
_background-image: url(images/sprites_ie6.png);
}
.cke_skin_office2003 a.cke_dialog_close_button span
{
display: none;
}
.cke_skin_office2003 .cke_ltr a.cke_dialog_close_button
{
right: 22px;
}
.cke_skin_office2003 .cke_rtl a.cke_dialog_close_button,
.cke_skin_office2003 .cke_rtl a:hover.cke_dialog_close_button
{
left: 16px;
_top: 6px;
}
.cke_skin_office2003 .cke_browser_ie6.cke_rtl a.cke_dialog_close_button,
.cke_skin_office2003 .cke_browser_ie6.cke_rtl a:hover.cke_dialog_close_button
{
position: relative;
float: left;
margin-top: -55px;
margin-left: -7px;
}
.cke_skin_office2003 .cke_browser_iequirks.cke_rtl.cke_single_page a.cke_dialog_close_button,
.cke_skin_office2003 .cke_browser_iequirks.cke_rtl.cke_single_page a:hover.cke_dialog_close_button
{
margin-top: -32px;
}
.cke_skin_office2003 .cke_browser_iequirks.cke_ltr a.cke_dialog_close_button,
.cke_skin_office2003 .cke_browser_iequirks.cke_ltr a:hover.cke_dialog_close_button
{
margin-top: 0;
}
.cke_skin_office2003 .cke_dialog_ui_input_select
{
border: 1px solid #a0a0a0;
background-color: white;
}
.cke_skin_office2003 .cke_dialog_ui_input_file
{
width: 100%;
height: 25px;
}
/*
* Some utility CSS classes for dialog authors.
*/
.cke_skin_office2003 .cke_dialog .cke_dark_background
{
background-color: #eaead1;
}
.cke_skin_office2003 .cke_dialog .cke_hand
{
cursor: pointer;
}
.cke_skin_office2003 .cke_dialog .cke_centered
{
text-align: center;
}
.cke_skin_office2003 .cke_dialog a.cke_btn_reset
{
float: right;
background-position: 0 -32px;
background-image: url(images/mini.gif);
width: 16px;
height: 16px;
background-repeat: no-repeat;
border: 1px none;
font-size: 1px;
}
.cke_skin_office2003 .cke_rtl .cke_dialog a.cke_btn_reset
{
float: left;
}
.cke_skin_office2003 .cke_dialog a.cke_btn_locked,
.cke_skin_office2003 .cke_dialog a.cke_btn_unlocked
{
float: left;
background-position: 0 0;
background-image: url(images/mini.gif);
width: 16px;
height: 16px;
background-repeat: no-repeat;
border: none 1px;
font-size: 1px;
}
.cke_skin_office2003 .cke_dialog a.cke_btn_locked .cke_icon
{
display:none;
}
.cke_skin_office2003 .cke_rtl .cke_dialog a.cke_btn_locked,
.cke_skin_office2003 .cke_rtl .cke_dialog a.cke_btn_unlocked
{
float: right;
}
.cke_skin_office2003 .cke_dialog a.cke_btn_unlocked
{
background-position: 0 -16px;
background-image: url(images/mini.gif);
}
.cke_skin_office2003 .cke_dialog .cke_btn_over
{
border: outset 1px;
cursor: pointer;
}
.cke_skin_office2003 .cke_dialog .ImagePreviewBox
{
border : 2px ridge black;
overflow : scroll;
height : 210px;
width : 230px;
padding : 2px;
background-color : white;
}
.cke_skin_office2003 .cke_dialog .ImagePreviewBox table td {
white-space: normal;
}
/* Fix iframedialog's height doesn't stretch to 100% #4863.*/
.cke_skin_office2003 .cke_browser_iequirks .cke_dialog_page_contents
{
_position: absolute;
}
.cke_skin_office2003 .cke_dialog .ImagePreviewLoader
{
position: absolute;
white-space : normal;
overflow : hidden;
height : 160px;
width : 230px;
margin : 2px;
padding : 2px;
opacity : 0.9;
filter : alpha(opacity=90);
background-color : #e4e4e4;
}
.cke_skin_office2003 .cke_dialog .FlashPreviewBox
{
white-space : normal;
border : 2px ridge black;
overflow : auto;
height : 160px;
width : 390px;
padding : 2px;
background-color : white;
}
.cke_skin_office2003 .cke_dialog .cke_pastetext
{
width: 346px;
height: 170px;
}
.cke_skin_office2003 .cke_dialog .cke_pastetext textarea
{
width: 340px;
height: 170px;
resize: none;
}
.cke_skin_office2003 .cke_dialog iframe.cke_pasteframe
{
width: 346px;
height: 130px;
background-color: white;
border: 1px solid black;
}
.cke_skin_office2003 .cke_dialog .cke_dark_background
{
text-align : center;
background-color: #eaead1;
font-size : 14px;
}
.cke_skin_office2003 .cke_dialog .cke_light_background
{
text-align : center;
background-color: #ffffbe;
}
.cke_skin_office2003 .cke_dialog .cke_hand
{
cursor: pointer;
}
.cke_skin_office2003 .cke_disabled
{
color: #a0a0a0;
}
/* High Contrast Mode */
.cke_skin_office2003 .cke_hc .cke_dialog_title,
.cke_skin_office2003 .cke_hc .cke_dialog_tabs,
.cke_skin_office2003 .cke_hc .cke_dialog_contents,
.cke_skin_office2003 .cke_hc .cke_dialog_footer
{
border-left: 1px solid;
border-right: 1px solid;
}
.cke_skin_office2003 .cke_hc .cke_dialog_title
{
border-top: 1px solid;
}
.cke_skin_office2003 .cke_hc .cke_dialog_footer
{
border-bottom: 1px solid;
}
.cke_skin_office2003 .cke_hc .cke_dialog_close_button span
{
display: inline;
cursor: pointer;
font-weight: bold;
position: relative;
top: 3px;
}
.cke_skin_office2003 .cke_dialog_body .cke_label
{
display: none;
}
.cke_skin_office2003 .cke_dialog_body label.cke_required
{
font-weight: bold;
}
.cke_skin_office2003 .cke_hc .cke_dialog_body .cke_label
{
display: inline;
cursor: inherit;
}
.cke_skin_office2003 .cke_hc a.cke_btn_locked,
.cke_skin_office2003 .cke_hc a.cke_btn_unlocked,
.cke_skin_office2003 .cke_hc a.cke_btn_reset
{
border-style: solid;
float: left;
width: auto;
height: auto;
padding: 0 2px;
}
.cke_skin_office2003 .cke_hc a.cke_btn_locked .cke_icon
{
display:inline;
}
.cke_skin_office2003 .cke_rtl.cke_hc a.cke_btn_locked,
.cke_skin_office2003 .cke_rtl.cke_hc a.cke_btn_unlocked,
.cke_skin_office2003 .cke_rtl.cke_hc a.cke_btn_reset
{
float: right;
}
/**
* Styles specific to "cellProperties" dialog.
*/
.cke_skin_office2003 .cke_dialog_contents a.colorChooser
{
display:block;
margin-top:12px;
margin-left: 10px;
width: 40px;
}
.cke_skin_office2003 .cke_dialog_contents a.colorChooser .cke_dialog_ui_button
{
width:100%;
}
.cke_skin_office2003 .cke_rtl .cke_dialog_contents a.colorChooser
{
margin-right: 10px;
}
/* Compensate focus outline for some input elements. (#6200) */
.cke_skin_office2003 .cke_browser_gecko .cke_dialog_ui_checkbox_input:focus,
.cke_skin_office2003 .cke_browser_gecko .cke_dialog_ui_radio_input:focus,
.cke_skin_office2003 .cke_browser_opera .cke_dialog_ui_checkbox_input:focus,
.cke_skin_office2003 .cke_browser_opera .cke_dialog_ui_radio_input:focus,
.cke_skin_office2003 .cke_browser_gecko .cke_dialog_ui_input_select:focus,
.cke_skin_office2003 .cke_browser_gecko .cke_btn_over,
.cke_skin_office2003 .cke_browser_opera .cke_btn_over,
.cke_skin_office2003 .cke_browser_ie .cke_btn_over
{
outline: 1px dotted #696969;
}
/* IE<8 instead doesn't support CSS outline property, emulated with dotted border. */
/* Predefined border to avoid visual size change impact. */
.cke_skin_office2003 .cke_browser_ie .cke_dialog_ui_checkbox_input,
.cke_skin_office2003 .cke_browser_ie .cke_dialog_ui_ratio_input,
.cke_skin_office2003 .cke_browser_ie .cke_btn_reset,
.cke_skin_office2003 .cke_browser_ie .cke_btn_locked,
.cke_skin_office2003 .cke_browser_ie .cke_btn_unlocked
{
*border: 1px solid transparent !important;
/* Emulating border-color: transparent in IE6.*/
/* Emulating border-color: transparent in IE6.*/
-border: 1px solid red !important;
-filter: chroma(color=red);
}
.cke_skin_office2003 .cke_browser_ie .cke_dialog_ui_focused,
.cke_skin_office2003 .cke_browser_ie .cke_btn_over
{
*border: 1px dotted #696969 !important;
}
.cke_skin_office2003 .cke_iframe_shim
{
display:block;
position:absolute;
top:0;
left:0;
z-index:-1;
filter:alpha(opacity=0);
width:100%;
height:100%;
}
.cke_dialog label
{
display: inline;
margin-bottom: auto;
cursor: default;
}
| 10npsite | trunk/guanli/system/ckeditor/_source/skins/office2003/dialog.css | CSS | asf20 | 21,155 |
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
/* "Source" button label */
.cke_skin_office2003 .cke_button_source .cke_label
{
display: inline;
}
/* "Styles" panel size */
.cke_skin_office2003 .cke_styles_panel
{
width: 150px;
height: 170px;
}
/* "Format" panel size */
.cke_skin_office2003 .cke_format_panel
{
width: 150px;
height: 170px;
}
/* "Font" panel size */
.cke_skin_office2003 .cke_font_panel
{
width: 150px;
height: 170px;
}
/* "Font Size" panel size */
.cke_skin_office2003 .cke_fontSize_panel
{
height: 170px;
}
/* "Font Size" combo width */
.cke_skin_office2003 .cke_fontSize .cke_text
{
width: 20px;
}
/* "Font Size" combo width (IE Quirks) */
.cke_skin_office2003 .cke_browser_iequirks .cke_fontSize .cke_text
{
width: 32px;
}
| 10npsite | trunk/guanli/system/ckeditor/_source/skins/office2003/presets.css | CSS | asf20 | 908 |
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
.cke_skin_office2003 .cke_button_source .cke_icon
{
background-position: 0 0;
}
.cke_skin_office2003 .cke_button_docProps .cke_icon
{
background-position: 0 -16px;
}
.cke_skin_office2003 .cke_button_newpage .cke_icon
{
background-position: 0 -48px;
}
.cke_skin_office2003 .cke_button_preview .cke_icon
{
background-position: 0 -64px;
}
.cke_skin_office2003 .cke_button_cut .cke_icon
{
background-position: 0 -96px;
}
.cke_skin_office2003 .cke_button_copy .cke_icon
{
background-position: 0 -112px;
}
.cke_skin_office2003 .cke_button_paste .cke_icon
{
background-position: 0 -128px;
}
.cke_skin_office2003 .cke_button_pastetext .cke_icon
{
background-position: 0 -144px;
}
.cke_skin_office2003 .cke_button_find .cke_icon
{
background-position: 0 -240px;
}
.cke_skin_office2003 .cke_button_replace .cke_icon
{
background-position: 0 -256px;
}
.cke_skin_office2003 .cke_button_selectAll .cke_icon
{
background-position: 0 -272px;
}
.cke_skin_office2003 .cke_button_removeFormat .cke_icon
{
background-position: 0 -288px;
}
.cke_skin_office2003 .cke_button_bold .cke_icon
{
background-position: 0 -304px;
}
.cke_skin_office2003 .cke_button_italic .cke_icon
{
background-position: 0 -320px;
}
.cke_skin_office2003 .cke_button_underline .cke_icon
{
background-position: 0 -336px;
}
.cke_skin_office2003 .cke_button_strike .cke_icon
{
background-position: 0 -352px;
}
.cke_skin_office2003 .cke_button_subscript .cke_icon
{
background-position: 0 -368px;
}
.cke_skin_office2003 .cke_button_superscript .cke_icon
{
background-position: 0 -384px;
}
.cke_skin_office2003 .cke_button_table .cke_icon
{
background-position: 0 -608px;
}
.cke_skin_office2003 .cke_button_horizontalrule .cke_icon
{
background-position: 0 -624px;
}
.cke_skin_office2003 .cke_button_smiley .cke_icon
{
background-position: 0 -640px;
}
.cke_skin_office2003 .cke_button_link .cke_icon
{
background-position: 0 -528px;
}
.cke_skin_office2003 .cke_button_unlink .cke_icon
{
background-position: 0 -544px;
}
.cke_skin_office2003 .cke_button_anchor .cke_icon
{
background-position: 0 -560px;
}
.cke_skin_office2003 .cke_button_image .cke_icon
{
background-position: 0 -576px;
}
.cke_skin_office2003 .cke_button_flash .cke_icon
{
background-position: 0 -592px;
}
.cke_skin_office2003 .cke_button_specialchar .cke_icon
{
background-position: 0 -656px;
}
.cke_skin_office2003 .cke_button_pagebreak .cke_icon
{
background-position: 0 -672px;
}
.cke_skin_office2003 .cke_button_print .cke_icon
{
background-position: 0 -176px;
}
.cke_skin_office2003 .cke_button_checkspell .cke_icon,
.cke_skin_office2003 .cke_button_scayt .cke_icon
{
background-position: 0 -192px;
}
.cke_skin_office2003 .cke_button_pagebreak .cke_icon
{
background-position: 0 -672px;
}
.cke_skin_office2003 .cke_button_textcolor .cke_icon
{
background-position: 0 -704px;
}
.cke_skin_office2003 .cke_button_bgcolor .cke_icon
{
background-position: 0 -720px;
}
.cke_skin_office2003 .cke_button_form .cke_icon
{
background-position: 0 -752px;
}
.cke_skin_office2003 .cke_button_checkbox .cke_icon
{
background-position: 0 -768px;
}
.cke_skin_office2003 .cke_button_radio .cke_icon
{
background-position: 0 -784px;
}
.cke_skin_office2003 .cke_button_textfield .cke_icon
{
background-position: 0 -800px;
}
.cke_skin_office2003 .cke_button_textarea .cke_icon
{
background-position: 0 -816px;
}
.cke_skin_office2003 .cke_button_showblocks .cke_icon
{
background-position: 0 -1136px;
}
.cke_skin_office2003 .cke_button_select .cke_icon
{
background-position: 0 -832px;
}
.cke_skin_office2003 .cke_button_button .cke_icon
{
background-position: 0 -848px;
}
.cke_skin_office2003 .cke_button_imagebutton .cke_icon
{
background-position: 0 -864px;
}
.cke_skin_office2003 .cke_button_hiddenfield .cke_icon
{
background-position: 0 -880px;
}
.cke_skin_office2003 .cke_button_undo .cke_icon
{
background-position: 0 -208px;
}
.cke_skin_office2003 .cke_rtl .cke_button_undo .cke_icon
{
background-position: 0 -224px;
}
.cke_skin_office2003 .cke_button_redo .cke_icon
{
background-position: 0 -224px;
}
.cke_skin_office2003 .cke_rtl .cke_button_redo .cke_icon
{
background-position: 0 -208px;
}
.cke_skin_office2003 .cke_button_templates .cke_icon
{
background-position: 0 -80px;
}
.cke_skin_office2003 .cke_button_numberedlist .cke_icon
{
background-position: 0 -400px;
}
.cke_skin_office2003 .cke_button_bulletedlist .cke_icon
{
background-position: 0 -416px;
}
.cke_skin_office2003 .cke_mixed_dir_content .cke_button_numberedlist .cke_icon
{
background-position: 0 -1217px;
}
.cke_skin_office2003 .cke_mixed_dir_content .cke_button_bulletedlist .cke_icon
{
background-position: 0 -1233px;
}
.cke_skin_office2003 .cke_button_outdent .cke_icon
{
background-position: 0 -432px;
}
.cke_skin_office2003 .cke_button_indent .cke_icon
{
background-position: 0 -448px;
}
.cke_skin_office2003 .cke_mixed_dir_content .cke_button_indent .cke_icon
{
background-position: 0 -1265px;
}
.cke_skin_office2003 .cke_mixed_dir_content .cke_button_outdent .cke_icon
{
background-position: 0 -1249px;
}
.cke_skin_office2003 .cke_button_justifyleft .cke_icon
{
background-position: 0 -464px;
}
.cke_skin_office2003 .cke_button_justifycenter .cke_icon
{
background-position: 0 -480px;
}
.cke_skin_office2003 .cke_button_justifyright .cke_icon
{
background-position: 0 -496px;
}
.cke_skin_office2003 .cke_button_justifyblock .cke_icon
{
background-position: 0 -512px;
}
.cke_skin_office2003 .cke_button_blockquote .cke_icon
{
background-position: 0 -1152px;
}
.cke_skin_office2003 .cke_button_flash .cke_icon
{
background-position: 0 -592px;
}
.cke_skin_office2003 .cke_button_pastefromword .cke_icon
{
background-position: 0 -160px;
}
.cke_skin_office2003 .cke_button_save .cke_icon
{
background-position: 0 -32px;
}
.cke_skin_office2003 .cke_button_about .cke_icon
{
background-position: 0 -736px;
}
.cke_skin_office2003 .cke_button_maximize .cke_icon
{
background-position: 0 -1040px;
}
.cke_skin_office2003 .cke_button_creatediv .cke_icon
{
background-position: 0 -1168px;
}
.cke_skin_office2003 .cke_button_editdiv .cke_icon
{
background-position: 0 -1184px;
}
.cke_skin_office2003 .cke_button_removediv .cke_icon
{
background-position: 0 -1200px;
}
.cke_skin_office2003 .cke_button_bidirtl .cke_icon
{
background-position: 0 -1072px;
}
.cke_skin_office2003 .cke_button_bidiltr .cke_icon
{
background-position: 0 -1056px;
}
.cke_skin_office2003 .cke_button_iframe .cke_icon
{
background-position: 0 -1279px;
}
| 10npsite | trunk/guanli/system/ckeditor/_source/skins/office2003/icons.css | CSS | asf20 | 7,052 |
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
.cke_skin_office2003 .cke_panel
{
border: 1px solid #8f8f73;
background-color: #fff;
width: 120px;
height: 100px;
overflow:hidden;
-moz-border-radius: 3px;
-webkit-border-radius: 3px;
border-radius: 3px;
}
/* Ideally we would use "inherit here"... but you know... IE :( */
.cke_skin_office2003 .cke_panel iframe
{
width: 100%;
height: 100%;
}
cke_skin_office2003 .cke_panel_frame .cke_label
{
display: none;
}
/*
* All the following styles are to be used inside the iframe that holds panel
* contents. We don't use the cke_skin_default there to avoid the reset to be
* active.
* This is not an issue as we'll never have two skins running inside the same
* panel iframe.
*/
html.cke_skin_office2003_container
{
overflow: auto;
overflow-x: hidden;
}
body.cke_panel_frame
{
overflow: auto;
}
ul.cke_panel_list
{
list-style-type: none;
margin: 3px;
padding: 0px;
white-space: nowrap;
}
li.cke_panel_listItem
{
margin: 0px;
}
.cke_panel_listItem a
{
padding: 2px;
display: block;
border: 1px solid #fff;
color: inherit !important;
text-decoration: none;
overflow: hidden;
text-overflow: ellipsis;
}
/* IE6 */
* html .cke_panel_listItem a
{
width : 100%;
/* IE is not able to inherit the color, so we must force it to black */
color: #000;
}
/* IE7 */
*:first-child+html .cke_panel_listItem a
{
/* IE is not able to inherit the color, so we must force it to black */
color: #000;
}
.cke_panel_listItem.cke_selected a
{
border: 1px solid #ccc;
background-color: #e9f5ff;
}
.cke_panel_listItem a:hover,
.cke_panel_listItem a:focus,
.cke_panel_listItem a:active
{
border-color: #316ac5;
background-color: #dff1ff;
}
.cke_hc .cke_panel_listItem.cke_selected a,
.cke_hc .cke_panel_listItem a:hover,
.cke_hc .cke_panel_listItem a:focus,
.cke_hc .cke_panel_listItem a:active
{
border-width: 3px;
padding: 0px;
}
.cke_panel_grouptitle
{
font-size: 11px;
font-family: 'Microsoft Sans Serif' , Tahoma, Arial, Verdana, Sans-Serif;
font-weight: bold;
white-space: nowrap;
background-color: #dcdcdc;
color: #000;
margin:0px;
padding:3px;
}
.cke_panel_listItem p,
.cke_panel_listItem h1,
.cke_panel_listItem h2,
.cke_panel_listItem h3,
.cke_panel_listItem h4,
.cke_panel_listItem h5,
.cke_panel_listItem h6,
.cke_panel_listItem pre
{
margin-top: 3px;
margin-bottom: 3px;
}
.cke_skin_office2003 .cke_button_textcolor_panel,
.cke_skin_office2003 .cke_button_bgcolor_panel
{
width: 150px;
height: 135px;
}
.cke_colorblock
{
padding: 3px;
font-size: 11px;
font-family: 'Microsoft Sans Serif', Tahoma, Arial, Verdana, Sans-Serif;
}
.cke_colorblock,
.cke_colorblock a
{
text-decoration: none;
color: #000;
}
span.cke_colorbox
{
width: 10px;
height: 10px;
border: #808080 1px solid;
float: left;
}
.cke_rtl span.cke_colorbox
{
float: right;
}
a.cke_colorbox
{
border: #fff 1px solid;
padding: 2px;
float: left;
}
.cke_rtl a.cke_colorbox
{
float: right;
}
a:hover.cke_colorbox,
a:focus.cke_colorbox,
a:active.cke_colorbox
{
border: #316ac5 1px solid;
background-color: #dff1ff;
}
a.cke_colorauto,
a.cke_colormore
{
border: #fff 1px solid;
padding: 2px;
display: block;
cursor: pointer;
}
a:hover.cke_colorauto,
a:hover.cke_colormore,
a:focus.cke_colorauto,
a:focus.cke_colormore,
a:active.cke_colorauto,
a:active.cke_colormore
{
border: #316ac5 1px solid;
background-color: #dff1ff;
}
| 10npsite | trunk/guanli/system/ckeditor/_source/skins/office2003/panel.css | CSS | asf20 | 3,739 |
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
@media print
{
.cke_skin_office2003 .cke_toolbox
{
display: none;
}
}
.cke_skin_office2003 .cke_browser_webkit .cke_toolbox,
.cke_skin_office2003 .cke_browser_webkit .cke_toolbox > span
{
white-space: normal;
}
.cke_skin_office2003 .cke_toolbox
{
clear: both;
/* Define the padding-bottom otherwise the collapser button will not be clickable #4932*/
padding-bottom: 1px;
}
.cke_skin_office2003 a.cke_toolbox_collapser,
.cke_skin_office2003 a:hover.cke_toolbox_collapser
{
background-image: url(images/sprites.png);
_background-image: url(images/sprites_ie6.png);
background-position: 3px -1026px; /* +3px +4px */
background-repeat: no-repeat;
width: 11px;
height: 11px;
float: right;
border: outset 1px;
margin: 11px 2px 2px;
cursor: pointer;
}
.cke_skin_office2003 .cke_rtl a.cke_toolbox_collapser,
.cke_skin_office2003 .cke_rtl a:hover.cke_toolbox_collapser
{
float: left;
}
.cke_skin_office2003 a.cke_toolbox_collapser span
{
display: none;
}
.cke_skin_office2003 .cke_hc a.cke_toolbox_collapser span
{
font-size: 10px;
font-weight: bold;
font-family: Arial;
display: inline;
}
.cke_skin_office2003 a.cke_toolbox_collapser_min,
.cke_skin_office2003 a:hover.cke_toolbox_collapser_min
{
/* arrowleft.gif*/
background-image: url(images/sprites.png);
_background-image: url(images/sprites_ie6.png);
background-position: 4px -1047px; /* +4px +3px */
background-repeat: no-repeat;
margin: 2px;
}
.cke_skin_office2003 .cke_rtl a.cke_toolbox_collapser_min,
.cke_skin_office2003 .cke_rtl a:hover.cke_toolbox_collapser_min
{
/* arrowright.gif*/
background-position: 4px -1068px; /* +2px +3px */
}
.cke_skin_office2003 .cke_toolbar
{
background-color: #d6dff7;
background-image: url(images/sprites.png);
_background-image: url(images/sprites_ie6.png);
background-position: 0 -962px;
background-repeat: repeat-x;
display: inline-block;
float: left;
!height: 28px;
!line-height: 28px;
}
.cke_skin_office2003 .cke_rtl .cke_toolbar
{
float: right;
}
.cke_skin_office2003 .cke_toolgroup
{
display: inline-block;
float: left;
height: 28px;
}
.cke_skin_office2003 .cke_browser_ie .cke_toolgroup
{
#float: none;
#display: inline;
}
.cke_skin_office2003 .cke_rtl .cke_toolgroup
{
float: right;
}
.cke_skin_office2003 .cke_browser_ie .cke_rtl .cke_toolgroup
{
#float: none;
}
.cke_skin_office2003 .cke_separator
{
display: inline-block;
float: left;
border-left: solid 1px #B2CBFF;
margin: 6px 2px;
height: 16px;
}
.cke_skin_office2003 .cke_browser_ie .cke_separator
{
#float: none;
#display: inline;
}
.cke_skin_office2003 .cke_rtl .cke_separator
{
float: right;
}
.cke_skin_office2003 .cke_browser_ie .cke_rtl .cke_separator
{
#float: none;
}
.cke_skin_office2003 .cke_break
{
clear: left;
}
.cke_skin_office2003 .cke_rtl .cke_break
{
clear: right;
}
.cke_skin_office2003 .cke_toolbar_start
{
display: inline-block;
background-image: url(images/sprites.png);
_background-image: url(images/sprites_ie6.png);
background-repeat: no-repeat;
background-position: -27px -765px;
width: 10px;
height: 28px;
float: left;
}
.cke_skin_office2003 .cke_browser_ie .cke_toolbar_start
{
#float: none;
#display: inline;
}
.cke_skin_office2003 .cke_rtl .cke_toolbar_start
{
background-position: -27px -816px;
float: right;
}
.cke_skin_office2003 .cke_browser_ie .cke_rtl .cke_toolbar_start
{
#float: none;
}
.cke_skin_office2003 .cke_toolbar_end
{
display: inline-block;
background-image: url(images/sprites.png);
_background-image: url(images/sprites_ie6.png);
background-repeat: no-repeat;
background-position: -29px -861px;
width: 4px;
height: 28px;
float: left;
}
.cke_skin_office2003 .cke_browser_ie .cke_toolbar_end
{
#float: none;
#display: inline;
}
.cke_skin_office2003 .cke_rtl .cke_toolbar_end
{
background-position: -29px -907px;
float: right;
}
.cke_skin_office2003 .cke_browser_ie .cke_rtl .cke_toolbar_end
{
#float: none;
}
/*#7181*/
.cke_skin_office2003 .cke_browser_ie9 .cke_rtl .cke_separator,
.cke_skin_office2003 .cke_browser_ie9 .cke_rtl .cke_toolbar_start,
.cke_skin_office2003 .cke_browser_ie9 .cke_rtl .cke_toolbar_end
{
vertical-align:middle;
}
.cke_skin_office2003 .cke_button a,
.cke_skin_office2003 .cke_button a:hover,
.cke_skin_office2003 .cke_button a:focus,
.cke_skin_office2003 .cke_button a:active,
.cke_skin_office2003 .cke_button a.cke_off
{
border: solid 1px transparent;
border-radius: 3px;
outline: none;
padding-top: 2px;
padding-left: 4px;
padding-right: 4px;
padding-bottom: 2px;
margin-top: 2px;
height: 18px;
vertical-align: top;
_border: none;
_margin: 3px 1px 1px 1px;
cursor: default;
display: inline-block;
}
.cke_skin_office2003 .cke_button a,
.cke_skin_office2003 .cke_button a.cke_off
{
filter: alpha(opacity=70); /* IE */
opacity: 0.70; /* Safari, Opera and Mozilla */
-moz-border-radius: 3px;
-webkit-border-radius: 3px;
}
.cke_skin_office2003 .cke_hc .cke_button a,
.cke_skin_office2003 .cke_hc .cke_button a.cke_off
{
opacity: 1.0;
filter: alpha(opacity=100);
_border: 1px solid transparent;
}
.cke_skin_office2003 .cke_button a.cke_on
{
border: solid 1px #316ac5;
background-color: #c1d2ee;
filter: alpha(opacity=100); /* IE */
opacity: 1; /* Safari, Opera and Mozilla */
_margin: 2px 0 0 0;
}
.cke_skin_office2003 .cke_hc .cke_button a:hover,
.cke_skin_office2003 .cke_hc .cke_button a:focus,
.cke_skin_office2003 .cke_hc .cke_button a:active /* IE */
{
padding: 0 2px !important;
border-width: 3px;
}
.cke_skin_office2003 .cke_button a.cke_disabled *
{
filter: alpha(opacity=30); /* IE */
opacity: 0.3; /* Safari, Opera and Mozilla */
}
/* IE with zoom != 100% will distort the icons otherwise #4821 */
.cke_skin_office2003 .cke_browser_ie .cke_button a.cke_disabled *,
.cke_skin_office2003 .cke_browser_ie a:hover.cke_button .cke_disabled *
{
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(sizingMethod='scale'), alpha(opacity=30);
}
.cke_skin_office2003 .cke_browser_ie .cke_rtl .cke_button a.cke_disabled *,
.cke_skin_office2003 .cke_browser_ie .cke_rtl a:hover.cke_button .cke_disabled *
{
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(sizingMethod='scale'), alpha(opacity=30);
}
.cke_skin_office2003 .cke_browser_ie6 .cke_button a.cke_disabled *,
.cke_skin_office2003 .cke_browser_ie6 a:hover.cke_button .cke_disabled *,
.cke_skin_office2003 .cke_browser_ie .cke_button.cke_noalphafix a.cke_disabled *
{
filter: alpha(opacity=30);
}
.cke_skin_office2003 .cke_hc .cke_button a.cke_disabled *,
.cke_skin_office2003 .cke_browser_ie.cke_hc a:hover.cke_button .cke_disabled *
{
filter: alpha(opacity=60);
opacity: 0.6;
}
.cke_skin_office2003 .cke_button a:hover,
.cke_skin_office2003 .cke_button a:focus,
.cke_skin_office2003 .cke_button a:active /* IE */
{
border: solid 1px #316ac5;
background-color: #dff1ff;
filter: alpha(opacity=100); /* IE */
opacity: 1; /* Safari, Opera and Mozilla */
vertical-align: top;
_margin: 2px 0 0 0;
padding: 2px 4px;
}
.cke_skin_office2003 .cke_button .cke_icon
{
background-image: url(icons.png);
background-position: 100px;
background-repeat:no-repeat;
margin-top:1px;
width: 16px;
height: 16px;
display: inline-block;
cursor: default;
}
.cke_skin_office2003 .cke_rtl .cke_button .cke_icon
{
background-image: url(icons_rtl.png);
}
/* IE with zoom != 100% will distort the icons otherwise #4821 */
.cke_skin_office2003 .cke_browser_ie .cke_button .cke_icon
{
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(sizingMethod='scale');
}
.cke_skin_office2003 .cke_browser_ie .cke_rtl .cke_button .cke_icon
{
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(sizingMethod='scale');
}
.cke_skin_office2003 .cke_browser_ie6 .cke_button .cke_icon,
.cke_skin_office2003 .cke_browser_ie6 .cke_rtl .cke_button .cke_icon,
.cke_skin_office2003 .cke_browser_ie .cke_button.cke_noalphafix .cke_icon,
.cke_skin_office2003 .cke_browser_ie .cke_rtl .cke_button.cke_noalphafix .cke_icon
{
filter: ;
}
.cke_skin_office2003 .cke_button .cke_label
{
display: none;
padding-left: 3px;
cursor: default;
vertical-align:middle;
_background-image: url(images/sprites_ie6.png);
_background-position: 0 -970px;
_background-repeat: repeat-x;
}
.cke_skin_office2003 .cke_button a:hover .cke_label
{
_background-color: #dff1ff;
_background-image: none;
}
.cke_skin_office2003 .cke_button a.cke_on .cke_label
{
_background-color: #c1d2ee;
_background-image: none;
}
.cke_skin_office2003 .cke_hc .cke_button .cke_label
{
padding: 0;
display: inline-block;
}
.cke_skin_office2003 .cke_hc .cke_button .cke_icon
{
display: none;
}
.cke_skin_office2003 .cke_accessibility
{
position: absolute;
display: block;
width: 0;
height: 0;
overflow: hidden;
}
.cke_skin_office2003 .cke_button .cke_buttonarrow
{
display: inline-block;
height: 18px;
width: 8px;
background-position: 2px -1004px;
background-image: url(images/sprites.png);
_background-image: url(images/sprites_ie6.png);
background-repeat: no-repeat;
cursor: default;
}
/* IE with zoom != 100% will distort the icons otherwise #4821 */
.cke_skin_office2003 .cke_browser_ie .cke_button .cke_buttonarrow
{
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(sizingMethod='scale');
}
.cke_skin_office2003 .cke_browser_ie6 .cke_button .cke_buttonarrow
{
filter: ;
}
.cke_skin_office2003 .cke_rtl .cke_button .cke_buttonarrow
{
background-position: 0 -1004px;
}
/*** Firefox 2 ***/
.cke_skin_office2003 .cke_browser_gecko18 .cke_toolbar,
.cke_skin_office2003 .cke_browser_gecko18 .cke_button a,
.cke_skin_office2003 .cke_browser_gecko18 .cke_button a.cke_off,
.cke_skin_office2003 .cke_browser_gecko18 .cke_button .cke_icon,
.cke_skin_office2003 .cke_browser_gecko18 .cke_button .cke_buttonarrow,
.cke_skin_office2003 .cke_browser_gecko18 .cke_separator,
.cke_skin_office2003 .cke_browser_gecko18 .cke_toolbar_start,
.cke_skin_office2003 .cke_browser_gecko18 .cke_toolbar_end
{
display: block;
float: left;
}
.cke_skin_office2003 .cke_browser_gecko18 .cke_hc .cke_button .cke_icon
{
display: none;
}
.cke_skin_office2003 .cke_browser_gecko18 .cke_rtl .cke_toolbar,
.cke_skin_office2003 .cke_browser_gecko18 .cke_rtl .cke_button a,
.cke_skin_office2003 .cke_browser_gecko18 .cke_rtl .cke_button a.cke_off,
.cke_skin_office2003 .cke_browser_gecko18 .cke_rtl .cke_button .cke_icon,
.cke_skin_office2003 .cke_browser_gecko18 .cke_rtl .cke_button .cke_buttonarrow,
.cke_skin_office2003 .cke_browser_gecko18 .cke_rtl .cke_separator,
.cke_skin_office2003 .cke_browser_gecko18 .cke_rtl .cke_toolbar_start,
.cke_skin_office2003 .cke_browser_gecko18 .cke_rtl .cke_toolbar_end
{
float: right;
}
.cke_skin_office2003 .cke_browser_gecko18 .cke_button .cke_label,
.cke_skin_office2003 .cke_browser_gecko18 .cke_break
{
float: left;
}
.cke_skin_office2003 .cke_browser_gecko18 .cke_rtl span.cke_inline_label
{
float: right;
}
.cke_skin_office2003 .cke_browser_gecko18 .cke_rtl .cke_button .cke_label,
.cke_skin_office2003 .cke_browser_gecko18 .cke_rtl .cke_break
{
float: right;
}
.cke_skin_office2003 .cke_browser_gecko18 .cke_separator
{
margin-top: 4px;
}
.cke_skin_office2003 .cke_browser_gecko18 .cke_button .cke_label
{
padding-top: 3px;
}
/*** IE6 ***/
.cke_skin_office2003 .cke_browser_ie .cke_rtl .cke_toolgroup,
.cke_skin_office2003 .cke_browser_ie .cke_rtl .cke_separator,
.cke_skin_office2003 .cke_browser_ie .cke_rtl .cke_toolbar_start,
.cke_skin_office2003 .cke_browser_ie .cke_rtl .cke_toolbar_end
{
float: none;
}
/*** IE8 ***/
.cke_skin_office2003 .cke_browser_ie8 .cke_toolbar,
.cke_skin_office2003 .cke_browser_ie8 .cke_toolgroup
{
vertical-align: top;
}
.cke_skin_office2003 .cke_browser_iequirks.cke_browser_ie8 .cke_toolbar,
.cke_skin_office2003 .cke_browser_iequirks.cke_browser_ie8 .cke_toolgroup
{
/* revert previous */
vertical-align: baseline;
}
/* Separator + Combo penetrate toolbar in IE quirks. (#4461) */
.cke_skin_office2003 .cke_browser_iequirks .cke_separator
{
vertical-align: text-bottom;
}
/* Fix cursor shape consistency on toolbar combos (#4031) */
.cke_skin_office2003 .cke_browser_ie .cke_rcombo,
.cke_skin_office2003 .cke_browser_ie .cke_rcombo *
{
cursor: default;
}
| 10npsite | trunk/guanli/system/ckeditor/_source/skins/office2003/toolbar.css | CSS | asf20 | 12,856 |
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
.cke_skin_office2003 .cke_editor
{
display: inline-table;
width: 100%;
}
.cke_skin_office2003 .cke_browser_webkit .cke_editor
{
display: table; /* #6684 */
}
.cke_skin_office2003 span.cke_browser_webkit,
.cke_skin_office2003 span.cke_browser_gecko18
{
display: block;
}
.cke_skin_office2003,
.cke_skin_office2003 .cke_wrapper
{
display: block;
}
.cke_skin_office2003 .cke_top,
.cke_skin_office2003 .cke_bottom,
.cke_shared .cke_skin_office2003
{
background-color: #f7f8fd;
}
.cke_skin_office2003 .cke_top
{
border-top: solid 1px #fafaf5;
border-left: solid 1px #fafaf5;
border-right: solid 1px #696969;
border-bottom: solid 2px #696969;
}
.cke_skin_office2003 .cke_rtl .cke_top
{
border-left: solid 1px #696969;
border-right: solid 1px #fafaf5;
}
.cke_skin_office2003 .cke_bottom
{
border-left: solid 1px #696969;
border-right: solid 1px #696969;
border-bottom: solid 1px #696969;
}
.cke_skin_office2003 .cke_contents
{
border: solid 1px #696969;
/* Prevent background content from penetrate through when switching between editing modes. (#4918) */
background-color: white;
}
.cke_skin_office2003 .cke_focus
{
outline: auto 5px -webkit-focus-ring-color;
}
.cke_skin_office2003 textarea.cke_source
{
font-family: 'Courier New' , Monospace;
font-size: small;
white-space: pre;
background-color: #fff;
}
.cke_skin_office2003 .cke_browser_iequirks textarea.cke_source
{
/* For IE6+Quirks only */
_white-space: normal;
}
.cke_skin_office2003 .cke_resizer
{
width: 12px;
height: 12px;
margin-top: 16px;
display: block;
float: right;
/* resizer.gif*/
background-image: url(images/sprites.png);
_background-image: url(images/sprites_ie6.png);
background-position: 0 -1088px;
background-repeat: no-repeat;
cursor: se-resize;
}
/* Adobe AIR doesn't support *-resize cursor shape. */
.cke_skin_office2003 .cke_browser_air .cke_resizer,
.cke_skin_office2003 .cke_browser_air .cke_rtl .cke_resizer
{
cursor: move;
}
.cke_skin_office2003 .cke_resizer_rtl
{
cursor: sw-resize;
/* resizer_rtl.gif*/
background-position: 0 -1115px;
float: left;
}
.cke_skin_office2003 .cke_resizer_horizontal,
.cke_skin_office2003 .cke_rtl .cke_resizer_horizontal
{
cursor: e-resize;
}
.cke_skin_office2003 .cke_resizer_vertical,
.cke_skin_office2003 .cke_rtl .cke_resizer_vertical
{
cursor: n-resize;
}
.cke_skin_office2003 .cke_maximized .cke_resizer
{
display: none;
}
.cke_skin_office2003 .cke_browser_ie6 .cke_contents textarea,
.cke_skin_office2003 .cke_browser_ie7 .cke_contents textarea
{
position: absolute;
}
/* All voice labels are not displayed. */
.cke_skin_office2003 .cke_voice_label
{
display: none;
}
.cke_skin_office2003 legend.cke_voice_label
{
display: none;
}
.cke_skin_office2003 .cke_browser_ie legend.cke_voice_label
{
position: absolute;
display: block;
width: 0;
height: 0;
overflow: hidden;
}
| 10npsite | trunk/guanli/system/ckeditor/_source/skins/office2003/mainui.css | CSS | asf20 | 3,191 |
/* Special Combo */
.cke_skin_office2003 .cke_rcombo
{
display: inline-block;
margin-left: 2px;
margin-right: 2px;
margin-top: 2px;
vertical-align: top;
}
.cke_skin_office2003 .cke_browser_ie .cke_rcombo
{
#display: inline;
}
.cke_skin_office2003 .cke_rcombopanel
{
border: 1px solid #316ac5;
-moz-border-radius-topleft: 0;
-webkit-border-top-left-radius: 0;
border-top-left-radius: 0;
/*margin-left: 1px;*/
/*_margin-left: 0;*/
}
.cke_skin_office2003 .cke_rcombo a
{
display: inline-block;
float: left;
filter: alpha(opacity=70); /* IE */
opacity: 0.70; /* Safari, Opera and Mozilla */
}
.cke_skin_office2003 .cke_rtl .cke_rcombo a
{
float: right;
}
.cke_skin_office2003 .cke_hc .cke_rcombo a
{
filter: alpha(opacity=100); /* IE */
opacity: 1.0; /* Safari, Opera and Mozilla */
}
.cke_skin_office2003 .cke_rcombo .cke_label
{
display: inline-block;
float: left;
cursor: default;
line-height: 24px;
height: 24px;
vertical-align: top;
padding-left: 4px;
padding-right: 5px;
filter: alpha(opacity=70); /* IE */
opacity: 0.70; /* Safari, Opera and Mozilla */
_background-image: url(images/sprites.png);
_background-image: url(images/sprites_ie6.png);
_background-position: 0 -962px;
_background-repeat: repeat-x;
}
.cke_skin_office2003 .cke_rtl .cke_rcombo .cke_label
{
float: right;
padding-right: 4px;
padding-left: 5px;
}
.cke_skin_office2003 .cke_hc .cke_rcombo .cke_label
{
filter: alpha(opacity=100);
opacity: 1.0;
}
.cke_skin_office2003 .cke_rcombo .cke_inline_label
{
color: #fff;
}
.cke_skin_office2003 .cke_rcombo .cke_text
{
border: 1px solid #8f8f73;
background-color: #fff;
height: 14px;
width:60px;
padding-top: 4px;
padding-bottom: 4px;
padding-left: 5px;
padding-right: 5px;
text-overflow: ellipsis;
overflow: hidden;
display: inline-block;
vertical-align: top;
cursor: default;
}
.cke_skin_office2003 .cke_ltr .cke_rcombo .cke_text
{
-moz-border-radius-topleft: 3px;
-webkit-border-top-left-radius: 3px;
border-top-left-radius: 3px;
-moz-border-radius-bottomleft: 3px;
-webkit-border-bottom-left-radius: 3px;
border-bottom-left-radius: 3px;
}
.cke_skin_office2003 .cke_rtl .cke_rcombo .cke_text
{
-moz-border-radius-topright: 3px;
-webkit-border-top-right-radius: 3px;
border-top-right-radius: 3px;
-moz-border-radius-bottomright: 3px;
-webkit-border-bottom-right-radius: 3px;
border-bottom-right-radius: 3px;
}
/* Fix for IE height */
.cke_skin_office2003 .cke_browser_iequirks .cke_rcombo .cke_text
{
height: 22px;
}
.cke_skin_office2003 .cke_rcombo .cke_openbutton
{
display: inline-block;
border-top: 1px solid #8f8f73;
border-bottom: 1px solid #8f8f73;
}
.cke_skin_office2003 .cke_rcombo .cke_openbutton .cke_icon
{
display: inline-block;
background-position: 5px -1002px;
background-image: url(images/sprites.png);
_background-image: url(images/sprites_ie6.png);
background-repeat: no-repeat;
width: 14px;
height: 22px;
}
.cke_skin_office2003 .cke_browser_iequirks .cke_rcombo .cke_openbutton .cke_icon
{
height: 20px;
}
/* IE with zoom != 100% will distort the icons otherwise #4821 */
.cke_skin_office2003 .cke_browser_ie .cke_rcombo .cke_openbutton .cke_icon
{
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(sizingMethod='scale');
}
.cke_skin_office2003 .cke_browser_ie6 .cke_rcombo .cke_openbutton .cke_icon
{
filter: ;
}
.cke_skin_office2003 .cke_hc .cke_rcombo .cke_openbutton .cke_icon
{
background: none;
filter: ;
}
.cke_skin_office2003 .cke_ltr .cke_rcombo .cke_openbutton
{
border-right: 1px solid #8f8f73;
-moz-border-radius-topright: 3px;
-webkit-border-top-right-radius: 3px;
border-top-right-radius: 3px;
-moz-border-radius-bottomright: 3px;
-webkit-border-bottom-right-radius: 3px;
border-bottom-right-radius: 3px;
}
.cke_skin_office2003 .cke_rtl .cke_rcombo .cke_openbutton
{
border-left: 1px solid #8f8f73;
-moz-border-radius-topleft: 3px;
-webkit-border-top-left-radius: 3px;
border-top-left-radius: 3px;
-moz-border-radius-bottomleft: 3px;
-webkit-border-bottom-left-radius: 3px;
border-bottom-left-radius: 3px;
}
.cke_skin_office2003 .cke_rcombo .cke_off a:hover,
.cke_skin_office2003 .cke_rcombo .cke_off a:focus,
.cke_skin_office2003 .cke_rcombo .cke_off a:active,
.cke_skin_office2003 .cke_rcombo .cke_on a
{
filter: alpha(opacity=100); /* IE */
opacity: 1; /* Safari, Opera and Mozilla */
}
.cke_skin_office2003 .cke_rcombo .cke_off a:hover .cke_text,
.cke_skin_office2003 .cke_rcombo .cke_off a:focus .cke_text,
.cke_skin_office2003 .cke_rcombo .cke_off a:active .cke_text,
.cke_skin_office2003 .cke_rcombo .cke_on .cke_text
{
border-color: #316ac5;
}
.cke_skin_office2003 .cke_rcombo .cke_off a:hover .cke_openbutton,
.cke_skin_office2003 .cke_rcombo .cke_off a:focus .cke_openbutton,
.cke_skin_office2003 .cke_rcombo .cke_off a:active .cke_openbutton,
.cke_skin_office2003 .cke_rcombo .cke_on .cke_openbutton
{
border-color: #316ac5;
background-color: #dff1ff;
}
.cke_skin_office2003 .cke_rcombo .cke_on .cke_text
{
-moz-border-radius-bottomleft: 0px;
-webkit-border-bottom-left-radius: 0px;
border-bottom-left-radius: 0px;
}
.cke_skin_office2003 .cke_rcombo .cke_on .cke_openbutton
{
-moz-border-radius-bottomright: 0px;
-webkit-border-bottom-right-radius: 0px;
border-bottom-right-radius: 0px;
}
.cke_skin_office2003 .cke_rcombo .cke_disabled .cke_label
{
filter: alpha(opacity=30); /* IE */
opacity: 0.3; /* Safari, Opera and Mozilla */
}
.cke_skin_office2003 .cke_hc .cke_rcombo .cke_disabled .cke_label
{
filter: alpha(opacity=70);
opacity: 0.7;
}
.cke_skin_office2003 .cke_rcombo .cke_disabled .cke_text,
.cke_skin_office2003 .cke_rcombo .cke_disabled .cke_openbutton
{
filter: alpha(opacity=50); /* IE */
opacity: 0.5; /* Safari, Opera and Mozilla */
}
/* IE with zoom != 100% will distort the icons otherwise #4821 */
.cke_skin_office2003 .cke_browser_ie .cke_rcombo .cke_disabled .cke_openbutton
{
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(sizingMethod='scale'), alpha(opacity=50);
}
.cke_skin_office2003 .cke_browser_ie6 .cke_rcombo .cke_disabled .cke_openbutton
{
filter: alpha(opacity=50);
}
.cke_skin_office2003 .cke_hc .cke_rcombo .cke_disabled .cke_text,
.cke_skin_office2003 .cke_hc .cke_rcombo .cke_disabled .cke_openbutton
{
filter: alpha(opacity=80);
opacity: 0.8;
}
.cke_skin_office2003 .cke_rcombo .cke_disabled .cke_text
{
color: #fff;
}
/* Firefox 2 & WebKit Section */
.cke_skin_office2003 .cke_browser_gecko18 .cke_rcombo,
.cke_skin_office2003 .cke_browser_gecko18 .cke_rcombo .cke_label,
.cke_skin_office2003 .cke_browser_gecko18 .cke_rcombo .cke_text,
.cke_skin_office2003 .cke_browser_gecko18 .cke_rcombo .cke_openbutton,
.cke_skin_office2003 .cke_browser_webkit .cke_rcombo .cke_label,
.cke_skin_office2003 .cke_browser_webkit .cke_rcombo .cke_text,
.cke_skin_office2003 .cke_browser_webkit .cke_rcombo .cke_openbutton
{
display: block;
float: left;
}
.cke_skin_office2003 .cke_browser_gecko18 .cke_rtl .cke_rcombo,
.cke_skin_office2003 .cke_browser_gecko18 .cke_rtl .cke_rcombo .cke_label,
.cke_skin_office2003 .cke_browser_gecko18 .cke_rtl .cke_rcombo .cke_text,
.cke_skin_office2003 .cke_browser_gecko18 .cke_rtl .cke_rcombo .cke_openbutton,
.cke_skin_office2003 .cke_browser_webkit .cke_rtl .cke_rcombo .cke_label,
.cke_skin_office2003 .cke_browser_webkit .cke_rtl .cke_rcombo .cke_text,
.cke_skin_office2003 .cke_browser_webkit .cke_rtl .cke_rcombo .cke_openbutton
{
float: right;
}
/*** IE ***/
.cke_skin_office2003 .cke_browser_ie .cke_rtl .cke_rcombo,
.cke_skin_office2003 .cke_browser_ie .cke_rtl .cke_rcombo a,
.cke_skin_office2003 .cke_browser_ie .cke_rtl .cke_rcombo .cke_label
{
float: none;
}
.cke_skin_office2003 .cke_rtl .cke_rcombo .cke_font .cke_text,
.cke_skin_office2003 .cke_rtl .cke_rcombo .cke_fontSize .cke_text
{
direction: ltr;
}
| 10npsite | trunk/guanli/system/ckeditor/_source/skins/office2003/richcombo.css | CSS | asf20 | 8,140 |
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
/**
* Reset and Default Values
*/
.cke_skin_office2003 *,
.cke_skin_office2003 a:hover,
.cke_skin_office2003 a:link,
.cke_skin_office2003 a:visited,
.cke_skin_office2003 a:active
{
margin: 0;
padding: 0;
border: 0;
background: transparent;
text-decoration: none;
font: normal normal normal 100% Sans-Serif;
width: auto;
height: auto;
border-collapse: collapse;
text-align: left;
vertical-align: baseline;
white-space: nowrap;
cursor: auto;
color: #000;
float: none;
font-size: 11px;
font-family: 'Microsoft Sans Serif' , Tahoma, Arial, Verdana, Sans-Serif;
}
.cke_skin_office2003 .cke_rtl *,
.cke_skin_office2003 .cke_rtl a:hover,
.cke_skin_office2003 .cke_rtl a:link,
.cke_skin_office2003 .cke_rtl a:visited,
.cke_skin_office2003 .cke_rtl a:active,
.cke_rtl .cke_skin_office2003 *,
.cke_rtl .cke_skin_office2003 a:hover,
.cke_rtl .cke_skin_office2003 a:link,
.cke_rtl .cke_skin_office2003 a:visited,
.cke_rtl .cke_skin_office2003 a:active
{
text-align: right;
}
.cke_skin_office2003 iframe
{
vertical-align: inherit; /** For IE */
}
.cke_skin_office2003 textarea
{
white-space: pre;
}
.cke_skin_office2003 .cke_browser_gecko textarea
{
cursor: text;
}
.cke_skin_office2003 .cke_browser_gecko textarea[disabled]
{
cursor: default;
}
.cke_skin_office2003 input[type="text"],
.cke_skin_office2003 input[type="password"]
{
cursor: text;
}
.cke_skin_office2003 input[type="text"][disabled],
.cke_skin_office2003 input[type="password"][disabled]
{
cursor: default;
}
.cke_skin_office2003 fieldset
{
padding: 10px;
border: 2px groove #E0DFE3;
}
| 10npsite | trunk/guanli/system/ckeditor/_source/skins/office2003/reset.css | CSS | asf20 | 1,813 |
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
/**
* Styles for the "templates" plugin.
*/
.cke_skin_office2003 .cke_tpl_list
{
border: #dcdcdc 2px solid;
background-color: #ffffff;
overflow: auto;
width: 100%;
height: 220px;
}
.cke_skin_office2003 .cke_tpl_item
{
margin: 5px;
padding: 7px;
border: #eeeeee 1px solid;
*width: 88%;
}
.cke_skin_office2003 .cke_tpl_preview
{
border-collapse: separate;
text-indent:0;
width: 100%;
}
.cke_skin_office2003 .cke_tpl_preview td
{
padding: 2px;
vertical-align: middle;
}
.cke_skin_office2003 .cke_tpl_preview .cke_tpl_preview_img
{
width: 100px;
}
.cke_skin_office2003 .cke_tpl_preview span
{
white-space: normal;
}
.cke_skin_office2003 .cke_tpl_title
{
font-weight: bold;
}
.cke_skin_office2003 .cke_tpl_list a:active .cke_tpl_item,
.cke_skin_office2003 .cke_tpl_list a:hover .cke_tpl_item,
.cke_skin_office2003 .cke_tpl_list a:focus .cke_tpl_item
{
border: #ff9933 1px solid !important;
background-color: #fffacd !important;
}
.cke_skin_office2003 .cke_tpl_list a:active *,
.cke_skin_office2003 .cke_tpl_list a:hover *,
.cke_skin_office2003 .cke_tpl_list a:focus *
{
cursor: pointer;
}
/* IE6 contextual selectors childs won't get :hover transition until,
the hover style of the link itself contains certain CSS declarations.*/
.cke_skin_office2003 .cke_browser_ie6 .cke_tpl_list a:active,
.cke_skin_office2003 .cke_browser_ie6 .cke_tpl_list a:hover,
.cke_skin_office2003 .cke_browser_ie6 .cke_tpl_list a:focus
{
background-position: 0 0;
}
.cke_skin_office2003 .cke_tpl_list a:active .cke_tpl_item,
.cke_skin_office2003 .cke_tpl_list a:hover .cke_tpl_item,
.cke_skin_office2003 .cke_tpl_list a:focus .cke_tpl_item
{
border-width: 3px;
}
.cke_skin_office2003 .cke_tpl_empty, .cke_tpl_loading
{
text-align: center;
padding: 5px;
}
| 10npsite | trunk/guanli/system/ckeditor/_source/skins/office2003/templates.css | CSS | asf20 | 1,997 |
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.skins.add( 'office2003', (function()
{
return {
editor : { css : [ 'editor.css' ] },
dialog : { css : [ 'dialog.css' ] },
separator : { canGroup: false },
templates : { css : [ 'templates.css' ] },
margins : [ 0, 14, 18, 14 ]
};
})() );
(function()
{
CKEDITOR.dialog ? dialogSetup() : CKEDITOR.on( 'dialogPluginReady', dialogSetup );
function dialogSetup()
{
CKEDITOR.dialog.on( 'resize', function( evt )
{
var data = evt.data,
width = data.width,
height = data.height,
dialog = data.dialog,
contents = dialog.parts.contents;
if ( data.skin != 'office2003' )
return;
contents.setStyles(
{
width : width + 'px',
height : height + 'px'
});
if ( !CKEDITOR.env.ie || CKEDITOR.env.ie9Compat )
return;
// Fix the size of the elements which have flexible lengths.
var fixSize = function()
{
var innerDialog = dialog.parts.dialog.getChild( [ 0, 0, 0 ] ),
body = innerDialog.getChild( 0 ),
bodyWidth = body.getSize( 'width' );
height += body.getChild( 0 ).getSize( 'height' ) + 1;
// tc
var el = innerDialog.getChild( 2 );
el.setSize( 'width', bodyWidth );
// bc
el = innerDialog.getChild( 7 );
el.setSize( 'width', bodyWidth - 28 );
// ml
el = innerDialog.getChild( 4 );
el.setSize( 'height', height );
// mr
el = innerDialog.getChild( 5 );
el.setSize( 'height', height );
};
setTimeout( fixSize, 100 );
// Ensure size is correct for RTL mode. (#4003)
if ( evt.editor.lang.dir == 'rtl' )
setTimeout( fixSize, 1000 );
});
}
})();
| 10npsite | trunk/guanli/system/ckeditor/_source/skins/office2003/skin.js | JavaScript | asf20 | 1,893 |
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
.cke_skin_office2003 .cke_contextmenu
{
padding: 2px;
}
.cke_skin_office2003 .cke_menuitem a
{
display:block;
}
.cke_skin_office2003 .cke_menuitem span
{
cursor: default;
}
.cke_skin_office2003 .cke_menuitem a:hover,
.cke_skin_office2003 .cke_menuitem a:focus,
.cke_skin_office2003 .cke_menuitem a:active
{
background-color: #8db1ff;
display:block;
}
.cke_hc .cke_menuitem a:hover,
.cke_hc .cke_menuitem a:focus,
.cke_hc .cke_menuitem a:active
{
border: 2px solid;
}
.cke_skin_office2003 .cke_menuitem .cke_icon
{
background-image: url(icons.png);
background-position: 100px;
background-repeat:no-repeat;
background-color: transparent;
width: 16px;
height: 16px;
float: left;
}
.cke_rtl .cke_skin_office2003 .cke_menuitem .cke_icon
{
background-image: url(icons_rtl.png);
}
/* IE with zoom != 100% will distort the icons otherwise #4821 */
.cke_browser_ie .cke_skin_office2003 .cke_menuitem .cke_icon
{
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(sizingMethod='scale');
}
.cke_browser_ie.cke_rtl .cke_skin_office2003 .cke_menuitem .cke_icon
{
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(sizingMethod='scale');
}
.cke_browser_ie6 .cke_skin_office2003 .cke_menuitem .cke_icon,
.cke_browser_ie .cke_skin_office2003 .cke_menuitem.cke_noalphafix .cke_icon
{
filter: ;
}
.cke_skin_office2003 .cke_menuitem .cke_disabled .cke_icon
{
filter: alpha(opacity=70); /* IE */
opacity: 0.70; /* Safari, Opera and Mozilla */
}
/* IE with zoom != 100% will distort the icons otherwise #4821 */
.cke_browser_ie .cke_skin_office2003 .cke_menuitem .cke_disabled .cke_icon
{
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(sizingMethod='scale');
}
.cke_browser_ie.cke_rtl .cke_skin_office2003 .cke_menuitem .cke_disabled .cke_icon
{
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(sizingMethod='scale');
}
.cke_browser_ie6 .cke_skin_office2003 .cke_menuitem .cke_disabled .cke_icon,
.cke_browser_ie .cke_skin_office2003 .cke_menuitem.cke_noalphafix .cke_disabled .cke_icon
{
filter: ;
}
.cke_skin_office2003 .cke_menuitem .cke_icon_wrapper
{
background-color: #f7f8fd;
border: solid 4px #f7f8fd;
width: 16px;
height: 16px;
float: left;
filter: alpha(opacity=70); /* IE */
opacity: 0.70; /* Safari, Opera and Mozilla */
clear: both;
}
.cke_rtl .cke_skin_office2003 .cke_menuitem .cke_icon_wrapper
{
float: right;
}
.cke_skin_office2003 .cke_menuitem a:hover .cke_icon_wrapper,
.cke_skin_office2003 .cke_menuitem a:focus .cke_icon_wrapper,
.cke_skin_office2003 .cke_menuitem a:active .cke_icon_wrapper
{
background-color: #9d9d9d;
border: solid 4px #9d9d9d;
filter: alpha(opacity=70); /* IE */
opacity: 0.70; /* Safari, Opera and Mozilla */
}
.cke_skin_office2003 .cke_menuitem a:hover.cke_disabled .cke_icon_wrapper,
.cke_skin_office2003 .cke_menuitem a:focus.cke_disabled .cke_icon_wrapper,
.cke_skin_office2003 .cke_menuitem a:active.cke_disabled .cke_icon_wrapper
{
background-color: #f7f8fd;
border: solid 4px #f7f8fd;
}
.cke_skin_office2003 .cke_menuitem .cke_label
{
display:block;
padding-right: 3px;
padding-top: 5px;
padding-left: 4px;
height:19px;
margin-left: 24px;
background-color: #fff;
}
/* Set these after the document has been loaded and we know the dimensions*/
.cke_skin_office2003 .cke_frameLoaded .cke_menuitem .cke_label
{
filter: alpha(opacity=70); /* IE */
opacity: 0.70; /* Safari, Opera and Mozilla */
}
.cke_rtl .cke_skin_office2003 .cke_menuitem .cke_label
{
padding-right: 0;
margin-left: 0;
padding-left: 3px;
margin-right: 28px;
}
.cke_skin_office2003 .cke_menuitem a.cke_disabled .cke_label
{
filter: alpha(opacity=30); /* IE */
opacity: 0.30; /* Safari, Opera and Mozilla */
}
.cke_skin_office2003 .cke_menuitem a:hover .cke_label,
.cke_skin_office2003 .cke_menuitem a:focus .cke_label,
.cke_skin_office2003 .cke_menuitem a:active .cke_label
{
background-color: #8db1ff;
}
.cke_skin_office2003 .cke_menuitem a.cke_disabled:hover .cke_label,
.cke_skin_office2003 .cke_menuitem a.cke_disabled:focus .cke_label,
.cke_skin_office2003 .cke_menuitem a.cke_disabled:active .cke_label
{
background-color: transparent;
}
.cke_skin_office2003 .cke_menuseparator
{
background-color: #f7f8fd;
height: 2px;
filter: alpha(opacity=70); /* IE */
opacity: 0.70; /* Safari, Opera and Mozilla */
_font-size: 0;
}
.cke_skin_office2003 .cke_menuarrow
{
/* arrowright.gif*/
background-image: url(images/sprites.png);
_background-image: url(images/sprites_ie6.png);
background-position: 0 -1071px;
background-repeat: no-repeat;
height: 5px;
width: 3px;
float: right;
margin-right: 2px;
margin-top: 3px;
}
.cke_rtl .cke_skin_office2003 .cke_menuarrow
{
float: left;
margin-right: 0;
margin-left: 2px;
/* arrowleft.gif*/
background-position: 0 -1050px;
}
.cke_skin_office2003 .cke_menuarrow span
{
display: none;
}
.cke_hc .cke_skin_office2003 .cke_menuarrow
{
width: auto;
margin-top: 0;
}
.cke_hc .cke_skin_office2003 .cke_menuarrow span
{
display: inline;
}
/* #3766 In the context menu, long labels with second level menu get wrapped */
.cke_browser_ie.cke_ltr .cke_skin_office2003 .cke_menuarrow
{
position: absolute;
right: 2px;
}
.cke_browser_ie.cke_rtl .cke_skin_office2003 .cke_menuarrow
{
position: absolute;
left: 2px;
}
/* END #3766 */
| 10npsite | trunk/guanli/system/ckeditor/_source/skins/office2003/menu.css | CSS | asf20 | 5,670 |
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
/**
* @fileOverview Contains the second part of the {@link CKEDITOR} object
* definition, which defines the basic editor features to be available in
* the root ckeditor_basic.js file.
*/
if ( CKEDITOR.status == 'unloaded' )
{
(function()
{
CKEDITOR.event.implementOn( CKEDITOR );
/**
* Forces the full CKEditor core code, in the case only the basic code has been
* loaded (ckeditor_basic.js). This method self-destroys (becomes undefined) in
* the first call or as soon as the full code is available.
* @example
* // Check if the full core code has been loaded and load it.
* if ( CKEDITOR.loadFullCore )
* <b>CKEDITOR.loadFullCore()</b>;
*/
CKEDITOR.loadFullCore = function()
{
// If not the basic code is not ready it, just mark it to be loaded.
if ( CKEDITOR.status != 'basic_ready' )
{
CKEDITOR.loadFullCore._load = 1;
return;
}
// Destroy this function.
delete CKEDITOR.loadFullCore;
// Append the script to the head.
var script = document.createElement( 'script' );
script.type = 'text/javascript';
script.src = CKEDITOR.basePath + 'ckeditor.js';
document.getElementsByTagName( 'head' )[0].appendChild( script );
};
/**
* The time to wait (in seconds) to load the full editor code after the
* page load, if the "ckeditor_basic" file is used. If set to zero, the
* editor is loaded on demand, as soon as an instance is created.
*
* This value must be set on the page before the page load completion.
* @type Number
* @default 0 (zero)
* @example
* // Loads the full source after five seconds.
* CKEDITOR.loadFullCoreTimeout = 5;
*/
CKEDITOR.loadFullCoreTimeout = 0;
/**
* The class name used to identify <textarea> elements to be replace
* by CKEditor instances.
* @type String
* @default 'ckeditor'
* @example
* <b>CKEDITOR.replaceClass</b> = 'rich_editor';
*/
CKEDITOR.replaceClass = 'ckeditor';
/**
* Enables the replacement of all textareas with class name matching
* {@link CKEDITOR.replaceClass}.
* @type Boolean
* @default true
* @example
* // Disable the auto-replace feature.
* <b>CKEDITOR.replaceByClassEnabled</b> = false;
*/
CKEDITOR.replaceByClassEnabled = 1;
var createInstance = function( elementOrIdOrName, config, creationFunction, data )
{
if ( CKEDITOR.env.isCompatible )
{
// Load the full core.
if ( CKEDITOR.loadFullCore )
CKEDITOR.loadFullCore();
var editor = creationFunction( elementOrIdOrName, config, data );
CKEDITOR.add( editor );
return editor;
}
return null;
};
/**
* Replaces a <textarea> or a DOM element (DIV) with a CKEditor
* instance. For textareas, the initial value in the editor will be the
* textarea value. For DOM elements, their innerHTML will be used
* instead. We recommend using TEXTAREA and DIV elements only.
* @param {Object|String} elementOrIdOrName The DOM element (textarea), its
* ID or name.
* @param {Object} [config] The specific configurations to apply to this
* editor instance. Configurations set here will override global CKEditor
* settings.
* @returns {CKEDITOR.editor} The editor instance created.
* @example
* <textarea id="myfield" name="myfield"><:/textarea>
* ...
* <b>CKEDITOR.replace( 'myfield' )</b>;
* @example
* var textarea = document.body.appendChild( document.createElement( 'textarea' ) );
* <b>CKEDITOR.replace( textarea )</b>;
*/
CKEDITOR.replace = function( elementOrIdOrName, config )
{
return createInstance( elementOrIdOrName, config, CKEDITOR.editor.replace );
};
/**
* Creates a new editor instance inside a specific DOM element.
* @param {Object|String} elementOrId The DOM element or its ID.
* @param {Object} [config] The specific configurations to apply to this
* editor instance. Configurations set here will override global CKEditor
* settings.
* @param {String} [data] Since 3.3. Initial value for the instance.
* @returns {CKEDITOR.editor} The editor instance created.
* @example
* <div id="editorSpace"><:/div>
* ...
* <b>CKEDITOR.appendTo( 'editorSpace' )</b>;
*/
CKEDITOR.appendTo = function( elementOrId, config, data )
{
return createInstance( elementOrId, config, CKEDITOR.editor.appendTo, data );
};
// Documented at ckeditor.js.
CKEDITOR.add = function( editor )
{
// For now, just put the editor in the pending list. It will be
// processed as soon as the full code gets loaded.
var pending = this._.pending || ( this._.pending = [] );
pending.push( editor );
};
/**
* Replace all <textarea> elements available in the document with
* editor instances.
* @example
* // Replace all <textarea> elements in the page.
* CKEDITOR.replaceAll();
* @example
* // Replace all <textarea class="myClassName"> elements in the page.
* CKEDITOR.replaceAll( 'myClassName' );
* @example
* // Selectively replace <textarea> elements, based on custom assertions.
* CKEDITOR.replaceAll( function( textarea, config )
* {
* // Custom code to evaluate the replace, returning false
* // if it must not be done.
* // It also passes the "config" parameter, so the
* // developer can customize the instance.
* } );
*/
CKEDITOR.replaceAll = function()
{
var textareas = document.getElementsByTagName( 'textarea' );
for ( var i = 0 ; i < textareas.length ; i++ )
{
var config = null,
textarea = textareas[i];
// The "name" and/or "id" attribute must exist.
if ( !textarea.name && !textarea.id )
continue;
if ( typeof arguments[0] == 'string' )
{
// The textarea class name could be passed as the function
// parameter.
var classRegex = new RegExp( '(?:^|\\s)' + arguments[0] + '(?:$|\\s)' );
if ( !classRegex.test( textarea.className ) )
continue;
}
else if ( typeof arguments[0] == 'function' )
{
// An assertion function could be passed as the function parameter.
// It must explicitly return "false" to ignore a specific <textarea>.
config = {};
if ( arguments[0]( textarea, config ) === false )
continue;
}
this.replace( textarea, config );
}
};
(function()
{
var onload = function()
{
var loadFullCore = CKEDITOR.loadFullCore,
loadFullCoreTimeout = CKEDITOR.loadFullCoreTimeout;
// Replace all textareas with the default class name.
if ( CKEDITOR.replaceByClassEnabled )
CKEDITOR.replaceAll( CKEDITOR.replaceClass );
CKEDITOR.status = 'basic_ready';
if ( loadFullCore && loadFullCore._load )
loadFullCore();
else if ( loadFullCoreTimeout )
{
setTimeout( function()
{
if ( CKEDITOR.loadFullCore )
CKEDITOR.loadFullCore();
}
, loadFullCoreTimeout * 1000 );
}
};
if ( window.addEventListener )
window.addEventListener( 'load', onload, false );
else if ( window.attachEvent )
window.attachEvent( 'onload', onload );
})();
CKEDITOR.status = 'basic_loaded';
})();
}
| 10npsite | trunk/guanli/system/ckeditor/_source/core/ckeditor_basic.js | JavaScript | asf20 | 7,605 |
/*
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.dtd} object, which holds the DTD
* mapping for XHTML 1.0 Transitional. This file was automatically
* generated from the file: xhtml1-transitional.dtd.
*/
/**
* @namespace Holds and object representation of the HTML DTD to be used by the
* editor in its internal operations.<br />
* <br />
* Each element in the DTD is represented by a property in this object. Each
* property contains the list of elements that can be contained by the element.
* Text is represented by the "#" property.<br />
* <br />
* Several special grouping properties are also available. Their names start
* with the "$" character.
* @example
* // Check if "div" can be contained in a "p" element.
* alert( !!CKEDITOR.dtd[ 'p' ][ 'div' ] ); "false"
* @example
* // Check if "p" can be contained in a "div" element.
* alert( !!CKEDITOR.dtd[ 'div' ][ 'p' ] ); "true"
* @example
* // Check if "p" is a block element.
* alert( !!CKEDITOR.dtd.$block[ 'p' ] ); "true"
*/
CKEDITOR.dtd = (function()
{
var X = CKEDITOR.tools.extend,
A = {isindex:1,fieldset:1},
B = {input:1,button:1,select:1,textarea:1,label:1},
C = X({a:1},B),
D = X({iframe:1},C),
E = {hr:1,ul:1,menu:1,div:1,section:1,header:1,footer:1,nav:1,article:1,aside:1,figure:1,dialog:1,hgroup:1,mark:1,time:1,meter:1,command:1,keygen:1,output:1,progress:1,audio:1,video:1,details:1,datagrid:1,datalist:1,blockquote:1,noscript:1,table:1,center:1,address:1,dir:1,pre:1,h5:1,dl:1,h4:1,noframes:1,h6:1,ol:1,h1:1,h3:1,h2:1},
F = {ins:1,del:1,script:1,style:1},
G = X({b:1,acronym:1,bdo:1,'var':1,'#':1,abbr:1,code:1,br:1,i:1,cite:1,kbd:1,u:1,strike:1,s:1,tt:1,strong:1,q:1,samp:1,em:1,dfn:1,span:1,wbr:1},F),
H = X({sub:1,img:1,object:1,sup:1,basefont:1,map:1,applet:1,font:1,big:1,small:1,mark:1},G),
I = X({p:1},H),
J = X({iframe:1},H,B),
K = {img:1,noscript:1,br:1,kbd:1,center:1,button:1,basefont:1,h5:1,h4:1,samp:1,h6:1,ol:1,h1:1,h3:1,h2:1,form:1,font:1,'#':1,select:1,menu:1,ins:1,abbr:1,label:1,code:1,table:1,script:1,cite:1,input:1,iframe:1,strong:1,textarea:1,noframes:1,big:1,small:1,span:1,hr:1,sub:1,bdo:1,'var':1,div:1,section:1,header:1,footer:1,nav:1,article:1,aside:1,figure:1,dialog:1,hgroup:1,mark:1,time:1,meter:1,menu:1,command:1,keygen:1,output:1,progress:1,audio:1,video:1,details:1,datagrid:1,datalist:1,object:1,sup:1,strike:1,dir:1,map:1,dl:1,applet:1,del:1,isindex:1,fieldset:1,ul:1,b:1,acronym:1,a:1,blockquote:1,i:1,u:1,s:1,tt:1,address:1,q:1,pre:1,p:1,em:1,dfn:1},
L = X({a:1},J),
M = {tr:1},
N = {'#':1},
O = X({param:1},K),
P = X({form:1},A,D,E,I),
Q = {li:1},
R = {style:1,script:1},
S = {base:1,link:1,meta:1,title:1},
T = X(S,R),
U = {head:1,body:1},
V = {html:1};
var block = {address:1,blockquote:1,center:1,dir:1,div:1,section:1,header:1,footer:1,nav:1,article:1,aside:1,figure:1,dialog:1,hgroup:1,time:1,meter:1,menu:1,command:1,keygen:1,output:1,progress:1,audio:1,video:1,details:1,datagrid:1,datalist:1,dl:1,fieldset:1,form:1,h1:1,h2:1,h3:1,h4:1,h5:1,h6:1,hr:1,isindex:1,noframes:1,ol:1,p:1,pre:1,table:1,ul:1};
return /** @lends CKEDITOR.dtd */ {
// The "$" items have been added manually.
// List of elements living outside body.
$nonBodyContent: X(V,U,S),
/**
* List of block elements, like "p" or "div".
* @type Object
* @example
*/
$block : block,
/**
* List of block limit elements.
* @type Object
* @example
*/
$blockLimit : { body:1,div:1,section:1,header:1,footer:1,nav:1,article:1,aside:1,figure:1,dialog:1,hgroup:1,time:1,meter:1,menu:1,command:1,keygen:1,output:1,progress:1,audio:1,video:1,details:1,datagrid:1,datalist:1,td:1,th:1,caption:1,form:1 },
/**
* List of inline (<span> like) elements.
*/
$inline : L, // Just like span.
/**
* list of elements that can be children at <body>.
*/
$body : X({script:1,style:1}, block),
$cdata : {script:1,style:1},
/**
* List of empty (self-closing) elements, like "br" or "img".
* @type Object
* @example
*/
$empty : {area:1,base:1,br:1,col:1,hr:1,img:1,input:1,link:1,meta:1,param:1,wbr:1},
/**
* List of list item elements, like "li" or "dd".
* @type Object
* @example
*/
$listItem : {dd:1,dt:1,li:1},
/**
* List of list root elements.
* @type Object
* @example
*/
$list: {ul:1,ol:1,dl:1},
/**
* Elements that accept text nodes, but are not possible to edit into
* the browser.
* @type Object
* @example
*/
$nonEditable : {applet:1,button:1,embed:1,iframe:1,map:1,object:1,option:1,script:1,textarea:1,param:1,audio:1,video:1},
/**
* List of block tags with each one a singleton element lives in the corresponding structure for description.
*/
$captionBlock : { caption:1, legend:1 },
/**
* List of elements that can be ignored if empty, like "b" or "span".
* @type Object
* @example
*/
$removeEmpty : {abbr:1,acronym:1,address:1,b:1,bdo:1,big:1,cite:1,code:1,del:1,dfn:1,em:1,font:1,i:1,ins:1,label:1,kbd:1,q:1,s:1,samp:1,small:1,span:1,strike:1,strong:1,sub:1,sup:1,tt:1,u:1,'var':1,mark:1},
/**
* List of elements that have tabindex set to zero by default.
* @type Object
* @example
*/
$tabIndex : {a:1,area:1,button:1,input:1,object:1,select:1,textarea:1},
/**
* List of elements used inside the "table" element, like "tbody" or "td".
* @type Object
* @example
*/
$tableContent : {caption:1,col:1,colgroup:1,tbody:1,td:1,tfoot:1,th:1,thead:1,tr:1},
html: U,
head: T,
style: N,
script: N,
body: P,
base: {},
link: {},
meta: {},
title: N,
col : {},
tr : {td:1,th:1},
img : {},
colgroup : {col:1},
noscript : P,
td : P,
br : {},
wbr : {},
th : P,
center : P,
kbd : L,
button : X(I,E),
basefont : {},
h5 : L,
h4 : L,
samp : L,
h6 : L,
ol : Q,
h1 : L,
h3 : L,
option : N,
h2 : L,
form : X(A,D,E,I),
select : {optgroup:1,option:1},
font : L,
ins : L,
menu : Q,
abbr : L,
label : L,
table : {thead:1,col:1,tbody:1,tr:1,colgroup:1,caption:1,tfoot:1},
code : L,
tfoot : M,
cite : L,
li : P,
input : {},
iframe : P,
strong : L,
textarea : N,
noframes : P,
big : L,
small : L,
span : L,
hr : {},
dt : L,
sub : L,
optgroup : {option:1},
param : {},
bdo : L,
'var' : L,
div : P,
object : O,
sup : L,
dd : P,
strike : L,
area : {},
dir : Q,
map : X({area:1,form:1,p:1},A,F,E),
applet : O,
dl : {dt:1,dd:1},
del : L,
isindex : {},
fieldset : X({legend:1},K),
thead : M,
ul : Q,
acronym : L,
b : L,
a : J,
blockquote : P,
caption : L,
i : L,
u : L,
tbody : M,
s : L,
address : X(D,I),
tt : L,
legend : L,
q : L,
pre : X(G,C),
p : L,
em : L,
dfn : L,
//HTML5
section : P,
header : P,
footer : P,
nav : P,
article : P,
aside : P,
figure: P,
dialog : P,
hgroup : P,
mark : L,
time : L,
meter : L,
menu : L,
command : L,
keygen : L,
output : L,
progress : O,
audio : O,
video : O,
details : O,
datagrid : O,
datalist : O
};
})();
// PACKAGER_RENAME( CKEDITOR.dtd )
| 10npsite | trunk/guanli/system/ckeditor/_source/core/dtd.js | JavaScript | asf20 | 8,098 |
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
/**
* Creates a {@link CKEDITOR.htmlParser} class instance.
* @class Provides an "event like" system to parse strings of HTML data.
* @example
* var parser = new CKEDITOR.htmlParser();
* parser.onTagOpen = function( tagName, attributes, selfClosing )
* {
* alert( tagName );
* };
* parser.parse( '<p>Some <b>text</b>.</p>' );
*/
CKEDITOR.htmlParser = function()
{
this._ =
{
htmlPartsRegex : new RegExp( '<(?:(?:\\/([^>]+)>)|(?:!--([\\S|\\s]*?)-->)|(?:([^\\s>]+)\\s*((?:(?:"[^"]*")|(?:\'[^\']*\')|[^"\'>])*)\\/?>))', 'g' )
};
};
(function()
{
var attribsRegex = /([\w\-:.]+)(?:(?:\s*=\s*(?:(?:"([^"]*)")|(?:'([^']*)')|([^\s>]+)))|(?=\s|$))/g,
emptyAttribs = {checked:1,compact:1,declare:1,defer:1,disabled:1,ismap:1,multiple:1,nohref:1,noresize:1,noshade:1,nowrap:1,readonly:1,selected:1};
CKEDITOR.htmlParser.prototype =
{
/**
* Function to be fired when a tag opener is found. This function
* should be overriden when using this class.
* @param {String} tagName The tag name. The name is guarantted to be
* lowercased.
* @param {Object} attributes An object containing all tag attributes. Each
* property in this object represent and attribute name and its
* value is the attribute value.
* @param {Boolean} selfClosing true if the tag closes itself, false if the
* tag doesn't.
* @example
* var parser = new CKEDITOR.htmlParser();
* parser.onTagOpen = function( tagName, attributes, selfClosing )
* {
* alert( tagName ); // e.g. "b"
* });
* parser.parse( "<!-- Example --><b>Hello</b>" );
*/
onTagOpen : function() {},
/**
* Function to be fired when a tag closer is found. This function
* should be overriden when using this class.
* @param {String} tagName The tag name. The name is guarantted to be
* lowercased.
* @example
* var parser = new CKEDITOR.htmlParser();
* parser.onTagClose = function( tagName )
* {
* alert( tagName ); // e.g. "b"
* });
* parser.parse( "<!-- Example --><b>Hello</b>" );
*/
onTagClose : function() {},
/**
* Function to be fired when text is found. This function
* should be overriden when using this class.
* @param {String} text The text found.
* @example
* var parser = new CKEDITOR.htmlParser();
* parser.onText = function( text )
* {
* alert( text ); // e.g. "Hello"
* });
* parser.parse( "<!-- Example --><b>Hello</b>" );
*/
onText : function() {},
/**
* Function to be fired when CDATA section is found. This function
* should be overriden when using this class.
* @param {String} cdata The CDATA been found.
* @example
* var parser = new CKEDITOR.htmlParser();
* parser.onCDATA = function( cdata )
* {
* alert( cdata ); // e.g. "var hello;"
* });
* parser.parse( "<script>var hello;</script>" );
*/
onCDATA : function() {},
/**
* Function to be fired when a commend is found. This function
* should be overriden when using this class.
* @param {String} comment The comment text.
* @example
* var parser = new CKEDITOR.htmlParser();
* parser.onComment = function( comment )
* {
* alert( comment ); // e.g. " Example "
* });
* parser.parse( "<!-- Example --><b>Hello</b>" );
*/
onComment : function() {},
/**
* Parses text, looking for HTML tokens, like tag openers or closers,
* or comments. This function fires the onTagOpen, onTagClose, onText
* and onComment function during its execution.
* @param {String} html The HTML to be parsed.
* @example
* var parser = new CKEDITOR.htmlParser();
* // The onTagOpen, onTagClose, onText and onComment should be overriden
* // at this point.
* parser.parse( "<!-- Example --><b>Hello</b>" );
*/
parse : function( html )
{
var parts,
tagName,
nextIndex = 0,
cdata; // The collected data inside a CDATA section.
while ( ( parts = this._.htmlPartsRegex.exec( html ) ) )
{
var tagIndex = parts.index;
if ( tagIndex > nextIndex )
{
var text = html.substring( nextIndex, tagIndex );
if ( cdata )
cdata.push( text );
else
this.onText( text );
}
nextIndex = this._.htmlPartsRegex.lastIndex;
/*
"parts" is an array with the following items:
0 : The entire match for opening/closing tags and comments.
1 : Group filled with the tag name for closing tags.
2 : Group filled with the comment text.
3 : Group filled with the tag name for opening tags.
4 : Group filled with the attributes part of opening tags.
*/
// Closing tag
if ( ( tagName = parts[ 1 ] ) )
{
tagName = tagName.toLowerCase();
if ( cdata && CKEDITOR.dtd.$cdata[ tagName ] )
{
// Send the CDATA data.
this.onCDATA( cdata.join('') );
cdata = null;
}
if ( !cdata )
{
this.onTagClose( tagName );
continue;
}
}
// If CDATA is enabled, just save the raw match.
if ( cdata )
{
cdata.push( parts[ 0 ] );
continue;
}
// Opening tag
if ( ( tagName = parts[ 3 ] ) )
{
tagName = tagName.toLowerCase();
// There are some tag names that can break things, so let's
// simply ignore them when parsing. (#5224)
if ( /="/.test( tagName ) )
continue;
var attribs = {},
attribMatch,
attribsPart = parts[ 4 ],
selfClosing = !!( attribsPart && attribsPart.charAt( attribsPart.length - 1 ) == '/' );
if ( attribsPart )
{
while ( ( attribMatch = attribsRegex.exec( attribsPart ) ) )
{
var attName = attribMatch[1].toLowerCase(),
attValue = attribMatch[2] || attribMatch[3] || attribMatch[4] || '';
if ( !attValue && emptyAttribs[ attName ] )
attribs[ attName ] = attName;
else
attribs[ attName ] = attValue;
}
}
this.onTagOpen( tagName, attribs, selfClosing );
// Open CDATA mode when finding the appropriate tags.
if ( !cdata && CKEDITOR.dtd.$cdata[ tagName ] )
cdata = [];
continue;
}
// Comment
if ( ( tagName = parts[ 2 ] ) )
this.onComment( tagName );
}
if ( html.length > nextIndex )
this.onText( html.substring( nextIndex, html.length ) );
}
};
})();
| 10npsite | trunk/guanli/system/ckeditor/_source/core/htmlparser.js | JavaScript | asf20 | 6,878 |
/*
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.resourceManager} class, which is
* the base for resource managers, like plugins and themes.
*/
/**
* Base class for resource managers, like plugins and themes. This class is not
* intended to be used out of the CKEditor core code.
* @param {String} basePath The path for the resources folder.
* @param {String} fileName The name used for resource files.
* @namespace
* @example
*/
CKEDITOR.resourceManager = function( basePath, fileName )
{
/**
* The base directory containing all resources.
* @name CKEDITOR.resourceManager.prototype.basePath
* @type String
* @example
*/
this.basePath = basePath;
/**
* The name used for resource files.
* @name CKEDITOR.resourceManager.prototype.fileName
* @type String
* @example
*/
this.fileName = fileName;
/**
* Contains references to all resources that have already been registered
* with {@link #add}.
* @name CKEDITOR.resourceManager.prototype.registered
* @type Object
* @example
*/
this.registered = {};
/**
* Contains references to all resources that have already been loaded
* with {@link #load}.
* @name CKEDITOR.resourceManager.prototype.loaded
* @type Object
* @example
*/
this.loaded = {};
/**
* Contains references to all resources that have already been registered
* with {@link #addExternal}.
* @name CKEDITOR.resourceManager.prototype.externals
* @type Object
* @example
*/
this.externals = {};
/**
* @private
*/
this._ =
{
// List of callbacks waiting for plugins to be loaded.
waitingList : {}
};
};
CKEDITOR.resourceManager.prototype =
{
/**
* Registers a resource.
* @param {String} name The resource name.
* @param {Object} [definition] The resource definition.
* @example
* CKEDITOR.plugins.add( 'sample', { ... plugin definition ... } );
* @see CKEDITOR.pluginDefinition
*/
add : function( name, definition )
{
if ( this.registered[ name ] )
throw '[CKEDITOR.resourceManager.add] The resource name "' + name + '" is already registered.';
CKEDITOR.fire( name + CKEDITOR.tools.capitalize( this.fileName ) + 'Ready',
this.registered[ name ] = definition || {} );
},
/**
* Gets the definition of a specific resource.
* @param {String} name The resource name.
* @type Object
* @example
* var definition = <b>CKEDITOR.plugins.get( 'sample' )</b>;
*/
get : function( name )
{
return this.registered[ name ] || null;
},
/**
* Get the folder path for a specific loaded resource.
* @param {String} name The resource name.
* @type String
* @example
* alert( <b>CKEDITOR.plugins.getPath( 'sample' )</b> ); // "<editor path>/plugins/sample/"
*/
getPath : function( name )
{
var external = this.externals[ name ];
return CKEDITOR.getUrl( ( external && external.dir ) || this.basePath + name + '/' );
},
/**
* Get the file path for a specific loaded resource.
* @param {String} name The resource name.
* @type String
* @example
* alert( <b>CKEDITOR.plugins.getFilePath( 'sample' )</b> ); // "<editor path>/plugins/sample/plugin.js"
*/
getFilePath : function( name )
{
var external = this.externals[ name ];
return CKEDITOR.getUrl(
this.getPath( name ) +
( ( external && ( typeof external.file == 'string' ) ) ? external.file : this.fileName + '.js' ) );
},
/**
* Registers one or more resources to be loaded from an external path
* instead of the core base path.
* @param {String} names The resource names, separated by commas.
* @param {String} path The path of the folder containing the resource.
* @param {String} [fileName] The resource file name. If not provided, the
* default name is used; If provided with a empty string, will implicitly indicates that {@param path}
* is already the full path.
* @example
* // Loads a plugin from '/myplugin/samples/plugin.js'.
* CKEDITOR.plugins.addExternal( 'sample', '/myplugins/sample/' );
* @example
* // Loads a plugin from '/myplugin/samples/my_plugin.js'.
* CKEDITOR.plugins.addExternal( 'sample', '/myplugins/sample/', 'my_plugin.js' );
* @example
* // Loads a plugin from '/myplugin/samples/my_plugin.js'.
* CKEDITOR.plugins.addExternal( 'sample', '/myplugins/sample/my_plugin.js', '' );
*/
addExternal : function( names, path, fileName )
{
names = names.split( ',' );
for ( var i = 0 ; i < names.length ; i++ )
{
var name = names[ i ];
this.externals[ name ] =
{
dir : path,
file : fileName
};
}
},
/**
* Loads one or more resources.
* @param {String|Array} name The name of the resource to load. It may be a
* string with a single resource name, or an array with several names.
* @param {Function} callback A function to be called when all resources
* are loaded. The callback will receive an array containing all
* loaded names.
* @param {Object} [scope] The scope object to be used for the callback
* call.
* @example
* <b>CKEDITOR.plugins.load</b>( 'myplugin', function( plugins )
* {
* alert( plugins['myplugin'] ); // "object"
* });
*/
load : function( names, callback, scope )
{
// Ensure that we have an array of names.
if ( !CKEDITOR.tools.isArray( names ) )
names = names ? [ names ] : [];
var loaded = this.loaded,
registered = this.registered,
urls = [],
urlsNames = {},
resources = {};
// Loop through all names.
for ( var i = 0 ; i < names.length ; i++ )
{
var name = names[ i ];
if ( !name )
continue;
// If not available yet.
if ( !loaded[ name ] && !registered[ name ] )
{
var url = this.getFilePath( name );
urls.push( url );
if ( !( url in urlsNames ) )
urlsNames[ url ] = [];
urlsNames[ url ].push( name );
}
else
resources[ name ] = this.get( name );
}
CKEDITOR.scriptLoader.load( urls, function( completed, failed )
{
if ( failed.length )
{
throw '[CKEDITOR.resourceManager.load] Resource name "' + urlsNames[ failed[ 0 ] ].join( ',' )
+ '" was not found at "' + failed[ 0 ] + '".';
}
for ( var i = 0 ; i < completed.length ; i++ )
{
var nameList = urlsNames[ completed[ i ] ];
for ( var j = 0 ; j < nameList.length ; j++ )
{
var name = nameList[ j ];
resources[ name ] = this.get( name );
loaded[ name ] = 1;
}
}
callback.call( scope, resources );
}
, this);
}
};
| 10npsite | trunk/guanli/system/ckeditor/_source/core/resourcemanager.js | JavaScript | asf20 | 6,832 |
/*
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.event} class, which serves as the
* base for classes and objects that require event handling features.
*/
if ( !CKEDITOR.event )
{
/**
* Creates an event class instance. This constructor is rearely used, being
* the {@link #.implementOn} function used in class prototypes directly
* instead.
* @class This is a base class for classes and objects that require event
* handling features.<br />
* <br />
* Do not confuse this class with {@link CKEDITOR.dom.event} which is
* instead used for DOM events. The CKEDITOR.event class implements the
* internal event system used by the CKEditor to fire API related events.
* @example
*/
CKEDITOR.event = function()
{};
/**
* Implements the {@link CKEDITOR.event} features in an object.
* @param {Object} targetObject The object into which implement the features.
* @example
* var myObject = { message : 'Example' };
* <b>CKEDITOR.event.implementOn( myObject }</b>;
* myObject.on( 'testEvent', function()
* {
* alert( this.message ); // "Example"
* });
* myObject.fire( 'testEvent' );
*/
CKEDITOR.event.implementOn = function( targetObject )
{
var eventProto = CKEDITOR.event.prototype;
for ( var prop in eventProto )
{
if ( targetObject[ prop ] == undefined )
targetObject[ prop ] = eventProto[ prop ];
}
};
CKEDITOR.event.prototype = (function()
{
// Returns the private events object for a given object.
var getPrivate = function( obj )
{
var _ = ( obj.getPrivate && obj.getPrivate() ) || obj._ || ( obj._ = {} );
return _.events || ( _.events = {} );
};
var eventEntry = function( eventName )
{
this.name = eventName;
this.listeners = [];
};
eventEntry.prototype =
{
// Get the listener index for a specified function.
// Returns -1 if not found.
getListenerIndex : function( listenerFunction )
{
for ( var i = 0, listeners = this.listeners ; i < listeners.length ; i++ )
{
if ( listeners[i].fn == listenerFunction )
return i;
}
return -1;
}
};
return /** @lends CKEDITOR.event.prototype */ {
/**
* Registers a listener to a specific event in the current object.
* @param {String} eventName The event name to which listen.
* @param {Function} listenerFunction The function listening to the
* event. A single {@link CKEDITOR.eventInfo} object instanced
* is passed to this function containing all the event data.
* @param {Object} [scopeObj] The object used to scope the listener
* call (the this object. If omitted, the current object is used.
* @param {Object} [listenerData] Data to be sent as the
* {@link CKEDITOR.eventInfo#listenerData} when calling the
* listener.
* @param {Number} [priority] The listener priority. Lower priority
* listeners are called first. Listeners with the same priority
* value are called in registration order. Defaults to 10.
* @example
* someObject.on( 'someEvent', function()
* {
* alert( this == someObject ); // "true"
* });
* @example
* someObject.on( 'someEvent', function()
* {
* alert( this == anotherObject ); // "true"
* }
* , anotherObject );
* @example
* someObject.on( 'someEvent', function( event )
* {
* alert( event.listenerData ); // "Example"
* }
* , null, 'Example' );
* @example
* someObject.on( 'someEvent', function() { ... } ); // 2nd called
* someObject.on( 'someEvent', function() { ... }, null, null, 100 ); // 3rd called
* someObject.on( 'someEvent', function() { ... }, null, null, 1 ); // 1st called
*/
on : function( eventName, listenerFunction, scopeObj, listenerData, priority )
{
// Get the event entry (create it if needed).
var events = getPrivate( this ),
event = events[ eventName ] || ( events[ eventName ] = new eventEntry( eventName ) );
if ( event.getListenerIndex( listenerFunction ) < 0 )
{
// Get the listeners.
var listeners = event.listeners;
// Fill the scope.
if ( !scopeObj )
scopeObj = this;
// Default the priority, if needed.
if ( isNaN( priority ) )
priority = 10;
var me = this;
// Create the function to be fired for this listener.
var listenerFirer = function( editor, publisherData, stopFn, cancelFn )
{
var ev =
{
name : eventName,
sender : this,
editor : editor,
data : publisherData,
listenerData : listenerData,
stop : stopFn,
cancel : cancelFn,
removeListener : function()
{
me.removeListener( eventName, listenerFunction );
}
};
listenerFunction.call( scopeObj, ev );
return ev.data;
};
listenerFirer.fn = listenerFunction;
listenerFirer.priority = priority;
// Search for the right position for this new listener, based on its
// priority.
for ( var i = listeners.length - 1 ; i >= 0 ; i-- )
{
// Find the item which should be before the new one.
if ( listeners[ i ].priority <= priority )
{
// Insert the listener in the array.
listeners.splice( i + 1, 0, listenerFirer );
return;
}
}
// If no position has been found (or zero length), put it in
// the front of list.
listeners.unshift( listenerFirer );
}
},
/**
* Fires an specific event in the object. All registered listeners are
* called at this point.
* @function
* @param {String} eventName The event name to fire.
* @param {Object} [data] Data to be sent as the
* {@link CKEDITOR.eventInfo#data} when calling the
* listeners.
* @param {CKEDITOR.editor} [editor] The editor instance to send as the
* {@link CKEDITOR.eventInfo#editor} when calling the
* listener.
* @returns {Boolean|Object} A booloan indicating that the event is to be
* canceled, or data returned by one of the listeners.
* @example
* someObject.on( 'someEvent', function() { ... } );
* someObject.on( 'someEvent', function() { ... } );
* <b>someObject.fire( 'someEvent' )</b>; // both listeners are called
* @example
* someObject.on( 'someEvent', function( event )
* {
* alert( event.data ); // "Example"
* });
* <b>someObject.fire( 'someEvent', 'Example' )</b>;
*/
fire : (function()
{
// Create the function that marks the event as stopped.
var stopped = false;
var stopEvent = function()
{
stopped = true;
};
// Create the function that marks the event as canceled.
var canceled = false;
var cancelEvent = function()
{
canceled = true;
};
return function( eventName, data, editor )
{
// Get the event entry.
var event = getPrivate( this )[ eventName ];
// Save the previous stopped and cancelled states. We may
// be nesting fire() calls.
var previousStopped = stopped,
previousCancelled = canceled;
// Reset the stopped and canceled flags.
stopped = canceled = false;
if ( event )
{
var listeners = event.listeners;
if ( listeners.length )
{
// As some listeners may remove themselves from the
// event, the original array length is dinamic. So,
// let's make a copy of all listeners, so we are
// sure we'll call all of them.
listeners = listeners.slice( 0 );
// Loop through all listeners.
for ( var i = 0 ; i < listeners.length ; i++ )
{
// Call the listener, passing the event data.
var retData = listeners[i].call( this, editor, data, stopEvent, cancelEvent );
if ( typeof retData != 'undefined' )
data = retData;
// No further calls is stopped or canceled.
if ( stopped || canceled )
break;
}
}
}
var ret = canceled || ( typeof data == 'undefined' ? false : data );
// Restore the previous stopped and canceled states.
stopped = previousStopped;
canceled = previousCancelled;
return ret;
};
})(),
/**
* Fires an specific event in the object, releasing all listeners
* registered to that event. The same listeners are not called again on
* successive calls of it or of {@link #fire}.
* @param {String} eventName The event name to fire.
* @param {Object} [data] Data to be sent as the
* {@link CKEDITOR.eventInfo#data} when calling the
* listeners.
* @param {CKEDITOR.editor} [editor] The editor instance to send as the
* {@link CKEDITOR.eventInfo#editor} when calling the
* listener.
* @returns {Boolean|Object} A booloan indicating that the event is to be
* canceled, or data returned by one of the listeners.
* @example
* someObject.on( 'someEvent', function() { ... } );
* someObject.fire( 'someEvent' ); // above listener called
* <b>someObject.fireOnce( 'someEvent' )</b>; // above listener called
* someObject.fire( 'someEvent' ); // no listeners called
*/
fireOnce : function( eventName, data, editor )
{
var ret = this.fire( eventName, data, editor );
delete getPrivate( this )[ eventName ];
return ret;
},
/**
* Unregisters a listener function from being called at the specified
* event. No errors are thrown if the listener has not been
* registered previously.
* @param {String} eventName The event name.
* @param {Function} listenerFunction The listener function to unregister.
* @example
* var myListener = function() { ... };
* someObject.on( 'someEvent', myListener );
* someObject.fire( 'someEvent' ); // myListener called
* <b>someObject.removeListener( 'someEvent', myListener )</b>;
* someObject.fire( 'someEvent' ); // myListener not called
*/
removeListener : function( eventName, listenerFunction )
{
// Get the event entry.
var event = getPrivate( this )[ eventName ];
if ( event )
{
var index = event.getListenerIndex( listenerFunction );
if ( index >= 0 )
event.listeners.splice( index, 1 );
}
},
/**
* Checks if there is any listener registered to a given event.
* @param {String} eventName The event name.
* @example
* var myListener = function() { ... };
* someObject.on( 'someEvent', myListener );
* alert( someObject.<b>hasListeners( 'someEvent' )</b> ); // "true"
* alert( someObject.<b>hasListeners( 'noEvent' )</b> ); // "false"
*/
hasListeners : function( eventName )
{
var event = getPrivate( this )[ eventName ];
return ( event && event.listeners.length > 0 ) ;
}
};
})();
}
| 10npsite | trunk/guanli/system/ckeditor/_source/core/event.js | JavaScript | asf20 | 11,337 |
/*
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.scriptLoader} object, used to load scripts
* asynchronously.
*/
/**
* Load scripts asynchronously.
* @namespace
* @example
*/
CKEDITOR.scriptLoader = (function()
{
var uniqueScripts = {},
waitingList = {};
return /** @lends CKEDITOR.scriptLoader */ {
/**
* Loads one or more external script checking if not already loaded
* previously by this function.
* @param {String|Array} scriptUrl One or more URLs pointing to the
* scripts to be loaded.
* @param {Function} [callback] A function to be called when the script
* is loaded and executed. If a string is passed to "scriptUrl", a
* boolean parameter is passed to the callback, indicating the
* success of the load. If an array is passed instead, two array
* parameters are passed to the callback; the first contains the
* URLs that have been properly loaded, and the second the failed
* ones.
* @param {Object} [scope] The scope ("this" reference) to be used for
* the callback call. Default to {@link CKEDITOR}.
* @param {Boolean} [showBusy] Changes the cursor of the document while
+ * the script is loaded.
* @example
* CKEDITOR.scriptLoader.load( '/myscript.js' );
* @example
* CKEDITOR.scriptLoader.load( '/myscript.js', function( success )
* {
* // Alerts "true" if the script has been properly loaded.
* // HTTP error 404 should return "false".
* alert( success );
* });
* @example
* CKEDITOR.scriptLoader.load( [ '/myscript1.js', '/myscript2.js' ], function( completed, failed )
* {
* alert( 'Number of scripts loaded: ' + completed.length );
* alert( 'Number of failures: ' + failed.length );
* });
*/
load : function( scriptUrl, callback, scope, showBusy )
{
var isString = ( typeof scriptUrl == 'string' );
if ( isString )
scriptUrl = [ scriptUrl ];
if ( !scope )
scope = CKEDITOR;
var scriptCount = scriptUrl.length,
completed = [],
failed = [];
var doCallback = function( success )
{
if ( callback )
{
if ( isString )
callback.call( scope, success );
else
callback.call( scope, completed, failed );
}
};
if ( scriptCount === 0 )
{
doCallback( true );
return;
}
var checkLoaded = function( url, success )
{
( success ? completed : failed ).push( url );
if ( --scriptCount <= 0 )
{
showBusy && CKEDITOR.document.getDocumentElement().removeStyle( 'cursor' );
doCallback( success );
}
};
var onLoad = function( url, success )
{
// Mark this script as loaded.
uniqueScripts[ url ] = 1;
// Get the list of callback checks waiting for this file.
var waitingInfo = waitingList[ url ];
delete waitingList[ url ];
// Check all callbacks waiting for this file.
for ( var i = 0 ; i < waitingInfo.length ; i++ )
waitingInfo[ i ]( url, success );
};
var loadScript = function( url )
{
if ( uniqueScripts[ url ] )
{
checkLoaded( url, true );
return;
}
var waitingInfo = waitingList[ url ] || ( waitingList[ url ] = [] );
waitingInfo.push( checkLoaded );
// Load it only for the first request.
if ( waitingInfo.length > 1 )
return;
// Create the <script> element.
var script = new CKEDITOR.dom.element( 'script' );
script.setAttributes( {
type : 'text/javascript',
src : url } );
if ( callback )
{
if ( CKEDITOR.env.ie )
{
// FIXME: For IE, we are not able to return false on error (like 404).
/** @ignore */
script.$.onreadystatechange = function ()
{
if ( script.$.readyState == 'loaded' || script.$.readyState == 'complete' )
{
script.$.onreadystatechange = null;
onLoad( url, true );
}
};
}
else
{
/** @ignore */
script.$.onload = function()
{
// Some browsers, such as Safari, may call the onLoad function
// immediately. Which will break the loading sequence. (#3661)
setTimeout( function() { onLoad( url, true ); }, 0 );
};
// FIXME: Opera and Safari will not fire onerror.
/** @ignore */
script.$.onerror = function()
{
onLoad( url, false );
};
}
}
// Append it to <head>.
script.appendTo( CKEDITOR.document.getHead() );
CKEDITOR.fire( 'download', url ); // @Packager.RemoveLine
};
showBusy && CKEDITOR.document.getDocumentElement().setStyle( 'cursor', 'wait' );
for ( var i = 0 ; i < scriptCount ; i++ )
{
loadScript( scriptUrl[ i ] );
}
}
};
})();
| 10npsite | trunk/guanli/system/ckeditor/_source/core/scriptloader.js | JavaScript | asf20 | 5,043 |
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
/**
* Contains UI features related to an editor instance.
* @constructor
* @param {CKEDITOR.editor} editor The editor instance.
* @example
*/
CKEDITOR.ui = function( editor )
{
if ( editor.ui )
return editor.ui;
/**
* Object used to hold private stuff.
* @private
*/
this._ =
{
handlers : {},
items : {},
editor : editor
};
return this;
};
// PACKAGER_RENAME( CKEDITOR.ui )
CKEDITOR.ui.prototype =
{
/**
* Adds a UI item to the items collection. These items can be later used in
* the interface.
* @param {String} name The UI item name.
* @param {Object} type The item type.
* @param {Object} definition The item definition. The properties of this
* object depend on the item type.
* @example
* // Add a new button named "MyBold".
* editorInstance.ui.add( 'MyBold', CKEDITOR.UI_BUTTON,
* {
* label : 'My Bold',
* command : 'bold'
* });
*/
add : function( name, type, definition )
{
this._.items[ name ] =
{
type : type,
// The name of {@link CKEDITOR.command} which associate with this UI.
command : definition.command || null,
args : Array.prototype.slice.call( arguments, 2 )
};
},
/**
* Gets a UI object.
* @param {String} name The UI item hame.
* @example
*/
create : function( name )
{
var item = this._.items[ name ],
handler = item && this._.handlers[ item.type ],
command = item && item.command && this._.editor.getCommand( item.command );
var result = handler && handler.create.apply( this, item.args );
// Allow overrides from skin ui definitions..
item && ( result = CKEDITOR.tools.extend( result, this._.editor.skin[ item.type ], true ) );
// Add reference inside command object.
if ( command )
command.uiItems.push( result );
return result;
},
/**
* Adds a handler for a UI item type. The handler is responsible for
* transforming UI item definitions in UI objects.
* @param {Object} type The item type.
* @param {Object} handler The handler definition.
* @example
*/
addHandler : function( type, handler )
{
this._.handlers[ type ] = handler;
}
};
CKEDITOR.event.implementOn( CKEDITOR.ui );
/**
* (Virtual Class) Do not call this constructor. This class is not really part
* of the API. It just illustrates the features of hanlder objects to be
* passed to the {@link CKEDITOR.ui.prototype.addHandler} function.
* @name CKEDITOR.ui.handlerDefinition
* @constructor
* @example
*/
/**
* Transforms an item definition into an UI item object.
* @name CKEDITOR.handlerDefinition.prototype.create
* @function
* @param {Object} definition The item definition.
* @example
* editorInstance.ui.addHandler( CKEDITOR.UI_BUTTON,
* {
* create : function( definition )
* {
* return new CKEDITOR.ui.button( definition );
* }
* });
*/
/**
* Internal event fired when a new UI element is ready
* @name CKEDITOR.ui#ready
* @event
* @param {Object} element The new element
*/
| 10npsite | trunk/guanli/system/ckeditor/_source/core/ui.js | JavaScript | asf20 | 3,286 |
/*
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.themes} object, which is used to
* manage themes registration and loading.
*/
/**
* Manages themes registration and loading.
* @namespace
* @augments CKEDITOR.resourceManager
* @example
*/
CKEDITOR.themes = new CKEDITOR.resourceManager(
'_source/'+ // @Packager.RemoveLine
'themes/', 'theme' );
| 10npsite | trunk/guanli/system/ckeditor/_source/core/themes.js | JavaScript | asf20 | 524 |
/*
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.skins} object, which is used to
* manage skins loading.
*/
/**
* Manages skins loading.
* @namespace
* @example
*/
CKEDITOR.skins = (function()
{
// Holds the list of loaded skins.
var loaded = {},
paths = {};
var loadPart = function( editor, skinName, part, callback )
{
// Get the skin definition.
var skinDefinition = loaded[ skinName ];
if ( !editor.skin )
{
editor.skin = skinDefinition;
// Trigger init function if any.
if ( skinDefinition.init )
skinDefinition.init( editor );
}
var appendSkinPath = function( fileNames )
{
for ( var n = 0 ; n < fileNames.length ; n++ )
{
fileNames[ n ] = CKEDITOR.getUrl( paths[ skinName ] + fileNames[ n ] );
}
};
function fixCSSTextRelativePath( cssStyleText, baseUrl )
{
return cssStyleText.replace( /url\s*\(([\s'"]*)(.*?)([\s"']*)\)/g,
function( match, opener, path, closer )
{
if ( /^\/|^\w?:/.test( path ) )
return match;
else
return 'url(' + baseUrl + opener + path + closer + ')';
} );
}
// Get the part definition.
part = skinDefinition[ part ];
var partIsLoaded = !part || !!part._isLoaded;
// Call the callback immediately if already loaded.
if ( partIsLoaded )
callback && callback();
else
{
// Put the callback in a queue.
var pending = part._pending || ( part._pending = [] );
pending.push( callback );
// We may have more than one skin part load request. Just the first
// one must do the loading job.
if ( pending.length > 1 )
return;
// Check whether the "css" and "js" properties have been defined
// for that part.
var cssIsLoaded = !part.css || !part.css.length,
jsIsLoaded = !part.js || !part.js.length;
// This is the function that will trigger the callback calls on
// load.
var checkIsLoaded = function()
{
if ( cssIsLoaded && jsIsLoaded )
{
// Mark the part as loaded.
part._isLoaded = 1;
// Call all pending callbacks.
for ( var i = 0 ; i < pending.length ; i++ )
{
if ( pending[ i ] )
pending[ i ]();
}
}
};
// Load the "css" pieces.
if ( !cssIsLoaded )
{
var cssPart = part.css;
if ( CKEDITOR.tools.isArray( cssPart ) )
{
appendSkinPath( cssPart );
for ( var c = 0 ; c < cssPart.length ; c++ )
CKEDITOR.document.appendStyleSheet( cssPart[ c ] );
}
else
{
cssPart = fixCSSTextRelativePath(
cssPart, CKEDITOR.getUrl( paths[ skinName ] ) );
// Processing Inline CSS part.
CKEDITOR.document.appendStyleText( cssPart );
}
part.css = cssPart;
cssIsLoaded = 1;
}
// Load the "js" pieces.
if ( !jsIsLoaded )
{
appendSkinPath( part.js );
CKEDITOR.scriptLoader.load( part.js, function()
{
jsIsLoaded = 1;
checkIsLoaded();
});
}
// We may have nothing to load, so check it immediately.
checkIsLoaded();
}
};
return /** @lends CKEDITOR.skins */ {
/**
* Registers a skin definition.
* @param {String} skinName The skin name.
* @param {Object} skinDefinition The skin definition.
* @example
*/
add : function( skinName, skinDefinition )
{
loaded[ skinName ] = skinDefinition;
skinDefinition.skinPath = paths[ skinName ]
|| ( paths[ skinName ] =
CKEDITOR.getUrl(
'_source/' + // @Packager.RemoveLine
'skins/' + skinName + '/' ) );
},
/**
* Loads a skin part. Skins are defined in parts, which are basically
* separated CSS files. This function is mainly used by the core code and
* should not have much use out of it.
* @param {String} skinName The name of the skin to be loaded.
* @param {String} skinPart The skin part to be loaded. Common skin parts
* are "editor" and "dialog".
* @param {Function} [callback] A function to be called once the skin
* part files are loaded.
* @example
*/
load : function( editor, skinPart, callback )
{
var skinName = editor.skinName,
skinPath = editor.skinPath;
if ( loaded[ skinName ] )
loadPart( editor, skinName, skinPart, callback );
else
{
paths[ skinName ] = skinPath;
CKEDITOR.scriptLoader.load( CKEDITOR.getUrl( skinPath + 'skin.js' ), function()
{
loadPart( editor, skinName, skinPart, callback );
});
}
}
};
})();
| 10npsite | trunk/guanli/system/ckeditor/_source/core/skins.js | JavaScript | asf20 | 4,733 |
/*
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.plugins} object, which is used to
* manage plugins registration and loading.
*/
/**
* Manages plugins registration and loading.
* @namespace
* @augments CKEDITOR.resourceManager
* @example
*/
CKEDITOR.plugins = new CKEDITOR.resourceManager(
'_source/' + // @Packager.RemoveLine
'plugins/', 'plugin' );
// PACKAGER_RENAME( CKEDITOR.plugins )
CKEDITOR.plugins.load = CKEDITOR.tools.override( CKEDITOR.plugins.load, function( originalLoad )
{
return function( name, callback, scope )
{
var allPlugins = {};
var loadPlugins = function( names )
{
originalLoad.call( this, names, function( plugins )
{
CKEDITOR.tools.extend( allPlugins, plugins );
var requiredPlugins = [];
for ( var pluginName in plugins )
{
var plugin = plugins[ pluginName ],
requires = plugin && plugin.requires;
if ( requires )
{
for ( var i = 0 ; i < requires.length ; i++ )
{
if ( !allPlugins[ requires[ i ] ] )
requiredPlugins.push( requires[ i ] );
}
}
}
if ( requiredPlugins.length )
loadPlugins.call( this, requiredPlugins );
else
{
// Call the "onLoad" function for all plugins.
for ( pluginName in allPlugins )
{
plugin = allPlugins[ pluginName ];
if ( plugin.onLoad && !plugin.onLoad._called )
{
plugin.onLoad();
plugin.onLoad._called = 1;
}
}
// Call the callback.
if ( callback )
callback.call( scope || window, allPlugins );
}
}
, this);
};
loadPlugins.call( this, name );
};
});
/**
* Loads a specific language file, or auto detect it. A callback is
* then called when the file gets loaded.
* @param {String} pluginName The name of the plugin to which the provided translation
* should be attached.
* @param {String} languageCode The code of the language translation provided.
* @param {Object} languageEntries An object that contains pairs of label and
* the respective translation.
* @example
* CKEDITOR.plugins.setLang( 'myPlugin', 'en', {
* title : 'My plugin',
* selectOption : 'Please select an option'
* } );
*/
CKEDITOR.plugins.setLang = function( pluginName, languageCode, languageEntries )
{
var plugin = this.get( pluginName ),
pluginLangEntries = plugin.langEntries || ( plugin.langEntries = {} ),
pluginLang = plugin.lang || ( plugin.lang = [] );
if ( CKEDITOR.tools.indexOf( pluginLang, languageCode ) == -1 )
pluginLang.push( languageCode );
pluginLangEntries[ languageCode ] = languageEntries;
};
| 10npsite | trunk/guanli/system/ckeditor/_source/core/plugins.js | JavaScript | asf20 | 2,925 |
/*
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.tools} object, which contains
* utility functions.
*/
(function()
{
var functions = [];
CKEDITOR.on( 'reset', function()
{
functions = [];
});
/**
* Utility functions.
* @namespace
* @example
*/
CKEDITOR.tools =
{
/**
* Compare the elements of two arrays.
* @param {Array} arrayA An array to be compared.
* @param {Array} arrayB The other array to be compared.
* @returns {Boolean} "true" is the arrays have the same lenght and
* their elements match.
* @example
* var a = [ 1, 'a', 3 ];
* var b = [ 1, 3, 'a' ];
* var c = [ 1, 'a', 3 ];
* var d = [ 1, 'a', 3, 4 ];
*
* alert( CKEDITOR.tools.arrayCompare( a, b ) ); // false
* alert( CKEDITOR.tools.arrayCompare( a, c ) ); // true
* alert( CKEDITOR.tools.arrayCompare( a, d ) ); // false
*/
arrayCompare : function( arrayA, arrayB )
{
if ( !arrayA && !arrayB )
return true;
if ( !arrayA || !arrayB || arrayA.length != arrayB.length )
return false;
for ( var i = 0 ; i < arrayA.length ; i++ )
{
if ( arrayA[ i ] != arrayB[ i ] )
return false;
}
return true;
},
/**
* Creates a deep copy of an object.
* Attention: there is no support for recursive references.
* @param {Object} object The object to be cloned.
* @returns {Object} The object clone.
* @example
* var obj =
* {
* name : 'John',
* cars :
* {
* Mercedes : { color : 'blue' },
* Porsche : { color : 'red' }
* }
* };
* var clone = CKEDITOR.tools.clone( obj );
* clone.name = 'Paul';
* clone.cars.Porsche.color = 'silver';
* alert( obj.name ); // John
* alert( clone.name ); // Paul
* alert( obj.cars.Porsche.color ); // red
* alert( clone.cars.Porsche.color ); // silver
*/
clone : function( obj )
{
var clone;
// Array.
if ( obj && ( obj instanceof Array ) )
{
clone = [];
for ( var i = 0 ; i < obj.length ; i++ )
clone[ i ] = this.clone( obj[ i ] );
return clone;
}
// "Static" types.
if ( obj === null
|| ( typeof( obj ) != 'object' )
|| ( obj instanceof String )
|| ( obj instanceof Number )
|| ( obj instanceof Boolean )
|| ( obj instanceof Date )
|| ( obj instanceof RegExp) )
{
return obj;
}
// Objects.
clone = new obj.constructor();
for ( var propertyName in obj )
{
var property = obj[ propertyName ];
clone[ propertyName ] = this.clone( property );
}
return clone;
},
/**
* Turn the first letter of string to upper-case.
* @param {String} str
*/
capitalize: function( str )
{
return str.charAt( 0 ).toUpperCase() + str.substring( 1 ).toLowerCase();
},
/**
* Copy the properties from one object to another. By default, properties
* already present in the target object <strong>are not</strong> overwritten.
* @param {Object} target The object to be extended.
* @param {Object} source[,souce(n)] The objects from which copy
* properties. Any number of objects can be passed to this function.
* @param {Boolean} [overwrite] If 'true' is specified it indicates that
* properties already present in the target object could be
* overwritten by subsequent objects.
* @param {Object} [properties] Only properties within the specified names
* list will be received from the source object.
* @returns {Object} the extended object (target).
* @example
* // Create the sample object.
* var myObject =
* {
* prop1 : true
* };
*
* // Extend the above object with two properties.
* CKEDITOR.tools.extend( myObject,
* {
* prop2 : true,
* prop3 : true
* } );
*
* // Alert "prop1", "prop2" and "prop3".
* for ( var p in myObject )
* alert( p );
*/
extend : function( target )
{
var argsLength = arguments.length,
overwrite, propertiesList;
if ( typeof ( overwrite = arguments[ argsLength - 1 ] ) == 'boolean')
argsLength--;
else if ( typeof ( overwrite = arguments[ argsLength - 2 ] ) == 'boolean' )
{
propertiesList = arguments [ argsLength -1 ];
argsLength-=2;
}
for ( var i = 1 ; i < argsLength ; i++ )
{
var source = arguments[ i ];
for ( var propertyName in source )
{
// Only copy existed fields if in overwrite mode.
if ( overwrite === true || target[ propertyName ] == undefined )
{
// Only copy specified fields if list is provided.
if ( !propertiesList || ( propertyName in propertiesList ) )
target[ propertyName ] = source[ propertyName ];
}
}
}
return target;
},
/**
* Creates an object which is an instance of a class which prototype is a
* predefined object. All properties defined in the source object are
* automatically inherited by the resulting object, including future
* changes to it.
* @param {Object} source The source object to be used as the prototype for
* the final object.
* @returns {Object} The resulting copy.
*/
prototypedCopy : function( source )
{
var copy = function()
{};
copy.prototype = source;
return new copy();
},
/**
* Checks if an object is an Array.
* @param {Object} object The object to be checked.
* @type Boolean
* @returns <i>true</i> if the object is an Array, otherwise <i>false</i>.
* @example
* alert( CKEDITOR.tools.isArray( [] ) ); // "true"
* alert( CKEDITOR.tools.isArray( 'Test' ) ); // "false"
*/
isArray : function( object )
{
return ( !!object && object instanceof Array );
},
/**
* Whether the object contains no properties of it's own.
* @param object
*/
isEmpty : function ( object )
{
for ( var i in object )
{
if ( object.hasOwnProperty( i ) )
return false;
}
return true;
},
/**
* Transforms a CSS property name to its relative DOM style name.
* @param {String} cssName The CSS property name.
* @returns {String} The transformed name.
* @example
* alert( CKEDITOR.tools.cssStyleToDomStyle( 'background-color' ) ); // "backgroundColor"
* alert( CKEDITOR.tools.cssStyleToDomStyle( 'float' ) ); // "cssFloat"
*/
cssStyleToDomStyle : ( function()
{
var test = document.createElement( 'div' ).style;
var cssFloat = ( typeof test.cssFloat != 'undefined' ) ? 'cssFloat'
: ( typeof test.styleFloat != 'undefined' ) ? 'styleFloat'
: 'float';
return function( cssName )
{
if ( cssName == 'float' )
return cssFloat;
else
{
return cssName.replace( /-./g, function( match )
{
return match.substr( 1 ).toUpperCase();
});
}
};
} )(),
/**
* Build the HTML snippet of a set of <style>/<link>.
* @param css {String|Array} Each of which are url (absolute) of a CSS file or
* a trunk of style text.
*/
buildStyleHtml : function ( css )
{
css = [].concat( css );
var item, retval = [];
for ( var i = 0; i < css.length; i++ )
{
item = css[ i ];
// Is CSS style text ?
if ( /@import|[{}]/.test(item) )
retval.push('<style>' + item + '</style>');
else
retval.push('<link type="text/css" rel=stylesheet href="' + item + '">');
}
return retval.join( '' );
},
/**
* Replace special HTML characters in a string with their relative HTML
* entity values.
* @param {String} text The string to be encoded.
* @returns {String} The encode string.
* @example
* alert( CKEDITOR.tools.htmlEncode( 'A > B & C < D' ) ); // "A &gt; B &amp; C &lt; D"
*/
htmlEncode : function( text )
{
var standard = function( text )
{
var span = new CKEDITOR.dom.element( 'span' );
span.setText( text );
return span.getHtml();
};
var fix1 = ( standard( '\n' ).toLowerCase() == '<br>' ) ?
function( text )
{
// #3874 IE and Safari encode line-break into <br>
return standard( text ).replace( /<br>/gi, '\n' );
} :
standard;
var fix2 = ( standard( '>' ) == '>' ) ?
function( text )
{
// WebKit does't encode the ">" character, which makes sense, but
// it's different than other browsers.
return fix1( text ).replace( />/g, '>' );
} :
fix1;
var fix3 = ( standard( ' ' ) == ' ' ) ?
function( text )
{
// #3785 IE8 changes spaces (>= 2) to
return fix2( text ).replace( / /g, ' ' );
} :
fix2;
this.htmlEncode = fix3;
return this.htmlEncode( text );
},
/**
* Replace special HTML characters in HTMLElement's attribute with their relative HTML entity values.
* @param {String} The attribute's value to be encoded.
* @returns {String} The encode value.
* @example
* element.setAttribute( 'title', '<a " b >' );
* alert( CKEDITOR.tools.htmlEncodeAttr( element.getAttribute( 'title' ) ); // ">a " b <"
*/
htmlEncodeAttr : function( text )
{
return text.replace( /"/g, '"' ).replace( /</g, '<' ).replace( />/g, '>' );
},
/**
* Gets a unique number for this CKEDITOR execution session. It returns
* progressive numbers starting at 1.
* @function
* @returns {Number} A unique number.
* @example
* alert( CKEDITOR.tools.<b>getNextNumber()</b> ); // "1" (e.g.)
* alert( CKEDITOR.tools.<b>getNextNumber()</b> ); // "2"
*/
getNextNumber : (function()
{
var last = 0;
return function()
{
return ++last;
};
})(),
/**
* Gets a unique ID for CKEditor's interface elements. It returns a
* string with the "cke_" prefix and a progressive number.
* @function
* @returns {String} A unique ID.
* @example
* alert( CKEDITOR.tools.<b>getNextId()</b> ); // "cke_1" (e.g.)
* alert( CKEDITOR.tools.<b>getNextId()</b> ); // "cke_2"
*/
getNextId : function()
{
return 'cke_' + this.getNextNumber();
},
/**
* Creates a function override.
* @param {Function} originalFunction The function to be overridden.
* @param {Function} functionBuilder A function that returns the new
* function. The original function reference will be passed to this
* function.
* @returns {Function} The new function.
* @example
* var example =
* {
* myFunction : function( name )
* {
* alert( 'Name: ' + name );
* }
* };
*
* example.myFunction = CKEDITOR.tools.override( example.myFunction, function( myFunctionOriginal )
* {
* return function( name )
* {
* alert( 'Override Name: ' + name );
* myFunctionOriginal.call( this, name );
* };
* });
*/
override : function( originalFunction, functionBuilder )
{
return functionBuilder( originalFunction );
},
/**
* Executes a function after specified delay.
* @param {Function} func The function to be executed.
* @param {Number} [milliseconds] The amount of time (millisecods) to wait
* to fire the function execution. Defaults to zero.
* @param {Object} [scope] The object to hold the function execution scope
* (the "this" object). By default the "window" object.
* @param {Object|Array} [args] A single object, or an array of objects, to
* pass as arguments to the function.
* @param {Object} [ownerWindow] The window that will be used to set the
* timeout. By default the current "window".
* @returns {Object} A value that can be used to cancel the function execution.
* @example
* CKEDITOR.tools.<b>setTimeout(
* function()
* {
* alert( 'Executed after 2 seconds' );
* },
* 2000 )</b>;
*/
setTimeout : function( func, milliseconds, scope, args, ownerWindow )
{
if ( !ownerWindow )
ownerWindow = window;
if ( !scope )
scope = ownerWindow;
return ownerWindow.setTimeout(
function()
{
if ( args )
func.apply( scope, [].concat( args ) ) ;
else
func.apply( scope ) ;
},
milliseconds || 0 );
},
/**
* Remove spaces from the start and the end of a string. The following
* characters are removed: space, tab, line break, line feed.
* @function
* @param {String} str The text from which remove the spaces.
* @returns {String} The modified string without the boundary spaces.
* @example
* alert( CKEDITOR.tools.trim( ' example ' ); // "example"
*/
trim : (function()
{
// We are not using \s because we don't want "non-breaking spaces" to be caught.
var trimRegex = /(?:^[ \t\n\r]+)|(?:[ \t\n\r]+$)/g;
return function( str )
{
return str.replace( trimRegex, '' ) ;
};
})(),
/**
* Remove spaces from the start (left) of a string. The following
* characters are removed: space, tab, line break, line feed.
* @function
* @param {String} str The text from which remove the spaces.
* @returns {String} The modified string excluding the removed spaces.
* @example
* alert( CKEDITOR.tools.ltrim( ' example ' ); // "example "
*/
ltrim : (function()
{
// We are not using \s because we don't want "non-breaking spaces" to be caught.
var trimRegex = /^[ \t\n\r]+/g;
return function( str )
{
return str.replace( trimRegex, '' ) ;
};
})(),
/**
* Remove spaces from the end (right) of a string. The following
* characters are removed: space, tab, line break, line feed.
* @function
* @param {String} str The text from which remove the spaces.
* @returns {String} The modified string excluding the removed spaces.
* @example
* alert( CKEDITOR.tools.ltrim( ' example ' ); // " example"
*/
rtrim : (function()
{
// We are not using \s because we don't want "non-breaking spaces" to be caught.
var trimRegex = /[ \t\n\r]+$/g;
return function( str )
{
return str.replace( trimRegex, '' ) ;
};
})(),
/**
* Returns the index of an element in an array.
* @param {Array} array The array to be searched.
* @param {Object} entry The element to be found.
* @returns {Number} The (zero based) index of the first entry that matches
* the entry, or -1 if not found.
* @example
* var letters = [ 'a', 'b', 0, 'c', false ];
* alert( CKEDITOR.tools.indexOf( letters, '0' ) ); "-1" because 0 !== '0'
* alert( CKEDITOR.tools.indexOf( letters, false ) ); "4" because 0 !== false
*/
indexOf :
// #2514: We should try to use Array.indexOf if it does exist.
( Array.prototype.indexOf ) ?
function( array, entry )
{
return array.indexOf( entry );
}
:
function( array, entry )
{
for ( var i = 0, len = array.length ; i < len ; i++ )
{
if ( array[ i ] === entry )
return i;
}
return -1;
},
/**
* Creates a function that will always execute in the context of a
* specified object.
* @param {Function} func The function to be executed.
* @param {Object} obj The object to which bind the execution context.
* @returns {Function} The function that can be used to execute the
* "func" function in the context of "obj".
* @example
* var obj = { text : 'My Object' };
*
* function alertText()
* {
* alert( this.text );
* }
*
* var newFunc = <b>CKEDITOR.tools.bind( alertText, obj )</b>;
* newFunc(); // Alerts "My Object".
*/
bind : function( func, obj )
{
return function() { return func.apply( obj, arguments ); };
},
/**
* Class creation based on prototype inheritance, with supports of the
* following features:
* <ul>
* <li> Static fields </li>
* <li> Private fields </li>
* <li> Public (prototype) fields </li>
* <li> Chainable base class constructor </li>
* </ul>
* @param {Object} definition The class definition object.
* @returns {Function} A class-like JavaScript function.
*/
createClass : function( definition )
{
var $ = definition.$,
baseClass = definition.base,
privates = definition.privates || definition._,
proto = definition.proto,
statics = definition.statics;
if ( privates )
{
var originalConstructor = $;
$ = function()
{
// Create (and get) the private namespace.
var _ = this._ || ( this._ = {} );
// Make some magic so "this" will refer to the main
// instance when coding private functions.
for ( var privateName in privates )
{
var priv = privates[ privateName ];
_[ privateName ] =
( typeof priv == 'function' ) ? CKEDITOR.tools.bind( priv, this ) : priv;
}
originalConstructor.apply( this, arguments );
};
}
if ( baseClass )
{
$.prototype = this.prototypedCopy( baseClass.prototype );
$.prototype.constructor = $;
$.prototype.base = function()
{
this.base = baseClass.prototype.base;
baseClass.apply( this, arguments );
this.base = arguments.callee;
};
}
if ( proto )
this.extend( $.prototype, proto, true );
if ( statics )
this.extend( $, statics, true );
return $;
},
/**
* Creates a function reference that can be called later using
* CKEDITOR.tools.callFunction. This approach is specially useful to
* make DOM attribute function calls to JavaScript defined functions.
* @param {Function} fn The function to be executed on call.
* @param {Object} [scope] The object to have the context on "fn" execution.
* @returns {Number} A unique reference to be used in conjuction with
* CKEDITOR.tools.callFunction.
* @example
* var ref = <b>CKEDITOR.tools.addFunction</b>(
* function()
* {
* alert( 'Hello!');
* });
* CKEDITOR.tools.callFunction( ref ); // Hello!
*/
addFunction : function( fn, scope )
{
return functions.push( function()
{
return fn.apply( scope || this, arguments );
}) - 1;
},
/**
* Removes the function reference created with {@see CKEDITOR.tools.addFunction}.
* @param {Number} ref The function reference created with
* CKEDITOR.tools.addFunction.
*/
removeFunction : function( ref )
{
functions[ ref ] = null;
},
/**
* Executes a function based on the reference created with
* CKEDITOR.tools.addFunction.
* @param {Number} ref The function reference created with
* CKEDITOR.tools.addFunction.
* @param {[Any,[Any,...]} params Any number of parameters to be passed
* to the executed function.
* @returns {Any} The return value of the function.
* @example
* var ref = CKEDITOR.tools.addFunction(
* function()
* {
* alert( 'Hello!');
* });
* <b>CKEDITOR.tools.callFunction( ref )</b>; // Hello!
*/
callFunction : function( ref )
{
var fn = functions[ ref ];
return fn && fn.apply( window, Array.prototype.slice.call( arguments, 1 ) );
},
/**
* Append the 'px' length unit to the size if it's missing.
* @param length
*/
cssLength : (function()
{
return function( length )
{
return length + ( !length || isNaN( Number( length ) ) ? '' : 'px' );
};
})(),
/**
* Convert the specified CSS length value to the calculated pixel length inside this page.
* <strong>Note:</strong> Percentage based value is left intact.
* @param {String} cssLength CSS length value.
*/
convertToPx : ( function ()
{
var calculator;
return function( cssLength )
{
if ( !calculator )
{
calculator = CKEDITOR.dom.element.createFromHtml(
'<div style="position:absolute;left:-9999px;' +
'top:-9999px;margin:0px;padding:0px;border:0px;"' +
'></div>', CKEDITOR.document );
CKEDITOR.document.getBody().append( calculator );
}
if ( !(/%$/).test( cssLength ) )
{
calculator.setStyle( 'width', cssLength );
return calculator.$.clientWidth;
}
return cssLength;
};
} )(),
/**
* String specified by {@param str} repeats {@param times} times.
* @param str
* @param times
*/
repeat : function( str, times )
{
return new Array( times + 1 ).join( str );
},
/**
* Return the first successfully executed function's return value that
* doesn't throw any exception.
*/
tryThese : function()
{
var returnValue;
for ( var i = 0, length = arguments.length; i < length; i++ )
{
var lambda = arguments[i];
try
{
returnValue = lambda();
break;
}
catch (e) {}
}
return returnValue;
},
/**
* Generate a combined key from a series of params.
* @param {String} subKey One or more string used as sub keys.
* @example
* var key = CKEDITOR.tools.genKey( 'key1', 'key2', 'key3' );
* alert( key ); // "key1-key2-key3".
*/
genKey : function()
{
return Array.prototype.slice.call( arguments ).join( '-' );
}
};
})();
// PACKAGER_RENAME( CKEDITOR.tools )
| 10npsite | trunk/guanli/system/ckeditor/_source/core/tools.js | JavaScript | asf20 | 21,920 |
/*
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.loader} objects, which is used to
* load core scripts and their dependencies from _source.
*/
if ( typeof CKEDITOR == 'undefined' )
CKEDITOR = {};
if ( !CKEDITOR.loader )
{
/**
* Load core scripts and their dependencies from _source.
* @namespace
* @example
*/
CKEDITOR.loader = (function()
{
// Table of script names and their dependencies.
var scripts =
{
'core/_bootstrap' : [ 'core/config', 'core/ckeditor', 'core/plugins', 'core/scriptloader', 'core/tools', /* The following are entries that we want to force loading at the end to avoid dependence recursion */ 'core/dom/comment', 'core/dom/elementpath', 'core/dom/text', 'core/dom/rangelist' ],
'core/ckeditor' : [ 'core/ckeditor_basic', 'core/dom', 'core/dtd', 'core/dom/document', 'core/dom/element', 'core/editor', 'core/event', 'core/htmlparser', 'core/htmlparser/element', 'core/htmlparser/fragment', 'core/htmlparser/filter', 'core/htmlparser/basicwriter', 'core/tools' ],
'core/ckeditor_base' : [],
'core/ckeditor_basic' : [ 'core/editor_basic', 'core/env', 'core/event' ],
'core/command' : [],
'core/config' : [ 'core/ckeditor_base' ],
'core/dom' : [],
'core/dom/comment' : [ 'core/dom/node' ],
'core/dom/document' : [ 'core/dom', 'core/dom/domobject', 'core/dom/window' ],
'core/dom/documentfragment' : [ 'core/dom/element' ],
'core/dom/element' : [ 'core/dom', 'core/dom/document', 'core/dom/domobject', 'core/dom/node', 'core/dom/nodelist', 'core/tools' ],
'core/dom/elementpath' : [ 'core/dom/element' ],
'core/dom/event' : [],
'core/dom/node' : [ 'core/dom/domobject', 'core/tools' ],
'core/dom/nodelist' : [ 'core/dom/node' ],
'core/dom/domobject' : [ 'core/dom/event' ],
'core/dom/range' : [ 'core/dom/document', 'core/dom/documentfragment', 'core/dom/element', 'core/dom/walker' ],
'core/dom/rangelist' : [ 'core/dom/range' ],
'core/dom/text' : [ 'core/dom/node', 'core/dom/domobject' ],
'core/dom/walker' : [ 'core/dom/node' ],
'core/dom/window' : [ 'core/dom/domobject' ],
'core/dtd' : [ 'core/tools' ],
'core/editor' : [ 'core/command', 'core/config', 'core/editor_basic', 'core/focusmanager', 'core/lang', 'core/plugins', 'core/skins', 'core/themes', 'core/tools', 'core/ui' ],
'core/editor_basic' : [ 'core/event' ],
'core/env' : [],
'core/event' : [],
'core/focusmanager' : [],
'core/htmlparser' : [],
'core/htmlparser/comment' : [ 'core/htmlparser' ],
'core/htmlparser/element' : [ 'core/htmlparser', 'core/htmlparser/fragment' ],
'core/htmlparser/fragment' : [ 'core/htmlparser', 'core/htmlparser/comment', 'core/htmlparser/text', 'core/htmlparser/cdata' ],
'core/htmlparser/text' : [ 'core/htmlparser' ],
'core/htmlparser/cdata' : [ 'core/htmlparser' ],
'core/htmlparser/filter' : [ 'core/htmlparser' ],
'core/htmlparser/basicwriter': [ 'core/htmlparser' ],
'core/lang' : [],
'core/plugins' : [ 'core/resourcemanager' ],
'core/resourcemanager' : [ 'core/scriptloader', 'core/tools' ],
'core/scriptloader' : [ 'core/dom/element', 'core/env' ],
'core/skins' : [ 'core/scriptloader' ],
'core/themes' : [ 'core/resourcemanager' ],
'core/tools' : [ 'core/env' ],
'core/ui' : []
};
var basePath = (function()
{
// This is a copy of CKEDITOR.basePath, but requires the script having
// "_source/core/loader.js".
if ( CKEDITOR && CKEDITOR.basePath )
return CKEDITOR.basePath;
// Find out the editor directory path, based on its <script> tag.
var path = '';
var scripts = document.getElementsByTagName( 'script' );
for ( var i = 0 ; i < scripts.length ; i++ )
{
var match = scripts[i].src.match( /(^|.*?[\\\/])(?:_source\/)?core\/loader.js(?:\?.*)?$/i );
if ( match )
{
path = match[1];
break;
}
}
// In IE (only) the script.src string is the raw valued entered in the
// HTML. Other browsers return the full resolved URL instead.
if ( path.indexOf('://') == -1 )
{
// Absolute path.
if ( path.indexOf( '/' ) === 0 )
path = location.href.match( /^.*?:\/\/[^\/]*/ )[0] + path;
// Relative path.
else
path = location.href.match( /^[^\?]*\// )[0] + path;
}
return path;
})();
var timestamp = 'C6HH5UF';
var getUrl = function( resource )
{
if ( CKEDITOR && CKEDITOR.getUrl )
return CKEDITOR.getUrl( resource );
return basePath + resource +
( resource.indexOf( '?' ) >= 0 ? '&' : '?' ) +
't=' + timestamp;
};
var pendingLoad = [];
/** @lends CKEDITOR.loader */
return {
/**
* The list of loaded scripts in their loading order.
* @type Array
* @example
* // Alert the loaded script names.
* alert( <b>CKEDITOR.loader.loadedScripts</b> );
*/
loadedScripts : [],
loadPending : function()
{
var scriptName = pendingLoad.shift();
if ( !scriptName )
return;
var scriptSrc = getUrl( '_source/' + scriptName + '.js' );
var script = document.createElement( 'script' );
script.type = 'text/javascript';
script.src = scriptSrc;
function onScriptLoaded()
{
// Append this script to the list of loaded scripts.
CKEDITOR.loader.loadedScripts.push( scriptName );
// Load the next.
CKEDITOR.loader.loadPending();
}
// We must guarantee the execution order of the scripts, so we
// need to load them one by one. (#4145)
// The following if/else block has been taken from the scriptloader core code.
if ( typeof(script.onreadystatechange) !== "undefined" )
{
/** @ignore */
script.onreadystatechange = function()
{
if ( script.readyState == 'loaded' || script.readyState == 'complete' )
{
script.onreadystatechange = null;
onScriptLoaded();
}
};
}
else
{
/** @ignore */
script.onload = function()
{
// Some browsers, such as Safari, may call the onLoad function
// immediately. Which will break the loading sequence. (#3661)
setTimeout( function() { onScriptLoaded( scriptName ); }, 0 );
};
}
document.body.appendChild( script );
},
/**
* Loads a specific script, including its dependencies. This is not a
* synchronous loading, which means that the code to be loaded will
* not necessarily be available after this call.
* @example
* CKEDITOR.loader.load( 'core/dom/element' );
*/
load : function( scriptName, defer )
{
// Check if the script has already been loaded.
if ( scriptName in this.loadedScripts )
return;
// Get the script dependencies list.
var dependencies = scripts[ scriptName ];
if ( !dependencies )
throw 'The script name"' + scriptName + '" is not defined.';
// Mark the script as loaded, even before really loading it, to
// avoid cross references recursion.
this.loadedScripts[ scriptName ] = true;
// Load all dependencies first.
for ( var i = 0 ; i < dependencies.length ; i++ )
this.load( dependencies[ i ], true );
var scriptSrc = getUrl( '_source/' + scriptName + '.js' );
// Append the <script> element to the DOM.
// If the page is fully loaded, we can't use document.write
// but if the script is run while the body is loading then it's safe to use it
// Unfortunately, Firefox <3.6 doesn't support document.readyState, so it won't get this improvement
if ( document.body && (!document.readyState || document.readyState == 'complete') )
{
pendingLoad.push( scriptName );
if ( !defer )
this.loadPending();
}
else
{
// Append this script to the list of loaded scripts.
this.loadedScripts.push( scriptName );
document.write( '<script src="' + scriptSrc + '" type="text/javascript"><\/script>' );
}
}
};
})();
}
// Check if any script has been defined for autoload.
if ( CKEDITOR._autoLoad )
{
CKEDITOR.loader.load( CKEDITOR._autoLoad );
delete CKEDITOR._autoLoad;
}
| 10npsite | trunk/guanli/system/ckeditor/_source/core/loader.js | JavaScript | asf20 | 8,455 |
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
/**
* Creates a command class instance.
* @class Represents a command that can be executed on an editor instance.
* @param {CKEDITOR.editor} editor The editor instance this command will be
* related to.
* @param {CKEDITOR.commandDefinition} commandDefinition The command
* definition.
* @augments CKEDITOR.event
* @example
* var command = new CKEDITOR.command( editor,
* {
* exec : function( editor )
* {
* alert( editor.document.getBody().getHtml() );
* }
* });
*/
CKEDITOR.command = function( editor, commandDefinition )
{
/**
* Lists UI items that are associated to this command. This list can be
* used to interact with the UI on command execution (by the execution code
* itself, for example).
* @type Array
* @example
* alert( 'Number of UI items associated to this command: ' + command.<b>uiItems</b>.length );
*/
this.uiItems = [];
/**
* Executes the command.
* @param {Object} [data] Any data to pass to the command. Depends on the
* command implementation and requirements.
* @returns {Boolean} A boolean indicating that the command has been
* successfully executed.
* @example
* command.<b>exec()</b>; // The command gets executed.
*/
this.exec = function( data )
{
if ( this.state == CKEDITOR.TRISTATE_DISABLED )
return false;
if ( this.editorFocus ) // Give editor focus if necessary (#4355).
editor.focus();
if ( this.fire( 'exec' ) === true )
return true;
return ( commandDefinition.exec.call( this, editor, data ) !== false );
};
/**
* Explicitly update the status of the command, by firing the {@link CKEDITOR.command#event:refresh} event,
* as well as invoke the {@link CKEDITOR.commandDefinition.prototype.refresh} method if defined, this method
* is to allow different parts of the editor code to contribute in command status resolution.
*/
this.refresh = function()
{
if ( this.fire( 'refresh' ) === true )
return true;
return ( commandDefinition.refresh && commandDefinition.refresh.apply( this, arguments ) !== false );
};
CKEDITOR.tools.extend( this, commandDefinition,
// Defaults
/** @lends CKEDITOR.command.prototype */
{
/**
* The editor modes within which the command can be executed. The
* execution will have no action if the current mode is not listed
* in this property.
* @type Object
* @default { wysiwyg : 1 }
* @see CKEDITOR.editor.prototype.mode
* @example
* // Enable the command in both WYSIWYG and Source modes.
* command.<b>modes</b> = { wysiwyg : 1, source : 1 };
* @example
* // Enable the command in Source mode only.
* command.<b>modes</b> = { source : 1 };
*/
modes : { wysiwyg : 1 },
/**
* Indicates that the editor will get the focus before executing
* the command.
* @type Boolean
* @default true
* @example
* // Do not force the editor to have focus when executing the command.
* command.<b>editorFocus</b> = false;
*/
editorFocus : 1,
/**
* Indicates the editor state. Possible values are:
* <ul>
* <li>{@link CKEDITOR.TRISTATE_DISABLED}: the command is
* disabled. It's execution will have no effect. Same as
* {@link disable}.</li>
* <li>{@link CKEDITOR.TRISTATE_ON}: the command is enabled
* and currently active in the editor (for context sensitive commands,
* for example).</li>
* <li>{@link CKEDITOR.TRISTATE_OFF}: the command is enabled
* and currently inactive in the editor (for context sensitive
* commands, for example).</li>
* </ul>
* Do not set this property directly, using the {@link #setState}
* method instead.
* @type Number
* @default {@link CKEDITOR.TRISTATE_OFF}
* @example
* if ( command.<b>state</b> == CKEDITOR.TRISTATE_DISABLED )
* alert( 'This command is disabled' );
*/
state : CKEDITOR.TRISTATE_OFF
});
// Call the CKEDITOR.event constructor to initialize this instance.
CKEDITOR.event.call( this );
};
CKEDITOR.command.prototype =
{
/**
* Enables the command for execution. The command state (see
* {@link CKEDITOR.command.prototype.state}) available before disabling it
* is restored.
* @example
* command.<b>enable()</b>;
* command.exec(); // Execute the command.
*/
enable : function()
{
if ( this.state == CKEDITOR.TRISTATE_DISABLED )
this.setState( ( !this.preserveState || ( typeof this.previousState == 'undefined' ) ) ? CKEDITOR.TRISTATE_OFF : this.previousState );
},
/**
* Disables the command for execution. The command state (see
* {@link CKEDITOR.command.prototype.state}) will be set to
* {@link CKEDITOR.TRISTATE_DISABLED}.
* @example
* command.<b>disable()</b>;
* command.exec(); // "false" - Nothing happens.
*/
disable : function()
{
this.setState( CKEDITOR.TRISTATE_DISABLED );
},
/**
* Sets the command state.
* @param {Number} newState The new state. See {@link #state}.
* @returns {Boolean} Returns "true" if the command state changed.
* @example
* command.<b>setState( CKEDITOR.TRISTATE_ON )</b>;
* command.exec(); // Execute the command.
* command.<b>setState( CKEDITOR.TRISTATE_DISABLED )</b>;
* command.exec(); // "false" - Nothing happens.
* command.<b>setState( CKEDITOR.TRISTATE_OFF )</b>;
* command.exec(); // Execute the command.
*/
setState : function( newState )
{
// Do nothing if there is no state change.
if ( this.state == newState )
return false;
this.previousState = this.state;
// Set the new state.
this.state = newState;
// Fire the "state" event, so other parts of the code can react to the
// change.
this.fire( 'state' );
return true;
},
/**
* Toggles the on/off (active/inactive) state of the command. This is
* mainly used internally by context sensitive commands.
* @example
* command.<b>toggleState()</b>;
*/
toggleState : function()
{
if ( this.state == CKEDITOR.TRISTATE_OFF )
this.setState( CKEDITOR.TRISTATE_ON );
else if ( this.state == CKEDITOR.TRISTATE_ON )
this.setState( CKEDITOR.TRISTATE_OFF );
}
};
CKEDITOR.event.implementOn( CKEDITOR.command.prototype, true );
/**
* Indicates the previous command state.
* @name CKEDITOR.command.prototype.previousState
* @type Number
* @see #state
* @example
* alert( command.<b>previousState</b> );
*/
/**
* Fired when the command state changes.
* @name CKEDITOR.command#state
* @event
* @example
* command.on( <b>'state'</b> , function( e )
* {
* // Alerts the new state.
* alert( this.state );
* });
*/
| 10npsite | trunk/guanli/system/ckeditor/_source/core/command.js | JavaScript | asf20 | 6,997 |
/*
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.focusManager} class, which is used
* to handle the focus on editor instances..
*/
/**
* Creates a focusManager class instance.
* @class Manages the focus activity in an editor instance. This class is to be
* used mainly by UI elements coders when adding interface elements that need
* to set the focus state of the editor.
* @param {CKEDITOR.editor} editor The editor instance.
* @example
* var focusManager = <b>new CKEDITOR.focusManager( editor )</b>;
* focusManager.focus();
*/
CKEDITOR.focusManager = function( editor )
{
if ( editor.focusManager )
return editor.focusManager;
/**
* Indicates that the editor instance has focus.
* @type Boolean
* @example
* alert( CKEDITOR.instances.editor1.focusManager.hasFocus ); // e.g "true"
*/
this.hasFocus = false;
/**
* Object used to hold private stuff.
* @private
*/
this._ =
{
editor : editor
};
return this;
};
CKEDITOR.focusManager.prototype =
{
/**
* Used to indicate that the editor instance has the focus.<br />
* <br />
* Note that this function will not explicitelly set the focus in the
* editor (for example, making the caret blinking on it). Use
* {@link CKEDITOR.editor#focus} for it instead.
* @example
* var editor = CKEDITOR.instances.editor1;
* <b>editor.focusManager.focus()</b>;
*/
focus : function()
{
if ( this._.timer )
clearTimeout( this._.timer );
if ( !this.hasFocus )
{
// If another editor has the current focus, we first "blur" it. In
// this way the events happen in a more logical sequence, like:
// "focus 1" > "blur 1" > "focus 2"
// ... instead of:
// "focus 1" > "focus 2" > "blur 1"
if ( CKEDITOR.currentInstance )
CKEDITOR.currentInstance.focusManager.forceBlur();
var editor = this._.editor;
editor.container.getChild( 1 ).addClass( 'cke_focus' );
this.hasFocus = true;
editor.fire( 'focus' );
}
},
/**
* Used to indicate that the editor instance has lost the focus.<br />
* <br />
* Note that this functions acts asynchronously with a delay of 100ms to
* avoid subsequent blur/focus effects. If you want the "blur" to happen
* immediately, use the {@link #forceBlur} function instead.
* @example
* var editor = CKEDITOR.instances.editor1;
* <b>editor.focusManager.blur()</b>;
*/
blur : function()
{
var focusManager = this;
if ( focusManager._.timer )
clearTimeout( focusManager._.timer );
focusManager._.timer = setTimeout(
function()
{
delete focusManager._.timer;
focusManager.forceBlur();
}
, 100 );
},
/**
* Used to indicate that the editor instance has lost the focus. Unlike
* {@link #blur}, this function is synchronous, marking the instance as
* "blured" immediately.
* @example
* var editor = CKEDITOR.instances.editor1;
* <b>editor.focusManager.forceBlur()</b>;
*/
forceBlur : function()
{
if ( this.hasFocus )
{
var editor = this._.editor;
editor.container.getChild( 1 ).removeClass( 'cke_focus' );
this.hasFocus = false;
editor.fire( 'blur' );
}
}
};
/**
* Fired when the editor instance receives the input focus.
* @name CKEDITOR.editor#focus
* @event
* @param {CKEDITOR.editor} editor The editor instance.
* @example
* editor.on( 'focus', function( e )
* {
* alert( 'The editor named ' + e.editor.name + ' is now focused' );
* });
*/
/**
* Fired when the editor instance loses the input focus.
* @name CKEDITOR.editor#blur
* @event
* @param {CKEDITOR.editor} editor The editor instance.
* @example
* editor.on( 'blur', function( e )
* {
* alert( 'The editor named ' + e.editor.name + ' lost the focus' );
* });
*/
| 10npsite | trunk/guanli/system/ckeditor/_source/core/focusmanager.js | JavaScript | asf20 | 4,031 |
/*
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.env} object, which constains
* environment and browser information.
*/
if ( !CKEDITOR.env )
{
/**
* @namespace Environment and browser information.
*/
CKEDITOR.env = (function()
{
var agent = navigator.userAgent.toLowerCase();
var opera = window.opera;
var env =
/** @lends CKEDITOR.env */
{
/**
* Indicates that CKEditor is running on Internet Explorer.
* @type Boolean
* @example
* if ( CKEDITOR.env.ie )
* alert( "I'm on IE!" );
*/
ie : /*@cc_on!@*/false,
/**
* Indicates that CKEditor is running on Opera.
* @type Boolean
* @example
* if ( CKEDITOR.env.opera )
* alert( "I'm on Opera!" );
*/
opera : ( !!opera && opera.version ),
/**
* Indicates that CKEditor is running on a WebKit based browser, like
* Safari.
* @type Boolean
* @example
* if ( CKEDITOR.env.webkit )
* alert( "I'm on WebKit!" );
*/
webkit : ( agent.indexOf( ' applewebkit/' ) > -1 ),
/**
* Indicates that CKEditor is running on Adobe AIR.
* @type Boolean
* @example
* if ( CKEDITOR.env.air )
* alert( "I'm on AIR!" );
*/
air : ( agent.indexOf( ' adobeair/' ) > -1 ),
/**
* Indicates that CKEditor is running on Macintosh.
* @type Boolean
* @example
* if ( CKEDITOR.env.mac )
* alert( "I love apples!" );
*/
mac : ( agent.indexOf( 'macintosh' ) > -1 ),
/**
* Indicates that CKEditor is running on a quirks mode environemnt.
* @type Boolean
* @example
* if ( CKEDITOR.env.quirks )
* alert( "Nooooo!" );
*/
quirks : ( document.compatMode == 'BackCompat' ),
/**
* Indicates that CKEditor is running on a mobile like environemnt.
* @type Boolean
* @example
* if ( CKEDITOR.env.mobile )
* alert( "I'm running with CKEditor today!" );
*/
mobile : ( agent.indexOf( 'mobile' ) > -1 ),
/**
* Indicates that CKEditor is running on Apple iPhone/iPad/iPod devices.
* @type Boolean
* @example
* if ( CKEDITOR.env.iOS )
* alert( "I like little apples!" );
*/
iOS : /(ipad|iphone|ipod)/.test(agent),
/**
* Indicates that the browser has a custom domain enabled. This has
* been set with "document.domain".
* @returns {Boolean} "true" if a custom domain is enabled.
* @example
* if ( CKEDITOR.env.isCustomDomain() )
* alert( "I'm in a custom domain!" );
*/
isCustomDomain : function()
{
if ( !this.ie )
return false;
var domain = document.domain,
hostname = window.location.hostname;
return domain != hostname &&
domain != ( '[' + hostname + ']' ); // IPv6 IP support (#5434)
},
/**
* Indicates that page is running under an encrypted connection.
* @returns {Boolean} "true" if the page has an encrypted connection.
* @example
* if ( CKEDITOR.env.secure )
* alert( "I'm in SSL!" );
*/
secure : location.protocol == 'https:'
};
/**
* Indicates that CKEditor is running on a Gecko based browser, like
* Firefox.
* @name CKEDITOR.env.gecko
* @type Boolean
* @example
* if ( CKEDITOR.env.gecko )
* alert( "I'm riding a gecko!" );
*/
env.gecko = ( navigator.product == 'Gecko' && !env.webkit && !env.opera );
var version = 0;
// Internet Explorer 6.0+
if ( env.ie )
{
version = parseFloat( agent.match( /msie (\d+)/ )[1] );
/**
* Indicates that CKEditor is running on Internet Explorer 8.
* @name CKEDITOR.env.ie8
* @type Boolean
* @example
* if ( CKEDITOR.env.ie8 )
* alert( "I'm on IE8!" );
*/
env.ie8 = !!document.documentMode;
/**
* Indicates that CKEditor is running on Internet Explorer 8 on
* standards mode.
* @name CKEDITOR.env.ie8Compat
* @type Boolean
* @example
* if ( CKEDITOR.env.ie8Compat )
* alert( "Now I'm on IE8, for real!" );
*/
env.ie8Compat = document.documentMode == 8;
/**
* Indicates that CKEditor is running on Internet Explorer 9's standards mode.
* @name CKEDITOR.env.ie9Compat
* @type Boolean
* @example
* if ( CKEDITOR.env.ie9Compat )
* alert( "IE9, the beauty of the web!" );
*/
env.ie9Compat = document.documentMode == 9;
/**
* Indicates that CKEditor is running on an IE7-like environment, which
* includes IE7 itself and IE8's IE7 document mode.
* @name CKEDITOR.env.ie7Compat
* @type Boolean
* @example
* if ( CKEDITOR.env.ie8Compat )
* alert( "I'm on IE7 or on an IE7 like IE8!" );
*/
env.ie7Compat = ( ( version == 7 && !document.documentMode )
|| document.documentMode == 7 );
/**
* Indicates that CKEditor is running on an IE6-like environment, which
* includes IE6 itself and IE7 and IE8 quirks mode.
* @name CKEDITOR.env.ie6Compat
* @type Boolean
* @example
* if ( CKEDITOR.env.ie6Compat )
* alert( "I'm on IE6 or quirks mode!" );
*/
env.ie6Compat = ( version < 7 || env.quirks );
}
// Gecko.
if ( env.gecko )
{
var geckoRelease = agent.match( /rv:([\d\.]+)/ );
if ( geckoRelease )
{
geckoRelease = geckoRelease[1].split( '.' );
version = geckoRelease[0] * 10000 + ( geckoRelease[1] || 0 ) * 100 + ( geckoRelease[2] || 0 ) * 1;
}
}
// Opera 9.50+
if ( env.opera )
version = parseFloat( opera.version() );
// Adobe AIR 1.0+
// Checked before Safari because AIR have the WebKit rich text editor
// features from Safari 3.0.4, but the version reported is 420.
if ( env.air )
version = parseFloat( agent.match( / adobeair\/(\d+)/ )[1] );
// WebKit 522+ (Safari 3+)
if ( env.webkit )
version = parseFloat( agent.match( / applewebkit\/(\d+)/ )[1] );
/**
* Contains the browser version.<br />
* <br />
* For gecko based browsers (like Firefox) it contains the revision
* number with first three parts concatenated with a padding zero
* (e.g. for revision 1.9.0.2 we have 10900).<br />
* <br />
* For webkit based browser (like Safari and Chrome) it contains the
* WebKit build version (e.g. 522).
* @name CKEDITOR.env.version
* @type Boolean
* @example
* if ( CKEDITOR.env.ie && <b>CKEDITOR.env.version</b> <= 6 )
* alert( "Ouch!" );
*/
env.version = version;
/**
* Indicates that CKEditor is running on a compatible browser.
* @name CKEDITOR.env.isCompatible
* @type Boolean
* @example
* if ( CKEDITOR.env.isCompatible )
* alert( "Your browser is pretty cool!" );
*/
env.isCompatible =
// White list of mobile devices that supports.
env.iOS && version >= 534 ||
!env.mobile && (
( env.ie && version >= 6 ) ||
( env.gecko && version >= 10801 ) ||
( env.opera && version >= 9.5 ) ||
( env.air && version >= 1 ) ||
( env.webkit && version >= 522 ) ||
false );
/**
* The CSS class to be appended on the main UI containers, making it
* easy to apply browser specific styles to it.
* @name CKEDITOR.env.cssClass
* @type String
* @example
* myDiv.className = CKEDITOR.env.cssClass;
*/
env.cssClass =
'cke_browser_' + (
env.ie ? 'ie' :
env.gecko ? 'gecko' :
env.opera ? 'opera' :
env.webkit ? 'webkit' :
'unknown' );
if ( env.quirks )
env.cssClass += ' cke_browser_quirks';
if ( env.ie )
{
env.cssClass += ' cke_browser_ie' + (
env.version < 7 ? '6' :
env.version >= 8 ? document.documentMode:
'7' );
if ( env.quirks )
env.cssClass += ' cke_browser_iequirks';
}
if ( env.gecko && version < 10900 )
env.cssClass += ' cke_browser_gecko18';
if ( env.air )
env.cssClass += ' cke_browser_air';
return env;
})();
}
// PACKAGER_RENAME( CKEDITOR.env )
// PACKAGER_RENAME( CKEDITOR.env.ie )
| 10npsite | trunk/guanli/system/ckeditor/_source/core/env.js | JavaScript | asf20 | 8,311 |
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
/**
* @fileOverview Defines the <code>{@link CKEDITOR.config}</code> object that stores the
* default configuration settings.
*/
/**
* Used in conjunction with <code>{@link CKEDITOR.config.enterMode}</code>
* and <code>{@link CKEDITOR.config.shiftEnterMode}</code> configuration
* settings to make the editor produce <code><p></code> tags when
* using the <em>Enter</em> key.
* @constant
*/
CKEDITOR.ENTER_P = 1;
/**
* Used in conjunction with <code>{@link CKEDITOR.config.enterMode}</code>
* and <code>{@link CKEDITOR.config.shiftEnterMode}</code> configuration
* settings to make the editor produce <code><br></code> tags when
* using the <em>Enter</em> key.
* @constant
*/
CKEDITOR.ENTER_BR = 2;
/**
* Used in conjunction with <code>{@link CKEDITOR.config.enterMode}</code>
* and <code>{@link CKEDITOR.config.shiftEnterMode}</code> configuration
* settings to make the editor produce <code><div></code> tags when
* using the <em>Enter</em> key.
* @constant
*/
CKEDITOR.ENTER_DIV = 3;
/**
* @namespace Stores default configuration settings. Changes to this object are
* reflected in all editor instances, if not specified otherwise for a particular
* instance.
*/
CKEDITOR.config =
{
/**
* The URL path for the custom configuration file to be loaded. If not
* overloaded with inline configuration, it defaults to the <code>config.js</code>
* file present in the root of the CKEditor installation directory.<br /><br />
*
* CKEditor will recursively load custom configuration files defined inside
* other custom configuration files.
* @type String
* @default <code>'<em><CKEditor folder></em>/config.js'</code>
* @example
* // Load a specific configuration file.
* CKEDITOR.replace( 'myfield', { customConfig : '/myconfig.js' } );
* @example
* // Do not load any custom configuration file.
* CKEDITOR.replace( 'myfield', { customConfig : '' } );
*/
customConfig : 'config.js',
/**
* Whether the replaced element (usually a <code><textarea></code>)
* is to be updated automatically when posting the form containing the editor.
* @type Boolean
* @default <code>true</code>
* @example
* config.autoUpdateElement = true;
*/
autoUpdateElement : true,
/**
* The base href URL used to resolve relative and absolute URLs in the
* editor content.
* @type String
* @default <code>''</code> (empty)
* @example
* config.baseHref = 'http://www.example.com/path/';
*/
baseHref : '',
/**
* The CSS file(s) to be used to apply style to editor contents. It should
* reflect the CSS used in the final pages where the contents are to be
* used.
* @type String|Array
* @default <code>'<em><CKEditor folder></em>/contents.css'</code>
* @example
* config.contentsCss = '/css/mysitestyles.css';
* config.contentsCss = ['/css/mysitestyles.css', '/css/anotherfile.css'];
*/
contentsCss : CKEDITOR.basePath + 'contents.css',
/**
* The writing direction of the language used to create the editor
* contents. Allowed values are:
* <ul>
* <li><code>'ui'</code> – indicates that content direction will be the same as the user interface language direction;</li>
* <li><code>'ltr'</code> – for Left-To-Right language (like English);</li>
* <li><code>'rtl'</code> – for Right-To-Left languages (like Arabic).</li>
* </ul>
* @default <code>'ui'</code>
* @type String
* @example
* config.contentsLangDirection = 'rtl';
*/
contentsLangDirection : 'ui',
/**
* Language code of the writing language which is used to create the editor
* contents.
* @default Same value as editor UI language.
* @type String
* @example
* config.contentsLanguage = 'fr';
*/
contentsLanguage : '',
/**
* The user interface language localization to use. If left empty, the editor
* will automatically be localized to the user language. If the user language is not supported,
* the language specified in the <code>{@link CKEDITOR.config.defaultLanguage}</code>
* configuration setting is used.
* @default <code>''</code> (empty)
* @type String
* @example
* // Load the German interface.
* config.language = 'de';
*/
language : '',
/**
* The language to be used if the <code>{@link CKEDITOR.config.language}</code>
* setting is left empty and it is not possible to localize the editor to the user language.
* @default <code>'en'</code>
* @type String
* @example
* config.defaultLanguage = 'it';
*/
defaultLanguage : 'en',
/**
* Sets the behavior of the <em>Enter</em> key. It also determines other behavior
* rules of the editor, like whether the <code><br></code> element is to be used
* as a paragraph separator when indenting text.
* The allowed values are the following constants that cause the behavior outlined below:
* <ul>
* <li><code>{@link CKEDITOR.ENTER_P}</code> (1) – new <code><p></code> paragraphs are created;</li>
* <li><code>{@link CKEDITOR.ENTER_BR}</code> (2) – lines are broken with <code><br></code> elements;</li>
* <li><code>{@link CKEDITOR.ENTER_DIV}</code> (3) – new <code><div></code> blocks are created.</li>
* </ul>
* <strong>Note</strong>: It is recommended to use the
* <code>{@link CKEDITOR.ENTER_P}</code> setting because of its semantic value and
* correctness. The editor is optimized for this setting.
* @type Number
* @default <code>{@link CKEDITOR.ENTER_P}</code>
* @example
* // Not recommended.
* config.enterMode = CKEDITOR.ENTER_BR;
*/
enterMode : CKEDITOR.ENTER_P,
/**
* Force the use of <code>{@link CKEDITOR.config.enterMode}</code> as line break regardless
* of the context. If, for example, <code>{@link CKEDITOR.config.enterMode}</code> is set
* to <code>{@link CKEDITOR.ENTER_P}</code>, pressing the <em>Enter</em> key inside a
* <code><div></code> element will create a new paragraph with <code><p></code>
* instead of a <code><div></code>.
* @since 3.2.1
* @type Boolean
* @default <code>false</code>
* @example
* // Not recommended.
* config.forceEnterMode = true;
*/
forceEnterMode : false,
/**
* Similarly to the <code>{@link CKEDITOR.config.enterMode}</code> setting, it defines the behavior
* of the <em>Shift+Enter</em> key combination.
* The allowed values are the following constants the behavior outlined below:
* <ul>
* <li><code>{@link CKEDITOR.ENTER_P}</code> (1) – new <code><p></code> paragraphs are created;</li>
* <li><code>{@link CKEDITOR.ENTER_BR}</code> (2) – lines are broken with <code><br></code> elements;</li>
* <li><code>{@link CKEDITOR.ENTER_DIV}</code> (3) – new <code><div></code> blocks are created.</li>
* </ul>
* @type Number
* @default <code>{@link CKEDITOR.ENTER_BR}</code>
* @example
* config.shiftEnterMode = CKEDITOR.ENTER_P;
*/
shiftEnterMode : CKEDITOR.ENTER_BR,
/**
* A comma separated list of plugins that are not related to editor
* instances. Reserved for plugins that extend the core code only.<br /><br />
*
* There are no ways to override this setting except by editing the source
* code of CKEditor (<code>_source/core/config.js</code>).
* @type String
* @example
*/
corePlugins : '',
/**
* Sets the <code>DOCTYPE</code> to be used when loading the editor content as HTML.
* @type String
* @default <code>'<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">'</code>
* @example
* // Set the DOCTYPE to the HTML 4 (Quirks) mode.
* config.docType = '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">';
*/
docType : '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">',
/**
* Sets the <code>id</code> attribute to be used on the <code>body</code> element
* of the editing area. This can be useful when you intend to reuse the original CSS
* file you are using on your live website and want to assign the editor the same ID
* as the section that will include the contents. In this way ID-specific CSS rules will
* be enabled.
* @since 3.1
* @type String
* @default <code>''</code> (empty)
* @example
* config.bodyId = 'contents_id';
*/
bodyId : '',
/**
* Sets the <code>class</code> attribute to be used on the <code>body</code> element
* of the editing area. This can be useful when you intend to reuse the original CSS
* file you are using on your live website and want to assign the editor the same class
* as the section that will include the contents. In this way class-specific CSS rules will
* be enabled.
* @since 3.1
* @type String
* @default <code>''</code> (empty)
* @example
* config.bodyClass = 'contents';
*/
bodyClass : '',
/**
* Indicates whether the contents to be edited are being input as a full
* HTML page. A full page includes the <code><html></code>,
* <code><head></code>, and <code><body></code> elements.
* The final output will also reflect this setting, including the
* <code><body></code> contents only if this setting is disabled.
* @since 3.1
* @type Boolean
* @default <code>false</code>
* @example
* config.fullPage = true;
*/
fullPage : false,
/**
* The height of the editing area (that includes the editor content). This
* can be an integer, for pixel sizes, or any CSS-defined length unit.<br>
* <br>
* <strong>Note:</strong> Percent units (%) are not supported.
* @type Number|String
* @default <code>200</code>
* @example
* config.height = 500; // 500 pixels.
* @example
* config.height = '25em'; // CSS length.
* @example
* config.height = '300px'; // CSS length.
*/
height : 200,
/**
* Comma separated list of plugins to be loaded and initialized for an editor
* instance. This setting should rarely be changed. It is recommended to use the
* <code>{@link CKEDITOR.config.extraPlugins}</code> and
* <code>{@link CKEDITOR.config.removePlugins}</code> for customization purposes instead.
* @type String
* @example
*/
plugins :
'about,' +
'a11yhelp,' +
'basicstyles,' +
'bidi,' +
'blockquote,' +
'button,' +
'clipboard,' +
'colorbutton,' +
'colordialog,' +
'contextmenu,' +
'dialogadvtab,' +
'div,' +
'elementspath,' +
'enterkey,' +
'entities,' +
'filebrowser,' +
'find,' +
'flash,' +
'font,' +
'format,' +
'forms,' +
'horizontalrule,' +
'htmldataprocessor,' +
'iframe,' +
'image,' +
'indent,' +
'justify,' +
'keystrokes,' +
'link,' +
'list,' +
'liststyle,' +
'maximize,' +
'newpage,' +
'pagebreak,' +
'pastefromword,' +
'pastetext,' +
'popup,' +
'preview,' +
'print,' +
'removeformat,' +
'resize,' +
'save,' +
'scayt,' +
'showblocks,' +
'showborders,' +
'smiley,' +
'sourcearea,' +
'specialchar,' +
'stylescombo,' +
'tab,' +
'table,' +
'tabletools,' +
'templates,' +
'toolbar,' +
'undo,' +
'wsc,' +
'wysiwygarea',
/**
* A list of additional plugins to be loaded. This setting makes it easier
* to add new plugins without having to touch and potentially break the
* <code>{@link CKEDITOR.config.plugins}</code> setting.
* @type String
* @example
* config.extraPlugins = 'myplugin,anotherplugin';
*/
extraPlugins : '',
/**
* A list of plugins that must not be loaded. This setting makes it possible
* to avoid loading some plugins defined in the <code>{@link CKEDITOR.config.plugins}</code>
* setting, without having to touch it and potentially break it.
* @type String
* @example
* config.removePlugins = 'elementspath,save,font';
*/
removePlugins : '',
/**
* List of regular expressions to be executed on input HTML,
* indicating HTML source code that when matched, must <strong>not</strong> be available in the WYSIWYG
* mode for editing.
* @type Array
* @default <code>[]</code> (empty array)
* @example
* config.protectedSource.push( /<\?[\s\S]*?\?>/g ); // PHP code
* config.protectedSource.push( /<%[\s\S]*?%>/g ); // ASP code
* config.protectedSource.push( /(<asp:[^\>]+>[\s|\S]*?<\/asp:[^\>]+>)|(<asp:[^\>]+\/>)/gi ); // ASP.Net code
*/
protectedSource : [],
/**
* The editor <code>tabindex</code> value.
* @type Number
* @default <code>0</code> (zero)
* @example
* config.tabIndex = 1;
*/
tabIndex : 0,
/**
* The theme to be used to build the user interface.
* @type String
* @default <code>'default'</code>
* @see CKEDITOR.config.skin
* @example
* config.theme = 'default';
*/
theme : 'default',
/**
* The skin to load. It may be the name of the skin folder inside the
* editor installation path, or the name and the path separated by a comma.
* @type String
* @default <code>'default'</code>
* @example
* config.skin = 'v2';
* @example
* config.skin = 'myskin,/customstuff/myskin/';
*/
skin : 'kama',
/**
* The editor UI outer width. This can be an integer, for pixel sizes, or
* any CSS-defined unit.<br>
* <br>
* Unlike the <code>{@link CKEDITOR.config.height}</code> setting, this
* one will set the outer width of the entire editor UI, not for the
* editing area only.
* @type String|Number
* @default <code>''</code> (empty)
* @example
* config.width = 850; // 850 pixels wide.
* @example
* config.width = '75%'; // CSS unit.
*/
width : '',
/**
* The base Z-index for floating dialog windows and popups.
* @type Number
* @default <code>10000</code>
* @example
* config.baseFloatZIndex = 2000
*/
baseFloatZIndex : 10000
};
/**
* Indicates that some of the editor features, like alignment and text
* direction, should use the "computed value" of the feature to indicate its
* on/off state instead of using the "real value".<br />
* <br />
* If enabled in a Left-To-Right written document, the "Left Justify"
* alignment button will be shown as active, even if the alignment style is not
* explicitly applied to the current paragraph in the editor.
* @name CKEDITOR.config.useComputedState
* @type Boolean
* @default <code>true</code>
* @since 3.4
* @example
* config.useComputedState = false;
*/
// PACKAGER_RENAME( CKEDITOR.config )
| 10npsite | trunk/guanli/system/ckeditor/_source/core/config.js | JavaScript | asf20 | 14,931 |
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
if ( !CKEDITOR.editor )
{
/**
* No element is linked to the editor instance.
* @constant
* @example
*/
CKEDITOR.ELEMENT_MODE_NONE = 0;
/**
* The element is to be replaced by the editor instance.
* @constant
* @example
*/
CKEDITOR.ELEMENT_MODE_REPLACE = 1;
/**
* The editor is to be created inside the element.
* @constant
* @example
*/
CKEDITOR.ELEMENT_MODE_APPENDTO = 2;
/**
* Creates an editor class instance. This constructor should be rarely
* used, in favor of the {@link CKEDITOR} editor creation functions.
* @ class Represents an editor instance.
* @param {Object} instanceConfig Configuration values for this specific
* instance.
* @param {CKEDITOR.dom.element} [element] The element linked to this
* instance.
* @param {Number} [mode] The mode in which the element is linked to this
* instance. See {@link #elementMode}.
* @param {String} [data] Since 3.3. Initial value for the instance.
* @augments CKEDITOR.event
* @example
*/
CKEDITOR.editor = function( instanceConfig, element, mode, data )
{
this._ =
{
// Save the config to be processed later by the full core code.
instanceConfig : instanceConfig,
element : element,
data : data
};
/**
* The mode in which the {@link #element} is linked to this editor
* instance. It can be any of the following values:
* <ul>
* <li>{@link CKEDITOR.ELEMENT_MODE_NONE}: No element is linked to the
* editor instance.</li>
* <li>{@link CKEDITOR.ELEMENT_MODE_REPLACE}: The element is to be
* replaced by the editor instance.</li>
* <li>{@link CKEDITOR.ELEMENT_MODE_APPENDTO}: The editor is to be
* created inside the element.</li>
* </ul>
* @name CKEDITOR.editor.prototype.elementMode
* @type Number
* @example
* var editor = CKEDITOR.replace( 'editor1' );
* alert( <b>editor.elementMode</b> ); "1"
*/
this.elementMode = mode || CKEDITOR.ELEMENT_MODE_NONE;
// Call the CKEDITOR.event constructor to initialize this instance.
CKEDITOR.event.call( this );
this._init();
};
/**
* Replaces a <textarea> or a DOM element (DIV) with a CKEditor
* instance. For textareas, the initial value in the editor will be the
* textarea value. For DOM elements, their innerHTML will be used
* instead. We recommend using TEXTAREA and DIV elements only. Do not use
* this function directly. Use {@link CKEDITOR.replace} instead.
* @param {Object|String} elementOrIdOrName The DOM element (textarea), its
* ID or name.
* @param {Object} [config] The specific configurations to apply to this
* editor instance. Configurations set here will override global CKEditor
* settings.
* @returns {CKEDITOR.editor} The editor instance created.
* @example
*/
CKEDITOR.editor.replace = function( elementOrIdOrName, config )
{
var element = elementOrIdOrName;
if ( typeof element != 'object' )
{
// Look for the element by id. We accept any kind of element here.
element = document.getElementById( elementOrIdOrName );
// Elements that should go into head are unacceptable (#6791).
if ( element && element.tagName.toLowerCase() in {style:1,script:1,base:1,link:1,meta:1,title:1} )
element = null;
// If not found, look for elements by name. In this case we accept only
// textareas.
if ( !element )
{
var i = 0,
textareasByName = document.getElementsByName( elementOrIdOrName );
while ( ( element = textareasByName[ i++ ] ) && element.tagName.toLowerCase() != 'textarea' )
{ /*jsl:pass*/ }
}
if ( !element )
throw '[CKEDITOR.editor.replace] The element with id or name "' + elementOrIdOrName + '" was not found.';
}
// Do not replace the textarea right now, just hide it. The effective
// replacement will be done by the _init function.
element.style.visibility = 'hidden';
// Create the editor instance.
return new CKEDITOR.editor( config, element, CKEDITOR.ELEMENT_MODE_REPLACE );
};
/**
* Creates a new editor instance inside a specific DOM element. Do not use
* this function directly. Use {@link CKEDITOR.appendTo} instead.
* @param {Object|String} elementOrId The DOM element or its ID.
* @param {Object} [config] The specific configurations to apply to this
* editor instance. Configurations set here will override global CKEditor
* settings.
* @param {String} [data] Since 3.3. Initial value for the instance.
* @returns {CKEDITOR.editor} The editor instance created.
* @example
*/
CKEDITOR.editor.appendTo = function( elementOrId, config, data )
{
var element = elementOrId;
if ( typeof element != 'object' )
{
element = document.getElementById( elementOrId );
if ( !element )
throw '[CKEDITOR.editor.appendTo] The element with id "' + elementOrId + '" was not found.';
}
// Create the editor instance.
return new CKEDITOR.editor( config, element, CKEDITOR.ELEMENT_MODE_APPENDTO, data );
};
CKEDITOR.editor.prototype =
{
/**
* Initializes the editor instance. This function will be overriden by the
* full CKEDITOR.editor implementation (editor.js).
* @private
*/
_init : function()
{
var pending = CKEDITOR.editor._pending || ( CKEDITOR.editor._pending = [] );
pending.push( this );
},
// Both fire and fireOnce will always pass this editor instance as the
// "editor" param in CKEDITOR.event.fire. So, we override it to do that
// automaticaly.
/** @ignore */
fire : function( eventName, data )
{
return CKEDITOR.event.prototype.fire.call( this, eventName, data, this );
},
/** @ignore */
fireOnce : function( eventName, data )
{
return CKEDITOR.event.prototype.fireOnce.call( this, eventName, data, this );
}
};
// "Inherit" (copy actually) from CKEDITOR.event.
CKEDITOR.event.implementOn( CKEDITOR.editor.prototype, true );
}
| 10npsite | trunk/guanli/system/ckeditor/_source/core/editor_basic.js | JavaScript | asf20 | 6,174 |
/*
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.editor} class, which represents an
* editor instance.
*/
(function()
{
// The counter for automatic instance names.
var nameCounter = 0;
var getNewName = function()
{
var name = 'editor' + ( ++nameCounter );
return ( CKEDITOR.instances && CKEDITOR.instances[ name ] ) ? getNewName() : name;
};
// ##### START: Config Privates
// These function loads custom configuration files and cache the
// CKEDITOR.editorConfig functions defined on them, so there is no need to
// download them more than once for several instances.
var loadConfigLoaded = {};
var loadConfig = function( editor )
{
var customConfig = editor.config.customConfig;
// Check if there is a custom config to load.
if ( !customConfig )
return false;
customConfig = CKEDITOR.getUrl( customConfig );
var loadedConfig = loadConfigLoaded[ customConfig ] || ( loadConfigLoaded[ customConfig ] = {} );
// If the custom config has already been downloaded, reuse it.
if ( loadedConfig.fn )
{
// Call the cached CKEDITOR.editorConfig defined in the custom
// config file for the editor instance depending on it.
loadedConfig.fn.call( editor, editor.config );
// If there is no other customConfig in the chain, fire the
// "configLoaded" event.
if ( CKEDITOR.getUrl( editor.config.customConfig ) == customConfig || !loadConfig( editor ) )
editor.fireOnce( 'customConfigLoaded' );
}
else
{
// Load the custom configuration file.
CKEDITOR.scriptLoader.load( customConfig, function()
{
// If the CKEDITOR.editorConfig function has been properly
// defined in the custom configuration file, cache it.
if ( CKEDITOR.editorConfig )
loadedConfig.fn = CKEDITOR.editorConfig;
else
loadedConfig.fn = function(){};
// Call the load config again. This time the custom
// config is already cached and so it will get loaded.
loadConfig( editor );
});
}
return true;
};
var initConfig = function( editor, instanceConfig )
{
// Setup the lister for the "customConfigLoaded" event.
editor.on( 'customConfigLoaded', function()
{
if ( instanceConfig )
{
// Register the events that may have been set at the instance
// configuration object.
if ( instanceConfig.on )
{
for ( var eventName in instanceConfig.on )
{
editor.on( eventName, instanceConfig.on[ eventName ] );
}
}
// Overwrite the settings from the in-page config.
CKEDITOR.tools.extend( editor.config, instanceConfig, true );
delete editor.config.on;
}
onConfigLoaded( editor );
});
// The instance config may override the customConfig setting to avoid
// loading the default ~/config.js file.
if ( instanceConfig && instanceConfig.customConfig != undefined )
editor.config.customConfig = instanceConfig.customConfig;
// Load configs from the custom configuration files.
if ( !loadConfig( editor ) )
editor.fireOnce( 'customConfigLoaded' );
};
// ##### END: Config Privates
var onConfigLoaded = function( editor )
{
// Set config related properties.
var skin = editor.config.skin.split( ',' ),
skinName = skin[ 0 ],
skinPath = CKEDITOR.getUrl( skin[ 1 ] || (
'_source/' + // @Packager.RemoveLine
'skins/' + skinName + '/' ) );
/**
* The name of the skin used by this editor instance. The skin name can
* be set through the <code>{@link CKEDITOR.config.skin}</code> setting.
* @name CKEDITOR.editor.prototype.skinName
* @type String
* @example
* alert( editor.skinName ); // E.g. "kama"
*/
editor.skinName = skinName;
/**
* The full URL of the skin directory.
* @name CKEDITOR.editor.prototype.skinPath
* @type String
* @example
* alert( editor.skinPath ); // E.g. "http://example.com/ckeditor/skins/kama/"
*/
editor.skinPath = skinPath;
/**
* The CSS class name used for skin identification purposes.
* @name CKEDITOR.editor.prototype.skinClass
* @type String
* @example
* alert( editor.skinClass ); // E.g. "cke_skin_kama"
*/
editor.skinClass = 'cke_skin_' + skinName;
/**
* The <a href="http://en.wikipedia.org/wiki/Tabbing_navigation">tabbing
* navigation</a> order that has been calculated for this editor
* instance. This can be set by the <code>{@link CKEDITOR.config.tabIndex}</code>
* setting or taken from the <code>tabindex</code> attribute of the
* <code>{@link #element}</code> associated with the editor.
* @name CKEDITOR.editor.prototype.tabIndex
* @type Number
* @default 0 (zero)
* @example
* alert( editor.tabIndex ); // E.g. "0"
*/
editor.tabIndex = editor.config.tabIndex || editor.element.getAttribute( 'tabindex' ) || 0;
/**
* Indicates the read-only state of this editor. This is a read-only property.
* @name CKEDITOR.editor.prototype.readOnly
* @type Boolean
* @since 3.6
* @see CKEDITOR.editor#setReadOnly
*/
editor.readOnly = !!( editor.config.readOnly || editor.element.getAttribute( 'disabled' ) );
// Fire the "configLoaded" event.
editor.fireOnce( 'configLoaded' );
// Load language file.
loadSkin( editor );
};
var loadLang = function( editor )
{
CKEDITOR.lang.load( editor.config.language, editor.config.defaultLanguage, function( languageCode, lang )
{
/**
* The code for the language resources that have been loaded
* for the user interface elements of this editor instance.
* @name CKEDITOR.editor.prototype.langCode
* @type String
* @example
* alert( editor.langCode ); // E.g. "en"
*/
editor.langCode = languageCode;
/**
* An object that contains all language strings used by the editor
* interface.
* @name CKEDITOR.editor.prototype.lang
* @type CKEDITOR.lang
* @example
* alert( editor.lang.bold ); // E.g. "Negrito" (if the language is set to Portuguese)
*/
// As we'll be adding plugin specific entries that could come
// from different language code files, we need a copy of lang,
// not a direct reference to it.
editor.lang = CKEDITOR.tools.prototypedCopy( lang );
// We're not able to support RTL in Firefox 2 at this time.
if ( CKEDITOR.env.gecko && CKEDITOR.env.version < 10900 && editor.lang.dir == 'rtl' )
editor.lang.dir = 'ltr';
editor.fire( 'langLoaded' );
var config = editor.config;
config.contentsLangDirection == 'ui' && ( config.contentsLangDirection = editor.lang.dir );
loadPlugins( editor );
});
};
var loadPlugins = function( editor )
{
var config = editor.config,
plugins = config.plugins,
extraPlugins = config.extraPlugins,
removePlugins = config.removePlugins;
if ( extraPlugins )
{
// Remove them first to avoid duplications.
var removeRegex = new RegExp( '(?:^|,)(?:' + extraPlugins.replace( /\s*,\s*/g, '|' ) + ')(?=,|$)' , 'g' );
plugins = plugins.replace( removeRegex, '' );
plugins += ',' + extraPlugins;
}
if ( removePlugins )
{
removeRegex = new RegExp( '(?:^|,)(?:' + removePlugins.replace( /\s*,\s*/g, '|' ) + ')(?=,|$)' , 'g' );
plugins = plugins.replace( removeRegex, '' );
}
// Load the Adobe AIR plugin conditionally.
CKEDITOR.env.air && ( plugins += ',adobeair' );
// Load all plugins defined in the "plugins" setting.
CKEDITOR.plugins.load( plugins.split( ',' ), function( plugins )
{
// The list of plugins.
var pluginsArray = [];
// The language code to get loaded for each plugin. Null
// entries will be appended for plugins with no language files.
var languageCodes = [];
// The list of URLs to language files.
var languageFiles = [];
/**
* An object that contains references to all plugins used by this
* editor instance.
* @name CKEDITOR.editor.prototype.plugins
* @type Object
* @example
* alert( editor.plugins.dialog.path ); // E.g. "http://example.com/ckeditor/plugins/dialog/"
*/
editor.plugins = plugins;
// Loop through all plugins, to build the list of language
// files to get loaded.
for ( var pluginName in plugins )
{
var plugin = plugins[ pluginName ],
pluginLangs = plugin.lang,
pluginPath = CKEDITOR.plugins.getPath( pluginName ),
lang = null;
// Set the plugin path in the plugin.
plugin.path = pluginPath;
// If the plugin has "lang".
if ( pluginLangs )
{
// Resolve the plugin language. If the current language
// is not available, get the first one (default one).
lang = ( CKEDITOR.tools.indexOf( pluginLangs, editor.langCode ) >= 0 ? editor.langCode : pluginLangs[ 0 ] );
if ( !plugin.langEntries || !plugin.langEntries[ lang ] )
{
// Put the language file URL into the list of files to
// get downloaded.
languageFiles.push( CKEDITOR.getUrl( pluginPath + 'lang/' + lang + '.js' ) );
}
else
{
CKEDITOR.tools.extend( editor.lang, plugin.langEntries[ lang ] );
lang = null;
}
}
// Save the language code, so we know later which
// language has been resolved to this plugin.
languageCodes.push( lang );
pluginsArray.push( plugin );
}
// Load all plugin specific language files in a row.
CKEDITOR.scriptLoader.load( languageFiles, function()
{
// Initialize all plugins that have the "beforeInit" and "init" methods defined.
var methods = [ 'beforeInit', 'init', 'afterInit' ];
for ( var m = 0 ; m < methods.length ; m++ )
{
for ( var i = 0 ; i < pluginsArray.length ; i++ )
{
var plugin = pluginsArray[ i ];
// Uses the first loop to update the language entries also.
if ( m === 0 && languageCodes[ i ] && plugin.lang )
CKEDITOR.tools.extend( editor.lang, plugin.langEntries[ languageCodes[ i ] ] );
// Call the plugin method (beforeInit and init).
if ( plugin[ methods[ m ] ] )
plugin[ methods[ m ] ]( editor );
}
}
// Load the editor skin.
editor.fire( 'pluginsLoaded' );
loadTheme( editor );
});
});
};
var loadSkin = function( editor )
{
CKEDITOR.skins.load( editor, 'editor', function()
{
loadLang( editor );
});
};
var loadTheme = function( editor )
{
var theme = editor.config.theme;
CKEDITOR.themes.load( theme, function()
{
/**
* The theme used by this editor instance.
* @name CKEDITOR.editor.prototype.theme
* @type CKEDITOR.theme
* @example
* alert( editor.theme ); // E.g. "http://example.com/ckeditor/themes/default/"
*/
var editorTheme = editor.theme = CKEDITOR.themes.get( theme );
editorTheme.path = CKEDITOR.themes.getPath( theme );
editorTheme.build( editor );
if ( editor.config.autoUpdateElement )
attachToForm( editor );
});
};
var attachToForm = function( editor )
{
var element = editor.element;
// If are replacing a textarea, we must
if ( editor.elementMode == CKEDITOR.ELEMENT_MODE_REPLACE && element.is( 'textarea' ) )
{
var form = element.$.form && new CKEDITOR.dom.element( element.$.form );
if ( form )
{
function onSubmit()
{
editor.updateElement();
}
form.on( 'submit',onSubmit );
// Setup the submit function because it doesn't fire the
// "submit" event.
if ( !form.$.submit.nodeName && !form.$.submit.length )
{
form.$.submit = CKEDITOR.tools.override( form.$.submit, function( originalSubmit )
{
return function()
{
editor.updateElement();
// For IE, the DOM submit function is not a
// function, so we need thid check.
if ( originalSubmit.apply )
originalSubmit.apply( this, arguments );
else
originalSubmit();
};
});
}
// Remove 'submit' events registered on form element before destroying.(#3988)
editor.on( 'destroy', function()
{
form.removeListener( 'submit', onSubmit );
} );
}
}
};
function updateCommands()
{
var command,
commands = this._.commands,
mode = this.mode;
if ( !mode )
return;
for ( var name in commands )
{
command = commands[ name ];
command[ command.startDisabled ? 'disable' :
this.readOnly && !command.readOnly ? 'disable' : command.modes[ mode ] ? 'enable' : 'disable' ]();
}
}
/**
* Initializes the editor instance. This function is called by the editor
* contructor (<code>editor_basic.js</code>).
* @private
*/
CKEDITOR.editor.prototype._init = function()
{
// Get the properties that have been saved in the editor_base
// implementation.
var element = CKEDITOR.dom.element.get( this._.element ),
instanceConfig = this._.instanceConfig;
delete this._.element;
delete this._.instanceConfig;
this._.commands = {};
this._.styles = [];
/**
* The DOM element that was replaced by this editor instance. This
* element stores the editor data on load and post.
* @name CKEDITOR.editor.prototype.element
* @type CKEDITOR.dom.element
* @example
* var editor = CKEDITOR.instances.editor1;
* alert( <strong>editor.element</strong>.getName() ); // E.g. "textarea"
*/
this.element = element;
/**
* The editor instance name. It may be the replaced element ID, name, or
* a default name using the progressive counter (<code>editor1</code>,
* <code>editor2</code>, ...).
* @name CKEDITOR.editor.prototype.name
* @type String
* @example
* var editor = CKEDITOR.instances.editor1;
* alert( <strong>editor.name</strong> ); // "editor1"
*/
this.name = ( element && ( this.elementMode == CKEDITOR.ELEMENT_MODE_REPLACE )
&& ( element.getId() || element.getNameAtt() ) )
|| getNewName();
if ( this.name in CKEDITOR.instances )
throw '[CKEDITOR.editor] The instance "' + this.name + '" already exists.';
/**
* A unique random string assigned to each editor instance on the page.
* @name CKEDITOR.editor.prototype.id
* @type String
*/
this.id = CKEDITOR.tools.getNextId();
/**
* The configurations for this editor instance. It inherits all
* settings defined in <code>(@link CKEDITOR.config}</code>, combined with settings
* loaded from custom configuration files and those defined inline in
* the page when creating the editor.
* @name CKEDITOR.editor.prototype.config
* @type Object
* @example
* var editor = CKEDITOR.instances.editor1;
* alert( <strong>editor.config.theme</strong> ); // E.g. "default"
*/
this.config = CKEDITOR.tools.prototypedCopy( CKEDITOR.config );
/**
* The namespace containing UI features related to this editor instance.
* @name CKEDITOR.editor.prototype.ui
* @type CKEDITOR.ui
* @example
*/
this.ui = new CKEDITOR.ui( this );
/**
* Controls the focus state of this editor instance. This property
* is rarely used for normal API operations. It is mainly
* intended for developers adding UI elements to the editor interface.
* @name CKEDITOR.editor.prototype.focusManager
* @type CKEDITOR.focusManager
* @example
*/
this.focusManager = new CKEDITOR.focusManager( this );
CKEDITOR.fire( 'instanceCreated', null, this );
this.on( 'mode', updateCommands, null, null, 1 );
this.on( 'readOnly', updateCommands, null, null, 1 );
initConfig( this, instanceConfig );
};
})();
CKEDITOR.tools.extend( CKEDITOR.editor.prototype,
/** @lends CKEDITOR.editor.prototype */
{
/**
* Adds a command definition to the editor instance. Commands added with
* this function can be executed later with the <code>{@link #execCommand}</code> method.
* @param {String} commandName The indentifier name of the command.
* @param {CKEDITOR.commandDefinition} commandDefinition The command definition.
* @example
* editorInstance.addCommand( 'sample',
* {
* exec : function( editor )
* {
* alert( 'Executing a command for the editor name "' + editor.name + '"!' );
* }
* });
*/
addCommand : function( commandName, commandDefinition )
{
return this._.commands[ commandName ] = new CKEDITOR.command( this, commandDefinition );
},
/**
* Adds a piece of CSS code to the editor which will be applied to the WYSIWYG editing document.
* This CSS would not be added to the output, and is there mainly for editor-specific editing requirements.
* Note: This function should be called before the editor is loaded to take effect.
* @param css {String} CSS text.
* @example
* editorInstance.addCss( 'body { background-color: grey; }' );
*/
addCss : function( css )
{
this._.styles.push( css );
},
/**
* Destroys the editor instance, releasing all resources used by it.
* If the editor replaced an element, the element will be recovered.
* @param {Boolean} [noUpdate] If the instance is replacing a DOM
* element, this parameter indicates whether or not to update the
* element with the instance contents.
* @example
* alert( CKEDITOR.instances.editor1 ); // E.g "object"
* <strong>CKEDITOR.instances.editor1.destroy()</strong>;
* alert( CKEDITOR.instances.editor1 ); // "undefined"
*/
destroy : function( noUpdate )
{
if ( !noUpdate )
this.updateElement();
this.fire( 'destroy' );
this.theme && this.theme.destroy( this );
CKEDITOR.remove( this );
CKEDITOR.fire( 'instanceDestroyed', null, this );
},
/**
* Executes a command associated with the editor.
* @param {String} commandName The indentifier name of the command.
* @param {Object} [data] Data to be passed to the command.
* @returns {Boolean} <code>true</code> if the command was executed
* successfully, otherwise <code>false</code>.
* @see CKEDITOR.editor.addCommand
* @example
* editorInstance.execCommand( 'bold' );
*/
execCommand : function( commandName, data )
{
var command = this.getCommand( commandName );
var eventData =
{
name: commandName,
commandData: data,
command: command
};
if ( command && command.state != CKEDITOR.TRISTATE_DISABLED )
{
if ( this.fire( 'beforeCommandExec', eventData ) !== true )
{
eventData.returnValue = command.exec( eventData.commandData );
// Fire the 'afterCommandExec' immediately if command is synchronous.
if ( !command.async && this.fire( 'afterCommandExec', eventData ) !== true )
return eventData.returnValue;
}
}
// throw 'Unknown command name "' + commandName + '"';
return false;
},
/**
* Gets one of the registered commands. Note that after registering a
* command definition with <code>{@link #addCommand}</code>, it is
* transformed internally into an instance of
* <code>{@link CKEDITOR.command}</code>, which will then be returned
* by this function.
* @param {String} commandName The name of the command to be returned.
* This is the same name that is used to register the command with
* <code>addCommand</code>.
* @returns {CKEDITOR.command} The command object identified by the
* provided name.
*/
getCommand : function( commandName )
{
return this._.commands[ commandName ];
},
/**
* Gets the editor data. The data will be in raw format. It is the same
* data that is posted by the editor.
* @type String
* @returns (String) The editor data.
* @example
* if ( CKEDITOR.instances.editor1.<strong>getData()</strong> == '' )
* alert( 'There is no data available' );
*/
getData : function()
{
this.fire( 'beforeGetData' );
var eventData = this._.data;
if ( typeof eventData != 'string' )
{
var element = this.element;
if ( element && this.elementMode == CKEDITOR.ELEMENT_MODE_REPLACE )
eventData = element.is( 'textarea' ) ? element.getValue() : element.getHtml();
else
eventData = '';
}
eventData = { dataValue : eventData };
// Fire "getData" so data manipulation may happen.
this.fire( 'getData', eventData );
return eventData.dataValue;
},
/**
* Gets the "raw data" currently available in the editor. This is a
* fast method which returns the data as is, without processing, so it is
* not recommended to use it on resulting pages. Instead it can be used
* combined with the <code>{@link #loadSnapshot}</code> method in order
* to be able to automatically save the editor data from time to time
* while the user is using the editor, to avoid data loss, without risking
* performance issues.
* @see CKEDITOR.editor.getData
* @example
* alert( editor.getSnapshot() );
*/
getSnapshot : function()
{
var data = this.fire( 'getSnapshot' );
if ( typeof data != 'string' )
{
var element = this.element;
if ( element && this.elementMode == CKEDITOR.ELEMENT_MODE_REPLACE )
data = element.is( 'textarea' ) ? element.getValue() : element.getHtml();
}
return data;
},
/**
* Loads "raw data" into the editor. The data is loaded with processing
* straight to the editing area. It should not be used as a way to load
* any kind of data, but instead in combination with
* <code>{@link #getSnapshot}</code> produced data.
* @see CKEDITOR.editor.setData
* @example
* var data = editor.getSnapshot();
* editor.<strong>loadSnapshot( data )</strong>;
*/
loadSnapshot : function( snapshot )
{
this.fire( 'loadSnapshot', snapshot );
},
/**
* Sets the editor data. The data must be provided in the raw format (HTML).<br />
* <br />
* Note that this method is asynchronous. The <code>callback</code> parameter must
* be used if interaction with the editor is needed after setting the data.
* @param {String} data HTML code to replace the curent content in the
* editor.
* @param {Function} callback Function to be called after the <code>setData</code>
* is completed.
*@param {Boolean} internal Whether to suppress any event firing when copying data
* internally inside the editor.
* @example
* CKEDITOR.instances.editor1.<strong>setData</strong>( '<p>This is the editor data.</p>' );
* @example
* CKEDITOR.instances.editor1.<strong>setData</strong>( '<p>Some other editor data.</p>', function()
* {
* this.checkDirty(); // true
* });
*/
setData : function( data , callback, internal )
{
if( callback )
{
this.on( 'dataReady', function( evt )
{
evt.removeListener();
callback.call( evt.editor );
} );
}
// Fire "setData" so data manipulation may happen.
var eventData = { dataValue : data };
!internal && this.fire( 'setData', eventData );
this._.data = eventData.dataValue;
!internal && this.fire( 'afterSetData', eventData );
},
/**
* Puts or restores the editor into read-only state. When in read-only,
* the user is not able to change the editor contents, but can still use
* some editor features. This function sets the <code>{@link CKEDITOR.config.readOnly}</code>
* property of the editor, firing the <code>{@link CKEDITOR.editor#readOnly}</code> event.<br><br>
* <strong>Note:</strong> the current editing area will be reloaded.
* @param {Boolean} [isReadOnly] Indicates that the editor must go
* read-only (<code>true</code>, default) or be restored and made editable
* (<code>false</code>).
* @since 3.6
*/
setReadOnly : function( isReadOnly )
{
isReadOnly = ( isReadOnly == undefined ) || isReadOnly;
if ( this.readOnly != isReadOnly )
{
this.readOnly = isReadOnly;
// Fire the readOnly event so the editor features can update
// their state accordingly.
this.fire( 'readOnly' );
}
},
/**
* Inserts HTML code into the currently selected position in the editor in WYSIWYG mode.
* @param {String} data HTML code to be inserted into the editor.
* @example
* CKEDITOR.instances.editor1.<strong>insertHtml( '<p>This is a new paragraph.</p>' )</strong>;
*/
insertHtml : function( data )
{
this.fire( 'insertHtml', data );
},
/**
* Insert text content into the currently selected position in the
* editor in WYSIWYG mode. The styles of the selected element will be applied to the inserted text.
* Spaces around the text will be leaving untouched.
* <strong>Note:</strong> two subsequent line-breaks will introduce one paragraph. This depends on <code>{@link CKEDITOR.config.enterMode}</code>;
* A single line-break will be instead translated into one <br />.
* @since 3.5
* @param {String} text Text to be inserted into the editor.
* @example
* CKEDITOR.instances.editor1.<strong>insertText( ' line1 \n\n line2' )</strong>;
*/
insertText : function( text )
{
this.fire( 'insertText', text );
},
/**
* Inserts an element into the currently selected position in the
* editor in WYSIWYG mode.
* @param {CKEDITOR.dom.element} element The element to be inserted
* into the editor.
* @example
* var element = CKEDITOR.dom.element.createFromHtml( '<img src="hello.png" border="0" title="Hello" />' );
* CKEDITOR.instances.editor1.<strong>insertElement( element )</strong>;
*/
insertElement : function( element )
{
this.fire( 'insertElement', element );
},
/**
* Checks whether the current editor contents contain changes when
* compared to the contents loaded into the editor at startup, or to
* the contents available in the editor when <code>{@link #resetDirty}</code>
* was called.
* @returns {Boolean} "true" is the contents contain changes.
* @example
* function beforeUnload( e )
* {
* if ( CKEDITOR.instances.editor1.<strong>checkDirty()</strong> )
* return e.returnValue = "You will lose the changes made in the editor.";
* }
*
* if ( window.addEventListener )
* window.addEventListener( 'beforeunload', beforeUnload, false );
* else
* window.attachEvent( 'onbeforeunload', beforeUnload );
*/
checkDirty : function()
{
return ( this.mayBeDirty && this._.previousValue !== this.getSnapshot() );
},
/**
* Resets the "dirty state" of the editor so subsequent calls to
* <code>{@link #checkDirty}</code> will return <code>false</code> if the user will not
* have made further changes to the contents.
* @example
* alert( editor.checkDirty() ); // E.g. "true"
* editor.<strong>resetDirty()</strong>;
* alert( editor.checkDirty() ); // "false"
*/
resetDirty : function()
{
if ( this.mayBeDirty )
this._.previousValue = this.getSnapshot();
},
/**
* Updates the <code><textarea></code> element that was replaced by the editor with
* the current data available in the editor.
* @see CKEDITOR.editor.element
* @example
* CKEDITOR.instances.editor1.updateElement();
* alert( document.getElementById( 'editor1' ).value ); // The current editor data.
*/
updateElement : function()
{
var element = this.element;
if ( element && this.elementMode == CKEDITOR.ELEMENT_MODE_REPLACE )
{
var data = this.getData();
if ( this.config.htmlEncodeOutput )
data = CKEDITOR.tools.htmlEncode( data );
if ( element.is( 'textarea' ) )
element.setValue( data );
else
element.setHtml( data );
}
}
});
CKEDITOR.on( 'loaded', function()
{
// Run the full initialization for pending editors.
var pending = CKEDITOR.editor._pending;
if ( pending )
{
delete CKEDITOR.editor._pending;
for ( var i = 0 ; i < pending.length ; i++ )
pending[ i ]._init();
}
});
/**
* Whether to escape HTML when the editor updates the original input element.
* @name CKEDITOR.config.htmlEncodeOutput
* @since 3.1
* @type Boolean
* @default false
* @example
* config.htmlEncodeOutput = true;
*/
/**
* If <code>true</code>, makes the editor start in read-only state. Otherwise, it will check
* if the linked <code><textarea></code> element has the <code>disabled</code> attribute.
* @name CKEDITOR.config.readOnly
* @see CKEDITOR.editor#setReadOnly
* @type Boolean
* @default false
* @since 3.6
* @example
* config.readOnly = true;
*/
/**
* Fired when a CKEDITOR instance is created, but still before initializing it.
* To interact with a fully initialized instance, use the
* <code>{@link CKEDITOR#instanceReady}</code> event instead.
* @name CKEDITOR#instanceCreated
* @event
* @param {CKEDITOR.editor} editor The editor instance that has been created.
*/
/**
* Fired when a CKEDITOR instance is destroyed.
* @name CKEDITOR#instanceDestroyed
* @event
* @param {CKEDITOR.editor} editor The editor instance that has been destroyed.
*/
/**
* Fired when the language is loaded into the editor instance.
* @name CKEDITOR.editor#langLoaded
* @event
* @since 3.6.1
* @param {CKEDITOR.editor} editor This editor instance.
*/
/**
* Fired when all plugins are loaded and initialized into the editor instance.
* @name CKEDITOR.editor#pluginsLoaded
* @event
* @param {CKEDITOR.editor} editor This editor instance.
*/
/**
* Fired before the command execution when <code>{@link #execCommand}</code> is called.
* @name CKEDITOR.editor#beforeCommandExec
* @event
* @param {CKEDITOR.editor} editor This editor instance.
* @param {String} data.name The command name.
* @param {Object} data.commandData The data to be sent to the command. This
* can be manipulated by the event listener.
* @param {CKEDITOR.command} data.command The command itself.
*/
/**
* Fired after the command execution when <code>{@link #execCommand}</code> is called.
* @name CKEDITOR.editor#afterCommandExec
* @event
* @param {CKEDITOR.editor} editor This editor instance.
* @param {String} data.name The command name.
* @param {Object} data.commandData The data sent to the command.
* @param {CKEDITOR.command} data.command The command itself.
* @param {Object} data.returnValue The value returned by the command execution.
*/
/**
* Fired when the custom configuration file is loaded, before the final
* configurations initialization.<br />
* <br />
* Custom configuration files can be loaded thorugh the
* <code>{@link CKEDITOR.config.customConfig}</code> setting. Several files can be loaded
* by changing this setting.
* @name CKEDITOR.editor#customConfigLoaded
* @event
* @param {CKEDITOR.editor} editor This editor instance.
*/
/**
* Fired once the editor configuration is ready (loaded and processed).
* @name CKEDITOR.editor#configLoaded
* @event
* @param {CKEDITOR.editor} editor This editor instance.
*/
/**
* Fired when this editor instance is destroyed. The editor at this
* point is not usable and this event should be used to perform the clean-up
* in any plugin.
* @name CKEDITOR.editor#destroy
* @event
*/
/**
* Internal event to get the current data.
* @name CKEDITOR.editor#beforeGetData
* @event
*/
/**
* Internal event to perform the <code>#getSnapshot</code> call.
* @name CKEDITOR.editor#getSnapshot
* @event
*/
/**
* Internal event to perform the <code>#loadSnapshot</code> call.
* @name CKEDITOR.editor#loadSnapshot
* @event
*/
/**
* Event fired before the <code>#getData</code> call returns allowing additional manipulation.
* @name CKEDITOR.editor#getData
* @event
* @param {CKEDITOR.editor} editor This editor instance.
* @param {String} data.dataValue The data that will be returned.
*/
/**
* Event fired before the <code>#setData</code> call is executed allowing additional manipulation.
* @name CKEDITOR.editor#setData
* @event
* @param {CKEDITOR.editor} editor This editor instance.
* @param {String} data.dataValue The data that will be used.
*/
/**
* Event fired at the end of the <code>#setData</code> call execution. Usually it is better to use the
* <code>{@link CKEDITOR.editor.prototype.dataReady}</code> event.
* @name CKEDITOR.editor#afterSetData
* @event
* @param {CKEDITOR.editor} editor This editor instance.
* @param {String} data.dataValue The data that has been set.
*/
/**
* Internal event to perform the <code>#insertHtml</code> call
* @name CKEDITOR.editor#insertHtml
* @event
* @param {CKEDITOR.editor} editor This editor instance.
* @param {String} data The HTML to insert.
*/
/**
* Internal event to perform the <code>#insertText</code> call
* @name CKEDITOR.editor#insertText
* @event
* @param {CKEDITOR.editor} editor This editor instance.
* @param {String} text The text to insert.
*/
/**
* Internal event to perform the <code>#insertElement</code> call
* @name CKEDITOR.editor#insertElement
* @event
* @param {CKEDITOR.editor} editor This editor instance.
* @param {Object} element The element to insert.
*/
/**
* Event fired after the <code>{@link CKEDITOR.editor#readOnly}</code> property changes.
* @name CKEDITOR.editor#readOnly
* @event
* @since 3.6
* @param {CKEDITOR.editor} editor This editor instance.
*/
| 10npsite | trunk/guanli/system/ckeditor/_source/core/editor.js | JavaScript | asf20 | 34,308 |
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
/**
* @fileOverview Defines the "virtual" {@link CKEDITOR.commandDefinition} class,
* which contains the defintion of a command. This file is for
* documentation purposes only.
*/
/**
* (Virtual Class) Do not call this constructor. This class is not really part
* of the API.
* @name CKEDITOR.commandDefinition
* @class Virtual class that illustrates the features of command objects to be
* passed to the {@link CKEDITOR.editor.prototype.addCommand} function.
* @example
*/
/**
* The function to be fired when the commend is executed.
* @name CKEDITOR.commandDefinition.prototype.exec
* @function
* @param {CKEDITOR.editor} editor The editor within which run the command.
* @param {Object} [data] Additional data to be used to execute the command.
* @returns {Boolean} Whether the command has been successfully executed.
* Defaults to "true", if nothing is returned.
* @example
* editorInstance.addCommand( 'sample',
* {
* exec : function( editor )
* {
* alert( 'Executing a command for the editor name "' + editor.name + '"!' );
* }
* });
*/
/**
* Whether the command need to be hooked into the redo/undo system.
* @name CKEDITOR.commandDefinition.prototype.canUndo
* @type {Boolean}
* @default true
* @field
* @example
* editorInstance.addCommand( 'alertName',
* {
* exec : function( editor )
* {
* alert( editor.name );
* },
* canUndo : false // No support for undo/redo
* });
*/
/**
* Whether the command is asynchronous, which means that the
* {@link CKEDITOR.editor#event:afterCommandExec} event will be fired by the
* command itself manually, and that the return value of this command is not to
* be returned by the {@link CKEDITOR.command#exec} function.
* @name CKEDITOR.commandDefinition.prototype.async
* @default false
* @type {Boolean}
* @example
* editorInstance.addCommand( 'loadOptions',
* {
* exec : function( editor )
* {
* // Asynchronous operation below.
* CKEDITOR.ajax.loadXml( 'data.xml', function()
* {
* editor.fire( 'afterCommandExec' );
* ));
* },
* async : true // The command need some time to complete after exec function returns.
* });
*/
/**
* Whether the command should give focus to the editor before execution.
* @name CKEDITOR.commandDefinition.prototype.editorFocus
* @type {Boolean}
* @default true
* @see CKEDITOR.command#editorFocus
* @example
* editorInstance.addCommand( 'maximize',
* {
* exec : function( editor )
* {
* // ...
* },
* editorFocus : false // The command doesn't require focusing the editing document.
* });
*/
/**
* Whether the command state should be set to {@link CKEDITOR.TRISTATE_DISABLED} on startup.
* @name CKEDITOR.commandDefinition.prototype.startDisabled
* @type {Boolean}
* @default false
* @example
* editorInstance.addCommand( 'unlink',
* {
* exec : function( editor )
* {
* // ...
* },
* startDisabled : true // Command is unavailable until selection is inside a link.
* });
*/
/**
* The editor modes within which the command can be executed. The execution
* will have no action if the current mode is not listed in this property.
* @name CKEDITOR.commandDefinition.prototype.modes
* @type Object
* @default { wysiwyg : 1 }
* @see CKEDITOR.command#modes
* @example
* editorInstance.addCommand( 'link',
* {
* exec : function( editor )
* {
* // ...
* },
* modes : { wysiwyg : 1 } // Command is available in wysiwyg mode only.
* });
*/
| 10npsite | trunk/guanli/system/ckeditor/_source/core/commanddefinition.js | JavaScript | asf20 | 3,912 |
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
(function()
{
/**
* Represents a list os CKEDITOR.dom.range objects, which can be easily
* iterated sequentially.
* @constructor
* @param {CKEDITOR.dom.range|Array} [ranges] The ranges contained on this list.
* Note that, if an array of ranges is specified, the range sequence
* should match its DOM order. This class will not help to sort them.
*/
CKEDITOR.dom.rangeList = function( ranges )
{
if ( ranges instanceof CKEDITOR.dom.rangeList )
return ranges;
if ( !ranges )
ranges = [];
else if ( ranges instanceof CKEDITOR.dom.range )
ranges = [ ranges ];
return CKEDITOR.tools.extend( ranges, mixins );
};
var mixins =
/** @lends CKEDITOR.dom.rangeList.prototype */
{
/**
* Creates an instance of the rangeList iterator, it should be used
* only when the ranges processing could be DOM intrusive, which
* means it may pollute and break other ranges in this list.
* Otherwise, it's enough to just iterate over this array in a for loop.
* @returns {CKEDITOR.dom.rangeListIterator}
*/
createIterator : function()
{
var rangeList = this,
bookmark = CKEDITOR.dom.walker.bookmark(),
guard = function( node ) { return ! ( node.is && node.is( 'tr' ) ); },
bookmarks = [],
current;
/**
* @lends CKEDITOR.dom.rangeListIterator.prototype
*/
return {
/**
* Retrieves the next range in the list.
* @param {Boolean} mergeConsequent Whether join two adjacent ranges into single, e.g. consequent table cells.
*/
getNextRange : function( mergeConsequent )
{
current = current == undefined ? 0 : current + 1;
var range = rangeList[ current ];
// Multiple ranges might be mangled by each other.
if ( range && rangeList.length > 1 )
{
// Bookmarking all other ranges on the first iteration,
// the range correctness after it doesn't matter since we'll
// restore them before the next iteration.
if ( !current )
{
// Make sure bookmark correctness by reverse processing.
for ( var i = rangeList.length - 1; i >= 0; i-- )
bookmarks.unshift( rangeList[ i ].createBookmark( true ) );
}
if ( mergeConsequent )
{
// Figure out how many ranges should be merged.
var mergeCount = 0;
while ( rangeList[ current + mergeCount + 1 ] )
{
var doc = range.document,
found = 0,
left = doc.getById( bookmarks[ mergeCount ].endNode ),
right = doc.getById( bookmarks[ mergeCount + 1 ].startNode ),
next;
// Check subsequent range.
while ( 1 )
{
next = left.getNextSourceNode( false );
if ( !right.equals( next ) )
{
// This could be yet another bookmark or
// walking across block boundaries.
if ( bookmark( next ) || ( next.type == CKEDITOR.NODE_ELEMENT && next.isBlockBoundary() ) )
{
left = next;
continue;
}
}
else
found = 1;
break;
}
if ( !found )
break;
mergeCount++;
}
}
range.moveToBookmark( bookmarks.shift() );
// Merge ranges finally after moving to bookmarks.
while( mergeCount-- )
{
next = rangeList[ ++current ];
next.moveToBookmark( bookmarks.shift() );
range.setEnd( next.endContainer, next.endOffset );
}
}
return range;
}
};
},
createBookmarks : function( serializable )
{
var retval = [], bookmark;
for ( var i = 0; i < this.length ; i++ )
{
retval.push( bookmark = this[ i ].createBookmark( serializable, true) );
// Updating the container & offset values for ranges
// that have been touched.
for ( var j = i + 1; j < this.length; j++ )
{
this[ j ] = updateDirtyRange( bookmark, this[ j ] );
this[ j ] = updateDirtyRange( bookmark, this[ j ], true );
}
}
return retval;
},
createBookmarks2 : function( normalized )
{
var bookmarks = [];
for ( var i = 0 ; i < this.length ; i++ )
bookmarks.push( this[ i ].createBookmark2( normalized ) );
return bookmarks;
},
/**
* Move each range in the list to the position specified by a list of bookmarks.
* @param {Array} bookmarks The list of bookmarks, each one matching a range in the list.
*/
moveToBookmarks : function( bookmarks )
{
for ( var i = 0 ; i < this.length ; i++ )
this[ i ].moveToBookmark( bookmarks[ i ] );
}
};
// Update the specified range which has been mangled by previous insertion of
// range bookmark nodes.(#3256)
function updateDirtyRange( bookmark, dirtyRange, checkEnd )
{
var serializable = bookmark.serializable,
container = dirtyRange[ checkEnd ? 'endContainer' : 'startContainer' ],
offset = checkEnd ? 'endOffset' : 'startOffset';
var bookmarkStart = serializable ?
dirtyRange.document.getById( bookmark.startNode )
: bookmark.startNode;
var bookmarkEnd = serializable ?
dirtyRange.document.getById( bookmark.endNode )
: bookmark.endNode;
if ( container.equals( bookmarkStart.getPrevious() ) )
{
dirtyRange.startOffset = dirtyRange.startOffset
- container.getLength()
- bookmarkEnd.getPrevious().getLength();
container = bookmarkEnd.getNext();
}
else if ( container.equals( bookmarkEnd.getPrevious() ) )
{
dirtyRange.startOffset = dirtyRange.startOffset - container.getLength();
container = bookmarkEnd.getNext();
}
container.equals( bookmarkStart.getParent() ) && dirtyRange[ offset ]++;
container.equals( bookmarkEnd.getParent() ) && dirtyRange[ offset ]++;
// Update and return this range.
dirtyRange[ checkEnd ? 'endContainer' : 'startContainer' ] = container;
return dirtyRange;
}
})();
/**
* (Virtual Class) Do not call this constructor. This class is not really part
* of the API. It just describes the return type of {@link CKEDITOR.dom.rangeList#createIterator}.
* @name CKEDITOR.dom.rangeListIterator
* @constructor
* @example
*/
| 10npsite | trunk/guanli/system/ckeditor/_source/core/dom/rangelist.js | JavaScript | asf20 | 6,554 |
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
(function()
{
// This function is to be called under a "walker" instance scope.
function iterate( rtl, breakOnFalse )
{
var range = this.range;
// Return null if we have reached the end.
if ( this._.end )
return null;
// This is the first call. Initialize it.
if ( !this._.start )
{
this._.start = 1;
// A collapsed range must return null at first call.
if ( range.collapsed )
{
this.end();
return null;
}
// Move outside of text node edges.
range.optimize();
}
var node,
startCt = range.startContainer,
endCt = range.endContainer,
startOffset = range.startOffset,
endOffset = range.endOffset,
guard,
userGuard = this.guard,
type = this.type,
getSourceNodeFn = ( rtl ? 'getPreviousSourceNode' : 'getNextSourceNode' );
// Create the LTR guard function, if necessary.
if ( !rtl && !this._.guardLTR )
{
// The node that stops walker from moving up.
var limitLTR = endCt.type == CKEDITOR.NODE_ELEMENT ?
endCt :
endCt.getParent();
// The node that stops the walker from going to next.
var blockerLTR = endCt.type == CKEDITOR.NODE_ELEMENT ?
endCt.getChild( endOffset ) :
endCt.getNext();
this._.guardLTR = function( node, movingOut )
{
return ( ( !movingOut || !limitLTR.equals( node ) )
&& ( !blockerLTR || !node.equals( blockerLTR ) )
&& ( node.type != CKEDITOR.NODE_ELEMENT || !movingOut || node.getName() != 'body' ) );
};
}
// Create the RTL guard function, if necessary.
if ( rtl && !this._.guardRTL )
{
// The node that stops walker from moving up.
var limitRTL = startCt.type == CKEDITOR.NODE_ELEMENT ?
startCt :
startCt.getParent();
// The node that stops the walker from going to next.
var blockerRTL = startCt.type == CKEDITOR.NODE_ELEMENT ?
startOffset ?
startCt.getChild( startOffset - 1 ) : null :
startCt.getPrevious();
this._.guardRTL = function( node, movingOut )
{
return ( ( !movingOut || !limitRTL.equals( node ) )
&& ( !blockerRTL || !node.equals( blockerRTL ) )
&& ( node.type != CKEDITOR.NODE_ELEMENT || !movingOut || node.getName() != 'body' ) );
};
}
// Define which guard function to use.
var stopGuard = rtl ? this._.guardRTL : this._.guardLTR;
// Make the user defined guard function participate in the process,
// otherwise simply use the boundary guard.
if ( userGuard )
{
guard = function( node, movingOut )
{
if ( stopGuard( node, movingOut ) === false )
return false;
return userGuard( node, movingOut );
};
}
else
guard = stopGuard;
if ( this.current )
node = this.current[ getSourceNodeFn ]( false, type, guard );
else
{
// Get the first node to be returned.
if ( rtl )
{
node = endCt;
if ( node.type == CKEDITOR.NODE_ELEMENT )
{
if ( endOffset > 0 )
node = node.getChild( endOffset - 1 );
else
node = ( guard ( node, true ) === false ) ?
null : node.getPreviousSourceNode( true, type, guard );
}
}
else
{
node = startCt;
if ( node.type == CKEDITOR.NODE_ELEMENT )
{
if ( ! ( node = node.getChild( startOffset ) ) )
node = ( guard ( startCt, true ) === false ) ?
null : startCt.getNextSourceNode( true, type, guard ) ;
}
}
if ( node && guard( node ) === false )
node = null;
}
while ( node && !this._.end )
{
this.current = node;
if ( !this.evaluator || this.evaluator( node ) !== false )
{
if ( !breakOnFalse )
return node;
}
else if ( breakOnFalse && this.evaluator )
return false;
node = node[ getSourceNodeFn ]( false, type, guard );
}
this.end();
return this.current = null;
}
function iterateToLast( rtl )
{
var node, last = null;
while ( ( node = iterate.call( this, rtl ) ) )
last = node;
return last;
}
CKEDITOR.dom.walker = CKEDITOR.tools.createClass(
{
/**
* Utility class to "walk" the DOM inside a range boundaries. If
* necessary, partially included nodes (text nodes) are broken to
* reflect the boundaries limits, so DOM and range changes may happen.
* Outside changes to the range may break the walker.
*
* The walker may return nodes that are not totaly included into the
* range boundaires. Let's take the following range representation,
* where the square brackets indicate the boundaries:
*
* [<p>Some <b>sample] text</b>
*
* While walking forward into the above range, the following nodes are
* returned: <p>, "Some ", <b> and "sample". Going
* backwards instead we have: "sample" and "Some ". So note that the
* walker always returns nodes when "entering" them, but not when
* "leaving" them. The guard function is instead called both when
* entering and leaving nodes.
*
* @constructor
* @param {CKEDITOR.dom.range} range The range within which walk.
*/
$ : function( range )
{
this.range = range;
/**
* A function executed for every matched node, to check whether
* it's to be considered into the walk or not. If not provided, all
* matched nodes are considered good.
* If the function returns "false" the node is ignored.
* @name CKEDITOR.dom.walker.prototype.evaluator
* @property
* @type Function
*/
// this.evaluator = null;
/**
* A function executed for every node the walk pass by to check
* whether the walk is to be finished. It's called when both
* entering and exiting nodes, as well as for the matched nodes.
* If this function returns "false", the walking ends and no more
* nodes are evaluated.
* @name CKEDITOR.dom.walker.prototype.guard
* @property
* @type Function
*/
// this.guard = null;
/** @private */
this._ = {};
},
// statics :
// {
// /* Creates a CKEDITOR.dom.walker instance to walk inside DOM boundaries set by nodes.
// * @param {CKEDITOR.dom.node} startNode The node from wich the walk
// * will start.
// * @param {CKEDITOR.dom.node} [endNode] The last node to be considered
// * in the walk. No more nodes are retrieved after touching or
// * passing it. If not provided, the walker stops at the
// * <body> closing boundary.
// * @returns {CKEDITOR.dom.walker} A DOM walker for the nodes between the
// * provided nodes.
// */
// createOnNodes : function( startNode, endNode, startInclusive, endInclusive )
// {
// var range = new CKEDITOR.dom.range();
// if ( startNode )
// range.setStartAt( startNode, startInclusive ? CKEDITOR.POSITION_BEFORE_START : CKEDITOR.POSITION_AFTER_END ) ;
// else
// range.setStartAt( startNode.getDocument().getBody(), CKEDITOR.POSITION_AFTER_START ) ;
//
// if ( endNode )
// range.setEndAt( endNode, endInclusive ? CKEDITOR.POSITION_AFTER_END : CKEDITOR.POSITION_BEFORE_START ) ;
// else
// range.setEndAt( startNode.getDocument().getBody(), CKEDITOR.POSITION_BEFORE_END ) ;
//
// return new CKEDITOR.dom.walker( range );
// }
// },
//
proto :
{
/**
* Stop walking. No more nodes are retrieved if this function gets
* called.
*/
end : function()
{
this._.end = 1;
},
/**
* Retrieves the next node (at right).
* @returns {CKEDITOR.dom.node} The next node or null if no more
* nodes are available.
*/
next : function()
{
return iterate.call( this );
},
/**
* Retrieves the previous node (at left).
* @returns {CKEDITOR.dom.node} The previous node or null if no more
* nodes are available.
*/
previous : function()
{
return iterate.call( this, 1 );
},
/**
* Check all nodes at right, executing the evaluation fuction.
* @returns {Boolean} "false" if the evaluator function returned
* "false" for any of the matched nodes. Otherwise "true".
*/
checkForward : function()
{
return iterate.call( this, 0, 1 ) !== false;
},
/**
* Check all nodes at left, executing the evaluation fuction.
* @returns {Boolean} "false" if the evaluator function returned
* "false" for any of the matched nodes. Otherwise "true".
*/
checkBackward : function()
{
return iterate.call( this, 1, 1 ) !== false;
},
/**
* Executes a full walk forward (to the right), until no more nodes
* are available, returning the last valid node.
* @returns {CKEDITOR.dom.node} The last node at the right or null
* if no valid nodes are available.
*/
lastForward : function()
{
return iterateToLast.call( this );
},
/**
* Executes a full walk backwards (to the left), until no more nodes
* are available, returning the last valid node.
* @returns {CKEDITOR.dom.node} The last node at the left or null
* if no valid nodes are available.
*/
lastBackward : function()
{
return iterateToLast.call( this, 1 );
},
reset : function()
{
delete this.current;
this._ = {};
}
}
});
/*
* Anything whose display computed style is block, list-item, table,
* table-row-group, table-header-group, table-footer-group, table-row,
* table-column-group, table-column, table-cell, table-caption, or whose node
* name is hr, br (when enterMode is br only) is a block boundary.
*/
var blockBoundaryDisplayMatch =
{
block : 1,
'list-item' : 1,
table : 1,
'table-row-group' : 1,
'table-header-group' : 1,
'table-footer-group' : 1,
'table-row' : 1,
'table-column-group' : 1,
'table-column' : 1,
'table-cell' : 1,
'table-caption' : 1
};
CKEDITOR.dom.element.prototype.isBlockBoundary = function( customNodeNames )
{
var nodeNameMatches = customNodeNames ?
CKEDITOR.tools.extend( {}, CKEDITOR.dtd.$block, customNodeNames || {} ) :
CKEDITOR.dtd.$block;
// Don't consider floated formatting as block boundary, fall back to dtd check in that case. (#6297)
return this.getComputedStyle( 'float' ) == 'none' && blockBoundaryDisplayMatch[ this.getComputedStyle( 'display' ) ]
|| nodeNameMatches[ this.getName() ];
};
CKEDITOR.dom.walker.blockBoundary = function( customNodeNames )
{
return function( node , type )
{
return ! ( node.type == CKEDITOR.NODE_ELEMENT
&& node.isBlockBoundary( customNodeNames ) );
};
};
CKEDITOR.dom.walker.listItemBoundary = function()
{
return this.blockBoundary( { br : 1 } );
};
/**
* Whether the to-be-evaluated node is a bookmark node OR bookmark node
* inner contents.
* @param {Boolean} contentOnly Whether only test againt the text content of
* bookmark node instead of the element itself(default).
* @param {Boolean} isReject Whether should return 'false' for the bookmark
* node instead of 'true'(default).
*/
CKEDITOR.dom.walker.bookmark = function( contentOnly, isReject )
{
function isBookmarkNode( node )
{
return ( node && node.getName
&& node.getName() == 'span'
&& node.data( 'cke-bookmark' ) );
}
return function( node )
{
var isBookmark, parent;
// Is bookmark inner text node?
isBookmark = ( node && !node.getName && ( parent = node.getParent() )
&& isBookmarkNode( parent ) );
// Is bookmark node?
isBookmark = contentOnly ? isBookmark : isBookmark || isBookmarkNode( node );
return !! ( isReject ^ isBookmark );
};
};
/**
* Whether the node is a text node containing only whitespaces characters.
* @param isReject
*/
CKEDITOR.dom.walker.whitespaces = function( isReject )
{
return function( node )
{
var isWhitespace = node && ( node.type == CKEDITOR.NODE_TEXT )
&& !CKEDITOR.tools.trim( node.getText() );
return !! ( isReject ^ isWhitespace );
};
};
/**
* Whether the node is invisible in wysiwyg mode.
* @param isReject
*/
CKEDITOR.dom.walker.invisible = function( isReject )
{
var whitespace = CKEDITOR.dom.walker.whitespaces();
return function( node )
{
// Nodes that take no spaces in wysiwyg:
// 1. White-spaces but not including NBSP;
// 2. Empty inline elements, e.g. <b></b> we're checking here
// 'offsetHeight' instead of 'offsetWidth' for properly excluding
// all sorts of empty paragraph, e.g. <br />.
var isInvisible = whitespace( node ) || node.is && !node.$.offsetHeight;
return !! ( isReject ^ isInvisible );
};
};
CKEDITOR.dom.walker.nodeType = function( type, isReject )
{
return function( node )
{
return !! ( isReject ^ ( node.type == type ) );
};
};
CKEDITOR.dom.walker.bogus = function( isReject )
{
function nonEmpty( node )
{
return !isWhitespaces( node ) && !isBookmark( node );
}
return function( node )
{
var isBogus = !CKEDITOR.env.ie ? node.is && node.is( 'br' ) :
node.getText && tailNbspRegex.test( node.getText() );
if ( isBogus )
{
var parent = node.getParent(), next = node.getNext( nonEmpty );
isBogus = parent.isBlockBoundary() &&
( !next ||
next.type == CKEDITOR.NODE_ELEMENT &&
next.isBlockBoundary() );
}
return !! ( isReject ^ isBogus );
};
};
var tailNbspRegex = /^[\t\r\n ]*(?: |\xa0)$/,
isWhitespaces = CKEDITOR.dom.walker.whitespaces(),
isBookmark = CKEDITOR.dom.walker.bookmark(),
toSkip = function( node )
{
return isBookmark( node )
|| isWhitespaces( node )
|| node.type == CKEDITOR.NODE_ELEMENT
&& node.getName() in CKEDITOR.dtd.$inline
&& !( node.getName() in CKEDITOR.dtd.$empty );
};
// Check if there's a filler node at the end of an element, and return it.
CKEDITOR.dom.element.prototype.getBogus = function()
{
// Bogus are not always at the end, e.g. <p><a>text<br /></a></p> (#7070).
var tail = this;
do { tail = tail.getPreviousSourceNode(); }
while ( toSkip( tail ) )
if ( tail && ( !CKEDITOR.env.ie ? tail.is && tail.is( 'br' )
: tail.getText && tailNbspRegex.test( tail.getText() ) ) )
{
return tail;
}
return false;
};
})();
| 10npsite | trunk/guanli/system/ckeditor/_source/core/dom/walker.js | JavaScript | asf20 | 14,651 |
/*
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.dom.event} class, which
* represents the a native DOM event object.
*/
/**
* Represents a native DOM event object.
* @constructor
* @param {Object} domEvent A native DOM event object.
* @example
*/
CKEDITOR.dom.event = function( domEvent )
{
/**
* The native DOM event object represented by this class instance.
* @type Object
* @example
*/
this.$ = domEvent;
};
CKEDITOR.dom.event.prototype =
{
/**
* Gets the key code associated to the event.
* @returns {Number} The key code.
* @example
* alert( event.getKey() ); "65" is "a" has been pressed
*/
getKey : function()
{
return this.$.keyCode || this.$.which;
},
/**
* Gets a number represeting the combination of the keys pressed during the
* event. It is the sum with the current key code and the {@link CKEDITOR.CTRL},
* {@link CKEDITOR.SHIFT} and {@link CKEDITOR.ALT} constants.
* @returns {Number} The number representing the keys combination.
* @example
* alert( event.getKeystroke() == 65 ); // "a" key
* alert( event.getKeystroke() == CKEDITOR.CTRL + 65 ); // CTRL + "a" key
* alert( event.getKeystroke() == CKEDITOR.CTRL + CKEDITOR.SHIFT + 65 ); // CTRL + SHIFT + "a" key
*/
getKeystroke : function()
{
var keystroke = this.getKey();
if ( this.$.ctrlKey || this.$.metaKey )
keystroke += CKEDITOR.CTRL;
if ( this.$.shiftKey )
keystroke += CKEDITOR.SHIFT;
if ( this.$.altKey )
keystroke += CKEDITOR.ALT;
return keystroke;
},
/**
* Prevents the original behavior of the event to happen. It can optionally
* stop propagating the event in the event chain.
* @param {Boolean} [stopPropagation] Stop propagating this event in the
* event chain.
* @example
* var element = CKEDITOR.document.getById( 'myElement' );
* element.on( 'click', function( ev )
* {
* // The DOM event object is passed by the "data" property.
* var domEvent = ev.data;
* // Prevent the click to chave any effect in the element.
* domEvent.preventDefault();
* });
*/
preventDefault : function( stopPropagation )
{
var $ = this.$;
if ( $.preventDefault )
$.preventDefault();
else
$.returnValue = false;
if ( stopPropagation )
this.stopPropagation();
},
stopPropagation : function()
{
var $ = this.$;
if ( $.stopPropagation )
$.stopPropagation();
else
$.cancelBubble = true;
},
/**
* Returns the DOM node where the event was targeted to.
* @returns {CKEDITOR.dom.node} The target DOM node.
* @example
* var element = CKEDITOR.document.getById( 'myElement' );
* element.on( 'click', function( ev )
* {
* // The DOM event object is passed by the "data" property.
* var domEvent = ev.data;
* // Add a CSS class to the event target.
* domEvent.getTarget().addClass( 'clicked' );
* });
*/
getTarget : function()
{
var rawNode = this.$.target || this.$.srcElement;
return rawNode ? new CKEDITOR.dom.node( rawNode ) : null;
}
};
// For the followind constants, we need to go over the Unicode boundaries
// (0x10FFFF) to avoid collision.
/**
* CTRL key (0x110000).
* @constant
* @example
*/
CKEDITOR.CTRL = 0x110000;
/**
* SHIFT key (0x220000).
* @constant
* @example
*/
CKEDITOR.SHIFT = 0x220000;
/**
* ALT key (0x440000).
* @constant
* @example
*/
CKEDITOR.ALT = 0x440000;
| 10npsite | trunk/guanli/system/ckeditor/_source/core/dom/event.js | JavaScript | asf20 | 3,766 |
/*
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.dom.document} class, which
* represents a DOM document.
*/
/**
* Represents a DOM window.
* @constructor
* @augments CKEDITOR.dom.domObject
* @param {Object} domWindow A native DOM window.
* @example
* var document = new CKEDITOR.dom.window( window );
*/
CKEDITOR.dom.window = function( domWindow )
{
CKEDITOR.dom.domObject.call( this, domWindow );
};
CKEDITOR.dom.window.prototype = new CKEDITOR.dom.domObject();
CKEDITOR.tools.extend( CKEDITOR.dom.window.prototype,
/** @lends CKEDITOR.dom.window.prototype */
{
/**
* Moves the selection focus to this window.
* @function
* @example
* var win = new CKEDITOR.dom.window( window );
* <b>win.focus()</b>;
*/
focus : function()
{
// Webkit is sometimes failed to focus iframe, blur it first(#3835).
if ( CKEDITOR.env.webkit && this.$.parent )
this.$.parent.focus();
this.$.focus();
},
/**
* Gets the width and height of this window's viewable area.
* @function
* @returns {Object} An object with the "width" and "height"
* properties containing the size.
* @example
* var win = new CKEDITOR.dom.window( window );
* var size = <b>win.getViewPaneSize()</b>;
* alert( size.width );
* alert( size.height );
*/
getViewPaneSize : function()
{
var doc = this.$.document,
stdMode = doc.compatMode == 'CSS1Compat';
return {
width : ( stdMode ? doc.documentElement.clientWidth : doc.body.clientWidth ) || 0,
height : ( stdMode ? doc.documentElement.clientHeight : doc.body.clientHeight ) || 0
};
},
/**
* Gets the current position of the window's scroll.
* @function
* @returns {Object} An object with the "x" and "y" properties
* containing the scroll position.
* @example
* var win = new CKEDITOR.dom.window( window );
* var pos = <b>win.getScrollPosition()</b>;
* alert( pos.x );
* alert( pos.y );
*/
getScrollPosition : function()
{
var $ = this.$;
if ( 'pageXOffset' in $ )
{
return {
x : $.pageXOffset || 0,
y : $.pageYOffset || 0
};
}
else
{
var doc = $.document;
return {
x : doc.documentElement.scrollLeft || doc.body.scrollLeft || 0,
y : doc.documentElement.scrollTop || doc.body.scrollTop || 0
};
}
}
});
| 10npsite | trunk/guanli/system/ckeditor/_source/core/dom/window.js | JavaScript | asf20 | 2,567 |
/*
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.dom.node} class which is the base
* class for classes that represent DOM nodes.
*/
/**
* Base class for classes representing DOM nodes. This constructor may return
* an instance of a class that inherits from this class, like
* {@link CKEDITOR.dom.element} or {@link CKEDITOR.dom.text}.
* @augments CKEDITOR.dom.domObject
* @param {Object} domNode A native DOM node.
* @constructor
* @see CKEDITOR.dom.element
* @see CKEDITOR.dom.text
* @example
*/
CKEDITOR.dom.node = function( domNode )
{
if ( domNode )
{
var type = domNode.nodeType == CKEDITOR.NODE_DOCUMENT ? 'document'
: domNode.nodeType == CKEDITOR.NODE_ELEMENT ? 'element'
: domNode.nodeType == CKEDITOR.NODE_TEXT ? 'text'
: domNode.nodeType == CKEDITOR.NODE_COMMENT ? 'comment'
: 'domObject'; // Call the base constructor otherwise.
return new CKEDITOR.dom[ type ]( domNode );
}
return this;
};
CKEDITOR.dom.node.prototype = new CKEDITOR.dom.domObject();
/**
* Element node type.
* @constant
* @example
*/
CKEDITOR.NODE_ELEMENT = 1;
/**
* Document node type.
* @constant
* @example
*/
CKEDITOR.NODE_DOCUMENT = 9;
/**
* Text node type.
* @constant
* @example
*/
CKEDITOR.NODE_TEXT = 3;
/**
* Comment node type.
* @constant
* @example
*/
CKEDITOR.NODE_COMMENT = 8;
CKEDITOR.NODE_DOCUMENT_FRAGMENT = 11;
CKEDITOR.POSITION_IDENTICAL = 0;
CKEDITOR.POSITION_DISCONNECTED = 1;
CKEDITOR.POSITION_FOLLOWING = 2;
CKEDITOR.POSITION_PRECEDING = 4;
CKEDITOR.POSITION_IS_CONTAINED = 8;
CKEDITOR.POSITION_CONTAINS = 16;
CKEDITOR.tools.extend( CKEDITOR.dom.node.prototype,
/** @lends CKEDITOR.dom.node.prototype */
{
/**
* Makes this node a child of another element.
* @param {CKEDITOR.dom.element} element The target element to which
* this node will be appended.
* @returns {CKEDITOR.dom.element} The target element.
* @example
* var p = new CKEDITOR.dom.element( 'p' );
* var strong = new CKEDITOR.dom.element( 'strong' );
* strong.appendTo( p );
*
* // result: "<p><strong></strong></p>"
*/
appendTo : function( element, toStart )
{
element.append( this, toStart );
return element;
},
clone : function( includeChildren, cloneId )
{
var $clone = this.$.cloneNode( includeChildren );
var removeIds = function( node )
{
if ( node.nodeType != CKEDITOR.NODE_ELEMENT )
return;
if ( !cloneId )
node.removeAttribute( 'id', false );
node.removeAttribute( 'data-cke-expando', false );
if ( includeChildren )
{
var childs = node.childNodes;
for ( var i=0; i < childs.length; i++ )
removeIds( childs[ i ] );
}
};
// The "id" attribute should never be cloned to avoid duplication.
removeIds( $clone );
return new CKEDITOR.dom.node( $clone );
},
hasPrevious : function()
{
return !!this.$.previousSibling;
},
hasNext : function()
{
return !!this.$.nextSibling;
},
/**
* Inserts this element after a node.
* @param {CKEDITOR.dom.node} node The node that will precede this element.
* @returns {CKEDITOR.dom.node} The node preceding this one after
* insertion.
* @example
* var em = new CKEDITOR.dom.element( 'em' );
* var strong = new CKEDITOR.dom.element( 'strong' );
* strong.insertAfter( em );
*
* // result: "<em></em><strong></strong>"
*/
insertAfter : function( node )
{
node.$.parentNode.insertBefore( this.$, node.$.nextSibling );
return node;
},
/**
* Inserts this element before a node.
* @param {CKEDITOR.dom.node} node The node that will succeed this element.
* @returns {CKEDITOR.dom.node} The node being inserted.
* @example
* var em = new CKEDITOR.dom.element( 'em' );
* var strong = new CKEDITOR.dom.element( 'strong' );
* strong.insertBefore( em );
*
* // result: "<strong></strong><em></em>"
*/
insertBefore : function( node )
{
node.$.parentNode.insertBefore( this.$, node.$ );
return node;
},
insertBeforeMe : function( node )
{
this.$.parentNode.insertBefore( node.$, this.$ );
return node;
},
/**
* Retrieves a uniquely identifiable tree address for this node.
* The tree address returned is an array of integers, with each integer
* indicating a child index of a DOM node, starting from
* <code>document.documentElement</code>.
*
* For example, assuming <code><body></code> is the second child
* of <code><html></code> (<code><head></code> being the first),
* and we would like to address the third child under the
* fourth child of <code><body></code>, the tree address returned would be:
* [1, 3, 2]
*
* The tree address cannot be used for finding back the DOM tree node once
* the DOM tree structure has been modified.
*/
getAddress : function( normalized )
{
var address = [];
var $documentElement = this.getDocument().$.documentElement;
var node = this.$;
while ( node && node != $documentElement )
{
var parentNode = node.parentNode;
if ( parentNode )
{
// Get the node index. For performance, call getIndex
// directly, instead of creating a new node object.
address.unshift( this.getIndex.call( { $ : node }, normalized ) );
}
node = parentNode;
}
return address;
},
/**
* Gets the document containing this element.
* @returns {CKEDITOR.dom.document} The document.
* @example
* var element = CKEDITOR.document.getById( 'example' );
* alert( <strong>element.getDocument().equals( CKEDITOR.document )</strong> ); // "true"
*/
getDocument : function()
{
return new CKEDITOR.dom.document( this.$.ownerDocument || this.$.parentNode.ownerDocument );
},
getIndex : function( normalized )
{
// Attention: getAddress depends on this.$
var current = this.$,
index = 0;
while ( ( current = current.previousSibling ) )
{
// When normalizing, do not count it if this is an
// empty text node or if it's a text node following another one.
if ( normalized && current.nodeType == 3 &&
( !current.nodeValue.length ||
( current.previousSibling && current.previousSibling.nodeType == 3 ) ) )
{
continue;
}
index++;
}
return index;
},
getNextSourceNode : function( startFromSibling, nodeType, guard )
{
// If "guard" is a node, transform it in a function.
if ( guard && !guard.call )
{
var guardNode = guard;
guard = function( node )
{
return !node.equals( guardNode );
};
}
var node = ( !startFromSibling && this.getFirst && this.getFirst() ),
parent;
// Guarding when we're skipping the current element( no children or 'startFromSibling' ).
// send the 'moving out' signal even we don't actually dive into.
if ( !node )
{
if ( this.type == CKEDITOR.NODE_ELEMENT && guard && guard( this, true ) === false )
return null;
node = this.getNext();
}
while ( !node && ( parent = ( parent || this ).getParent() ) )
{
// The guard check sends the "true" paramenter to indicate that
// we are moving "out" of the element.
if ( guard && guard( parent, true ) === false )
return null;
node = parent.getNext();
}
if ( !node )
return null;
if ( guard && guard( node ) === false )
return null;
if ( nodeType && nodeType != node.type )
return node.getNextSourceNode( false, nodeType, guard );
return node;
},
getPreviousSourceNode : function( startFromSibling, nodeType, guard )
{
if ( guard && !guard.call )
{
var guardNode = guard;
guard = function( node )
{
return !node.equals( guardNode );
};
}
var node = ( !startFromSibling && this.getLast && this.getLast() ),
parent;
// Guarding when we're skipping the current element( no children or 'startFromSibling' ).
// send the 'moving out' signal even we don't actually dive into.
if ( !node )
{
if ( this.type == CKEDITOR.NODE_ELEMENT && guard && guard( this, true ) === false )
return null;
node = this.getPrevious();
}
while ( !node && ( parent = ( parent || this ).getParent() ) )
{
// The guard check sends the "true" paramenter to indicate that
// we are moving "out" of the element.
if ( guard && guard( parent, true ) === false )
return null;
node = parent.getPrevious();
}
if ( !node )
return null;
if ( guard && guard( node ) === false )
return null;
if ( nodeType && node.type != nodeType )
return node.getPreviousSourceNode( false, nodeType, guard );
return node;
},
getPrevious : function( evaluator )
{
var previous = this.$, retval;
do
{
previous = previous.previousSibling;
// Avoid returning the doc type node.
// http://www.w3.org/TR/REC-DOM-Level-1/level-one-core.html#ID-412266927
retval = previous && previous.nodeType != 10 && new CKEDITOR.dom.node( previous );
}
while ( retval && evaluator && !evaluator( retval ) )
return retval;
},
/**
* Gets the node that follows this element in its parent's child list.
* @param {Function} evaluator Filtering the result node.
* @returns {CKEDITOR.dom.node} The next node or null if not available.
* @example
* var element = CKEDITOR.dom.element.createFromHtml( '<div><b>Example</b> <i>next</i></div>' );
* var first = <strong>element.getFirst().getNext()</strong>;
* alert( first.getName() ); // "i"
*/
getNext : function( evaluator )
{
var next = this.$, retval;
do
{
next = next.nextSibling;
retval = next && new CKEDITOR.dom.node( next );
}
while ( retval && evaluator && !evaluator( retval ) )
return retval;
},
/**
* Gets the parent element for this node.
* @returns {CKEDITOR.dom.element} The parent element.
* @example
* var node = editor.document.getBody().getFirst();
* var parent = node.<strong>getParent()</strong>;
* alert( node.getName() ); // "body"
*/
getParent : function()
{
var parent = this.$.parentNode;
return ( parent && parent.nodeType == 1 ) ? new CKEDITOR.dom.node( parent ) : null;
},
getParents : function( closerFirst )
{
var node = this;
var parents = [];
do
{
parents[ closerFirst ? 'push' : 'unshift' ]( node );
}
while ( ( node = node.getParent() ) )
return parents;
},
getCommonAncestor : function( node )
{
if ( node.equals( this ) )
return this;
if ( node.contains && node.contains( this ) )
return node;
var start = this.contains ? this : this.getParent();
do
{
if ( start.contains( node ) )
return start;
}
while ( ( start = start.getParent() ) );
return null;
},
getPosition : function( otherNode )
{
var $ = this.$;
var $other = otherNode.$;
if ( $.compareDocumentPosition )
return $.compareDocumentPosition( $other );
// IE and Safari have no support for compareDocumentPosition.
if ( $ == $other )
return CKEDITOR.POSITION_IDENTICAL;
// Only element nodes support contains and sourceIndex.
if ( this.type == CKEDITOR.NODE_ELEMENT && otherNode.type == CKEDITOR.NODE_ELEMENT )
{
if ( $.contains )
{
if ( $.contains( $other ) )
return CKEDITOR.POSITION_CONTAINS + CKEDITOR.POSITION_PRECEDING;
if ( $other.contains( $ ) )
return CKEDITOR.POSITION_IS_CONTAINED + CKEDITOR.POSITION_FOLLOWING;
}
if ( 'sourceIndex' in $ )
{
return ( $.sourceIndex < 0 || $other.sourceIndex < 0 ) ? CKEDITOR.POSITION_DISCONNECTED :
( $.sourceIndex < $other.sourceIndex ) ? CKEDITOR.POSITION_PRECEDING :
CKEDITOR.POSITION_FOLLOWING;
}
}
// For nodes that don't support compareDocumentPosition, contains
// or sourceIndex, their "address" is compared.
var addressOfThis = this.getAddress(),
addressOfOther = otherNode.getAddress(),
minLevel = Math.min( addressOfThis.length, addressOfOther.length );
// Determinate preceed/follow relationship.
for ( var i = 0 ; i <= minLevel - 1 ; i++ )
{
if ( addressOfThis[ i ] != addressOfOther[ i ] )
{
if ( i < minLevel )
{
return addressOfThis[ i ] < addressOfOther[ i ] ?
CKEDITOR.POSITION_PRECEDING : CKEDITOR.POSITION_FOLLOWING;
}
break;
}
}
// Determinate contains/contained relationship.
return ( addressOfThis.length < addressOfOther.length ) ?
CKEDITOR.POSITION_CONTAINS + CKEDITOR.POSITION_PRECEDING :
CKEDITOR.POSITION_IS_CONTAINED + CKEDITOR.POSITION_FOLLOWING;
},
/**
* Gets the closest ancestor node of this node, specified by its name.
* @param {String} reference The name of the ancestor node to search or
* an object with the node names to search for.
* @param {Boolean} [includeSelf] Whether to include the current
* node in the search.
* @returns {CKEDITOR.dom.node} The located ancestor node or null if not found.
* @since 3.6.1
* @example
* // Suppose we have the following HTML structure:
* // <div id="outer"><div id="inner"><p><b>Some text</b></p></div></div>
* // If node == <b>
* ascendant = node.getAscendant( 'div' ); // ascendant == <div id="inner">
* ascendant = node.getAscendant( 'b' ); // ascendant == null
* ascendant = node.getAscendant( 'b', true ); // ascendant == <b>
* ascendant = node.getAscendant( { div: 1, p: 1} ); // Searches for the first 'div' or 'p': ascendant == <div id="inner">
*/
getAscendant : function( reference, includeSelf )
{
var $ = this.$,
name;
if ( !includeSelf )
$ = $.parentNode;
while ( $ )
{
if ( $.nodeName && ( name = $.nodeName.toLowerCase(), ( typeof reference == 'string' ? name == reference : name in reference ) ) )
return new CKEDITOR.dom.node( $ );
$ = $.parentNode;
}
return null;
},
hasAscendant : function( name, includeSelf )
{
var $ = this.$;
if ( !includeSelf )
$ = $.parentNode;
while ( $ )
{
if ( $.nodeName && $.nodeName.toLowerCase() == name )
return true;
$ = $.parentNode;
}
return false;
},
move : function( target, toStart )
{
target.append( this.remove(), toStart );
},
/**
* Removes this node from the document DOM.
* @param {Boolean} [preserveChildren] Indicates that the children
* elements must remain in the document, removing only the outer
* tags.
* @example
* var element = CKEDITOR.dom.element.getById( 'MyElement' );
* <strong>element.remove()</strong>;
*/
remove : function( preserveChildren )
{
var $ = this.$;
var parent = $.parentNode;
if ( parent )
{
if ( preserveChildren )
{
// Move all children before the node.
for ( var child ; ( child = $.firstChild ) ; )
{
parent.insertBefore( $.removeChild( child ), $ );
}
}
parent.removeChild( $ );
}
return this;
},
replace : function( nodeToReplace )
{
this.insertBefore( nodeToReplace );
nodeToReplace.remove();
},
trim : function()
{
this.ltrim();
this.rtrim();
},
ltrim : function()
{
var child;
while ( this.getFirst && ( child = this.getFirst() ) )
{
if ( child.type == CKEDITOR.NODE_TEXT )
{
var trimmed = CKEDITOR.tools.ltrim( child.getText() ),
originalLength = child.getLength();
if ( !trimmed )
{
child.remove();
continue;
}
else if ( trimmed.length < originalLength )
{
child.split( originalLength - trimmed.length );
// IE BUG: child.remove() may raise JavaScript errors here. (#81)
this.$.removeChild( this.$.firstChild );
}
}
break;
}
},
rtrim : function()
{
var child;
while ( this.getLast && ( child = this.getLast() ) )
{
if ( child.type == CKEDITOR.NODE_TEXT )
{
var trimmed = CKEDITOR.tools.rtrim( child.getText() ),
originalLength = child.getLength();
if ( !trimmed )
{
child.remove();
continue;
}
else if ( trimmed.length < originalLength )
{
child.split( trimmed.length );
// IE BUG: child.getNext().remove() may raise JavaScript errors here.
// (#81)
this.$.lastChild.parentNode.removeChild( this.$.lastChild );
}
}
break;
}
if ( !CKEDITOR.env.ie && !CKEDITOR.env.opera )
{
child = this.$.lastChild;
if ( child && child.type == 1 && child.nodeName.toLowerCase() == 'br' )
{
// Use "eChildNode.parentNode" instead of "node" to avoid IE bug (#324).
child.parentNode.removeChild( child ) ;
}
}
},
/**
* Checks if this node is read-only (should not be changed).
* @returns {Boolean}
* @since 3.5
* @example
* // For the following HTML:
* // <div contenteditable="false">Some <b>text</b></div>
*
* // If "ele" is the above <div>
* ele.isReadOnly(); // true
*/
isReadOnly : function()
{
var element = this;
if ( this.type != CKEDITOR.NODE_ELEMENT )
element = this.getParent();
if ( element && typeof element.$.isContentEditable != 'undefined' )
return ! ( element.$.isContentEditable || element.data( 'cke-editable' ) );
else
{
// Degrade for old browsers which don't support "isContentEditable", e.g. FF3
var current = element;
while( current )
{
if ( current.is( 'body' ) || !!current.data( 'cke-editable' ) )
break;
if ( current.getAttribute( 'contentEditable' ) == 'false' )
return true;
else if ( current.getAttribute( 'contentEditable' ) == 'true' )
break;
current = current.getParent();
}
return false;
}
}
}
);
| 10npsite | trunk/guanli/system/ckeditor/_source/core/dom/node.js | JavaScript | asf20 | 18,762 |
/*
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.dom.comment} class, which represents
* a DOM comment node.
*/
/**
* Represents a DOM comment node.
* @constructor
* @augments CKEDITOR.dom.node
* @param {Object|String} comment A native DOM comment node or a string containing
* the text to use to create a new comment node.
* @param {CKEDITOR.dom.document} [ownerDocument] The document that will contain
* the node in case of new node creation. Defaults to the current document.
* @example
* var nativeNode = document.createComment( 'Example' );
* var comment = CKEDITOR.dom.comment( nativeNode );
* @example
* var comment = CKEDITOR.dom.comment( 'Example' );
*/
CKEDITOR.dom.comment = function( comment, ownerDocument )
{
if ( typeof comment == 'string' )
comment = ( ownerDocument ? ownerDocument.$ : document ).createComment( comment );
CKEDITOR.dom.domObject.call( this, comment );
};
CKEDITOR.dom.comment.prototype = new CKEDITOR.dom.node();
CKEDITOR.tools.extend( CKEDITOR.dom.comment.prototype,
/** @lends CKEDITOR.dom.comment.prototype */
{
type : CKEDITOR.NODE_COMMENT,
getOuterHtml : function()
{
return '<!--' + this.$.nodeValue + '-->';
}
});
| 10npsite | trunk/guanli/system/ckeditor/_source/core/dom/comment.js | JavaScript | asf20 | 1,388 |
/*
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.dom.document} class, which
* represents a DOM document.
*/
/**
* Represents a DOM document.
* @constructor
* @augments CKEDITOR.dom.domObject
* @param {Object} domDocument A native DOM document.
* @example
* var document = new CKEDITOR.dom.document( document );
*/
CKEDITOR.dom.document = function( domDocument )
{
CKEDITOR.dom.domObject.call( this, domDocument );
};
// PACKAGER_RENAME( CKEDITOR.dom.document )
CKEDITOR.dom.document.prototype = new CKEDITOR.dom.domObject();
CKEDITOR.tools.extend( CKEDITOR.dom.document.prototype,
/** @lends CKEDITOR.dom.document.prototype */
{
/**
* Appends a CSS file to the document.
* @param {String} cssFileUrl The CSS file URL.
* @example
* <b>CKEDITOR.document.appendStyleSheet( '/mystyles.css' )</b>;
*/
appendStyleSheet : function( cssFileUrl )
{
if ( this.$.createStyleSheet )
this.$.createStyleSheet( cssFileUrl );
else
{
var link = new CKEDITOR.dom.element( 'link' );
link.setAttributes(
{
rel :'stylesheet',
type : 'text/css',
href : cssFileUrl
});
this.getHead().append( link );
}
},
appendStyleText : function( cssStyleText )
{
if ( this.$.createStyleSheet )
{
var styleSheet = this.$.createStyleSheet( "" );
styleSheet.cssText = cssStyleText ;
}
else
{
var style = new CKEDITOR.dom.element( 'style', this );
style.append( new CKEDITOR.dom.text( cssStyleText, this ) );
this.getHead().append( style );
}
},
createElement : function( name, attribsAndStyles )
{
var element = new CKEDITOR.dom.element( name, this );
if ( attribsAndStyles )
{
if ( attribsAndStyles.attributes )
element.setAttributes( attribsAndStyles.attributes );
if ( attribsAndStyles.styles )
element.setStyles( attribsAndStyles.styles );
}
return element;
},
createText : function( text )
{
return new CKEDITOR.dom.text( text, this );
},
focus : function()
{
this.getWindow().focus();
},
/**
* Gets and element based on its id.
* @param {String} elementId The element id.
* @returns {CKEDITOR.dom.element} The element instance, or null if not found.
* @example
* var element = <b>CKEDITOR.document.getById( 'myElement' )</b>;
* alert( element.getId() ); // "myElement"
*/
getById : function( elementId )
{
var $ = this.$.getElementById( elementId );
return $ ? new CKEDITOR.dom.element( $ ) : null;
},
getByAddress : function( address, normalized )
{
var $ = this.$.documentElement;
for ( var i = 0 ; $ && i < address.length ; i++ )
{
var target = address[ i ];
if ( !normalized )
{
$ = $.childNodes[ target ];
continue;
}
var currentIndex = -1;
for (var j = 0 ; j < $.childNodes.length ; j++ )
{
var candidate = $.childNodes[ j ];
if ( normalized === true &&
candidate.nodeType == 3 &&
candidate.previousSibling &&
candidate.previousSibling.nodeType == 3 )
{
continue;
}
currentIndex++;
if ( currentIndex == target )
{
$ = candidate;
break;
}
}
}
return $ ? new CKEDITOR.dom.node( $ ) : null;
},
getElementsByTag : function( tagName, namespace )
{
if ( !( CKEDITOR.env.ie && ! ( document.documentMode > 8 ) ) && namespace )
tagName = namespace + ':' + tagName;
return new CKEDITOR.dom.nodeList( this.$.getElementsByTagName( tagName ) );
},
/**
* Gets the <head> element for this document.
* @returns {CKEDITOR.dom.element} The <head> element.
* @example
* var element = <b>CKEDITOR.document.getHead()</b>;
* alert( element.getName() ); // "head"
*/
getHead : function()
{
var head = this.$.getElementsByTagName( 'head' )[0];
if ( !head )
head = this.getDocumentElement().append( new CKEDITOR.dom.element( 'head' ), true );
else
head = new CKEDITOR.dom.element( head );
return (
this.getHead = function()
{
return head;
})();
},
/**
* Gets the <body> element for this document.
* @returns {CKEDITOR.dom.element} The <body> element.
* @example
* var element = <b>CKEDITOR.document.getBody()</b>;
* alert( element.getName() ); // "body"
*/
getBody : function()
{
var body = new CKEDITOR.dom.element( this.$.body );
return (
this.getBody = function()
{
return body;
})();
},
/**
* Gets the DOM document element for this document.
* @returns {CKEDITOR.dom.element} The DOM document element.
*/
getDocumentElement : function()
{
var documentElement = new CKEDITOR.dom.element( this.$.documentElement );
return (
this.getDocumentElement = function()
{
return documentElement;
})();
},
/**
* Gets the window object that holds this document.
* @returns {CKEDITOR.dom.window} The window object.
*/
getWindow : function()
{
var win = new CKEDITOR.dom.window( this.$.parentWindow || this.$.defaultView );
return (
this.getWindow = function()
{
return win;
})();
},
/**
* Defines the document contents through document.write. Note that the
* previous document contents will be lost (cleaned).
* @since 3.5
* @param {String} html The HTML defining the document contents.
* @example
* document.write(
* '<html>' +
* '<head><title>Sample Doc</title></head>' +
* '<body>Document contents created by code</body>' +
* '</html>' );
*/
write : function( html )
{
// Don't leave any history log in IE. (#5657)
this.$.open( 'text/html', 'replace' );
// Support for custom document.domain in IE.
CKEDITOR.env.isCustomDomain() && ( this.$.domain = document.domain );
this.$.write( html );
this.$.close();
}
});
| 10npsite | trunk/guanli/system/ckeditor/_source/core/dom/document.js | JavaScript | asf20 | 6,323 |
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
(function()
{
// Elements that may be considered the "Block boundary" in an element path.
var pathBlockElements = { address:1,blockquote:1,dl:1,h1:1,h2:1,h3:1,h4:1,h5:1,h6:1,p:1,pre:1,li:1,dt:1,dd:1, legend:1,caption:1 };
// Elements that may be considered the "Block limit" in an element path.
var pathBlockLimitElements = { body:1,div:1,table:1,tbody:1,tr:1,td:1,th:1,form:1,fieldset:1 };
// Check if an element contains any block element.
var checkHasBlock = function( element )
{
var childNodes = element.getChildren();
for ( var i = 0, count = childNodes.count() ; i < count ; i++ )
{
var child = childNodes.getItem( i );
if ( child.type == CKEDITOR.NODE_ELEMENT && CKEDITOR.dtd.$block[ child.getName() ] )
return true;
}
return false;
};
/**
* @class
*/
CKEDITOR.dom.elementPath = function( lastNode )
{
var block = null;
var blockLimit = null;
var elements = [];
var e = lastNode;
while ( e )
{
if ( e.type == CKEDITOR.NODE_ELEMENT )
{
if ( !this.lastElement )
this.lastElement = e;
var elementName = e.getName();
if ( !blockLimit )
{
if ( !block && pathBlockElements[ elementName ] )
block = e;
if ( pathBlockLimitElements[ elementName ] )
{
// DIV is considered the Block, if no block is available (#525)
// and if it doesn't contain other blocks.
if ( !block && elementName == 'div' && !checkHasBlock( e ) )
block = e;
else
blockLimit = e;
}
}
elements.push( e );
if ( elementName == 'body' )
break;
}
e = e.getParent();
}
this.block = block;
this.blockLimit = blockLimit;
this.elements = elements;
};
})();
CKEDITOR.dom.elementPath.prototype =
{
/**
* Compares this element path with another one.
* @param {CKEDITOR.dom.elementPath} otherPath The elementPath object to be
* compared with this one.
* @returns {Boolean} "true" if the paths are equal, containing the same
* number of elements and the same elements in the same order.
*/
compare : function( otherPath )
{
var thisElements = this.elements;
var otherElements = otherPath && otherPath.elements;
if ( !otherElements || thisElements.length != otherElements.length )
return false;
for ( var i = 0 ; i < thisElements.length ; i++ )
{
if ( !thisElements[ i ].equals( otherElements[ i ] ) )
return false;
}
return true;
},
contains : function( tagNames )
{
var elements = this.elements;
for ( var i = 0 ; i < elements.length ; i++ )
{
if ( elements[ i ].getName() in tagNames )
return elements[ i ];
}
return null;
}
};
| 10npsite | trunk/guanli/system/ckeditor/_source/core/dom/elementpath.js | JavaScript | asf20 | 2,902 |
/*
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.dom.text} class, which represents
* a DOM text node.
*/
/**
* Represents a DOM text node.
* @constructor
* @augments CKEDITOR.dom.node
* @param {Object|String} text A native DOM text node or a string containing
* the text to use to create a new text node.
* @param {CKEDITOR.dom.document} [ownerDocument] The document that will contain
* the node in case of new node creation. Defaults to the current document.
* @example
* var nativeNode = document.createTextNode( 'Example' );
* var text = CKEDITOR.dom.text( nativeNode );
* @example
* var text = CKEDITOR.dom.text( 'Example' );
*/
CKEDITOR.dom.text = function( text, ownerDocument )
{
if ( typeof text == 'string' )
text = ( ownerDocument ? ownerDocument.$ : document ).createTextNode( text );
// Theoretically, we should call the base constructor here
// (not CKEDITOR.dom.node though). But, IE doesn't support expando
// properties on text node, so the features provided by domObject will not
// work for text nodes (which is not a big issue for us).
//
// CKEDITOR.dom.domObject.call( this, element );
/**
* The native DOM text node represented by this class instance.
* @type Object
* @example
* var element = new CKEDITOR.dom.text( 'Example' );
* alert( element.$.nodeType ); // "3"
*/
this.$ = text;
};
CKEDITOR.dom.text.prototype = new CKEDITOR.dom.node();
CKEDITOR.tools.extend( CKEDITOR.dom.text.prototype,
/** @lends CKEDITOR.dom.text.prototype */
{
/**
* The node type. This is a constant value set to
* {@link CKEDITOR.NODE_TEXT}.
* @type Number
* @example
*/
type : CKEDITOR.NODE_TEXT,
getLength : function()
{
return this.$.nodeValue.length;
},
getText : function()
{
return this.$.nodeValue;
},
setText : function( text )
{
this.$.nodeValue = text;
},
/**
* Breaks this text node into two nodes at the specified offset,
* keeping both in the tree as siblings. This node then only contains
* all the content up to the offset point. A new text node, which is
* inserted as the next sibling of this node, contains all the content
* at and after the offset point. When the offset is equal to the
* length of this node, the new node has no data.
* @param {Number} The position at which to split, starting from zero.
* @returns {CKEDITOR.dom.text} The new text node.
*/
split : function( offset )
{
// If the offset is after the last char, IE creates the text node
// on split, but don't include it into the DOM. So, we have to do
// that manually here.
if ( CKEDITOR.env.ie && offset == this.getLength() )
{
var next = this.getDocument().createText( '' );
next.insertAfter( this );
return next;
}
var doc = this.getDocument();
var retval = new CKEDITOR.dom.text( this.$.splitText( offset ), doc );
// IE BUG: IE8 does not update the childNodes array in DOM after splitText(),
// we need to make some DOM changes to make it update. (#3436)
if ( CKEDITOR.env.ie8 )
{
var workaround = new CKEDITOR.dom.text( '', doc );
workaround.insertAfter( retval );
workaround.remove();
}
return retval;
},
/**
* Extracts characters from indexA up to but not including indexB.
* @param {Number} indexA An integer between 0 and one less than the
* length of the text.
* @param {Number} [indexB] An integer between 0 and the length of the
* string. If omitted, extracts characters to the end of the text.
*/
substring : function( indexA, indexB )
{
// We need the following check due to a Firefox bug
// https://bugzilla.mozilla.org/show_bug.cgi?id=458886
if ( typeof indexB != 'number' )
return this.$.nodeValue.substr( indexA );
else
return this.$.nodeValue.substring( indexA, indexB );
}
});
| 10npsite | trunk/guanli/system/ckeditor/_source/core/dom/text.js | JavaScript | asf20 | 4,119 |
/*
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.editor} class, which is the base
* for other classes representing DOM objects.
*/
/**
* Represents a DOM object. This class is not intended to be used directly. It
* serves as the base class for other classes representing specific DOM
* objects.
* @constructor
* @param {Object} nativeDomObject A native DOM object.
* @augments CKEDITOR.event
* @example
*/
CKEDITOR.dom.domObject = function( nativeDomObject )
{
if ( nativeDomObject )
{
/**
* The native DOM object represented by this class instance.
* @type Object
* @example
* var element = new CKEDITOR.dom.element( 'span' );
* alert( element.$.nodeType ); // "1"
*/
this.$ = nativeDomObject;
}
};
CKEDITOR.dom.domObject.prototype = (function()
{
// Do not define other local variables here. We want to keep the native
// listener closures as clean as possible.
var getNativeListener = function( domObject, eventName )
{
return function( domEvent )
{
// In FF, when reloading the page with the editor focused, it may
// throw an error because the CKEDITOR global is not anymore
// available. So, we check it here first. (#2923)
if ( typeof CKEDITOR != 'undefined' )
domObject.fire( eventName, new CKEDITOR.dom.event( domEvent ) );
};
};
return /** @lends CKEDITOR.dom.domObject.prototype */ {
getPrivate : function()
{
var priv;
// Get the main private function from the custom data. Create it if not
// defined.
if ( !( priv = this.getCustomData( '_' ) ) )
this.setCustomData( '_', ( priv = {} ) );
return priv;
},
/** @ignore */
on : function( eventName )
{
// We customize the "on" function here. The basic idea is that we'll have
// only one listener for a native event, which will then call all listeners
// set to the event.
// Get the listeners holder object.
var nativeListeners = this.getCustomData( '_cke_nativeListeners' );
if ( !nativeListeners )
{
nativeListeners = {};
this.setCustomData( '_cke_nativeListeners', nativeListeners );
}
// Check if we have a listener for that event.
if ( !nativeListeners[ eventName ] )
{
var listener = nativeListeners[ eventName ] = getNativeListener( this, eventName );
if ( this.$.addEventListener )
this.$.addEventListener( eventName, listener, !!CKEDITOR.event.useCapture );
else if ( this.$.attachEvent )
this.$.attachEvent( 'on' + eventName, listener );
}
// Call the original implementation.
return CKEDITOR.event.prototype.on.apply( this, arguments );
},
/** @ignore */
removeListener : function( eventName )
{
// Call the original implementation.
CKEDITOR.event.prototype.removeListener.apply( this, arguments );
// If we don't have listeners for this event, clean the DOM up.
if ( !this.hasListeners( eventName ) )
{
var nativeListeners = this.getCustomData( '_cke_nativeListeners' );
var listener = nativeListeners && nativeListeners[ eventName ];
if ( listener )
{
if ( this.$.removeEventListener )
this.$.removeEventListener( eventName, listener, false );
else if ( this.$.detachEvent )
this.$.detachEvent( 'on' + eventName, listener );
delete nativeListeners[ eventName ];
}
}
},
/**
* Removes any listener set on this object.
* To avoid memory leaks we must assure that there are no
* references left after the object is no longer needed.
*/
removeAllListeners : function()
{
var nativeListeners = this.getCustomData( '_cke_nativeListeners' );
for ( var eventName in nativeListeners )
{
var listener = nativeListeners[ eventName ];
if ( this.$.detachEvent )
this.$.detachEvent( 'on' + eventName, listener );
else if ( this.$.removeEventListener )
this.$.removeEventListener( eventName, listener, false );
delete nativeListeners[ eventName ];
}
}
};
})();
(function( domObjectProto )
{
var customData = {};
CKEDITOR.on( 'reset', function()
{
customData = {};
});
/**
* Determines whether the specified object is equal to the current object.
* @name CKEDITOR.dom.domObject.prototype.equals
* @function
* @param {Object} object The object to compare with the current object.
* @returns {Boolean} "true" if the object is equal.
* @example
* var doc = new CKEDITOR.dom.document( document );
* alert( doc.equals( CKEDITOR.document ) ); // "true"
* alert( doc == CKEDITOR.document ); // "false"
*/
domObjectProto.equals = function( object )
{
return ( object && object.$ === this.$ );
};
/**
* Sets a data slot value for this object. These values are shared by all
* instances pointing to that same DOM object.
* <strong>Note:</strong> The created data slot is only guarantied to be available on this unique dom node,
* thus any wish to continue access it from other element clones (either created by clone node or from innerHtml)
* will fail, for such usage, please use {@link CKEDITOR.dom.element::setAttribute} instead.
* @name CKEDITOR.dom.domObject.prototype.setCustomData
* @function
* @param {String} key A key used to identify the data slot.
* @param {Object} value The value to set to the data slot.
* @returns {CKEDITOR.dom.domObject} This DOM object instance.
* @see CKEDITOR.dom.domObject.prototype.getCustomData
* @example
* var element = new CKEDITOR.dom.element( 'span' );
* element.setCustomData( 'hasCustomData', true );
*/
domObjectProto.setCustomData = function( key, value )
{
var expandoNumber = this.getUniqueId(),
dataSlot = customData[ expandoNumber ] || ( customData[ expandoNumber ] = {} );
dataSlot[ key ] = value;
return this;
};
/**
* Gets the value set to a data slot in this object.
* @name CKEDITOR.dom.domObject.prototype.getCustomData
* @function
* @param {String} key The key used to identify the data slot.
* @returns {Object} This value set to the data slot.
* @see CKEDITOR.dom.domObject.prototype.setCustomData
* @example
* var element = new CKEDITOR.dom.element( 'span' );
* alert( element.getCustomData( 'hasCustomData' ) ); // e.g. 'true'
*/
domObjectProto.getCustomData = function( key )
{
var expandoNumber = this.$[ 'data-cke-expando' ],
dataSlot = expandoNumber && customData[ expandoNumber ];
return dataSlot && dataSlot[ key ];
};
/**
* @name CKEDITOR.dom.domObject.prototype.removeCustomData
*/
domObjectProto.removeCustomData = function( key )
{
var expandoNumber = this.$[ 'data-cke-expando' ],
dataSlot = expandoNumber && customData[ expandoNumber ],
retval = dataSlot && dataSlot[ key ];
if ( typeof retval != 'undefined' )
delete dataSlot[ key ];
return retval || null;
};
/**
* Removes any data stored on this object.
* To avoid memory leaks we must assure that there are no
* references left after the object is no longer needed.
* @name CKEDITOR.dom.domObject.prototype.clearCustomData
* @function
*/
domObjectProto.clearCustomData = function()
{
// Clear all event listeners
this.removeAllListeners();
var expandoNumber = this.$[ 'data-cke-expando' ];
expandoNumber && delete customData[ expandoNumber ];
};
/**
* Gets an ID that can be used to identiquely identify this DOM object in
* the running session.
* @name CKEDITOR.dom.domObject.prototype.getUniqueId
* @function
* @returns {Number} A unique ID.
*/
domObjectProto.getUniqueId = function()
{
return this.$[ 'data-cke-expando' ] || ( this.$[ 'data-cke-expando' ] = CKEDITOR.tools.getNextNumber() );
};
// Implement CKEDITOR.event.
CKEDITOR.event.implementOn( domObjectProto );
})( CKEDITOR.dom.domObject.prototype );
| 10npsite | trunk/guanli/system/ckeditor/_source/core/dom/domobject.js | JavaScript | asf20 | 8,120 |
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
/**
* @class
*/
CKEDITOR.dom.nodeList = function( nativeList )
{
this.$ = nativeList;
};
CKEDITOR.dom.nodeList.prototype =
{
count : function()
{
return this.$.length;
},
getItem : function( index )
{
var $node = this.$[ index ];
return $node ? new CKEDITOR.dom.node( $node ) : null;
}
};
| 10npsite | trunk/guanli/system/ckeditor/_source/core/dom/nodelist.js | JavaScript | asf20 | 481 |
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
/**
* @class DocumentFragment is a "lightweight" or "minimal" Document object. It is
* commonly used to extract a portion of a document's tree or to create a new
* fragment of a document. Various operations may take DocumentFragment objects
* as arguments and results in all the child nodes of the DocumentFragment being
* moved to the child list of this node.
* @param {Object} ownerDocument
*/
CKEDITOR.dom.documentFragment = function( ownerDocument )
{
ownerDocument = ownerDocument || CKEDITOR.document;
this.$ = ownerDocument.$.createDocumentFragment();
};
CKEDITOR.tools.extend( CKEDITOR.dom.documentFragment.prototype,
CKEDITOR.dom.element.prototype,
{
type : CKEDITOR.NODE_DOCUMENT_FRAGMENT,
insertAfterNode : function( node )
{
node = node.$;
node.parentNode.insertBefore( this.$, node.nextSibling );
}
},
true,
{
'append' : 1,
'appendBogus' : 1,
'getFirst' : 1,
'getLast' : 1,
'appendTo' : 1,
'moveChildren' : 1,
'insertBefore' : 1,
'insertAfterNode' : 1,
'replace' : 1,
'trim' : 1,
'type' : 1,
'ltrim' : 1,
'rtrim' : 1,
'getDocument' : 1,
'getChildCount' : 1,
'getChild' : 1,
'getChildren' : 1
} );
| 10npsite | trunk/guanli/system/ckeditor/_source/core/dom/documentfragment.js | JavaScript | asf20 | 1,372 |
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
/**
* Creates a CKEDITOR.dom.range instance that can be used inside a specific
* DOM Document.
* @class Represents a delimited piece of content in a DOM Document.
* It is contiguous in the sense that it can be characterized as selecting all
* of the content between a pair of boundary-points.<br>
* <br>
* This class shares much of the W3C
* <a href="http://www.w3.org/TR/DOM-Level-2-Traversal-Range/ranges.html">Document Object Model Range</a>
* ideas and features, adding several range manipulation tools to it, but it's
* not intended to be compatible with it.
* @param {CKEDITOR.dom.document} document The document into which the range
* features will be available.
* @example
* // Create a range for the entire contents of the editor document body.
* var range = new CKEDITOR.dom.range( editor.document );
* range.selectNodeContents( editor.document.getBody() );
* // Delete the contents.
* range.deleteContents();
*/
CKEDITOR.dom.range = function( document )
{
/**
* Node within which the range begins.
* @type {CKEDITOR.NODE_ELEMENT|CKEDITOR.NODE_TEXT}
* @example
* var range = new CKEDITOR.dom.range( editor.document );
* range.selectNodeContents( editor.document.getBody() );
* alert( range.startContainer.getName() ); // "body"
*/
this.startContainer = null;
/**
* Offset within the starting node of the range.
* @type {Number}
* @example
* var range = new CKEDITOR.dom.range( editor.document );
* range.selectNodeContents( editor.document.getBody() );
* alert( range.startOffset ); // "0"
*/
this.startOffset = null;
/**
* Node within which the range ends.
* @type {CKEDITOR.NODE_ELEMENT|CKEDITOR.NODE_TEXT}
* @example
* var range = new CKEDITOR.dom.range( editor.document );
* range.selectNodeContents( editor.document.getBody() );
* alert( range.endContainer.getName() ); // "body"
*/
this.endContainer = null;
/**
* Offset within the ending node of the range.
* @type {Number}
* @example
* var range = new CKEDITOR.dom.range( editor.document );
* range.selectNodeContents( editor.document.getBody() );
* alert( range.endOffset ); // == editor.document.getBody().getChildCount()
*/
this.endOffset = null;
/**
* Indicates that this is a collapsed range. A collapsed range has it's
* start and end boudaries at the very same point so nothing is contained
* in it.
* @example
* var range = new CKEDITOR.dom.range( editor.document );
* range.selectNodeContents( editor.document.getBody() );
* alert( range.collapsed ); // "false"
* range.collapse();
* alert( range.collapsed ); // "true"
*/
this.collapsed = true;
/**
* The document within which the range can be used.
* @type {CKEDITOR.dom.document}
* @example
* // Selects the body contents of the range document.
* range.selectNodeContents( range.document.getBody() );
*/
this.document = document;
};
(function()
{
// Updates the "collapsed" property for the given range object.
var updateCollapsed = function( range )
{
range.collapsed = (
range.startContainer &&
range.endContainer &&
range.startContainer.equals( range.endContainer ) &&
range.startOffset == range.endOffset );
};
// This is a shared function used to delete, extract and clone the range
// contents.
// V2
var execContentsAction = function( range, action, docFrag, mergeThen )
{
range.optimizeBookmark();
var startNode = range.startContainer;
var endNode = range.endContainer;
var startOffset = range.startOffset;
var endOffset = range.endOffset;
var removeStartNode;
var removeEndNode;
// For text containers, we must simply split the node and point to the
// second part. The removal will be handled by the rest of the code .
if ( endNode.type == CKEDITOR.NODE_TEXT )
endNode = endNode.split( endOffset );
else
{
// If the end container has children and the offset is pointing
// to a child, then we should start from it.
if ( endNode.getChildCount() > 0 )
{
// If the offset points after the last node.
if ( endOffset >= endNode.getChildCount() )
{
// Let's create a temporary node and mark it for removal.
endNode = endNode.append( range.document.createText( '' ) );
removeEndNode = true;
}
else
endNode = endNode.getChild( endOffset );
}
}
// For text containers, we must simply split the node. The removal will
// be handled by the rest of the code .
if ( startNode.type == CKEDITOR.NODE_TEXT )
{
startNode.split( startOffset );
// In cases the end node is the same as the start node, the above
// splitting will also split the end, so me must move the end to
// the second part of the split.
if ( startNode.equals( endNode ) )
endNode = startNode.getNext();
}
else
{
// If the start container has children and the offset is pointing
// to a child, then we should start from its previous sibling.
// If the offset points to the first node, we don't have a
// sibling, so let's use the first one, but mark it for removal.
if ( !startOffset )
{
// Let's create a temporary node and mark it for removal.
startNode = startNode.getFirst().insertBeforeMe( range.document.createText( '' ) );
removeStartNode = true;
}
else if ( startOffset >= startNode.getChildCount() )
{
// Let's create a temporary node and mark it for removal.
startNode = startNode.append( range.document.createText( '' ) );
removeStartNode = true;
}
else
startNode = startNode.getChild( startOffset ).getPrevious();
}
// Get the parent nodes tree for the start and end boundaries.
var startParents = startNode.getParents();
var endParents = endNode.getParents();
// Compare them, to find the top most siblings.
var i, topStart, topEnd;
for ( i = 0 ; i < startParents.length ; i++ )
{
topStart = startParents[ i ];
topEnd = endParents[ i ];
// The compared nodes will match until we find the top most
// siblings (different nodes that have the same parent).
// "i" will hold the index in the parents array for the top
// most element.
if ( !topStart.equals( topEnd ) )
break;
}
var clone = docFrag, levelStartNode, levelClone, currentNode, currentSibling;
// Remove all successive sibling nodes for every node in the
// startParents tree.
for ( var j = i ; j < startParents.length ; j++ )
{
levelStartNode = startParents[j];
// For Extract and Clone, we must clone this level.
if ( clone && !levelStartNode.equals( startNode ) ) // action = 0 = Delete
levelClone = clone.append( levelStartNode.clone() );
currentNode = levelStartNode.getNext();
while ( currentNode )
{
// Stop processing when the current node matches a node in the
// endParents tree or if it is the endNode.
if ( currentNode.equals( endParents[ j ] ) || currentNode.equals( endNode ) )
break;
// Cache the next sibling.
currentSibling = currentNode.getNext();
// If cloning, just clone it.
if ( action == 2 ) // 2 = Clone
clone.append( currentNode.clone( true ) );
else
{
// Both Delete and Extract will remove the node.
currentNode.remove();
// When Extracting, move the removed node to the docFrag.
if ( action == 1 ) // 1 = Extract
clone.append( currentNode );
}
currentNode = currentSibling;
}
if ( clone )
clone = levelClone;
}
clone = docFrag;
// Remove all previous sibling nodes for every node in the
// endParents tree.
for ( var k = i ; k < endParents.length ; k++ )
{
levelStartNode = endParents[ k ];
// For Extract and Clone, we must clone this level.
if ( action > 0 && !levelStartNode.equals( endNode ) ) // action = 0 = Delete
levelClone = clone.append( levelStartNode.clone() );
// The processing of siblings may have already been done by the parent.
if ( !startParents[ k ] || levelStartNode.$.parentNode != startParents[ k ].$.parentNode )
{
currentNode = levelStartNode.getPrevious();
while ( currentNode )
{
// Stop processing when the current node matches a node in the
// startParents tree or if it is the startNode.
if ( currentNode.equals( startParents[ k ] ) || currentNode.equals( startNode ) )
break;
// Cache the next sibling.
currentSibling = currentNode.getPrevious();
// If cloning, just clone it.
if ( action == 2 ) // 2 = Clone
clone.$.insertBefore( currentNode.$.cloneNode( true ), clone.$.firstChild ) ;
else
{
// Both Delete and Extract will remove the node.
currentNode.remove();
// When Extracting, mode the removed node to the docFrag.
if ( action == 1 ) // 1 = Extract
clone.$.insertBefore( currentNode.$, clone.$.firstChild );
}
currentNode = currentSibling;
}
}
if ( clone )
clone = levelClone;
}
if ( action == 2 ) // 2 = Clone.
{
// No changes in the DOM should be done, so fix the split text (if any).
var startTextNode = range.startContainer;
if ( startTextNode.type == CKEDITOR.NODE_TEXT )
{
startTextNode.$.data += startTextNode.$.nextSibling.data;
startTextNode.$.parentNode.removeChild( startTextNode.$.nextSibling );
}
var endTextNode = range.endContainer;
if ( endTextNode.type == CKEDITOR.NODE_TEXT && endTextNode.$.nextSibling )
{
endTextNode.$.data += endTextNode.$.nextSibling.data;
endTextNode.$.parentNode.removeChild( endTextNode.$.nextSibling );
}
}
else
{
// Collapse the range.
// If a node has been partially selected, collapse the range between
// topStart and topEnd. Otherwise, simply collapse it to the start. (W3C specs).
if ( topStart && topEnd && ( startNode.$.parentNode != topStart.$.parentNode || endNode.$.parentNode != topEnd.$.parentNode ) )
{
var endIndex = topEnd.getIndex();
// If the start node is to be removed, we must correct the
// index to reflect the removal.
if ( removeStartNode && topEnd.$.parentNode == startNode.$.parentNode )
endIndex--;
// Merge splitted parents.
if ( mergeThen && topStart.type == CKEDITOR.NODE_ELEMENT )
{
var span = CKEDITOR.dom.element.createFromHtml( '<span ' +
'data-cke-bookmark="1" style="display:none"> </span>', range.document );
span.insertAfter( topStart );
topStart.mergeSiblings( false );
range.moveToBookmark( { startNode : span } );
}
else
range.setStart( topEnd.getParent(), endIndex );
}
// Collapse it to the start.
range.collapse( true );
}
// Cleanup any marked node.
if ( removeStartNode )
startNode.remove();
if ( removeEndNode && endNode.$.parentNode )
endNode.remove();
};
var inlineChildReqElements = { abbr:1,acronym:1,b:1,bdo:1,big:1,cite:1,code:1,del:1,dfn:1,em:1,font:1,i:1,ins:1,label:1,kbd:1,q:1,samp:1,small:1,span:1,strike:1,strong:1,sub:1,sup:1,tt:1,u:1,'var':1 };
// Creates the appropriate node evaluator for the dom walker used inside
// check(Start|End)OfBlock.
function getCheckStartEndBlockEvalFunction( isStart )
{
var skipBogus = false,
bookmarkEvaluator = CKEDITOR.dom.walker.bookmark( true ),
nbspRegExp = /^[\t\r\n ]*(?: |\xa0)$/;
return function( node )
{
// First ignore bookmark nodes.
if ( bookmarkEvaluator( node ) )
return true;
if ( node.type == CKEDITOR.NODE_TEXT )
{
// Skip the block filler NBSP.
if ( CKEDITOR.env.ie &&
nbspRegExp.test( node.getText() ) &&
!skipBogus &&
!( isStart && node.getNext() ) )
{
skipBogus = true;
}
// If there's any visible text, then we're not at the start.
else if ( node.hasAscendant( 'pre' ) || CKEDITOR.tools.trim( node.getText() ).length )
return false;
}
else if ( node.type == CKEDITOR.NODE_ELEMENT )
{
// If there are non-empty inline elements (e.g. <img />), then we're not
// at the start.
if ( !inlineChildReqElements[ node.getName() ] )
{
// Skip the padding block br.
if ( !CKEDITOR.env.ie &&
node.is( 'br' ) &&
!skipBogus &&
!( isStart && node.getNext() ) )
{
skipBogus = true;
}
else
return false;
}
}
return true;
};
}
var isBogus = CKEDITOR.dom.walker.bogus();
// Evaluator for CKEDITOR.dom.element::checkBoundaryOfElement, reject any
// text node and non-empty elements unless it's being bookmark text.
function elementBoundaryEval( checkStart )
{
return function( node )
{
// Tolerant bogus br when checking at the end of block.
// Reject any text node unless it's being bookmark
// OR it's spaces.
// Reject any element unless it's being invisible empty. (#3883)
return !checkStart && isBogus( node ) ||
( node.type == CKEDITOR.NODE_TEXT ?
!CKEDITOR.tools.trim( node.getText() ) || !!node.getParent().data( 'cke-bookmark' )
: node.getName() in CKEDITOR.dtd.$removeEmpty );
};
}
var whitespaceEval = new CKEDITOR.dom.walker.whitespaces(),
bookmarkEval = new CKEDITOR.dom.walker.bookmark();
function nonWhitespaceOrBookmarkEval( node )
{
// Whitespaces and bookmark nodes are to be ignored.
return !whitespaceEval( node ) && !bookmarkEval( node );
}
CKEDITOR.dom.range.prototype =
{
clone : function()
{
var clone = new CKEDITOR.dom.range( this.document );
clone.startContainer = this.startContainer;
clone.startOffset = this.startOffset;
clone.endContainer = this.endContainer;
clone.endOffset = this.endOffset;
clone.collapsed = this.collapsed;
return clone;
},
collapse : function( toStart )
{
if ( toStart )
{
this.endContainer = this.startContainer;
this.endOffset = this.startOffset;
}
else
{
this.startContainer = this.endContainer;
this.startOffset = this.endOffset;
}
this.collapsed = true;
},
/**
* The content nodes of the range are cloned and added to a document fragment, which is returned.
* <strong> Note: </strong> Text selection may lost after invoking this method. (caused by text node splitting).
*/
cloneContents : function()
{
var docFrag = new CKEDITOR.dom.documentFragment( this.document );
if ( !this.collapsed )
execContentsAction( this, 2, docFrag );
return docFrag;
},
/**
* Deletes the content nodes of the range permanently from the DOM tree.
* @param {Boolean} [mergeThen] Merge any splitted elements result in DOM true due to partial selection.
*/
deleteContents : function( mergeThen )
{
if ( this.collapsed )
return;
execContentsAction( this, 0, null, mergeThen );
},
/**
* The content nodes of the range are cloned and added to a document fragment,
* meanwhile they're removed permanently from the DOM tree.
* @param {Boolean} [mergeThen] Merge any splitted elements result in DOM true due to partial selection.
*/
extractContents : function( mergeThen )
{
var docFrag = new CKEDITOR.dom.documentFragment( this.document );
if ( !this.collapsed )
execContentsAction( this, 1, docFrag, mergeThen );
return docFrag;
},
/**
* Creates a bookmark object, which can be later used to restore the
* range by using the moveToBookmark function.
* This is an "intrusive" way to create a bookmark. It includes <span> tags
* in the range boundaries. The advantage of it is that it is possible to
* handle DOM mutations when moving back to the bookmark.
* Attention: the inclusion of nodes in the DOM is a design choice and
* should not be changed as there are other points in the code that may be
* using those nodes to perform operations. See GetBookmarkNode.
* @param {Boolean} [serializable] Indicates that the bookmark nodes
* must contain ids, which can be used to restore the range even
* when these nodes suffer mutations (like a clonation or innerHTML
* change).
* @returns {Object} And object representing a bookmark.
*/
createBookmark : function( serializable )
{
var startNode, endNode;
var baseId;
var clone;
var collapsed = this.collapsed;
startNode = this.document.createElement( 'span' );
startNode.data( 'cke-bookmark', 1 );
startNode.setStyle( 'display', 'none' );
// For IE, it must have something inside, otherwise it may be
// removed during DOM operations.
startNode.setHtml( ' ' );
if ( serializable )
{
baseId = 'cke_bm_' + CKEDITOR.tools.getNextNumber();
startNode.setAttribute( 'id', baseId + ( collapsed ? 'C' : 'S' ) );
}
// If collapsed, the endNode will not be created.
if ( !collapsed )
{
endNode = startNode.clone();
endNode.setHtml( ' ' );
if ( serializable )
endNode.setAttribute( 'id', baseId + 'E' );
clone = this.clone();
clone.collapse();
clone.insertNode( endNode );
}
clone = this.clone();
clone.collapse( true );
clone.insertNode( startNode );
// Update the range position.
if ( endNode )
{
this.setStartAfter( startNode );
this.setEndBefore( endNode );
}
else
this.moveToPosition( startNode, CKEDITOR.POSITION_AFTER_END );
return {
startNode : serializable ? baseId + ( collapsed ? 'C' : 'S' ) : startNode,
endNode : serializable ? baseId + 'E' : endNode,
serializable : serializable,
collapsed : collapsed
};
},
/**
* Creates a "non intrusive" and "mutation sensible" bookmark. This
* kind of bookmark should be used only when the DOM is supposed to
* remain stable after its creation.
* @param {Boolean} [normalized] Indicates that the bookmark must
* normalized. When normalized, the successive text nodes are
* considered a single node. To sucessful load a normalized
* bookmark, the DOM tree must be also normalized before calling
* moveToBookmark.
* @returns {Object} An object representing the bookmark.
*/
createBookmark2 : function( normalized )
{
var startContainer = this.startContainer,
endContainer = this.endContainer;
var startOffset = this.startOffset,
endOffset = this.endOffset;
var collapsed = this.collapsed;
var child, previous;
// If there is no range then get out of here.
// It happens on initial load in Safari #962 and if the editor it's
// hidden also in Firefox
if ( !startContainer || !endContainer )
return { start : 0, end : 0 };
if ( normalized )
{
// Find out if the start is pointing to a text node that will
// be normalized.
if ( startContainer.type == CKEDITOR.NODE_ELEMENT )
{
child = startContainer.getChild( startOffset );
// In this case, move the start information to that text
// node.
if ( child && child.type == CKEDITOR.NODE_TEXT
&& startOffset > 0 && child.getPrevious().type == CKEDITOR.NODE_TEXT )
{
startContainer = child;
startOffset = 0;
}
// Get the normalized offset.
if ( child && child.type == CKEDITOR.NODE_ELEMENT )
startOffset = child.getIndex( 1 );
}
// Normalize the start.
while ( startContainer.type == CKEDITOR.NODE_TEXT
&& ( previous = startContainer.getPrevious() )
&& previous.type == CKEDITOR.NODE_TEXT )
{
startContainer = previous;
startOffset += previous.getLength();
}
// Process the end only if not normalized.
if ( !collapsed )
{
// Find out if the start is pointing to a text node that
// will be normalized.
if ( endContainer.type == CKEDITOR.NODE_ELEMENT )
{
child = endContainer.getChild( endOffset );
// In this case, move the start information to that
// text node.
if ( child && child.type == CKEDITOR.NODE_TEXT
&& endOffset > 0 && child.getPrevious().type == CKEDITOR.NODE_TEXT )
{
endContainer = child;
endOffset = 0;
}
// Get the normalized offset.
if ( child && child.type == CKEDITOR.NODE_ELEMENT )
endOffset = child.getIndex( 1 );
}
// Normalize the end.
while ( endContainer.type == CKEDITOR.NODE_TEXT
&& ( previous = endContainer.getPrevious() )
&& previous.type == CKEDITOR.NODE_TEXT )
{
endContainer = previous;
endOffset += previous.getLength();
}
}
}
return {
start : startContainer.getAddress( normalized ),
end : collapsed ? null : endContainer.getAddress( normalized ),
startOffset : startOffset,
endOffset : endOffset,
normalized : normalized,
collapsed : collapsed,
is2 : true // It's a createBookmark2 bookmark.
};
},
moveToBookmark : function( bookmark )
{
if ( bookmark.is2 ) // Created with createBookmark2().
{
// Get the start information.
var startContainer = this.document.getByAddress( bookmark.start, bookmark.normalized ),
startOffset = bookmark.startOffset;
// Get the end information.
var endContainer = bookmark.end && this.document.getByAddress( bookmark.end, bookmark.normalized ),
endOffset = bookmark.endOffset;
// Set the start boundary.
this.setStart( startContainer, startOffset );
// Set the end boundary. If not available, collapse it.
if ( endContainer )
this.setEnd( endContainer, endOffset );
else
this.collapse( true );
}
else // Created with createBookmark().
{
var serializable = bookmark.serializable,
startNode = serializable ? this.document.getById( bookmark.startNode ) : bookmark.startNode,
endNode = serializable ? this.document.getById( bookmark.endNode ) : bookmark.endNode;
// Set the range start at the bookmark start node position.
this.setStartBefore( startNode );
// Remove it, because it may interfere in the setEndBefore call.
startNode.remove();
// Set the range end at the bookmark end node position, or simply
// collapse it if it is not available.
if ( endNode )
{
this.setEndBefore( endNode );
endNode.remove();
}
else
this.collapse( true );
}
},
getBoundaryNodes : function()
{
var startNode = this.startContainer,
endNode = this.endContainer,
startOffset = this.startOffset,
endOffset = this.endOffset,
childCount;
if ( startNode.type == CKEDITOR.NODE_ELEMENT )
{
childCount = startNode.getChildCount();
if ( childCount > startOffset )
startNode = startNode.getChild( startOffset );
else if ( childCount < 1 )
startNode = startNode.getPreviousSourceNode();
else // startOffset > childCount but childCount is not 0
{
// Try to take the node just after the current position.
startNode = startNode.$;
while ( startNode.lastChild )
startNode = startNode.lastChild;
startNode = new CKEDITOR.dom.node( startNode );
// Normally we should take the next node in DFS order. But it
// is also possible that we've already reached the end of
// document.
startNode = startNode.getNextSourceNode() || startNode;
}
}
if ( endNode.type == CKEDITOR.NODE_ELEMENT )
{
childCount = endNode.getChildCount();
if ( childCount > endOffset )
endNode = endNode.getChild( endOffset ).getPreviousSourceNode( true );
else if ( childCount < 1 )
endNode = endNode.getPreviousSourceNode();
else // endOffset > childCount but childCount is not 0
{
// Try to take the node just before the current position.
endNode = endNode.$;
while ( endNode.lastChild )
endNode = endNode.lastChild;
endNode = new CKEDITOR.dom.node( endNode );
}
}
// Sometimes the endNode will come right before startNode for collapsed
// ranges. Fix it. (#3780)
if ( startNode.getPosition( endNode ) & CKEDITOR.POSITION_FOLLOWING )
startNode = endNode;
return { startNode : startNode, endNode : endNode };
},
/**
* Find the node which fully contains the range.
* @param includeSelf
* @param {Boolean} ignoreTextNode Whether ignore CKEDITOR.NODE_TEXT type.
*/
getCommonAncestor : function( includeSelf , ignoreTextNode )
{
var start = this.startContainer,
end = this.endContainer,
ancestor;
if ( start.equals( end ) )
{
if ( includeSelf
&& start.type == CKEDITOR.NODE_ELEMENT
&& this.startOffset == this.endOffset - 1 )
ancestor = start.getChild( this.startOffset );
else
ancestor = start;
}
else
ancestor = start.getCommonAncestor( end );
return ignoreTextNode && !ancestor.is ? ancestor.getParent() : ancestor;
},
/**
* Transforms the startContainer and endContainer properties from text
* nodes to element nodes, whenever possible. This is actually possible
* if either of the boundary containers point to a text node, and its
* offset is set to zero, or after the last char in the node.
*/
optimize : function()
{
var container = this.startContainer;
var offset = this.startOffset;
if ( container.type != CKEDITOR.NODE_ELEMENT )
{
if ( !offset )
this.setStartBefore( container );
else if ( offset >= container.getLength() )
this.setStartAfter( container );
}
container = this.endContainer;
offset = this.endOffset;
if ( container.type != CKEDITOR.NODE_ELEMENT )
{
if ( !offset )
this.setEndBefore( container );
else if ( offset >= container.getLength() )
this.setEndAfter( container );
}
},
/**
* Move the range out of bookmark nodes if they'd been the container.
*/
optimizeBookmark: function()
{
var startNode = this.startContainer,
endNode = this.endContainer;
if ( startNode.is && startNode.is( 'span' )
&& startNode.data( 'cke-bookmark' ) )
this.setStartAt( startNode, CKEDITOR.POSITION_BEFORE_START );
if ( endNode && endNode.is && endNode.is( 'span' )
&& endNode.data( 'cke-bookmark' ) )
this.setEndAt( endNode, CKEDITOR.POSITION_AFTER_END );
},
trim : function( ignoreStart, ignoreEnd )
{
var startContainer = this.startContainer,
startOffset = this.startOffset,
collapsed = this.collapsed;
if ( ( !ignoreStart || collapsed )
&& startContainer && startContainer.type == CKEDITOR.NODE_TEXT )
{
// If the offset is zero, we just insert the new node before
// the start.
if ( !startOffset )
{
startOffset = startContainer.getIndex();
startContainer = startContainer.getParent();
}
// If the offset is at the end, we'll insert it after the text
// node.
else if ( startOffset >= startContainer.getLength() )
{
startOffset = startContainer.getIndex() + 1;
startContainer = startContainer.getParent();
}
// In other case, we split the text node and insert the new
// node at the split point.
else
{
var nextText = startContainer.split( startOffset );
startOffset = startContainer.getIndex() + 1;
startContainer = startContainer.getParent();
// Check all necessity of updating the end boundary.
if ( this.startContainer.equals( this.endContainer ) )
this.setEnd( nextText, this.endOffset - this.startOffset );
else if ( startContainer.equals( this.endContainer ) )
this.endOffset += 1;
}
this.setStart( startContainer, startOffset );
if ( collapsed )
{
this.collapse( true );
return;
}
}
var endContainer = this.endContainer;
var endOffset = this.endOffset;
if ( !( ignoreEnd || collapsed )
&& endContainer && endContainer.type == CKEDITOR.NODE_TEXT )
{
// If the offset is zero, we just insert the new node before
// the start.
if ( !endOffset )
{
endOffset = endContainer.getIndex();
endContainer = endContainer.getParent();
}
// If the offset is at the end, we'll insert it after the text
// node.
else if ( endOffset >= endContainer.getLength() )
{
endOffset = endContainer.getIndex() + 1;
endContainer = endContainer.getParent();
}
// In other case, we split the text node and insert the new
// node at the split point.
else
{
endContainer.split( endOffset );
endOffset = endContainer.getIndex() + 1;
endContainer = endContainer.getParent();
}
this.setEnd( endContainer, endOffset );
}
},
/**
* Expands the range so that partial units are completely contained.
* @param unit {Number} The unit type to expand with.
* @param {Boolean} [excludeBrs=false] Whether include line-breaks when expanding.
*/
enlarge : function( unit, excludeBrs )
{
switch ( unit )
{
case CKEDITOR.ENLARGE_ELEMENT :
if ( this.collapsed )
return;
// Get the common ancestor.
var commonAncestor = this.getCommonAncestor();
var body = this.document.getBody();
// For each boundary
// a. Depending on its position, find out the first node to be checked (a sibling) or, if not available, to be enlarge.
// b. Go ahead checking siblings and enlarging the boundary as much as possible until the common ancestor is not reached. After reaching the common ancestor, just save the enlargeable node to be used later.
var startTop, endTop;
var enlargeable, sibling, commonReached;
// Indicates that the node can be added only if whitespace
// is available before it.
var needsWhiteSpace = false;
var isWhiteSpace;
var siblingText;
// Process the start boundary.
var container = this.startContainer;
var offset = this.startOffset;
if ( container.type == CKEDITOR.NODE_TEXT )
{
if ( offset )
{
// Check if there is any non-space text before the
// offset. Otherwise, container is null.
container = !CKEDITOR.tools.trim( container.substring( 0, offset ) ).length && container;
// If we found only whitespace in the node, it
// means that we'll need more whitespace to be able
// to expand. For example, <i> can be expanded in
// "A <i> [B]</i>", but not in "A<i> [B]</i>".
needsWhiteSpace = !!container;
}
if ( container )
{
if ( !( sibling = container.getPrevious() ) )
enlargeable = container.getParent();
}
}
else
{
// If we have offset, get the node preceeding it as the
// first sibling to be checked.
if ( offset )
sibling = container.getChild( offset - 1 ) || container.getLast();
// If there is no sibling, mark the container to be
// enlarged.
if ( !sibling )
enlargeable = container;
}
while ( enlargeable || sibling )
{
if ( enlargeable && !sibling )
{
// If we reached the common ancestor, mark the flag
// for it.
if ( !commonReached && enlargeable.equals( commonAncestor ) )
commonReached = true;
if ( !body.contains( enlargeable ) )
break;
// If we don't need space or this element breaks
// the line, then enlarge it.
if ( !needsWhiteSpace || enlargeable.getComputedStyle( 'display' ) != 'inline' )
{
needsWhiteSpace = false;
// If the common ancestor has been reached,
// we'll not enlarge it immediately, but just
// mark it to be enlarged later if the end
// boundary also enlarges it.
if ( commonReached )
startTop = enlargeable;
else
this.setStartBefore( enlargeable );
}
sibling = enlargeable.getPrevious();
}
// Check all sibling nodes preceeding the enlargeable
// node. The node wil lbe enlarged only if none of them
// blocks it.
while ( sibling )
{
// This flag indicates that this node has
// whitespaces at the end.
isWhiteSpace = false;
if ( sibling.type == CKEDITOR.NODE_COMMENT )
{
sibling = sibling.getPrevious();
continue;
}
else if ( sibling.type == CKEDITOR.NODE_TEXT )
{
siblingText = sibling.getText();
if ( /[^\s\ufeff]/.test( siblingText ) )
sibling = null;
isWhiteSpace = /[\s\ufeff]$/.test( siblingText );
}
else
{
// If this is a visible element.
// We need to check for the bookmark attribute because IE insists on
// rendering the display:none nodes we use for bookmarks. (#3363)
// Line-breaks (br) are rendered with zero width, which we don't want to include. (#7041)
if ( ( sibling.$.offsetWidth > 0 || excludeBrs && sibling.is( 'br' ) ) && !sibling.data( 'cke-bookmark' ) )
{
// We'll accept it only if we need
// whitespace, and this is an inline
// element with whitespace only.
if ( needsWhiteSpace && CKEDITOR.dtd.$removeEmpty[ sibling.getName() ] )
{
// It must contains spaces and inline elements only.
siblingText = sibling.getText();
if ( (/[^\s\ufeff]/).test( siblingText ) ) // Spaces + Zero Width No-Break Space (U+FEFF)
sibling = null;
else
{
var allChildren = sibling.$.getElementsByTagName( '*' );
for ( var i = 0, child ; child = allChildren[ i++ ] ; )
{
if ( !CKEDITOR.dtd.$removeEmpty[ child.nodeName.toLowerCase() ] )
{
sibling = null;
break;
}
}
}
if ( sibling )
isWhiteSpace = !!siblingText.length;
}
else
sibling = null;
}
}
// A node with whitespaces has been found.
if ( isWhiteSpace )
{
// Enlarge the last enlargeable node, if we
// were waiting for spaces.
if ( needsWhiteSpace )
{
if ( commonReached )
startTop = enlargeable;
else if ( enlargeable )
this.setStartBefore( enlargeable );
}
else
needsWhiteSpace = true;
}
if ( sibling )
{
var next = sibling.getPrevious();
if ( !enlargeable && !next )
{
// Set the sibling as enlargeable, so it's
// parent will be get later outside this while.
enlargeable = sibling;
sibling = null;
break;
}
sibling = next;
}
else
{
// If sibling has been set to null, then we
// need to stop enlarging.
enlargeable = null;
}
}
if ( enlargeable )
enlargeable = enlargeable.getParent();
}
// Process the end boundary. This is basically the same
// code used for the start boundary, with small changes to
// make it work in the oposite side (to the right). This
// makes it difficult to reuse the code here. So, fixes to
// the above code are likely to be replicated here.
container = this.endContainer;
offset = this.endOffset;
// Reset the common variables.
enlargeable = sibling = null;
commonReached = needsWhiteSpace = false;
if ( container.type == CKEDITOR.NODE_TEXT )
{
// Check if there is any non-space text after the
// offset. Otherwise, container is null.
container = !CKEDITOR.tools.trim( container.substring( offset ) ).length && container;
// If we found only whitespace in the node, it
// means that we'll need more whitespace to be able
// to expand. For example, <i> can be expanded in
// "A <i> [B]</i>", but not in "A<i> [B]</i>".
needsWhiteSpace = !( container && container.getLength() );
if ( container )
{
if ( !( sibling = container.getNext() ) )
enlargeable = container.getParent();
}
}
else
{
// Get the node right after the boudary to be checked
// first.
sibling = container.getChild( offset );
if ( !sibling )
enlargeable = container;
}
while ( enlargeable || sibling )
{
if ( enlargeable && !sibling )
{
if ( !commonReached && enlargeable.equals( commonAncestor ) )
commonReached = true;
if ( !body.contains( enlargeable ) )
break;
if ( !needsWhiteSpace || enlargeable.getComputedStyle( 'display' ) != 'inline' )
{
needsWhiteSpace = false;
if ( commonReached )
endTop = enlargeable;
else if ( enlargeable )
this.setEndAfter( enlargeable );
}
sibling = enlargeable.getNext();
}
while ( sibling )
{
isWhiteSpace = false;
if ( sibling.type == CKEDITOR.NODE_TEXT )
{
siblingText = sibling.getText();
if ( /[^\s\ufeff]/.test( siblingText ) )
sibling = null;
isWhiteSpace = /^[\s\ufeff]/.test( siblingText );
}
else if ( sibling.type == CKEDITOR.NODE_ELEMENT )
{
// If this is a visible element.
// We need to check for the bookmark attribute because IE insists on
// rendering the display:none nodes we use for bookmarks. (#3363)
// Line-breaks (br) are rendered with zero width, which we don't want to include. (#7041)
if ( ( sibling.$.offsetWidth > 0 || excludeBrs && sibling.is( 'br' ) ) && !sibling.data( 'cke-bookmark' ) )
{
// We'll accept it only if we need
// whitespace, and this is an inline
// element with whitespace only.
if ( needsWhiteSpace && CKEDITOR.dtd.$removeEmpty[ sibling.getName() ] )
{
// It must contains spaces and inline elements only.
siblingText = sibling.getText();
if ( (/[^\s\ufeff]/).test( siblingText ) )
sibling = null;
else
{
allChildren = sibling.$.getElementsByTagName( '*' );
for ( i = 0 ; child = allChildren[ i++ ] ; )
{
if ( !CKEDITOR.dtd.$removeEmpty[ child.nodeName.toLowerCase() ] )
{
sibling = null;
break;
}
}
}
if ( sibling )
isWhiteSpace = !!siblingText.length;
}
else
sibling = null;
}
}
else
isWhiteSpace = 1;
if ( isWhiteSpace )
{
if ( needsWhiteSpace )
{
if ( commonReached )
endTop = enlargeable;
else
this.setEndAfter( enlargeable );
}
}
if ( sibling )
{
next = sibling.getNext();
if ( !enlargeable && !next )
{
enlargeable = sibling;
sibling = null;
break;
}
sibling = next;
}
else
{
// If sibling has been set to null, then we
// need to stop enlarging.
enlargeable = null;
}
}
if ( enlargeable )
enlargeable = enlargeable.getParent();
}
// If the common ancestor can be enlarged by both boundaries, then include it also.
if ( startTop && endTop )
{
commonAncestor = startTop.contains( endTop ) ? endTop : startTop;
this.setStartBefore( commonAncestor );
this.setEndAfter( commonAncestor );
}
break;
case CKEDITOR.ENLARGE_BLOCK_CONTENTS:
case CKEDITOR.ENLARGE_LIST_ITEM_CONTENTS:
// Enlarging the start boundary.
var walkerRange = new CKEDITOR.dom.range( this.document );
body = this.document.getBody();
walkerRange.setStartAt( body, CKEDITOR.POSITION_AFTER_START );
walkerRange.setEnd( this.startContainer, this.startOffset );
var walker = new CKEDITOR.dom.walker( walkerRange ),
blockBoundary, // The node on which the enlarging should stop.
tailBr, // In case BR as block boundary.
notBlockBoundary = CKEDITOR.dom.walker.blockBoundary(
( unit == CKEDITOR.ENLARGE_LIST_ITEM_CONTENTS ) ? { br : 1 } : null ),
// Record the encountered 'blockBoundary' for later use.
boundaryGuard = function( node )
{
var retval = notBlockBoundary( node );
if ( !retval )
blockBoundary = node;
return retval;
},
// Record the encounted 'tailBr' for later use.
tailBrGuard = function( node )
{
var retval = boundaryGuard( node );
if ( !retval && node.is && node.is( 'br' ) )
tailBr = node;
return retval;
};
walker.guard = boundaryGuard;
enlargeable = walker.lastBackward();
// It's the body which stop the enlarging if no block boundary found.
blockBoundary = blockBoundary || body;
// Start the range either after the end of found block (<p>...</p>[text)
// or at the start of block (<p>[text...), by comparing the document position
// with 'enlargeable' node.
this.setStartAt(
blockBoundary,
!blockBoundary.is( 'br' ) &&
( !enlargeable && this.checkStartOfBlock()
|| enlargeable && blockBoundary.contains( enlargeable ) ) ?
CKEDITOR.POSITION_AFTER_START :
CKEDITOR.POSITION_AFTER_END );
// Avoid enlarging the range further when end boundary spans right after the BR. (#7490)
if ( unit == CKEDITOR.ENLARGE_LIST_ITEM_CONTENTS )
{
var theRange = this.clone();
walker = new CKEDITOR.dom.walker( theRange );
var whitespaces = CKEDITOR.dom.walker.whitespaces(),
bookmark = CKEDITOR.dom.walker.bookmark();
walker.evaluator = function( node ) { return !whitespaces( node ) && !bookmark( node ); };
var previous = walker.previous();
if ( previous && previous.type == CKEDITOR.NODE_ELEMENT && previous.is( 'br' ) )
return;
}
// Enlarging the end boundary.
walkerRange = this.clone();
walkerRange.collapse();
walkerRange.setEndAt( body, CKEDITOR.POSITION_BEFORE_END );
walker = new CKEDITOR.dom.walker( walkerRange );
// tailBrGuard only used for on range end.
walker.guard = ( unit == CKEDITOR.ENLARGE_LIST_ITEM_CONTENTS ) ?
tailBrGuard : boundaryGuard;
blockBoundary = null;
// End the range right before the block boundary node.
enlargeable = walker.lastForward();
// It's the body which stop the enlarging if no block boundary found.
blockBoundary = blockBoundary || body;
// Close the range either before the found block start (text]<p>...</p>) or at the block end (...text]</p>)
// by comparing the document position with 'enlargeable' node.
this.setEndAt(
blockBoundary,
( !enlargeable && this.checkEndOfBlock()
|| enlargeable && blockBoundary.contains( enlargeable ) ) ?
CKEDITOR.POSITION_BEFORE_END :
CKEDITOR.POSITION_BEFORE_START );
// We must include the <br> at the end of range if there's
// one and we're expanding list item contents
if ( tailBr )
this.setEndAfter( tailBr );
}
},
/**
* Descrease the range to make sure that boundaries
* always anchor beside text nodes or innermost element.
* @param {Number} mode ( CKEDITOR.SHRINK_ELEMENT | CKEDITOR.SHRINK_TEXT ) The shrinking mode.
* <dl>
* <dt>CKEDITOR.SHRINK_ELEMENT</dt>
* <dd>Shrink the range boundaries to the edge of the innermost element.</dd>
* <dt>CKEDITOR.SHRINK_TEXT</dt>
* <dd>Shrink the range boudaries to anchor by the side of enclosed text node, range remains if there's no text nodes on boundaries at all.</dd>
* </dl>
* @param {Boolean} selectContents Whether result range anchors at the inner OR outer boundary of the node.
*/
shrink : function( mode, selectContents )
{
// Unable to shrink a collapsed range.
if ( !this.collapsed )
{
mode = mode || CKEDITOR.SHRINK_TEXT;
var walkerRange = this.clone();
var startContainer = this.startContainer,
endContainer = this.endContainer,
startOffset = this.startOffset,
endOffset = this.endOffset,
collapsed = this.collapsed;
// Whether the start/end boundary is moveable.
var moveStart = 1,
moveEnd = 1;
if ( startContainer && startContainer.type == CKEDITOR.NODE_TEXT )
{
if ( !startOffset )
walkerRange.setStartBefore( startContainer );
else if ( startOffset >= startContainer.getLength( ) )
walkerRange.setStartAfter( startContainer );
else
{
// Enlarge the range properly to avoid walker making
// DOM changes caused by triming the text nodes later.
walkerRange.setStartBefore( startContainer );
moveStart = 0;
}
}
if ( endContainer && endContainer.type == CKEDITOR.NODE_TEXT )
{
if ( !endOffset )
walkerRange.setEndBefore( endContainer );
else if ( endOffset >= endContainer.getLength( ) )
walkerRange.setEndAfter( endContainer );
else
{
walkerRange.setEndAfter( endContainer );
moveEnd = 0;
}
}
var walker = new CKEDITOR.dom.walker( walkerRange ),
isBookmark = CKEDITOR.dom.walker.bookmark();
walker.evaluator = function( node )
{
return node.type == ( mode == CKEDITOR.SHRINK_ELEMENT ?
CKEDITOR.NODE_ELEMENT : CKEDITOR.NODE_TEXT );
};
var currentElement;
walker.guard = function( node, movingOut )
{
if ( isBookmark( node ) )
return true;
// Stop when we're shrink in element mode while encountering a text node.
if ( mode == CKEDITOR.SHRINK_ELEMENT && node.type == CKEDITOR.NODE_TEXT )
return false;
// Stop when we've already walked "through" an element.
if ( movingOut && node.equals( currentElement ) )
return false;
if ( !movingOut && node.type == CKEDITOR.NODE_ELEMENT )
currentElement = node;
return true;
};
if ( moveStart )
{
var textStart = walker[ mode == CKEDITOR.SHRINK_ELEMENT ? 'lastForward' : 'next']();
textStart && this.setStartAt( textStart, selectContents ? CKEDITOR.POSITION_AFTER_START : CKEDITOR.POSITION_BEFORE_START );
}
if ( moveEnd )
{
walker.reset();
var textEnd = walker[ mode == CKEDITOR.SHRINK_ELEMENT ? 'lastBackward' : 'previous']();
textEnd && this.setEndAt( textEnd, selectContents ? CKEDITOR.POSITION_BEFORE_END : CKEDITOR.POSITION_AFTER_END );
}
return !!( moveStart || moveEnd );
}
},
/**
* Inserts a node at the start of the range. The range will be expanded
* the contain the node.
*/
insertNode : function( node )
{
this.optimizeBookmark();
this.trim( false, true );
var startContainer = this.startContainer;
var startOffset = this.startOffset;
var nextNode = startContainer.getChild( startOffset );
if ( nextNode )
node.insertBefore( nextNode );
else
startContainer.append( node );
// Check if we need to update the end boundary.
if ( node.getParent().equals( this.endContainer ) )
this.endOffset++;
// Expand the range to embrace the new node.
this.setStartBefore( node );
},
moveToPosition : function( node, position )
{
this.setStartAt( node, position );
this.collapse( true );
},
selectNodeContents : function( node )
{
this.setStart( node, 0 );
this.setEnd( node, node.type == CKEDITOR.NODE_TEXT ? node.getLength() : node.getChildCount() );
},
/**
* Sets the start position of a Range.
* @param {CKEDITOR.dom.node} startNode The node to start the range.
* @param {Number} startOffset An integer greater than or equal to zero
* representing the offset for the start of the range from the start
* of startNode.
*/
setStart : function( startNode, startOffset )
{
// W3C requires a check for the new position. If it is after the end
// boundary, the range should be collapsed to the new start. It seams
// we will not need this check for our use of this class so we can
// ignore it for now.
// Fixing invalid range start inside dtd empty elements.
if( startNode.type == CKEDITOR.NODE_ELEMENT
&& CKEDITOR.dtd.$empty[ startNode.getName() ] )
startOffset = startNode.getIndex(), startNode = startNode.getParent();
this.startContainer = startNode;
this.startOffset = startOffset;
if ( !this.endContainer )
{
this.endContainer = startNode;
this.endOffset = startOffset;
}
updateCollapsed( this );
},
/**
* Sets the end position of a Range.
* @param {CKEDITOR.dom.node} endNode The node to end the range.
* @param {Number} endOffset An integer greater than or equal to zero
* representing the offset for the end of the range from the start
* of endNode.
*/
setEnd : function( endNode, endOffset )
{
// W3C requires a check for the new position. If it is before the start
// boundary, the range should be collapsed to the new end. It seams we
// will not need this check for our use of this class so we can ignore
// it for now.
// Fixing invalid range end inside dtd empty elements.
if( endNode.type == CKEDITOR.NODE_ELEMENT
&& CKEDITOR.dtd.$empty[ endNode.getName() ] )
endOffset = endNode.getIndex() + 1, endNode = endNode.getParent();
this.endContainer = endNode;
this.endOffset = endOffset;
if ( !this.startContainer )
{
this.startContainer = endNode;
this.startOffset = endOffset;
}
updateCollapsed( this );
},
setStartAfter : function( node )
{
this.setStart( node.getParent(), node.getIndex() + 1 );
},
setStartBefore : function( node )
{
this.setStart( node.getParent(), node.getIndex() );
},
setEndAfter : function( node )
{
this.setEnd( node.getParent(), node.getIndex() + 1 );
},
setEndBefore : function( node )
{
this.setEnd( node.getParent(), node.getIndex() );
},
setStartAt : function( node, position )
{
switch( position )
{
case CKEDITOR.POSITION_AFTER_START :
this.setStart( node, 0 );
break;
case CKEDITOR.POSITION_BEFORE_END :
if ( node.type == CKEDITOR.NODE_TEXT )
this.setStart( node, node.getLength() );
else
this.setStart( node, node.getChildCount() );
break;
case CKEDITOR.POSITION_BEFORE_START :
this.setStartBefore( node );
break;
case CKEDITOR.POSITION_AFTER_END :
this.setStartAfter( node );
}
updateCollapsed( this );
},
setEndAt : function( node, position )
{
switch( position )
{
case CKEDITOR.POSITION_AFTER_START :
this.setEnd( node, 0 );
break;
case CKEDITOR.POSITION_BEFORE_END :
if ( node.type == CKEDITOR.NODE_TEXT )
this.setEnd( node, node.getLength() );
else
this.setEnd( node, node.getChildCount() );
break;
case CKEDITOR.POSITION_BEFORE_START :
this.setEndBefore( node );
break;
case CKEDITOR.POSITION_AFTER_END :
this.setEndAfter( node );
}
updateCollapsed( this );
},
fixBlock : function( isStart, blockTag )
{
var bookmark = this.createBookmark(),
fixedBlock = this.document.createElement( blockTag );
this.collapse( isStart );
this.enlarge( CKEDITOR.ENLARGE_BLOCK_CONTENTS );
this.extractContents().appendTo( fixedBlock );
fixedBlock.trim();
if ( !CKEDITOR.env.ie )
fixedBlock.appendBogus();
this.insertNode( fixedBlock );
this.moveToBookmark( bookmark );
return fixedBlock;
},
splitBlock : function( blockTag )
{
var startPath = new CKEDITOR.dom.elementPath( this.startContainer ),
endPath = new CKEDITOR.dom.elementPath( this.endContainer );
var startBlockLimit = startPath.blockLimit,
endBlockLimit = endPath.blockLimit;
var startBlock = startPath.block,
endBlock = endPath.block;
var elementPath = null;
// Do nothing if the boundaries are in different block limits.
if ( !startBlockLimit.equals( endBlockLimit ) )
return null;
// Get or fix current blocks.
if ( blockTag != 'br' )
{
if ( !startBlock )
{
startBlock = this.fixBlock( true, blockTag );
endBlock = new CKEDITOR.dom.elementPath( this.endContainer ).block;
}
if ( !endBlock )
endBlock = this.fixBlock( false, blockTag );
}
// Get the range position.
var isStartOfBlock = startBlock && this.checkStartOfBlock(),
isEndOfBlock = endBlock && this.checkEndOfBlock();
// Delete the current contents.
// TODO: Why is 2.x doing CheckIsEmpty()?
this.deleteContents();
if ( startBlock && startBlock.equals( endBlock ) )
{
if ( isEndOfBlock )
{
elementPath = new CKEDITOR.dom.elementPath( this.startContainer );
this.moveToPosition( endBlock, CKEDITOR.POSITION_AFTER_END );
endBlock = null;
}
else if ( isStartOfBlock )
{
elementPath = new CKEDITOR.dom.elementPath( this.startContainer );
this.moveToPosition( startBlock, CKEDITOR.POSITION_BEFORE_START );
startBlock = null;
}
else
{
endBlock = this.splitElement( startBlock );
// In Gecko, the last child node must be a bogus <br>.
// Note: bogus <br> added under <ul> or <ol> would cause
// lists to be incorrectly rendered.
if ( !CKEDITOR.env.ie && !startBlock.is( 'ul', 'ol') )
startBlock.appendBogus() ;
}
}
return {
previousBlock : startBlock,
nextBlock : endBlock,
wasStartOfBlock : isStartOfBlock,
wasEndOfBlock : isEndOfBlock,
elementPath : elementPath
};
},
/**
* Branch the specified element from the collapsed range position and
* place the caret between the two result branches.
* Note: The range must be collapsed and been enclosed by this element.
* @param {CKEDITOR.dom.element} element
* @return {CKEDITOR.dom.element} Root element of the new branch after the split.
*/
splitElement : function( toSplit )
{
if ( !this.collapsed )
return null;
// Extract the contents of the block from the selection point to the end
// of its contents.
this.setEndAt( toSplit, CKEDITOR.POSITION_BEFORE_END );
var documentFragment = this.extractContents();
// Duplicate the element after it.
var clone = toSplit.clone( false );
// Place the extracted contents into the duplicated element.
documentFragment.appendTo( clone );
clone.insertAfter( toSplit );
this.moveToPosition( toSplit, CKEDITOR.POSITION_AFTER_END );
return clone;
},
/**
* Check whether a range boundary is at the inner boundary of a given
* element.
* @param {CKEDITOR.dom.element} element The target element to check.
* @param {Number} checkType The boundary to check for both the range
* and the element. It can be CKEDITOR.START or CKEDITOR.END.
* @returns {Boolean} "true" if the range boundary is at the inner
* boundary of the element.
*/
checkBoundaryOfElement : function( element, checkType )
{
var checkStart = ( checkType == CKEDITOR.START );
// Create a copy of this range, so we can manipulate it for our checks.
var walkerRange = this.clone();
// Collapse the range at the proper size.
walkerRange.collapse( checkStart );
// Expand the range to element boundary.
walkerRange[ checkStart ? 'setStartAt' : 'setEndAt' ]
( element, checkStart ? CKEDITOR.POSITION_AFTER_START : CKEDITOR.POSITION_BEFORE_END );
// Create the walker, which will check if we have anything useful
// in the range.
var walker = new CKEDITOR.dom.walker( walkerRange );
walker.evaluator = elementBoundaryEval( checkStart );
return walker[ checkStart ? 'checkBackward' : 'checkForward' ]();
},
// Calls to this function may produce changes to the DOM. The range may
// be updated to reflect such changes.
checkStartOfBlock : function()
{
var startContainer = this.startContainer,
startOffset = this.startOffset;
// If the starting node is a text node, and non-empty before the offset,
// then we're surely not at the start of block.
if ( startOffset && startContainer.type == CKEDITOR.NODE_TEXT )
{
var textBefore = CKEDITOR.tools.ltrim( startContainer.substring( 0, startOffset ) );
if ( textBefore.length )
return false;
}
// We need to grab the block element holding the start boundary, so
// let's use an element path for it.
var path = new CKEDITOR.dom.elementPath( this.startContainer );
// Creates a range starting at the block start until the range start.
var walkerRange = this.clone();
walkerRange.collapse( true );
walkerRange.setStartAt( path.block || path.blockLimit, CKEDITOR.POSITION_AFTER_START );
var walker = new CKEDITOR.dom.walker( walkerRange );
walker.evaluator = getCheckStartEndBlockEvalFunction( true );
return walker.checkBackward();
},
checkEndOfBlock : function()
{
var endContainer = this.endContainer,
endOffset = this.endOffset;
// If the ending node is a text node, and non-empty after the offset,
// then we're surely not at the end of block.
if ( endContainer.type == CKEDITOR.NODE_TEXT )
{
var textAfter = CKEDITOR.tools.rtrim( endContainer.substring( endOffset ) );
if ( textAfter.length )
return false;
}
// We need to grab the block element holding the start boundary, so
// let's use an element path for it.
var path = new CKEDITOR.dom.elementPath( this.endContainer );
// Creates a range starting at the block start until the range start.
var walkerRange = this.clone();
walkerRange.collapse( false );
walkerRange.setEndAt( path.block || path.blockLimit, CKEDITOR.POSITION_BEFORE_END );
var walker = new CKEDITOR.dom.walker( walkerRange );
walker.evaluator = getCheckStartEndBlockEvalFunction( false );
return walker.checkForward();
},
/**
* Check if elements at which the range boundaries anchor are read-only,
* with respect to "contenteditable" attribute.
*/
checkReadOnly : ( function()
{
function checkNodesEditable( node, anotherEnd )
{
while( node )
{
if ( node.type == CKEDITOR.NODE_ELEMENT )
{
if ( node.getAttribute( 'contentEditable' ) == 'false'
&& !node.data( 'cke-editable' ) )
{
return 0;
}
// Range enclosed entirely in an editable element.
else if ( node.is( 'html' )
|| node.getAttribute( 'contentEditable' ) == 'true'
&& ( node.contains( anotherEnd ) || node.equals( anotherEnd ) ) )
{
break;
}
}
node = node.getParent();
}
return 1;
}
return function()
{
var startNode = this.startContainer,
endNode = this.endContainer;
// Check if elements path at both boundaries are editable.
return !( checkNodesEditable( startNode, endNode ) && checkNodesEditable( endNode, startNode ) );
};
})(),
/**
* Moves the range boundaries to the first/end editing point inside an
* element. For example, in an element tree like
* "<p><b><i></i></b> Text</p>", the start editing point is
* "<p><b><i>^</i></b> Text</p>" (inside <i>).
* @param {CKEDITOR.dom.element} el The element into which look for the
* editing spot.
* @param {Boolean} isMoveToEnd Whether move to the end editable position.
*/
moveToElementEditablePosition : function( el, isMoveToEnd )
{
var nbspRegExp = /^[\t\r\n ]*(?: |\xa0)$/;
function nextDFS( node, childOnly )
{
var next;
if ( node.type == CKEDITOR.NODE_ELEMENT && node.isEditable( false ) )
next = node[ isMoveToEnd ? 'getLast' : 'getFirst' ]( nonWhitespaceOrBookmarkEval );
if ( !childOnly && !next )
next = node[ isMoveToEnd ? 'getPrevious' : 'getNext' ]( nonWhitespaceOrBookmarkEval );
return next;
}
// Handle non-editable element e.g. HR.
if ( el.type == CKEDITOR.NODE_ELEMENT && !el.isEditable( false ) )
{
this.moveToPosition( el, isMoveToEnd ?
CKEDITOR.POSITION_AFTER_END :
CKEDITOR.POSITION_BEFORE_START );
return true;
}
var found = 0;
while ( el )
{
// Stop immediately if we've found a text node.
if ( el.type == CKEDITOR.NODE_TEXT )
{
// Put cursor before block filler.
if ( isMoveToEnd && this.checkEndOfBlock() && nbspRegExp.test( el.getText() ) )
this.moveToPosition( el, CKEDITOR.POSITION_BEFORE_START );
else
this.moveToPosition( el, isMoveToEnd ?
CKEDITOR.POSITION_AFTER_END :
CKEDITOR.POSITION_BEFORE_START );
found = 1;
break;
}
// If an editable element is found, move inside it, but not stop the searching.
if ( el.type == CKEDITOR.NODE_ELEMENT )
{
if ( el.isEditable() )
{
this.moveToPosition( el, isMoveToEnd ?
CKEDITOR.POSITION_BEFORE_END :
CKEDITOR.POSITION_AFTER_START );
found = 1;
}
// Put cursor before padding block br.
else if ( isMoveToEnd && el.is( 'br' ) && this.checkEndOfBlock() )
this.moveToPosition( el, CKEDITOR.POSITION_BEFORE_START );
}
el = nextDFS( el, found );
}
return !!found;
},
/**
*@see {CKEDITOR.dom.range.moveToElementEditablePosition}
*/
moveToElementEditStart : function( target )
{
return this.moveToElementEditablePosition( target );
},
/**
*@see {CKEDITOR.dom.range.moveToElementEditablePosition}
*/
moveToElementEditEnd : function( target )
{
return this.moveToElementEditablePosition( target, true );
},
/**
* Get the single node enclosed within the range if there's one.
*/
getEnclosedNode : function()
{
var walkerRange = this.clone();
// Optimize and analyze the range to avoid DOM destructive nature of walker. (#5780)
walkerRange.optimize();
if ( walkerRange.startContainer.type != CKEDITOR.NODE_ELEMENT
|| walkerRange.endContainer.type != CKEDITOR.NODE_ELEMENT )
return null;
var walker = new CKEDITOR.dom.walker( walkerRange ),
isNotBookmarks = CKEDITOR.dom.walker.bookmark( true ),
isNotWhitespaces = CKEDITOR.dom.walker.whitespaces( true ),
evaluator = function( node )
{
return isNotWhitespaces( node ) && isNotBookmarks( node );
};
walkerRange.evaluator = evaluator;
var node = walker.next();
walker.reset();
return node && node.equals( walker.previous() ) ? node : null;
},
getTouchedStartNode : function()
{
var container = this.startContainer ;
if ( this.collapsed || container.type != CKEDITOR.NODE_ELEMENT )
return container ;
return container.getChild( this.startOffset ) || container ;
},
getTouchedEndNode : function()
{
var container = this.endContainer ;
if ( this.collapsed || container.type != CKEDITOR.NODE_ELEMENT )
return container ;
return container.getChild( this.endOffset - 1 ) || container ;
}
};
})();
CKEDITOR.POSITION_AFTER_START = 1; // <element>^contents</element> "^text"
CKEDITOR.POSITION_BEFORE_END = 2; // <element>contents^</element> "text^"
CKEDITOR.POSITION_BEFORE_START = 3; // ^<element>contents</element> ^"text"
CKEDITOR.POSITION_AFTER_END = 4; // <element>contents</element>^ "text"
CKEDITOR.ENLARGE_ELEMENT = 1;
CKEDITOR.ENLARGE_BLOCK_CONTENTS = 2;
CKEDITOR.ENLARGE_LIST_ITEM_CONTENTS = 3;
// Check boundary types.
// @see CKEDITOR.dom.range.prototype.checkBoundaryOfElement
CKEDITOR.START = 1;
CKEDITOR.END = 2;
CKEDITOR.STARTEND = 3;
// Shrink range types.
// @see CKEDITOR.dom.range.prototype.shrink
CKEDITOR.SHRINK_ELEMENT = 1;
CKEDITOR.SHRINK_TEXT = 2;
| 10npsite | trunk/guanli/system/ckeditor/_source/core/dom/range.js | JavaScript | asf20 | 65,615 |
/*
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.dom.element} class, which
* represents a DOM element.
*/
/**
* Represents a DOM element.
* @constructor
* @augments CKEDITOR.dom.node
* @param {Object|String} element A native DOM element or the element name for
* new elements.
* @param {CKEDITOR.dom.document} [ownerDocument] The document that will contain
* the element in case of element creation.
* @example
* // Create a new <span> element.
* var element = new CKEDITOR.dom.element( 'span' );
* @example
* // Create an element based on a native DOM element.
* var element = new CKEDITOR.dom.element( document.getElementById( 'myId' ) );
*/
CKEDITOR.dom.element = function( element, ownerDocument )
{
if ( typeof element == 'string' )
element = ( ownerDocument ? ownerDocument.$ : document ).createElement( element );
// Call the base constructor (we must not call CKEDITOR.dom.node).
CKEDITOR.dom.domObject.call( this, element );
};
// PACKAGER_RENAME( CKEDITOR.dom.element )
/**
* The the {@link CKEDITOR.dom.element} representing and element. If the
* element is a native DOM element, it will be transformed into a valid
* CKEDITOR.dom.element object.
* @returns {CKEDITOR.dom.element} The transformed element.
* @example
* var element = new CKEDITOR.dom.element( 'span' );
* alert( element == <b>CKEDITOR.dom.element.get( element )</b> ); "true"
* @example
* var element = document.getElementById( 'myElement' );
* alert( <b>CKEDITOR.dom.element.get( element )</b>.getName() ); e.g. "p"
*/
CKEDITOR.dom.element.get = function( element )
{
return element && ( element.$ ? element : new CKEDITOR.dom.element( element ) );
};
CKEDITOR.dom.element.prototype = new CKEDITOR.dom.node();
/**
* Creates an instance of the {@link CKEDITOR.dom.element} class based on the
* HTML representation of an element.
* @param {String} html The element HTML. It should define only one element in
* the "root" level. The "root" element can have child nodes, but not
* siblings.
* @returns {CKEDITOR.dom.element} The element instance.
* @example
* var element = <b>CKEDITOR.dom.element.createFromHtml( '<strong class="anyclass">My element</strong>' )</b>;
* alert( element.getName() ); // "strong"
*/
CKEDITOR.dom.element.createFromHtml = function( html, ownerDocument )
{
var temp = new CKEDITOR.dom.element( 'div', ownerDocument );
temp.setHtml( html );
// When returning the node, remove it from its parent to detach it.
return temp.getFirst().remove();
};
CKEDITOR.dom.element.setMarker = function( database, element, name, value )
{
var id = element.getCustomData( 'list_marker_id' ) ||
( element.setCustomData( 'list_marker_id', CKEDITOR.tools.getNextNumber() ).getCustomData( 'list_marker_id' ) ),
markerNames = element.getCustomData( 'list_marker_names' ) ||
( element.setCustomData( 'list_marker_names', {} ).getCustomData( 'list_marker_names' ) );
database[id] = element;
markerNames[name] = 1;
return element.setCustomData( name, value );
};
CKEDITOR.dom.element.clearAllMarkers = function( database )
{
for ( var i in database )
CKEDITOR.dom.element.clearMarkers( database, database[i], 1 );
};
CKEDITOR.dom.element.clearMarkers = function( database, element, removeFromDatabase )
{
var names = element.getCustomData( 'list_marker_names' ),
id = element.getCustomData( 'list_marker_id' );
for ( var i in names )
element.removeCustomData( i );
element.removeCustomData( 'list_marker_names' );
if ( removeFromDatabase )
{
element.removeCustomData( 'list_marker_id' );
delete database[id];
}
};
CKEDITOR.tools.extend( CKEDITOR.dom.element.prototype,
/** @lends CKEDITOR.dom.element.prototype */
{
/**
* The node type. This is a constant value set to
* {@link CKEDITOR.NODE_ELEMENT}.
* @type Number
* @example
*/
type : CKEDITOR.NODE_ELEMENT,
/**
* Adds a CSS class to the element. It appends the class to the
* already existing names.
* @param {String} className The name of the class to be added.
* @example
* var element = new CKEDITOR.dom.element( 'div' );
* element.addClass( 'classA' ); // <div class="classA">
* element.addClass( 'classB' ); // <div class="classA classB">
* element.addClass( 'classA' ); // <div class="classA classB">
*/
addClass : function( className )
{
var c = this.$.className;
if ( c )
{
var regex = new RegExp( '(?:^|\\s)' + className + '(?:\\s|$)', '' );
if ( !regex.test( c ) )
c += ' ' + className;
}
this.$.className = c || className;
},
/**
* Removes a CSS class name from the elements classes. Other classes
* remain untouched.
* @param {String} className The name of the class to remove.
* @example
* var element = new CKEDITOR.dom.element( 'div' );
* element.addClass( 'classA' ); // <div class="classA">
* element.addClass( 'classB' ); // <div class="classA classB">
* element.removeClass( 'classA' ); // <div class="classB">
* element.removeClass( 'classB' ); // <div>
*/
removeClass : function( className )
{
var c = this.getAttribute( 'class' );
if ( c )
{
var regex = new RegExp( '(?:^|\\s+)' + className + '(?=\\s|$)', 'i' );
if ( regex.test( c ) )
{
c = c.replace( regex, '' ).replace( /^\s+/, '' );
if ( c )
this.setAttribute( 'class', c );
else
this.removeAttribute( 'class' );
}
}
},
hasClass : function( className )
{
var regex = new RegExp( '(?:^|\\s+)' + className + '(?=\\s|$)', '' );
return regex.test( this.getAttribute('class') );
},
/**
* Append a node as a child of this element.
* @param {CKEDITOR.dom.node|String} node The node or element name to be
* appended.
* @param {Boolean} [toStart] Indicates that the element is to be
* appended at the start.
* @returns {CKEDITOR.dom.node} The appended node.
* @example
* var p = new CKEDITOR.dom.element( 'p' );
*
* var strong = new CKEDITOR.dom.element( 'strong' );
* <b>p.append( strong );</b>
*
* var em = <b>p.append( 'em' );</b>
*
* // result: "<p><strong></strong><em></em></p>"
*/
append : function( node, toStart )
{
if ( typeof node == 'string' )
node = this.getDocument().createElement( node );
if ( toStart )
this.$.insertBefore( node.$, this.$.firstChild );
else
this.$.appendChild( node.$ );
return node;
},
appendHtml : function( html )
{
if ( !this.$.childNodes.length )
this.setHtml( html );
else
{
var temp = new CKEDITOR.dom.element( 'div', this.getDocument() );
temp.setHtml( html );
temp.moveChildren( this );
}
},
/**
* Append text to this element.
* @param {String} text The text to be appended.
* @returns {CKEDITOR.dom.node} The appended node.
* @example
* var p = new CKEDITOR.dom.element( 'p' );
* p.appendText( 'This is' );
* p.appendText( ' some text' );
*
* // result: "<p>This is some text</p>"
*/
appendText : function( text )
{
if ( this.$.text != undefined )
this.$.text += text;
else
this.append( new CKEDITOR.dom.text( text ) );
},
appendBogus : function()
{
var lastChild = this.getLast() ;
// Ignore empty/spaces text.
while ( lastChild && lastChild.type == CKEDITOR.NODE_TEXT && !CKEDITOR.tools.rtrim( lastChild.getText() ) )
lastChild = lastChild.getPrevious();
if ( !lastChild || !lastChild.is || !lastChild.is( 'br' ) )
{
var bogus = CKEDITOR.env.opera ?
this.getDocument().createText('') :
this.getDocument().createElement( 'br' );
CKEDITOR.env.gecko && bogus.setAttribute( 'type', '_moz' );
this.append( bogus );
}
},
/**
* Breaks one of the ancestor element in the element position, moving
* this element between the broken parts.
* @param {CKEDITOR.dom.element} parent The anscestor element to get broken.
* @example
* // Before breaking:
* // <b>This <i>is some<span /> sample</i> test text</b>
* // If "element" is <span /> and "parent" is <i>:
* // <b>This <i>is some</i><span /><i> sample</i> test text</b>
* element.breakParent( parent );
* @example
* // Before breaking:
* // <b>This <i>is some<span /> sample</i> test text</b>
* // If "element" is <span /> and "parent" is <b>:
* // <b>This <i>is some</i></b><span /><b><i> sample</i> test text</b>
* element.breakParent( parent );
*/
breakParent : function( parent )
{
var range = new CKEDITOR.dom.range( this.getDocument() );
// We'll be extracting part of this element, so let's use our
// range to get the correct piece.
range.setStartAfter( this );
range.setEndAfter( parent );
// Extract it.
var docFrag = range.extractContents();
// Move the element outside the broken element.
range.insertNode( this.remove() );
// Re-insert the extracted piece after the element.
docFrag.insertAfterNode( this );
},
contains :
CKEDITOR.env.ie || CKEDITOR.env.webkit ?
function( node )
{
var $ = this.$;
return node.type != CKEDITOR.NODE_ELEMENT ?
$.contains( node.getParent().$ ) :
$ != node.$ && $.contains( node.$ );
}
:
function( node )
{
return !!( this.$.compareDocumentPosition( node.$ ) & 16 );
},
/**
* Moves the selection focus to this element.
* @function
* @param {Boolean} defer Whether to asynchronously defer the
* execution by 100 ms.
* @example
* var element = CKEDITOR.document.getById( 'myTextarea' );
* <b>element.focus()</b>;
*/
focus : ( function()
{
function exec()
{
// IE throws error if the element is not visible.
try
{
this.$.focus();
}
catch (e)
{}
}
return function( defer )
{
if ( defer )
CKEDITOR.tools.setTimeout( exec, 100, this );
else
exec.call( this );
};
})(),
/**
* Gets the inner HTML of this element.
* @returns {String} The inner HTML of this element.
* @example
* var element = CKEDITOR.dom.element.createFromHtml( '<div><b>Example</b></div>' );
* alert( <b>p.getHtml()</b> ); // "<b>Example</b>"
*/
getHtml : function()
{
var retval = this.$.innerHTML;
// Strip <?xml:namespace> tags in IE. (#3341).
return CKEDITOR.env.ie ? retval.replace( /<\?[^>]*>/g, '' ) : retval;
},
getOuterHtml : function()
{
if ( this.$.outerHTML )
{
// IE includes the <?xml:namespace> tag in the outerHTML of
// namespaced element. So, we must strip it here. (#3341)
return this.$.outerHTML.replace( /<\?[^>]*>/, '' );
}
var tmpDiv = this.$.ownerDocument.createElement( 'div' );
tmpDiv.appendChild( this.$.cloneNode( true ) );
return tmpDiv.innerHTML;
},
/**
* Sets the inner HTML of this element.
* @param {String} html The HTML to be set for this element.
* @returns {String} The inserted HTML.
* @example
* var p = new CKEDITOR.dom.element( 'p' );
* <b>p.setHtml( '<b>Inner</b> HTML' );</b>
*
* // result: "<p><b>Inner</b> HTML</p>"
*/
setHtml : function( html )
{
return ( this.$.innerHTML = html );
},
/**
* Sets the element contents as plain text.
* @param {String} text The text to be set.
* @returns {String} The inserted text.
* @example
* var element = new CKEDITOR.dom.element( 'div' );
* element.setText( 'A > B & C < D' );
* alert( element.innerHTML ); // "A &gt; B &amp; C &lt; D"
*/
setText : function( text )
{
CKEDITOR.dom.element.prototype.setText = ( this.$.innerText != undefined ) ?
function ( text )
{
return this.$.innerText = text;
} :
function ( text )
{
return this.$.textContent = text;
};
return this.setText( text );
},
/**
* Gets the value of an element attribute.
* @function
* @param {String} name The attribute name.
* @returns {String} The attribute value or null if not defined.
* @example
* var element = CKEDITOR.dom.element.createFromHtml( '<input type="text" />' );
* alert( <b>element.getAttribute( 'type' )</b> ); // "text"
*/
getAttribute : (function()
{
var standard = function( name )
{
return this.$.getAttribute( name, 2 );
};
if ( CKEDITOR.env.ie && ( CKEDITOR.env.ie7Compat || CKEDITOR.env.ie6Compat ) )
{
return function( name )
{
switch ( name )
{
case 'class':
name = 'className';
break;
case 'http-equiv':
name = 'httpEquiv';
break;
case 'name':
return this.$.name;
case 'tabindex':
var tabIndex = standard.call( this, name );
// IE returns tabIndex=0 by default for all
// elements. For those elements,
// getAtrribute( 'tabindex', 2 ) returns 32768
// instead. So, we must make this check to give a
// uniform result among all browsers.
if ( tabIndex !== 0 && this.$.tabIndex === 0 )
tabIndex = null;
return tabIndex;
break;
case 'checked':
{
var attr = this.$.attributes.getNamedItem( name ),
attrValue = attr.specified ? attr.nodeValue // For value given by parser.
: this.$.checked; // For value created via DOM interface.
return attrValue ? 'checked' : null;
}
case 'hspace':
case 'value':
return this.$[ name ];
case 'style':
// IE does not return inline styles via getAttribute(). See #2947.
return this.$.style.cssText;
case 'contenteditable':
case 'contentEditable':
return this.$.attributes.getNamedItem( 'contentEditable' ).specified ?
this.$.getAttribute( 'contentEditable' ) : null;
}
return standard.call( this, name );
};
}
else
return standard;
})(),
getChildren : function()
{
return new CKEDITOR.dom.nodeList( this.$.childNodes );
},
/**
* Gets the current computed value of one of the element CSS style
* properties.
* @function
* @param {String} propertyName The style property name.
* @returns {String} The property value.
* @example
* var element = new CKEDITOR.dom.element( 'span' );
* alert( <b>element.getComputedStyle( 'display' )</b> ); // "inline"
*/
getComputedStyle :
CKEDITOR.env.ie ?
function( propertyName )
{
return this.$.currentStyle[ CKEDITOR.tools.cssStyleToDomStyle( propertyName ) ];
}
:
function( propertyName )
{
return this.getWindow().$.getComputedStyle( this.$, '' ).getPropertyValue( propertyName );
},
/**
* Gets the DTD entries for this element.
* @returns {Object} An object containing the list of elements accepted
* by this element.
*/
getDtd : function()
{
var dtd = CKEDITOR.dtd[ this.getName() ];
this.getDtd = function()
{
return dtd;
};
return dtd;
},
getElementsByTag : CKEDITOR.dom.document.prototype.getElementsByTag,
/**
* Gets the computed tabindex for this element.
* @function
* @returns {Number} The tabindex value.
* @example
* var element = CKEDITOR.document.getById( 'myDiv' );
* alert( <b>element.getTabIndex()</b> ); // e.g. "-1"
*/
getTabIndex :
CKEDITOR.env.ie ?
function()
{
var tabIndex = this.$.tabIndex;
// IE returns tabIndex=0 by default for all elements. In
// those cases we must check that the element really has
// the tabindex attribute set to zero, or it is one of
// those element that should have zero by default.
if ( tabIndex === 0 && !CKEDITOR.dtd.$tabIndex[ this.getName() ] && parseInt( this.getAttribute( 'tabindex' ), 10 ) !== 0 )
tabIndex = -1;
return tabIndex;
}
: CKEDITOR.env.webkit ?
function()
{
var tabIndex = this.$.tabIndex;
// Safari returns "undefined" for elements that should not
// have tabindex (like a div). So, we must try to get it
// from the attribute.
// https://bugs.webkit.org/show_bug.cgi?id=20596
if ( tabIndex == undefined )
{
tabIndex = parseInt( this.getAttribute( 'tabindex' ), 10 );
// If the element don't have the tabindex attribute,
// then we should return -1.
if ( isNaN( tabIndex ) )
tabIndex = -1;
}
return tabIndex;
}
:
function()
{
return this.$.tabIndex;
},
/**
* Gets the text value of this element.
*
* Only in IE (which uses innerText), <br> will cause linebreaks,
* and sucessive whitespaces (including line breaks) will be reduced to
* a single space. This behavior is ok for us, for now. It may change
* in the future.
* @returns {String} The text value.
* @example
* var element = CKEDITOR.dom.element.createFromHtml( '<div>Sample <i>text</i>.</div>' );
* alert( <b>element.getText()</b> ); // "Sample text."
*/
getText : function()
{
return this.$.textContent || this.$.innerText || '';
},
/**
* Gets the window object that contains this element.
* @returns {CKEDITOR.dom.window} The window object.
* @example
*/
getWindow : function()
{
return this.getDocument().getWindow();
},
/**
* Gets the value of the "id" attribute of this element.
* @returns {String} The element id, or null if not available.
* @example
* var element = CKEDITOR.dom.element.createFromHtml( '<p id="myId"></p>' );
* alert( <b>element.getId()</b> ); // "myId"
*/
getId : function()
{
return this.$.id || null;
},
/**
* Gets the value of the "name" attribute of this element.
* @returns {String} The element name, or null if not available.
* @example
* var element = CKEDITOR.dom.element.createFromHtml( '<input name="myName"></input>' );
* alert( <b>element.getNameAtt()</b> ); // "myName"
*/
getNameAtt : function()
{
return this.$.name || null;
},
/**
* Gets the element name (tag name). The returned name is guaranteed to
* be always full lowercased.
* @returns {String} The element name.
* @example
* var element = new CKEDITOR.dom.element( 'span' );
* alert( <b>element.getName()</b> ); // "span"
*/
getName : function()
{
// Cache the lowercased name inside a closure.
var nodeName = this.$.nodeName.toLowerCase();
if ( CKEDITOR.env.ie && ! ( document.documentMode > 8 ) )
{
var scopeName = this.$.scopeName;
if ( scopeName != 'HTML' )
nodeName = scopeName.toLowerCase() + ':' + nodeName;
}
return (
this.getName = function()
{
return nodeName;
})();
},
/**
* Gets the value set to this element. This value is usually available
* for form field elements.
* @returns {String} The element value.
*/
getValue : function()
{
return this.$.value;
},
/**
* Gets the first child node of this element.
* @param {Function} evaluator Filtering the result node.
* @returns {CKEDITOR.dom.node} The first child node or null if not
* available.
* @example
* var element = CKEDITOR.dom.element.createFromHtml( '<div><b>Example</b></div>' );
* var first = <b>element.getFirst()</b>;
* alert( first.getName() ); // "b"
*/
getFirst : function( evaluator )
{
var first = this.$.firstChild,
retval = first && new CKEDITOR.dom.node( first );
if ( retval && evaluator && !evaluator( retval ) )
retval = retval.getNext( evaluator );
return retval;
},
/**
* @param {Function} evaluator Filtering the result node.
*/
getLast : function( evaluator )
{
var last = this.$.lastChild,
retval = last && new CKEDITOR.dom.node( last );
if ( retval && evaluator && !evaluator( retval ) )
retval = retval.getPrevious( evaluator );
return retval;
},
getStyle : function( name )
{
return this.$.style[ CKEDITOR.tools.cssStyleToDomStyle( name ) ];
},
/**
* Checks if the element name matches one or more names.
* @param {String} name[,name[,...]] One or more names to be checked.
* @returns {Boolean} true if the element name matches any of the names.
* @example
* var element = new CKEDITOR.element( 'span' );
* alert( <b>element.is( 'span' )</b> ); "true"
* alert( <b>element.is( 'p', 'span' )</b> ); "true"
* alert( <b>element.is( 'p' )</b> ); "false"
* alert( <b>element.is( 'p', 'div' )</b> ); "false"
*/
is : function()
{
var name = this.getName();
for ( var i = 0 ; i < arguments.length ; i++ )
{
if ( arguments[ i ] == name )
return true;
}
return false;
},
/**
* Decide whether one element is able to receive cursor.
* @param {Boolean} [textCursor=true] Only consider element that could receive text child.
*/
isEditable : function( textCursor )
{
var name = this.getName();
if ( this.isReadOnly()
|| this.getComputedStyle( 'display' ) == 'none'
|| this.getComputedStyle( 'visibility' ) == 'hidden'
|| this.is( 'a' ) && this.data( 'cke-saved-name' ) && !this.getChildCount()
|| CKEDITOR.dtd.$nonEditable[ name ]
|| CKEDITOR.dtd.$empty[ name ] )
{
return false;
}
if ( textCursor !== false )
{
// Get the element DTD (defaults to span for unknown elements).
var dtd = CKEDITOR.dtd[ name ] || CKEDITOR.dtd.span;
// In the DTD # == text node.
return ( dtd && dtd[ '#'] );
}
return true;
},
isIdentical : function( otherElement )
{
if ( this.getName() != otherElement.getName() )
return false;
var thisAttribs = this.$.attributes,
otherAttribs = otherElement.$.attributes;
var thisLength = thisAttribs.length,
otherLength = otherAttribs.length;
for ( var i = 0 ; i < thisLength ; i++ )
{
var attribute = thisAttribs[ i ];
if ( attribute.nodeName == '_moz_dirty' )
continue;
if ( ( !CKEDITOR.env.ie || ( attribute.specified && attribute.nodeName != 'data-cke-expando' ) ) && attribute.nodeValue != otherElement.getAttribute( attribute.nodeName ) )
return false;
}
// For IE, we have to for both elements, because it's difficult to
// know how the atttibutes collection is organized in its DOM.
if ( CKEDITOR.env.ie )
{
for ( i = 0 ; i < otherLength ; i++ )
{
attribute = otherAttribs[ i ];
if ( attribute.specified && attribute.nodeName != 'data-cke-expando'
&& attribute.nodeValue != this.getAttribute( attribute.nodeName ) )
return false;
}
}
return true;
},
/**
* Checks if this element is visible. May not work if the element is
* child of an element with visibility set to "hidden", but works well
* on the great majority of cases.
* @return {Boolean} True if the element is visible.
*/
isVisible : function()
{
var isVisible = ( this.$.offsetHeight || this.$.offsetWidth ) && this.getComputedStyle( 'visibility' ) != 'hidden',
elementWindow,
elementWindowFrame;
// Webkit and Opera report non-zero offsetHeight despite that
// element is inside an invisible iframe. (#4542)
if ( isVisible && ( CKEDITOR.env.webkit || CKEDITOR.env.opera ) )
{
elementWindow = this.getWindow();
if ( !elementWindow.equals( CKEDITOR.document.getWindow() )
&& ( elementWindowFrame = elementWindow.$.frameElement ) )
{
isVisible = new CKEDITOR.dom.element( elementWindowFrame ).isVisible();
}
}
return !!isVisible;
},
/**
* Whether it's an empty inline elements which has no visual impact when removed.
*/
isEmptyInlineRemoveable : function()
{
if ( !CKEDITOR.dtd.$removeEmpty[ this.getName() ] )
return false;
var children = this.getChildren();
for ( var i = 0, count = children.count(); i < count; i++ )
{
var child = children.getItem( i );
if ( child.type == CKEDITOR.NODE_ELEMENT && child.data( 'cke-bookmark' ) )
continue;
if ( child.type == CKEDITOR.NODE_ELEMENT && !child.isEmptyInlineRemoveable()
|| child.type == CKEDITOR.NODE_TEXT && CKEDITOR.tools.trim( child.getText() ) )
{
return false;
}
}
return true;
},
/**
* Checks if the element has any defined attributes.
* @function
* @returns {Boolean} True if the element has attributes.
* @example
* var element = CKEDITOR.dom.element.createFromHtml( '<div title="Test">Example</div>' );
* alert( <b>element.hasAttributes()</b> ); // "true"
* @example
* var element = CKEDITOR.dom.element.createFromHtml( '<div>Example</div>' );
* alert( <b>element.hasAttributes()</b> ); // "false"
*/
hasAttributes :
CKEDITOR.env.ie && ( CKEDITOR.env.ie7Compat || CKEDITOR.env.ie6Compat ) ?
function()
{
var attributes = this.$.attributes;
for ( var i = 0 ; i < attributes.length ; i++ )
{
var attribute = attributes[i];
switch ( attribute.nodeName )
{
case 'class' :
// IE has a strange bug. If calling removeAttribute('className'),
// the attributes collection will still contain the "class"
// attribute, which will be marked as "specified", even if the
// outerHTML of the element is not displaying the class attribute.
// Note : I was not able to reproduce it outside the editor,
// but I've faced it while working on the TC of #1391.
if ( this.getAttribute( 'class' ) )
return true;
// Attributes to be ignored.
case 'data-cke-expando' :
continue;
/*jsl:fallthru*/
default :
if ( attribute.specified )
return true;
}
}
return false;
}
:
function()
{
var attrs = this.$.attributes,
attrsNum = attrs.length;
// The _moz_dirty attribute might get into the element after pasting (#5455)
var execludeAttrs = { 'data-cke-expando' : 1, _moz_dirty : 1 };
return attrsNum > 0 &&
( attrsNum > 2 ||
!execludeAttrs[ attrs[0].nodeName ] ||
( attrsNum == 2 && !execludeAttrs[ attrs[1].nodeName ] ) );
},
/**
* Checks if the specified attribute is defined for this element.
* @returns {Boolean} True if the specified attribute is defined.
* @param {String} name The attribute name.
* @example
*/
hasAttribute : (function()
{
function standard( name )
{
var $attr = this.$.attributes.getNamedItem( name );
return !!( $attr && $attr.specified );
}
return ( CKEDITOR.env.ie && CKEDITOR.env.version < 8 ) ?
function( name )
{
// On IE < 8 the name attribute cannot be retrieved
// right after the element creation and setting the
// name with setAttribute.
if ( name == 'name' )
return !!this.$.name;
return standard.call( this, name );
}
:
standard;
})(),
/**
* Hides this element (display:none).
* @example
* var element = CKEDITOR.dom.element.getById( 'myElement' );
* <b>element.hide()</b>;
*/
hide : function()
{
this.setStyle( 'display', 'none' );
},
moveChildren : function( target, toStart )
{
var $ = this.$;
target = target.$;
if ( $ == target )
return;
var child;
if ( toStart )
{
while ( ( child = $.lastChild ) )
target.insertBefore( $.removeChild( child ), target.firstChild );
}
else
{
while ( ( child = $.firstChild ) )
target.appendChild( $.removeChild( child ) );
}
},
/**
* Merges sibling elements that are identical to this one.<br>
* <br>
* Identical child elements are also merged. For example:<br>
* <b><i></i></b><b><i></i></b> => <b><i></i></b>
* @function
* @param {Boolean} [inlineOnly] Allow only inline elements to be merged. Defaults to "true".
*/
mergeSiblings : ( function()
{
function mergeElements( element, sibling, isNext )
{
if ( sibling && sibling.type == CKEDITOR.NODE_ELEMENT )
{
// Jumping over bookmark nodes and empty inline elements, e.g. <b><i></i></b>,
// queuing them to be moved later. (#5567)
var pendingNodes = [];
while ( sibling.data( 'cke-bookmark' )
|| sibling.isEmptyInlineRemoveable() )
{
pendingNodes.push( sibling );
sibling = isNext ? sibling.getNext() : sibling.getPrevious();
if ( !sibling || sibling.type != CKEDITOR.NODE_ELEMENT )
return;
}
if ( element.isIdentical( sibling ) )
{
// Save the last child to be checked too, to merge things like
// <b><i></i></b><b><i></i></b> => <b><i></i></b>
var innerSibling = isNext ? element.getLast() : element.getFirst();
// Move pending nodes first into the target element.
while( pendingNodes.length )
pendingNodes.shift().move( element, !isNext );
sibling.moveChildren( element, !isNext );
sibling.remove();
// Now check the last inner child (see two comments above).
if ( innerSibling && innerSibling.type == CKEDITOR.NODE_ELEMENT )
innerSibling.mergeSiblings();
}
}
}
return function( inlineOnly )
{
if ( ! ( inlineOnly === false
|| CKEDITOR.dtd.$removeEmpty[ this.getName() ]
|| this.is( 'a' ) ) ) // Merge empty links and anchors also. (#5567)
{
return;
}
mergeElements( this, this.getNext(), true );
mergeElements( this, this.getPrevious() );
};
} )(),
/**
* Shows this element (display it).
* @example
* var element = CKEDITOR.dom.element.getById( 'myElement' );
* <b>element.show()</b>;
*/
show : function()
{
this.setStyles(
{
display : '',
visibility : ''
});
},
/**
* Sets the value of an element attribute.
* @param {String} name The name of the attribute.
* @param {String} value The value to be set to the attribute.
* @function
* @returns {CKEDITOR.dom.element} This element instance.
* @example
* var element = CKEDITOR.dom.element.getById( 'myElement' );
* <b>element.setAttribute( 'class', 'myClass' )</b>;
* <b>element.setAttribute( 'title', 'This is an example' )</b>;
*/
setAttribute : (function()
{
var standard = function( name, value )
{
this.$.setAttribute( name, value );
return this;
};
if ( CKEDITOR.env.ie && ( CKEDITOR.env.ie7Compat || CKEDITOR.env.ie6Compat ) )
{
return function( name, value )
{
if ( name == 'class' )
this.$.className = value;
else if ( name == 'style' )
this.$.style.cssText = value;
else if ( name == 'tabindex' ) // Case sensitive.
this.$.tabIndex = value;
else if ( name == 'checked' )
this.$.checked = value;
else if ( name == 'contenteditable' )
standard.call( this, 'contentEditable', value );
else
standard.apply( this, arguments );
return this;
};
}
else if ( CKEDITOR.env.ie8Compat && CKEDITOR.env.secure )
{
return function( name, value )
{
// IE8 throws error when setting src attribute to non-ssl value. (#7847)
if ( name == 'src' && value.match( /^http:\/\// ) )
try { standard.apply( this, arguments ); } catch( e ){}
else
standard.apply( this, arguments );
return this;
};
}
else
return standard;
})(),
/**
* Sets the value of several element attributes.
* @param {Object} attributesPairs An object containing the names and
* values of the attributes.
* @returns {CKEDITOR.dom.element} This element instance.
* @example
* var element = CKEDITOR.dom.element.getById( 'myElement' );
* <b>element.setAttributes({
* 'class' : 'myClass',
* 'title' : 'This is an example' })</b>;
*/
setAttributes : function( attributesPairs )
{
for ( var name in attributesPairs )
this.setAttribute( name, attributesPairs[ name ] );
return this;
},
/**
* Sets the element value. This function is usually used with form
* field element.
* @param {String} value The element value.
* @returns {CKEDITOR.dom.element} This element instance.
*/
setValue : function( value )
{
this.$.value = value;
return this;
},
/**
* Removes an attribute from the element.
* @param {String} name The attribute name.
* @function
* @example
* var element = CKEDITOR.dom.element.createFromHtml( '<div class="classA"></div>' );
* element.removeAttribute( 'class' );
*/
removeAttribute : (function()
{
var standard = function( name )
{
this.$.removeAttribute( name );
};
if ( CKEDITOR.env.ie && ( CKEDITOR.env.ie7Compat || CKEDITOR.env.ie6Compat ) )
{
return function( name )
{
if ( name == 'class' )
name = 'className';
else if ( name == 'tabindex' )
name = 'tabIndex';
else if ( name == 'contenteditable' )
name = 'contentEditable';
standard.call( this, name );
};
}
else
return standard;
})(),
removeAttributes : function ( attributes )
{
if ( CKEDITOR.tools.isArray( attributes ) )
{
for ( var i = 0 ; i < attributes.length ; i++ )
this.removeAttribute( attributes[ i ] );
}
else
{
for ( var attr in attributes )
attributes.hasOwnProperty( attr ) && this.removeAttribute( attr );
}
},
/**
* Removes a style from the element.
* @param {String} name The style name.
* @function
* @example
* var element = CKEDITOR.dom.element.createFromHtml( '<div style="display:none"></div>' );
* element.removeStyle( 'display' );
*/
removeStyle : function( name )
{
// Removes the specified property from the current style object.
var $ = this.$.style;
$.removeProperty ? $.removeProperty( name ) : $.removeAttribute( CKEDITOR.tools.cssStyleToDomStyle( name ) );
if ( !this.$.style.cssText )
this.removeAttribute( 'style' );
},
/**
* Sets the value of an element style.
* @param {String} name The name of the style. The CSS naming notation
* must be used (e.g. "background-color").
* @param {String} value The value to be set to the style.
* @returns {CKEDITOR.dom.element} This element instance.
* @example
* var element = CKEDITOR.dom.element.getById( 'myElement' );
* <b>element.setStyle( 'background-color', '#ff0000' )</b>;
* <b>element.setStyle( 'margin-top', '10px' )</b>;
* <b>element.setStyle( 'float', 'right' )</b>;
*/
setStyle : function( name, value )
{
this.$.style[ CKEDITOR.tools.cssStyleToDomStyle( name ) ] = value;
return this;
},
/**
* Sets the value of several element styles.
* @param {Object} stylesPairs An object containing the names and
* values of the styles.
* @returns {CKEDITOR.dom.element} This element instance.
* @example
* var element = CKEDITOR.dom.element.getById( 'myElement' );
* <b>element.setStyles({
* 'position' : 'absolute',
* 'float' : 'right' })</b>;
*/
setStyles : function( stylesPairs )
{
for ( var name in stylesPairs )
this.setStyle( name, stylesPairs[ name ] );
return this;
},
/**
* Sets the opacity of an element.
* @param {Number} opacity A number within the range [0.0, 1.0].
* @example
* var element = CKEDITOR.dom.element.getById( 'myElement' );
* <b>element.setOpacity( 0.75 )</b>;
*/
setOpacity : function( opacity )
{
if ( CKEDITOR.env.ie && CKEDITOR.env.version < 9 )
{
opacity = Math.round( opacity * 100 );
this.setStyle( 'filter', opacity >= 100 ? '' : 'progid:DXImageTransform.Microsoft.Alpha(opacity=' + opacity + ')' );
}
else
this.setStyle( 'opacity', opacity );
},
/**
* Makes the element and its children unselectable.
* @function
* @example
* var element = CKEDITOR.dom.element.getById( 'myElement' );
* element.unselectable();
*/
unselectable :
CKEDITOR.env.gecko ?
function()
{
this.$.style.MozUserSelect = 'none';
this.on( 'dragstart', function( evt ) { evt.data.preventDefault(); } );
}
: CKEDITOR.env.webkit ?
function()
{
this.$.style.KhtmlUserSelect = 'none';
this.on( 'dragstart', function( evt ) { evt.data.preventDefault(); } );
}
:
function()
{
if ( CKEDITOR.env.ie || CKEDITOR.env.opera )
{
var element = this.$,
elements = element.getElementsByTagName("*"),
e,
i = 0;
element.unselectable = 'on';
while ( ( e = elements[ i++ ] ) )
{
switch ( e.tagName.toLowerCase() )
{
case 'iframe' :
case 'textarea' :
case 'input' :
case 'select' :
/* Ignore the above tags */
break;
default :
e.unselectable = 'on';
}
}
}
},
getPositionedAncestor : function()
{
var current = this;
while ( current.getName() != 'html' )
{
if ( current.getComputedStyle( 'position' ) != 'static' )
return current;
current = current.getParent();
}
return null;
},
getDocumentPosition : function( refDocument )
{
var x = 0, y = 0,
doc = this.getDocument(),
body = doc.getBody(),
quirks = doc.$.compatMode == 'BackCompat';
if ( document.documentElement[ "getBoundingClientRect" ] )
{
var box = this.$.getBoundingClientRect(),
$doc = doc.$,
$docElem = $doc.documentElement;
var clientTop = $docElem.clientTop || body.$.clientTop || 0,
clientLeft = $docElem.clientLeft || body.$.clientLeft || 0,
needAdjustScrollAndBorders = true;
/*
* #3804: getBoundingClientRect() works differently on IE and non-IE
* browsers, regarding scroll positions.
*
* On IE, the top position of the <html> element is always 0, no matter
* how much you scrolled down.
*
* On other browsers, the top position of the <html> element is negative
* scrollTop.
*/
if ( CKEDITOR.env.ie )
{
var inDocElem = doc.getDocumentElement().contains( this ),
inBody = doc.getBody().contains( this );
needAdjustScrollAndBorders = ( quirks && inBody ) || ( !quirks && inDocElem );
}
if ( needAdjustScrollAndBorders )
{
x = box.left + ( !quirks && $docElem.scrollLeft || body.$.scrollLeft );
x -= clientLeft;
y = box.top + ( !quirks && $docElem.scrollTop || body.$.scrollTop );
y -= clientTop;
}
}
else
{
var current = this, previous = null, offsetParent;
while ( current && !( current.getName() == 'body' || current.getName() == 'html' ) )
{
x += current.$.offsetLeft - current.$.scrollLeft;
y += current.$.offsetTop - current.$.scrollTop;
// Opera includes clientTop|Left into offsetTop|Left.
if ( !current.equals( this ) )
{
x += ( current.$.clientLeft || 0 );
y += ( current.$.clientTop || 0 );
}
var scrollElement = previous;
while ( scrollElement && !scrollElement.equals( current ) )
{
x -= scrollElement.$.scrollLeft;
y -= scrollElement.$.scrollTop;
scrollElement = scrollElement.getParent();
}
previous = current;
current = ( offsetParent = current.$.offsetParent ) ?
new CKEDITOR.dom.element( offsetParent ) : null;
}
}
if ( refDocument )
{
var currentWindow = this.getWindow(),
refWindow = refDocument.getWindow();
if ( !currentWindow.equals( refWindow ) && currentWindow.$.frameElement )
{
var iframePosition = ( new CKEDITOR.dom.element( currentWindow.$.frameElement ) ).getDocumentPosition( refDocument );
x += iframePosition.x;
y += iframePosition.y;
}
}
if ( !document.documentElement[ "getBoundingClientRect" ] )
{
// In Firefox, we'll endup one pixel before the element positions,
// so we must add it here.
if ( CKEDITOR.env.gecko && !quirks )
{
x += this.$.clientLeft ? 1 : 0;
y += this.$.clientTop ? 1 : 0;
}
}
return { x : x, y : y };
},
/**
* Make any page element visible inside the browser viewport.
* @param {Boolean} [alignToTop]
*/
scrollIntoView : function( alignToTop )
{
var parent = this.getParent();
if ( !parent ) return;
// Scroll the element into parent container from the inner out.
do
{
// Check ancestors that overflows.
var overflowed =
parent.$.clientWidth && parent.$.clientWidth < parent.$.scrollWidth
|| parent.$.clientHeight && parent.$.clientHeight < parent.$.scrollHeight;
if ( overflowed )
this.scrollIntoParent( parent, alignToTop, 1 );
// Walk across the frame.
if ( parent.is( 'html' ) )
{
var win = parent.getWindow();
// Avoid security error.
try
{
var iframe = win.$.frameElement;
iframe && ( parent = new CKEDITOR.dom.element( iframe ) );
}
catch(er){}
}
}
while ( ( parent = parent.getParent() ) );
},
/**
* Make any page element visible inside one of the ancestors by scrolling the parent.
* @param {CKEDITOR.dom.element|CKEDITOR.dom.window} parent The container to scroll into.
* @param {Boolean} [alignToTop] Align the element's top side with the container's
* when <code>true</code> is specified; align the bottom with viewport bottom when
* <code>false</code> is specified. Otherwise scroll on either side with the minimum
* amount to show the element.
* @param {Boolean} [hscroll] Whether horizontal overflow should be considered.
*/
scrollIntoParent : function( parent, alignToTop, hscroll )
{
!parent && ( parent = this.getWindow() );
var doc = parent.getDocument();
var isQuirks = doc.$.compatMode == 'BackCompat';
// On window <html> is scrolled while quirks scrolls <body>.
if ( parent instanceof CKEDITOR.dom.window )
parent = isQuirks ? doc.getBody() : doc.getDocumentElement();
// Scroll the parent by the specified amount.
function scrollBy( x, y )
{
// Webkit doesn't support "scrollTop/scrollLeft"
// on documentElement/body element.
if ( /body|html/.test( parent.getName() ) )
parent.getWindow().$.scrollBy( x, y );
else
{
parent.$[ 'scrollLeft' ] += x;
parent.$[ 'scrollTop' ] += y;
}
}
// Figure out the element position relative to the specified window.
function screenPos( element, refWin )
{
var pos = { x: 0, y: 0 };
if ( !( element.is( isQuirks ? 'body' : 'html' ) ) )
{
var box = element.$.getBoundingClientRect();
pos.x = box.left, pos.y = box.top;
}
var win = element.getWindow();
if ( !win.equals( refWin ) )
{
var outerPos = screenPos( CKEDITOR.dom.element.get( win.$.frameElement ), refWin );
pos.x += outerPos.x, pos.y += outerPos.y;
}
return pos;
}
// calculated margin size.
function margin( element, side )
{
return parseInt( element.getComputedStyle( 'margin-' + side ) || 0, 10 ) || 0;
}
var win = parent.getWindow();
var thisPos = screenPos( this, win ),
parentPos = screenPos( parent, win ),
eh = this.$.offsetHeight,
ew = this.$.offsetWidth,
ch = parent.$.clientHeight,
cw = parent.$.clientWidth,
lt,
br;
// Left-top margins.
lt =
{
x : thisPos.x - margin( this, 'left' ) - parentPos.x || 0,
y : thisPos.y - margin( this, 'top' ) - parentPos.y|| 0
};
// Bottom-right margins.
br =
{
x : thisPos.x + ew + margin( this, 'right' ) - ( ( parentPos.x ) + cw ) || 0,
y : thisPos.y + eh + margin( this, 'bottom' ) - ( ( parentPos.y ) + ch ) || 0
};
// 1. Do the specified alignment as much as possible;
// 2. Otherwise be smart to scroll only the minimum amount;
// 3. Never cut at the top;
// 4. DO NOT scroll when already visible.
if ( lt.y < 0 || br.y > 0 )
{
scrollBy( 0,
alignToTop === true ? lt.y :
alignToTop === false ? br.y :
lt.y < 0 ? lt.y : br.y );
}
if ( hscroll && ( lt.x < 0 || br.x > 0 ) )
scrollBy( lt.x < 0 ? lt.x : br.x, 0 );
},
setState : function( state )
{
switch ( state )
{
case CKEDITOR.TRISTATE_ON :
this.addClass( 'cke_on' );
this.removeClass( 'cke_off' );
this.removeClass( 'cke_disabled' );
break;
case CKEDITOR.TRISTATE_DISABLED :
this.addClass( 'cke_disabled' );
this.removeClass( 'cke_off' );
this.removeClass( 'cke_on' );
break;
default :
this.addClass( 'cke_off' );
this.removeClass( 'cke_on' );
this.removeClass( 'cke_disabled' );
break;
}
},
/**
* Returns the inner document of this IFRAME element.
* @returns {CKEDITOR.dom.document} The inner document.
*/
getFrameDocument : function()
{
var $ = this.$;
try
{
// In IE, with custom document.domain, it may happen that
// the iframe is not yet available, resulting in "Access
// Denied" for the following property access.
$.contentWindow.document;
}
catch ( e )
{
// Trick to solve this issue, forcing the iframe to get ready
// by simply setting its "src" property.
$.src = $.src;
// In IE6 though, the above is not enough, so we must pause the
// execution for a while, giving it time to think.
if ( CKEDITOR.env.ie && CKEDITOR.env.version < 7 )
{
window.showModalDialog(
'javascript:document.write("' +
'<script>' +
'window.setTimeout(' +
'function(){window.close();}' +
',50);' +
'</script>")' );
}
}
return $ && new CKEDITOR.dom.document( $.contentWindow.document );
},
/**
* Copy all the attributes from one node to the other, kinda like a clone
* skipAttributes is an object with the attributes that must NOT be copied.
* @param {CKEDITOR.dom.element} dest The destination element.
* @param {Object} skipAttributes A dictionary of attributes to skip.
* @example
*/
copyAttributes : function( dest, skipAttributes )
{
var attributes = this.$.attributes;
skipAttributes = skipAttributes || {};
for ( var n = 0 ; n < attributes.length ; n++ )
{
var attribute = attributes[n];
// Lowercase attribute name hard rule is broken for
// some attribute on IE, e.g. CHECKED.
var attrName = attribute.nodeName.toLowerCase(),
attrValue;
// We can set the type only once, so do it with the proper value, not copying it.
if ( attrName in skipAttributes )
continue;
if ( attrName == 'checked' && ( attrValue = this.getAttribute( attrName ) ) )
dest.setAttribute( attrName, attrValue );
// IE BUG: value attribute is never specified even if it exists.
else if ( attribute.specified ||
( CKEDITOR.env.ie && attribute.nodeValue && attrName == 'value' ) )
{
attrValue = this.getAttribute( attrName );
if ( attrValue === null )
attrValue = attribute.nodeValue;
dest.setAttribute( attrName, attrValue );
}
}
// The style:
if ( this.$.style.cssText !== '' )
dest.$.style.cssText = this.$.style.cssText;
},
/**
* Changes the tag name of the current element.
* @param {String} newTag The new tag for the element.
*/
renameNode : function( newTag )
{
// If it's already correct exit here.
if ( this.getName() == newTag )
return;
var doc = this.getDocument();
// Create the new node.
var newNode = new CKEDITOR.dom.element( newTag, doc );
// Copy all attributes.
this.copyAttributes( newNode );
// Move children to the new node.
this.moveChildren( newNode );
// Replace the node.
this.getParent() && this.$.parentNode.replaceChild( newNode.$, this.$ );
newNode.$[ 'data-cke-expando' ] = this.$[ 'data-cke-expando' ];
this.$ = newNode.$;
},
/**
* Gets a DOM tree descendant under the current node.
* @param {Array|Number} indices The child index or array of child indices under the node.
* @returns {CKEDITOR.dom.node} The specified DOM child under the current node. Null if child does not exist.
* @example
* var strong = p.getChild(0);
*/
getChild : function( indices )
{
var rawNode = this.$;
if ( !indices.slice )
rawNode = rawNode.childNodes[ indices ];
else
{
while ( indices.length > 0 && rawNode )
rawNode = rawNode.childNodes[ indices.shift() ];
}
return rawNode ? new CKEDITOR.dom.node( rawNode ) : null;
},
getChildCount : function()
{
return this.$.childNodes.length;
},
disableContextMenu : function()
{
this.on( 'contextmenu', function( event )
{
// Cancel the browser context menu.
if ( !event.data.getTarget().hasClass( 'cke_enable_context_menu' ) )
event.data.preventDefault();
} );
},
/**
* Gets element's direction. Supports both CSS 'direction' prop and 'dir' attr.
*/
getDirection : function( useComputed )
{
return useComputed ?
this.getComputedStyle( 'direction' )
// Webkit: offline element returns empty direction (#8053).
|| this.getDirection()
|| this.getDocument().$.dir
|| this.getDocument().getBody().getDirection( 1 )
: this.getStyle( 'direction' ) || this.getAttribute( 'dir' );
},
/**
* Gets, sets and removes custom data to be stored as HTML5 data-* attributes.
* @param {String} name The name of the attribute, excluding the 'data-' part.
* @param {String} [value] The value to set. If set to false, the attribute will be removed.
* @example
* element.data( 'extra-info', 'test' ); // appended the attribute data-extra-info="test" to the element
* alert( element.data( 'extra-info' ) ); // "test"
* element.data( 'extra-info', false ); // remove the data-extra-info attribute from the element
*/
data : function ( name, value )
{
name = 'data-' + name;
if ( value === undefined )
return this.getAttribute( name );
else if ( value === false )
this.removeAttribute( name );
else
this.setAttribute( name, value );
return null;
}
});
( function()
{
var sides = {
width : [ "border-left-width", "border-right-width","padding-left", "padding-right" ],
height : [ "border-top-width", "border-bottom-width", "padding-top", "padding-bottom" ]
};
function marginAndPaddingSize( type )
{
var adjustment = 0;
for ( var i = 0, len = sides[ type ].length; i < len; i++ )
adjustment += parseInt( this.getComputedStyle( sides [ type ][ i ] ) || 0, 10 ) || 0;
return adjustment;
}
/**
* Sets the element size considering the box model.
* @name CKEDITOR.dom.element.prototype.setSize
* @function
* @param {String} type The dimension to set. It accepts "width" and "height".
* @param {Number} size The length unit in px.
* @param {Boolean} isBorderBox Apply the size based on the border box model.
*/
CKEDITOR.dom.element.prototype.setSize = function( type, size, isBorderBox )
{
if ( typeof size == 'number' )
{
if ( isBorderBox && !( CKEDITOR.env.ie && CKEDITOR.env.quirks ) )
size -= marginAndPaddingSize.call( this, type );
this.setStyle( type, size + 'px' );
}
};
/**
* Gets the element size, possibly considering the box model.
* @name CKEDITOR.dom.element.prototype.getSize
* @function
* @param {String} type The dimension to get. It accepts "width" and "height".
* @param {Boolean} isBorderBox Get the size based on the border box model.
*/
CKEDITOR.dom.element.prototype.getSize = function( type, isBorderBox )
{
var size = Math.max( this.$[ 'offset' + CKEDITOR.tools.capitalize( type ) ],
this.$[ 'client' + CKEDITOR.tools.capitalize( type ) ] ) || 0;
if ( isBorderBox )
size -= marginAndPaddingSize.call( this, type );
return size;
};
})();
| 10npsite | trunk/guanli/system/ckeditor/_source/core/dom/element.js | JavaScript | asf20 | 53,915 |
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
/**
* @fileOverview Defines the "virtual" {@link CKEDITOR.dataProcessor} class, which
* defines the basic structure of data processor objects to be
* set to {@link CKEDITOR.editor.dataProcessor}.
*/
/**
* If defined, points to the data processor which is responsible to translate
* and transform the editor data on input and output.
* Generaly it will point to an instance of {@link CKEDITOR.htmlDataProcessor},
* which handles HTML data. The editor may also handle other data formats by
* using different data processors provided by specific plugins.
* @name CKEDITOR.editor.prototype.dataProcessor
* @type CKEDITOR.dataProcessor
*/
/**
* This class is here for documentation purposes only and is not really part of
* the API. It serves as the base ("interface") for data processors
* implementation.
* @name CKEDITOR.dataProcessor
* @class Represents a data processor, which is responsible to translate and
* transform the editor data on input and output.
* @example
*/
/**
* Transforms input data into HTML to be loaded in the editor.
* While the editor is able to handle non HTML data (like BBCode), at runtime
* it can handle HTML data only. The role of the data processor is transforming
* the input data into HTML through this function.
* @name CKEDITOR.dataProcessor.prototype.toHtml
* @function
* @param {String} data The input data to be transformed.
* @param {String} [fixForBody] The tag name to be used if the data must be
* fixed because it is supposed to be loaded direcly into the <body>
* tag. This is generally not used by non-HTML data processors.
* @example
* // Tranforming BBCode data, having a custom BBCode data processor.
* var data = 'This is [b]an example[/b].';
* var html = editor.dataProcessor.toHtml( data ); // '<p>This is <b>an example</b>.</p>'
*/
/**
* Transforms HTML into data to be outputted by the editor, in the format
* expected by the data processor.
* While the editor is able to handle non HTML data (like BBCode), at runtime
* it can handle HTML data only. The role of the data processor is transforming
* the HTML data containined by the editor into a specific data format through
* this function.
* @name CKEDITOR.dataProcessor.prototype.toDataFormat
* @function
* @param {String} html The HTML to be transformed.
* @param {String} fixForBody The tag name to be used if the output data is
* coming from <body> and may be eventually fixed for it. This is
* generally not used by non-HTML data processors.
* // Tranforming into BBCode data, having a custom BBCode data processor.
* var html = '<p>This is <b>an example</b>.</p>';
* var data = editor.dataProcessor.toDataFormat( html ); // 'This is [b]an example[/b].'
*/
| 10npsite | trunk/guanli/system/ckeditor/_source/core/dataprocessor.js | JavaScript | asf20 | 3,009 |
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
/**
* @fileOverview Defines the "virtual" {@link CKEDITOR.eventInfo} class, which
* contains the defintions of the event object passed to event listeners.
* This file is for documentation purposes only.
*/
/**
* (Virtual Class) Do not call this constructor. This class is not really part
* of the API.
* @class Virtual class that illustrates the features of the event object to be
* passed to event listeners by a {@link CKEDITOR.event} based object.
* @name CKEDITOR.eventInfo
* @example
* // Do not do this.
* var myEvent = new CKEDITOR.eventInfo(); // Error: CKEDITOR.eventInfo is undefined
*/
/**
* The event name.
* @name CKEDITOR.eventInfo.prototype.name
* @field
* @type String
* @example
* someObject.on( 'someEvent', function( event )
* {
* alert( <b>event.name</b> ); // "someEvent"
* });
* someObject.fire( 'someEvent' );
*/
/**
* The object that publishes (sends) the event.
* @name CKEDITOR.eventInfo.prototype.sender
* @field
* @type Object
* @example
* someObject.on( 'someEvent', function( event )
* {
* alert( <b>event.sender</b> == someObject ); // "true"
* });
* someObject.fire( 'someEvent' );
*/
/**
* The editor instance that holds the sender. May be the same as sender. May be
* null if the sender is not part of an editor instance, like a component
* running in standalone mode.
* @name CKEDITOR.eventInfo.prototype.editor
* @field
* @type CKEDITOR.editor
* @example
* myButton.on( 'someEvent', function( event )
* {
* alert( <b>event.editor</b> == myEditor ); // "true"
* });
* myButton.fire( 'someEvent', null, <b>myEditor</b> );
*/
/**
* Any kind of additional data. Its format and usage is event dependent.
* @name CKEDITOR.eventInfo.prototype.data
* @field
* @type Object
* @example
* someObject.on( 'someEvent', function( event )
* {
* alert( <b>event.data</b> ); // "Example"
* });
* someObject.fire( 'someEvent', <b>'Example'</b> );
*/
/**
* Any extra data appended during the listener registration.
* @name CKEDITOR.eventInfo.prototype.listenerData
* @field
* @type Object
* @example
* someObject.on( 'someEvent', function( event )
* {
* alert( <b>event.listenerData</b> ); // "Example"
* }
* , null, <b>'Example'</b> );
*/
/**
* Indicates that no further listeners are to be called.
* @name CKEDITOR.eventInfo.prototype.stop
* @function
* @example
* someObject.on( 'someEvent', function( event )
* {
* <b>event.stop()</b>;
* });
* someObject.on( 'someEvent', function( event )
* {
* // This one will not be called.
* });
* alert( someObject.fire( 'someEvent' ) ); // "false"
*/
/**
* Indicates that the event is to be cancelled (if cancelable).
* @name CKEDITOR.eventInfo.prototype.cancel
* @function
* @example
* someObject.on( 'someEvent', function( event )
* {
* <b>event.cancel()</b>;
* });
* someObject.on( 'someEvent', function( event )
* {
* // This one will not be called.
* });
* alert( someObject.fire( 'someEvent' ) ); // "true"
*/
/**
* Removes the current listener.
* @name CKEDITOR.eventInfo.prototype.removeListener
* @function
* @example
* someObject.on( 'someEvent', function( event )
* {
* <b>event.removeListener()</b>;
* // Now this function won't be called again by 'someEvent'
* });
*/
| 10npsite | trunk/guanli/system/ckeditor/_source/core/eventInfo.js | JavaScript | asf20 | 3,716 |
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
/**
* @fileOverview Defines the "virtual" {@link CKEDITOR.pluginDefinition} class, which
* contains the defintion of a plugin. This file is for documentation
* purposes only.
*/
/**
* (Virtual Class) Do not call this constructor. This class is not really part
* of the API. It just illustrates the features of plugin objects to be
* passed to the {@link CKEDITOR.plugins.add} function.
* @name CKEDITOR.pluginDefinition
* @constructor
* @example
*/
/**
* A list of plugins that are required by this plugin. Note that this property
* doesn't guarantee the loading order of the plugins.
* @name CKEDITOR.pluginDefinition.prototype.requires
* @type Array
* @example
* CKEDITOR.plugins.add( 'sample',
* {
* requires : [ 'button', 'selection' ]
* });
*/
/**
* A list of language files available for this plugin. These files are stored inside
* the "lang" directory, which is inside the plugin directory, follow the name
* pattern of "langCode.js", and contain a language definition created with {@link CKEDITOR.pluginDefinition#setLang}.
* While the plugin is being loaded, the editor checks this list to see if
* a language file of the current editor language ({@link CKEDITOR.editor#langCode})
* is available, and if so, loads it. Otherwise, the file represented by the first list item
* in the list is loaded.
* @name CKEDITOR.pluginDefinition.prototype.lang
* @type Array
* @example
* CKEDITOR.plugins.add( 'sample',
* {
* lang : [ 'en', 'fr' ]
* });
*/
/**
* Function called on initialization of every editor instance created in the
* page before the init() call task. The beforeInit function will be called for
* all plugins, after that the init function is called for all of them. This
* feature makes it possible to initialize things that could be used in the
* init function of other plugins.
* @name CKEDITOR.pluginDefinition.prototype.beforeInit
* @function
* @param {CKEDITOR.editor} editor The editor instance being initialized.
* @example
* CKEDITOR.plugins.add( 'sample',
* {
* beforeInit : function( editor )
* {
* alert( 'Editor "' + editor.name + '" is to be initialized!' );
* }
* });
*/
/**
* Function called on initialization of every editor instance created in the
* page.
* @name CKEDITOR.pluginDefinition.prototype.init
* @function
* @param {CKEDITOR.editor} editor The editor instance being initialized.
* @example
* CKEDITOR.plugins.add( 'sample',
* {
* init : function( editor )
* {
* alert( 'Editor "' + editor.name + '" is being initialized!' );
* }
* });
*/
| 10npsite | trunk/guanli/system/ckeditor/_source/core/plugindefinition.js | JavaScript | asf20 | 2,841 |
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
/**
* @fileOverview API initialization code.
*/
(function()
{
// Disable HC detaction in WebKit. (#5429)
if ( CKEDITOR.env.webkit )
{
CKEDITOR.env.hc = false;
return;
}
// Check whether high contrast is active by creating a colored border.
var hcDetect = CKEDITOR.dom.element.createFromHtml(
'<div style="width:0px;height:0px;position:absolute;left:-10000px;' +
'border: 1px solid;border-color: red blue;"></div>', CKEDITOR.document );
hcDetect.appendTo( CKEDITOR.document.getHead() );
// Update CKEDITOR.env.
// Catch exception needed sometimes for FF. (#4230)
try
{
CKEDITOR.env.hc = hcDetect.getComputedStyle( 'border-top-color' ) == hcDetect.getComputedStyle( 'border-right-color' );
}
catch (e)
{
CKEDITOR.env.hc = false;
}
if ( CKEDITOR.env.hc )
CKEDITOR.env.cssClass += ' cke_hc';
hcDetect.remove();
})();
// Load core plugins.
CKEDITOR.plugins.load( CKEDITOR.config.corePlugins.split( ',' ), function()
{
CKEDITOR.status = 'loaded';
CKEDITOR.fire( 'loaded' );
// Process all instances created by the "basic" implementation.
var pending = CKEDITOR._.pending;
if ( pending )
{
delete CKEDITOR._.pending;
for ( var i = 0 ; i < pending.length ; i++ )
CKEDITOR.add( pending[ i ] );
}
});
// Needed for IE6 to not request image (HTTP 200 or 304) for every CSS background. (#6187)
if ( CKEDITOR.env.ie )
{
// Remove IE mouse flickering on IE6 because of background images.
try
{
document.execCommand( 'BackgroundImageCache', false, true );
}
catch (e)
{
// We have been reported about loading problems caused by the above
// line. For safety, let's just ignore errors.
}
}
/**
* Indicates that CKEditor is running on a High Contrast environment.
* @name CKEDITOR.env.hc
* @example
* if ( CKEDITOR.env.hc )
* alert( 'You're running on High Contrast mode. The editor interface will get adapted to provide you a better experience.' );
*/
/**
* Fired when a CKEDITOR core object is fully loaded and ready for interaction.
* @name CKEDITOR#loaded
* @event
*/
| 10npsite | trunk/guanli/system/ckeditor/_source/core/_bootstrap.js | JavaScript | asf20 | 2,290 |
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
/**
* @fileOverview Contains the first and essential part of the {@link CKEDITOR}
* object definition.
*/
// #### Compressed Code
// Must be updated on changes in the script as well as updated in the
// ckeditor_source.js and ckeditor_basic_source.js files.
// if(!window.CKEDITOR)window.CKEDITOR=(function(){var a={timestamp:'',version:'3.6.4',revision:'7575',rnd:Math.floor(Math.random()*900)+100,_:{},status:'unloaded',basePath:(function(){var d=window.CKEDITOR_BASEPATH||'';if(!d){var e=document.getElementsByTagName('script');for(var f=0;f<e.length;f++){var g=e[f].src.match(/(^|.*[\\\/])ckeditor(?:_basic)?(?:_source)?.js(?:\?.*)?$/i);if(g){d=g[1];break;}}}if(d.indexOf(':/')==-1)if(d.indexOf('/')===0)d=location.href.match(/^.*?:\/\/[^\/]*/)[0]+d;else d=location.href.match(/^[^\?]*\/(?:)/)[0]+d;if(!d)throw 'The CKEditor installation path could not be automatically detected. Please set the global variable "CKEDITOR_BASEPATH" before creating editor instances.';return d;})(),getUrl:function(d){if(d.indexOf(':/')==-1&&d.indexOf('/')!==0)d=this.basePath+d;if(this.timestamp&&d.charAt(d.length-1)!='/'&&!/[&?]t=/.test(d))d+=(d.indexOf('?')>=0?'&':'?')+'t='+this.timestamp;return d;}},b=window.CKEDITOR_GETURL;if(b){var c=a.getUrl;a.getUrl=function(d){return b.call(a,d)||c.call(a,d);};}return a;})();
// #### Raw code
// ATTENTION: read the above "Compressed Code" notes when changing this code.
/* @Packager.RemoveLine
// Avoid having the editor code initialized twice. (#7588)
// Use CKEDITOR.dom to check whether the full ckeditor.js code has been loaded
// or just ckeditor_basic.js.
// Remove these lines when compressing manually.
if ( window.CKEDITOR && window.CKEDITOR.dom )
return;
@Packager.RemoveLine */
if ( !window.CKEDITOR )
{
/**
* @name CKEDITOR
* @namespace This is the API entry point. The entire CKEditor code runs under this object.
* @example
*/
window.CKEDITOR = (function()
{
var CKEDITOR =
/** @lends CKEDITOR */
{
/**
* A constant string unique for each release of CKEditor. Its value
* is used, by default, to build the URL for all resources loaded
* by the editor code, guaranteeing clean cache results when
* upgrading.
* @type String
* @example
* alert( CKEDITOR.timestamp ); // e.g. '87dm'
*/
// The production implementation contains a fixed timestamp, unique
// for each release and generated by the releaser.
// (Base 36 value of each component of YYMMDDHH - 4 chars total - e.g. 87bm == 08071122)
timestamp : 'C6HH5UF',
/**
* Contains the CKEditor version number.
* @type String
* @example
* alert( CKEDITOR.version ); // e.g. 'CKEditor 3.4.1'
*/
version : '3.6.4',
/**
* Contains the CKEditor revision number.
* The revision number is incremented automatically, following each
* modification to the CKEditor source code.
* @type String
* @example
* alert( CKEDITOR.revision ); // e.g. '3975'
*/
revision : '7575',
/**
* A 3-digit random integer, valid for the entire life of the CKEDITOR object.
* @type Number
* @example
* alert( CKEDITOR.rnd ); // e.g. '319'
*/
rnd : Math.floor( Math.random() * ( 999/*Max*/ - 100/*Min*/ + 1 ) ) + 100/*Min*/,
/**
* Private object used to hold core stuff. It should not be used outside of
* the API code as properties defined here may change at any time
* without notice.
* @private
*/
_ : {},
/**
* Indicates the API loading status. The following statuses are available:
* <ul>
* <li><b>unloaded</b>: the API is not yet loaded.</li>
* <li><b>basic_loaded</b>: the basic API features are available.</li>
* <li><b>basic_ready</b>: the basic API is ready to load the full core code.</li>
* <li><b>loading</b>: the full API is being loaded.</li>
* <li><b>loaded</b>: the API can be fully used.</li>
* </ul>
* @type String
* @example
* if ( <b>CKEDITOR.status</b> == 'loaded' )
* {
* // The API can now be fully used.
* }
*/
status : 'unloaded',
/**
* Contains the full URL for the CKEditor installation directory.
* It is possible to manually provide the base path by setting a
* global variable named CKEDITOR_BASEPATH. This global variable
* must be set <strong>before</strong> the editor script loading.
* @type String
* @example
* alert( <b>CKEDITOR.basePath</b> ); // "http://www.example.com/ckeditor/" (e.g.)
*/
basePath : (function()
{
// ATTENTION: fixes to this code must be ported to
// var basePath in "core/loader.js".
// Find out the editor directory path, based on its <script> tag.
var path = window.CKEDITOR_BASEPATH || '';
if ( !path )
{
var scripts = document.getElementsByTagName( 'script' );
for ( var i = 0 ; i < scripts.length ; i++ )
{
var match = scripts[i].src.match( /(^|.*[\\\/])ckeditor(?:_basic)?(?:_source)?.js(?:\?.*)?$/i );
if ( match )
{
path = match[1];
break;
}
}
}
// In IE (only) the script.src string is the raw value entered in the
// HTML source. Other browsers return the full resolved URL instead.
if ( path.indexOf(':/') == -1 )
{
// Absolute path.
if ( path.indexOf( '/' ) === 0 )
path = location.href.match( /^.*?:\/\/[^\/]*/ )[0] + path;
// Relative path.
else
path = location.href.match( /^[^\?]*\/(?:)/ )[0] + path;
}
if ( !path )
throw 'The CKEditor installation path could not be automatically detected. Please set the global variable "CKEDITOR_BASEPATH" before creating editor instances.';
return path;
})(),
/**
* Gets the full URL for CKEditor resources. By default, URLs
* returned by this function contain a querystring parameter ("t")
* set to the {@link CKEDITOR.timestamp} value.<br />
* <br />
* It is possible to provide a custom implementation of this
* function by setting a global variable named CKEDITOR_GETURL.
* This global variable must be set <strong>before</strong> the editor script
* loading. If the custom implementation returns nothing (==null), the
* default implementation is used.
* @param {String} resource The resource whose full URL we want to get.
* It may be a full, absolute, or relative URL.
* @returns {String} The full URL.
* @example
* // e.g. http://www.example.com/ckeditor/skins/default/editor.css?t=87dm
* alert( CKEDITOR.getUrl( 'skins/default/editor.css' ) );
* @example
* // e.g. http://www.example.com/skins/default/editor.css?t=87dm
* alert( CKEDITOR.getUrl( '/skins/default/editor.css' ) );
* @example
* // e.g. http://www.somesite.com/skins/default/editor.css?t=87dm
* alert( CKEDITOR.getUrl( 'http://www.somesite.com/skins/default/editor.css' ) );
*/
getUrl : function( resource )
{
// If this is not a full or absolute path.
if ( resource.indexOf(':/') == -1 && resource.indexOf( '/' ) !== 0 )
resource = this.basePath + resource;
// Add the timestamp, except for directories.
if ( this.timestamp && resource.charAt( resource.length - 1 ) != '/' && !(/[&?]t=/).test( resource ) )
resource += ( resource.indexOf( '?' ) >= 0 ? '&' : '?' ) + 't=' + this.timestamp;
return resource;
}
};
// Make it possible to override the getUrl function with a custom
// implementation pointing to a global named CKEDITOR_GETURL.
var newGetUrl = window.CKEDITOR_GETURL;
if ( newGetUrl )
{
var originalGetUrl = CKEDITOR.getUrl;
CKEDITOR.getUrl = function ( resource )
{
return newGetUrl.call( CKEDITOR, resource ) ||
originalGetUrl.call( CKEDITOR, resource );
};
}
return CKEDITOR;
})();
}
/**
* Function called upon loading a custom configuration file that can
* modify the editor instance configuration ({@link CKEDITOR.editor#config }).
* It is usually defined inside the custom configuration files that can
* include developer defined settings.
* @name CKEDITOR.editorConfig
* @function
* @param {CKEDITOR.config} config A configuration object containing the
* settings defined for a {@link CKEDITOR.editor} instance up to this
* function call. Note that not all settings may still be available. See
* <a href="http://docs.cksource.com/CKEditor_3.x/Developers_Guide/Setting_Configurations#Configuration_Loading_Order">Configuration Loading Order</a>
* for details.
* @example
* // This is supposed to be placed in the config.js file.
* CKEDITOR.editorConfig = function( config )
* {
* // Define changes to default configuration here. For example:
* config.language = 'fr';
* config.uiColor = '#AADC6E';
* };
*/
// PACKAGER_RENAME( CKEDITOR )
| 10npsite | trunk/guanli/system/ckeditor/_source/core/ckeditor_base.js | JavaScript | asf20 | 9,180 |
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
(function()
{
/**
* A lightweight representation of HTML text.
* @constructor
* @example
*/
CKEDITOR.htmlParser.cdata = function( value )
{
/**
* The CDATA value.
* @type String
* @example
*/
this.value = value;
};
CKEDITOR.htmlParser.cdata.prototype =
{
/**
* CDATA has the same type as {@link CKEDITOR.htmlParser.text} This is
* a constant value set to {@link CKEDITOR.NODE_TEXT}.
* @type Number
* @example
*/
type : CKEDITOR.NODE_TEXT,
/**
* Writes write the CDATA with no special manipulations.
* @param {CKEDITOR.htmlWriter} writer The writer to which write the HTML.
*/
writeHtml : function( writer )
{
writer.write( this.value );
}
};
})();
| 10npsite | trunk/guanli/system/ckeditor/_source/core/htmlparser/cdata.js | JavaScript | asf20 | 913 |
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
(function()
{
CKEDITOR.htmlParser.filter = CKEDITOR.tools.createClass(
{
$ : function( rules )
{
this._ =
{
elementNames : [],
attributeNames : [],
elements : { $length : 0 },
attributes : { $length : 0 }
};
if ( rules )
this.addRules( rules, 10 );
},
proto :
{
addRules : function( rules, priority )
{
if ( typeof priority != 'number' )
priority = 10;
// Add the elementNames.
addItemsToList( this._.elementNames, rules.elementNames, priority );
// Add the attributeNames.
addItemsToList( this._.attributeNames, rules.attributeNames, priority );
// Add the elements.
addNamedItems( this._.elements, rules.elements, priority );
// Add the attributes.
addNamedItems( this._.attributes, rules.attributes, priority );
// Add the text.
this._.text = transformNamedItem( this._.text, rules.text, priority ) || this._.text;
// Add the comment.
this._.comment = transformNamedItem( this._.comment, rules.comment, priority ) || this._.comment;
// Add root fragment.
this._.root = transformNamedItem( this._.root, rules.root, priority ) || this._.root;
},
onElementName : function( name )
{
return filterName( name, this._.elementNames );
},
onAttributeName : function( name )
{
return filterName( name, this._.attributeNames );
},
onText : function( text )
{
var textFilter = this._.text;
return textFilter ? textFilter.filter( text ) : text;
},
onComment : function( commentText, comment )
{
var textFilter = this._.comment;
return textFilter ? textFilter.filter( commentText, comment ) : commentText;
},
onFragment : function( element )
{
var rootFilter = this._.root;
return rootFilter ? rootFilter.filter( element ) : element;
},
onElement : function( element )
{
// We must apply filters set to the specific element name as
// well as those set to the generic $ name. So, add both to an
// array and process them in a small loop.
var filters = [ this._.elements[ '^' ], this._.elements[ element.name ], this._.elements.$ ],
filter, ret;
for ( var i = 0 ; i < 3 ; i++ )
{
filter = filters[ i ];
if ( filter )
{
ret = filter.filter( element, this );
if ( ret === false )
return null;
if ( ret && ret != element )
return this.onNode( ret );
// The non-root element has been dismissed by one of the filters.
if ( element.parent && !element.name )
break;
}
}
return element;
},
onNode : function( node )
{
var type = node.type;
return type == CKEDITOR.NODE_ELEMENT ? this.onElement( node ) :
type == CKEDITOR.NODE_TEXT ? new CKEDITOR.htmlParser.text( this.onText( node.value ) ) :
type == CKEDITOR.NODE_COMMENT ? new CKEDITOR.htmlParser.comment( this.onComment( node.value ) ):
null;
},
onAttribute : function( element, name, value )
{
var filter = this._.attributes[ name ];
if ( filter )
{
var ret = filter.filter( value, element, this );
if ( ret === false )
return false;
if ( typeof ret != 'undefined' )
return ret;
}
return value;
}
}
});
function filterName( name, filters )
{
for ( var i = 0 ; name && i < filters.length ; i++ )
{
var filter = filters[ i ];
name = name.replace( filter[ 0 ], filter[ 1 ] );
}
return name;
}
function addItemsToList( list, items, priority )
{
if ( typeof items == 'function' )
items = [ items ];
var i, j,
listLength = list.length,
itemsLength = items && items.length;
if ( itemsLength )
{
// Find the index to insert the items at.
for ( i = 0 ; i < listLength && list[ i ].pri < priority ; i++ )
{ /*jsl:pass*/ }
// Add all new items to the list at the specific index.
for ( j = itemsLength - 1 ; j >= 0 ; j-- )
{
var item = items[ j ];
if ( item )
{
item.pri = priority;
list.splice( i, 0, item );
}
}
}
}
function addNamedItems( hashTable, items, priority )
{
if ( items )
{
for ( var name in items )
{
var current = hashTable[ name ];
hashTable[ name ] =
transformNamedItem(
current,
items[ name ],
priority );
if ( !current )
hashTable.$length++;
}
}
}
function transformNamedItem( current, item, priority )
{
if ( item )
{
item.pri = priority;
if ( current )
{
// If the current item is not an Array, transform it.
if ( !current.splice )
{
if ( current.pri > priority )
current = [ item, current ];
else
current = [ current, item ];
current.filter = callItems;
}
else
addItemsToList( current, item, priority );
return current;
}
else
{
item.filter = item;
return item;
}
}
}
// Invoke filters sequentially on the array, break the iteration
// when it doesn't make sense to continue anymore.
function callItems( currentEntry )
{
var isNode = currentEntry.type
|| currentEntry instanceof CKEDITOR.htmlParser.fragment;
for ( var i = 0 ; i < this.length ; i++ )
{
// Backup the node info before filtering.
if ( isNode )
{
var orgType = currentEntry.type,
orgName = currentEntry.name;
}
var item = this[ i ],
ret = item.apply( window, arguments );
if ( ret === false )
return ret;
// We're filtering node (element/fragment).
if ( isNode )
{
// No further filtering if it's not anymore
// fitable for the subsequent filters.
if ( ret && ( ret.name != orgName
|| ret.type != orgType ) )
{
return ret;
}
}
// Filtering value (nodeName/textValue/attrValue).
else
{
// No further filtering if it's not
// any more values.
if ( typeof ret != 'string' )
return ret;
}
ret != undefined && ( currentEntry = ret );
}
return currentEntry;
}
})();
// "entities" plugin
/*
{
text : function( text )
{
// TODO : Process entities.
return text.toUpperCase();
}
};
*/
| 10npsite | trunk/guanli/system/ckeditor/_source/core/htmlparser/filter.js | JavaScript | asf20 | 6,544 |
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
/**
* A lightweight representation of an HTML comment.
* @constructor
* @example
*/
CKEDITOR.htmlParser.comment = function( value )
{
/**
* The comment text.
* @type String
* @example
*/
this.value = value;
/** @private */
this._ =
{
isBlockLike : false
};
};
CKEDITOR.htmlParser.comment.prototype =
{
/**
* The node type. This is a constant value set to {@link CKEDITOR.NODE_COMMENT}.
* @type Number
* @example
*/
type : CKEDITOR.NODE_COMMENT,
/**
* Writes the HTML representation of this comment to a CKEDITOR.htmlWriter.
* @param {CKEDITOR.htmlWriter} writer The writer to which write the HTML.
* @example
*/
writeHtml : function( writer, filter )
{
var comment = this.value;
if ( filter )
{
if ( !( comment = filter.onComment( comment, this ) ) )
return;
if ( typeof comment != 'string' )
{
comment.parent = this.parent;
comment.writeHtml( writer, filter );
return;
}
}
writer.comment( comment );
}
};
| 10npsite | trunk/guanli/system/ckeditor/_source/core/htmlparser/comment.js | JavaScript | asf20 | 1,201 |
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
(function()
{
/**
* A lightweight representation of HTML text.
* @constructor
* @example
*/
CKEDITOR.htmlParser.text = function( value )
{
/**
* The text value.
* @type String
* @example
*/
this.value = value;
/** @private */
this._ =
{
isBlockLike : false
};
};
CKEDITOR.htmlParser.text.prototype =
{
/**
* The node type. This is a constant value set to {@link CKEDITOR.NODE_TEXT}.
* @type Number
* @example
*/
type : CKEDITOR.NODE_TEXT,
/**
* Writes the HTML representation of this text to a CKEDITOR.htmlWriter.
* @param {CKEDITOR.htmlWriter} writer The writer to which write the HTML.
* @example
*/
writeHtml : function( writer, filter )
{
var text = this.value;
if ( filter && !( text = filter.onText( text, this ) ) )
return;
writer.text( text );
}
};
})();
| 10npsite | trunk/guanli/system/ckeditor/_source/core/htmlparser/text.js | JavaScript | asf20 | 1,063 |
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.htmlParser.basicWriter = CKEDITOR.tools.createClass(
{
$ : function()
{
this._ =
{
output : []
};
},
proto :
{
/**
* Writes the tag opening part for a opener tag.
* @param {String} tagName The element name for this tag.
* @param {Object} attributes The attributes defined for this tag. The
* attributes could be used to inspect the tag.
* @example
* // Writes "<p".
* writer.openTag( 'p', { class : 'MyClass', id : 'MyId' } );
*/
openTag : function( tagName, attributes )
{
this._.output.push( '<', tagName );
},
/**
* Writes the tag closing part for a opener tag.
* @param {String} tagName The element name for this tag.
* @param {Boolean} isSelfClose Indicates that this is a self-closing tag,
* like "br" or "img".
* @example
* // Writes ">".
* writer.openTagClose( 'p', false );
* @example
* // Writes " />".
* writer.openTagClose( 'br', true );
*/
openTagClose : function( tagName, isSelfClose )
{
if ( isSelfClose )
this._.output.push( ' />' );
else
this._.output.push( '>' );
},
/**
* Writes an attribute. This function should be called after opening the
* tag with {@link #openTagClose}.
* @param {String} attName The attribute name.
* @param {String} attValue The attribute value.
* @example
* // Writes ' class="MyClass"'.
* writer.attribute( 'class', 'MyClass' );
*/
attribute : function( attName, attValue )
{
// Browsers don't always escape special character in attribute values. (#4683, #4719).
if ( typeof attValue == 'string' )
attValue = CKEDITOR.tools.htmlEncodeAttr( attValue );
this._.output.push( ' ', attName, '="', attValue, '"' );
},
/**
* Writes a closer tag.
* @param {String} tagName The element name for this tag.
* @example
* // Writes "</p>".
* writer.closeTag( 'p' );
*/
closeTag : function( tagName )
{
this._.output.push( '</', tagName, '>' );
},
/**
* Writes text.
* @param {String} text The text value
* @example
* // Writes "Hello Word".
* writer.text( 'Hello Word' );
*/
text : function( text )
{
this._.output.push( text );
},
/**
* Writes a comment.
* @param {String} comment The comment text.
* @example
* // Writes "<!-- My comment -->".
* writer.comment( ' My comment ' );
*/
comment : function( comment )
{
this._.output.push( '<!--', comment, '-->' );
},
/**
* Writes any kind of data to the ouput.
* @example
* writer.write( 'This is an <b>example</b>.' );
*/
write : function( data )
{
this._.output.push( data );
},
/**
* Empties the current output buffer.
* @example
* writer.reset();
*/
reset : function()
{
this._.output = [];
this._.indent = false;
},
/**
* Empties the current output buffer.
* @param {Boolean} reset Indicates that the {@link reset} function is to
* be automatically called after retrieving the HTML.
* @returns {String} The HTML written to the writer so far.
* @example
* var html = writer.getHtml();
*/
getHtml : function( reset )
{
var html = this._.output.join( '' );
if ( reset )
this.reset();
return html;
}
}
});
| 10npsite | trunk/guanli/system/ckeditor/_source/core/htmlparser/basicwriter.js | JavaScript | asf20 | 3,568 |
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
/**
* A lightweight representation of an HTML DOM structure.
* @constructor
* @example
*/
CKEDITOR.htmlParser.fragment = function()
{
/**
* The nodes contained in the root of this fragment.
* @type Array
* @example
* var fragment = CKEDITOR.htmlParser.fragment.fromHtml( '<b>Sample</b> Text' );
* alert( fragment.children.length ); "2"
*/
this.children = [];
/**
* Get the fragment parent. Should always be null.
* @type Object
* @default null
* @example
*/
this.parent = null;
/** @private */
this._ =
{
isBlockLike : true,
hasInlineStarted : false
};
};
(function()
{
// Block-level elements whose internal structure should be respected during
// parser fixing.
var nonBreakingBlocks = CKEDITOR.tools.extend( { table:1,ul:1,ol:1,dl:1 }, CKEDITOR.dtd.table, CKEDITOR.dtd.ul, CKEDITOR.dtd.ol, CKEDITOR.dtd.dl );
// IE < 8 don't output the close tag on definition list items. (#6975)
var optionalCloseTags = CKEDITOR.env.ie && CKEDITOR.env.version < 8 ? { dd : 1, dt :1 } : {};
var listBlocks = { ol:1, ul:1 };
// Dtd of the fragment element, basically it accept anything except for intermediate structure, e.g. orphan <li>.
var rootDtd = CKEDITOR.tools.extend( {}, { html: 1 }, CKEDITOR.dtd.html, CKEDITOR.dtd.body, CKEDITOR.dtd.head, { style:1,script:1 } );
function isRemoveEmpty( node )
{
// Empty link is to be removed when empty but not anchor. (#7894)
return node.name == 'a' && node.attributes.href
|| CKEDITOR.dtd.$removeEmpty[ node.name ];
}
/**
* Creates a {@link CKEDITOR.htmlParser.fragment} from an HTML string.
* @param {String} fragmentHtml The HTML to be parsed, filling the fragment.
* @param {Number} [fixForBody=false] Wrap body with specified element if needed.
* @param {CKEDITOR.htmlParser.element} contextNode Parse the html as the content of this element.
* @returns CKEDITOR.htmlParser.fragment The fragment created.
* @example
* var fragment = CKEDITOR.htmlParser.fragment.fromHtml( '<b>Sample</b> Text' );
* alert( fragment.children[0].name ); "b"
* alert( fragment.children[1].value ); " Text"
*/
CKEDITOR.htmlParser.fragment.fromHtml = function( fragmentHtml, fixForBody, contextNode )
{
var parser = new CKEDITOR.htmlParser(),
fragment = contextNode || new CKEDITOR.htmlParser.fragment(),
pendingInline = [],
pendingBRs = [],
currentNode = fragment,
// Indicate we're inside a <textarea> element, spaces should be touched differently.
inTextarea = false,
// Indicate we're inside a <pre> element, spaces should be touched differently.
inPre = false;
function checkPending( newTagName )
{
var pendingBRsSent;
if ( pendingInline.length > 0 )
{
for ( var i = 0 ; i < pendingInline.length ; i++ )
{
var pendingElement = pendingInline[ i ],
pendingName = pendingElement.name,
pendingDtd = CKEDITOR.dtd[ pendingName ],
currentDtd = currentNode.name && CKEDITOR.dtd[ currentNode.name ];
if ( ( !currentDtd || currentDtd[ pendingName ] ) && ( !newTagName || !pendingDtd || pendingDtd[ newTagName ] || !CKEDITOR.dtd[ newTagName ] ) )
{
if ( !pendingBRsSent )
{
sendPendingBRs();
pendingBRsSent = 1;
}
// Get a clone for the pending element.
pendingElement = pendingElement.clone();
// Add it to the current node and make it the current,
// so the new element will be added inside of it.
pendingElement.parent = currentNode;
currentNode = pendingElement;
// Remove the pending element (back the index by one
// to properly process the next entry).
pendingInline.splice( i, 1 );
i--;
}
else
{
// Some element of the same type cannot be nested, flat them,
// e.g. <a href="#">foo<a href="#">bar</a></a>. (#7894)
if ( pendingName == currentNode.name )
addElement( currentNode, currentNode.parent, 1 ), i--;
}
}
}
}
function sendPendingBRs()
{
while ( pendingBRs.length )
addElement( pendingBRs.shift(), currentNode );
}
/*
* Beside of simply append specified element to target, this function also takes
* care of other dirty lifts like forcing block in body, trimming spaces at
* the block boundaries etc.
*
* @param {Element} element The element to be added as the last child of {@link target}.
* @param {Element} target The parent element to relieve the new node.
* @param {Boolean} [moveCurrent=false] Don't change the "currentNode" global unless
* there's a return point node specified on the element, otherwise move current onto {@link target} node.
*/
function addElement( element, target, moveCurrent )
{
// Ignore any element that has already been added.
if ( element.previous !== undefined )
return;
target = target || currentNode || fragment;
// Current element might be mangled by fix body below,
// save it for restore later.
var savedCurrent = currentNode;
// If the target is the fragment and this inline element can't go inside
// body (if fixForBody).
if ( fixForBody && ( !target.type || target.name == 'body' ) )
{
var elementName, realElementName;
if ( element.attributes
&& ( realElementName =
element.attributes[ 'data-cke-real-element-type' ] ) )
elementName = realElementName;
else
elementName = element.name;
if ( elementName && !( elementName in CKEDITOR.dtd.$body || elementName == 'body' || element.isOrphan ) )
{
// Create a <p> in the fragment.
currentNode = target;
parser.onTagOpen( fixForBody, {} );
// The new target now is the <p>.
element.returnPoint = target = currentNode;
}
}
// Rtrim empty spaces on block end boundary. (#3585)
if ( element._.isBlockLike
&& element.name != 'pre' && element.name != 'textarea' )
{
var length = element.children.length,
lastChild = element.children[ length - 1 ],
text;
if ( lastChild && lastChild.type == CKEDITOR.NODE_TEXT )
{
if ( !( text = CKEDITOR.tools.rtrim( lastChild.value ) ) )
element.children.length = length -1;
else
lastChild.value = text;
}
}
target.add( element );
if ( element.name == 'pre' )
inPre = false;
if ( element.name == 'textarea' )
inTextarea = false;
if ( element.returnPoint )
{
currentNode = element.returnPoint;
delete element.returnPoint;
}
else
currentNode = moveCurrent ? target : savedCurrent;
}
parser.onTagOpen = function( tagName, attributes, selfClosing, optionalClose )
{
var element = new CKEDITOR.htmlParser.element( tagName, attributes );
// "isEmpty" will be always "false" for unknown elements, so we
// must force it if the parser has identified it as a selfClosing tag.
if ( element.isUnknown && selfClosing )
element.isEmpty = true;
// Check for optional closed elements, including browser quirks and manually opened blocks.
element.isOptionalClose = tagName in optionalCloseTags || optionalClose;
// This is a tag to be removed if empty, so do not add it immediately.
if ( isRemoveEmpty( element ) )
{
pendingInline.push( element );
return;
}
else if ( tagName == 'pre' )
inPre = true;
else if ( tagName == 'br' && inPre )
{
currentNode.add( new CKEDITOR.htmlParser.text( '\n' ) );
return;
}
else if ( tagName == 'textarea' )
inTextarea = true;
if ( tagName == 'br' )
{
pendingBRs.push( element );
return;
}
while( 1 )
{
var currentName = currentNode.name;
var currentDtd = currentName ? ( CKEDITOR.dtd[ currentName ]
|| ( currentNode._.isBlockLike ? CKEDITOR.dtd.div : CKEDITOR.dtd.span ) )
: rootDtd;
// If the element cannot be child of the current element.
if ( !element.isUnknown && !currentNode.isUnknown && !currentDtd[ tagName ] )
{
// Current node doesn't have a close tag, time for a close
// as this element isn't fit in. (#7497)
if ( currentNode.isOptionalClose )
parser.onTagClose( currentName );
// Fixing malformed nested lists by moving it into a previous list item. (#3828)
else if ( tagName in listBlocks
&& currentName in listBlocks )
{
var children = currentNode.children,
lastChild = children[ children.length - 1 ];
// Establish the list item if it's not existed.
if ( !( lastChild && lastChild.name == 'li' ) )
addElement( ( lastChild = new CKEDITOR.htmlParser.element( 'li' ) ), currentNode );
!element.returnPoint && ( element.returnPoint = currentNode );
currentNode = lastChild;
}
// Establish new list root for orphan list items.
else if ( tagName in CKEDITOR.dtd.$listItem && currentName != tagName )
parser.onTagOpen( tagName == 'li' ? 'ul' : 'dl', {}, 0, 1 );
// We're inside a structural block like table and list, AND the incoming element
// is not of the same type (e.g. <td>td1<td>td2</td>), we simply add this new one before it,
// and most importantly, return back to here once this element is added,
// e.g. <table><tr><td>td1</td><p>p1</p><td>td2</td></tr></table>
else if ( currentName in nonBreakingBlocks && currentName != tagName )
{
!element.returnPoint && ( element.returnPoint = currentNode );
currentNode = currentNode.parent;
}
else
{
// The current element is an inline element, which
// need to be continued even after the close, so put
// it in the pending list.
if ( currentName in CKEDITOR.dtd.$inline )
pendingInline.unshift( currentNode );
// The most common case where we just need to close the
// current one and append the new one to the parent.
if ( currentNode.parent )
addElement( currentNode, currentNode.parent, 1 );
// We've tried our best to fix the embarrassment here, while
// this element still doesn't find it's parent, mark it as
// orphan and show our tolerance to it.
else
{
element.isOrphan = 1;
break;
}
}
}
else
break;
}
checkPending( tagName );
sendPendingBRs();
element.parent = currentNode;
if ( element.isEmpty )
addElement( element );
else
currentNode = element;
};
parser.onTagClose = function( tagName )
{
// Check if there is any pending tag to be closed.
for ( var i = pendingInline.length - 1 ; i >= 0 ; i-- )
{
// If found, just remove it from the list.
if ( tagName == pendingInline[ i ].name )
{
pendingInline.splice( i, 1 );
return;
}
}
var pendingAdd = [],
newPendingInline = [],
candidate = currentNode;
while ( candidate != fragment && candidate.name != tagName )
{
// If this is an inline element, add it to the pending list, if we're
// really closing one of the parents element later, they will continue
// after it.
if ( !candidate._.isBlockLike )
newPendingInline.unshift( candidate );
// This node should be added to it's parent at this point. But,
// it should happen only if the closing tag is really closing
// one of the nodes. So, for now, we just cache it.
pendingAdd.push( candidate );
// Make sure return point is properly restored.
candidate = candidate.returnPoint || candidate.parent;
}
if ( candidate != fragment )
{
// Add all elements that have been found in the above loop.
for ( i = 0 ; i < pendingAdd.length ; i++ )
{
var node = pendingAdd[ i ];
addElement( node, node.parent );
}
currentNode = candidate;
if ( candidate._.isBlockLike )
sendPendingBRs();
addElement( candidate, candidate.parent );
// The parent should start receiving new nodes now, except if
// addElement changed the currentNode.
if ( candidate == currentNode )
currentNode = currentNode.parent;
pendingInline = pendingInline.concat( newPendingInline );
}
if ( tagName == 'body' )
fixForBody = false;
};
parser.onText = function( text )
{
// Trim empty spaces at beginning of text contents except <pre> and <textarea>.
if ( ( !currentNode._.hasInlineStarted || pendingBRs.length ) && !inPre && !inTextarea )
{
text = CKEDITOR.tools.ltrim( text );
if ( text.length === 0 )
return;
}
var currentName = currentNode.name,
currentDtd = currentName ? ( CKEDITOR.dtd[ currentName ]
|| ( currentNode._.isBlockLike ?
CKEDITOR.dtd.div : CKEDITOR.dtd.span ) ) : rootDtd;
// Fix orphan text in list/table. (#8540) (#8870)
if ( !inTextarea &&
!currentDtd [ '#' ] &&
currentName in nonBreakingBlocks )
{
parser.onTagOpen( currentName in listBlocks ? 'li' :
currentName == 'dl' ? 'dd' :
currentName == 'table' ? 'tr' :
currentName == 'tr' ? 'td' : '' );
parser.onText( text );
return;
}
sendPendingBRs();
checkPending();
if ( fixForBody
&& ( !currentNode.type || currentNode.name == 'body' )
&& CKEDITOR.tools.trim( text ) )
{
this.onTagOpen( fixForBody, {}, 0, 1 );
}
// Shrinking consequential spaces into one single for all elements
// text contents.
if ( !inPre && !inTextarea )
text = text.replace( /[\t\r\n ]{2,}|[\t\r\n]/g, ' ' );
currentNode.add( new CKEDITOR.htmlParser.text( text ) );
};
parser.onCDATA = function( cdata )
{
currentNode.add( new CKEDITOR.htmlParser.cdata( cdata ) );
};
parser.onComment = function( comment )
{
sendPendingBRs();
checkPending();
currentNode.add( new CKEDITOR.htmlParser.comment( comment ) );
};
// Parse it.
parser.parse( fragmentHtml );
// Send all pending BRs except one, which we consider a unwanted bogus. (#5293)
sendPendingBRs( !CKEDITOR.env.ie && 1 );
// Close all pending nodes, make sure return point is properly restored.
while ( currentNode != fragment )
addElement( currentNode, currentNode.parent, 1 );
return fragment;
};
CKEDITOR.htmlParser.fragment.prototype =
{
/**
* Adds a node to this fragment.
* @param {Object} node The node to be added. It can be any of of the
* following types: {@link CKEDITOR.htmlParser.element},
* {@link CKEDITOR.htmlParser.text} and
* {@link CKEDITOR.htmlParser.comment}.
* @param {Number} [index] From where the insertion happens.
* @example
*/
add : function( node, index )
{
isNaN( index ) && ( index = this.children.length );
var previous = index > 0 ? this.children[ index - 1 ] : null;
if ( previous )
{
// If the block to be appended is following text, trim spaces at
// the right of it.
if ( node._.isBlockLike && previous.type == CKEDITOR.NODE_TEXT )
{
previous.value = CKEDITOR.tools.rtrim( previous.value );
// If we have completely cleared the previous node.
if ( previous.value.length === 0 )
{
// Remove it from the list and add the node again.
this.children.pop();
this.add( node );
return;
}
}
previous.next = node;
}
node.previous = previous;
node.parent = this;
this.children.splice( index, 0, node );
this._.hasInlineStarted = node.type == CKEDITOR.NODE_TEXT || ( node.type == CKEDITOR.NODE_ELEMENT && !node._.isBlockLike );
},
/**
* Writes the fragment HTML to a CKEDITOR.htmlWriter.
* @param {CKEDITOR.htmlWriter} writer The writer to which write the HTML.
* @example
* var writer = new CKEDITOR.htmlWriter();
* var fragment = CKEDITOR.htmlParser.fragment.fromHtml( '<P><B>Example' );
* fragment.writeHtml( writer )
* alert( writer.getHtml() ); "<p><b>Example</b></p>"
*/
writeHtml : function( writer, filter )
{
var isChildrenFiltered;
this.filterChildren = function()
{
var writer = new CKEDITOR.htmlParser.basicWriter();
this.writeChildrenHtml.call( this, writer, filter, true );
var html = writer.getHtml();
this.children = new CKEDITOR.htmlParser.fragment.fromHtml( html ).children;
isChildrenFiltered = 1;
};
// Filtering the root fragment before anything else.
!this.name && filter && filter.onFragment( this );
this.writeChildrenHtml( writer, isChildrenFiltered ? null : filter );
},
writeChildrenHtml : function( writer, filter )
{
for ( var i = 0 ; i < this.children.length ; i++ )
this.children[i].writeHtml( writer, filter );
}
};
})();
| 10npsite | trunk/guanli/system/ckeditor/_source/core/htmlparser/fragment.js | JavaScript | asf20 | 17,204 |
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
/**
* A lightweight representation of an HTML element.
* @param {String} name The element name.
* @param {Object} attributes And object holding all attributes defined for
* this element.
* @constructor
* @example
*/
CKEDITOR.htmlParser.element = function( name, attributes )
{
/**
* The element name.
* @type String
* @example
*/
this.name = name;
/**
* Holds the attributes defined for this element.
* @type Object
* @example
*/
this.attributes = attributes || {};
/**
* The nodes that are direct children of this element.
* @type Array
* @example
*/
this.children = [];
// Reveal the real semantic of our internal custom tag name (#6639),
// when resolving whether it's block like.
var realName = name || '',
prefixed = realName.match( /^cke:(.*)/ );
prefixed && ( realName = prefixed[ 1 ] );
var isBlockLike = !!( CKEDITOR.dtd.$nonBodyContent[ realName ]
|| CKEDITOR.dtd.$block[ realName ]
|| CKEDITOR.dtd.$listItem[ realName ]
|| CKEDITOR.dtd.$tableContent[ realName ]
|| CKEDITOR.dtd.$nonEditable[ realName ]
|| realName == 'br' );
this.isEmpty = !!CKEDITOR.dtd.$empty[ name ];
this.isUnknown = !CKEDITOR.dtd[ name ];
/** @private */
this._ =
{
isBlockLike : isBlockLike,
hasInlineStarted : this.isEmpty || !isBlockLike
};
};
/**
* Object presentation of CSS style declaration text.
* @param {CKEDITOR.htmlParser.element|String} elementOrStyleText A html parser element or the inline style text.
*/
CKEDITOR.htmlParser.cssStyle = function()
{
var styleText,
arg = arguments[ 0 ],
rules = {};
styleText = arg instanceof CKEDITOR.htmlParser.element ? arg.attributes.style : arg;
// html-encoded quote might be introduced by 'font-family'
// from MS-Word which confused the following regexp. e.g.
//'font-family: "Lucida, Console"'
( styleText || '' )
.replace( /"/g, '"' )
.replace( /\s*([^ :;]+)\s*:\s*([^;]+)\s*(?=;|$)/g,
function( match, name, value )
{
name == 'font-family' && ( value = value.replace( /["']/g, '' ) );
rules[ name.toLowerCase() ] = value;
});
return {
rules : rules,
/**
* Apply the styles onto the specified element or object.
* @param {CKEDITOR.htmlParser.element|CKEDITOR.dom.element|Object} obj
*/
populate : function( obj )
{
var style = this.toString();
if ( style )
{
obj instanceof CKEDITOR.dom.element ?
obj.setAttribute( 'style', style ) :
obj instanceof CKEDITOR.htmlParser.element ?
obj.attributes.style = style :
obj.style = style;
}
},
toString : function()
{
var output = [];
for ( var i in rules )
rules[ i ] && output.push( i, ':', rules[ i ], ';' );
return output.join( '' );
}
};
};
(function()
{
// Used to sort attribute entries in an array, where the first element of
// each object is the attribute name.
var sortAttribs = function( a, b )
{
a = a[0];
b = b[0];
return a < b ? -1 : a > b ? 1 : 0;
};
CKEDITOR.htmlParser.element.prototype =
{
/**
* The node type. This is a constant value set to {@link CKEDITOR.NODE_ELEMENT}.
* @type Number
* @example
*/
type : CKEDITOR.NODE_ELEMENT,
/**
* Adds a node to the element children list.
* @param {Object} node The node to be added. It can be any of of the
* following types: {@link CKEDITOR.htmlParser.element},
* {@link CKEDITOR.htmlParser.text} and
* {@link CKEDITOR.htmlParser.comment}.
* @function
* @example
*/
add : CKEDITOR.htmlParser.fragment.prototype.add,
/**
* Clone this element.
* @returns {CKEDITOR.htmlParser.element} The element clone.
* @example
*/
clone : function()
{
return new CKEDITOR.htmlParser.element( this.name, this.attributes );
},
/**
* Writes the element HTML to a CKEDITOR.htmlWriter.
* @param {CKEDITOR.htmlWriter} writer The writer to which write the HTML.
* @example
*/
writeHtml : function( writer, filter )
{
var attributes = this.attributes;
// Ignore cke: prefixes when writing HTML.
var element = this,
writeName = element.name,
a, newAttrName, value;
var isChildrenFiltered;
/**
* Providing an option for bottom-up filtering order ( element
* children to be pre-filtered before the element itself ).
*/
element.filterChildren = function()
{
if ( !isChildrenFiltered )
{
var writer = new CKEDITOR.htmlParser.basicWriter();
CKEDITOR.htmlParser.fragment.prototype.writeChildrenHtml.call( element, writer, filter );
element.children = new CKEDITOR.htmlParser.fragment.fromHtml( writer.getHtml(), 0, element.clone() ).children;
isChildrenFiltered = 1;
}
};
if ( filter )
{
while ( true )
{
if ( !( writeName = filter.onElementName( writeName ) ) )
return;
element.name = writeName;
if ( !( element = filter.onElement( element ) ) )
return;
element.parent = this.parent;
if ( element.name == writeName )
break;
// If the element has been replaced with something of a
// different type, then make the replacement write itself.
if ( element.type != CKEDITOR.NODE_ELEMENT )
{
element.writeHtml( writer, filter );
return;
}
writeName = element.name;
// This indicate that the element has been dropped by
// filter but not the children.
if ( !writeName )
{
// Fix broken parent refs.
for ( var c = 0, length = this.children.length ; c < length ; c++ )
this.children[ c ].parent = element.parent;
this.writeChildrenHtml.call( element, writer, isChildrenFiltered ? null : filter );
return;
}
}
// The element may have been changed, so update the local
// references.
attributes = element.attributes;
}
// Open element tag.
writer.openTag( writeName, attributes );
// Copy all attributes to an array.
var attribsArray = [];
// Iterate over the attributes twice since filters may alter
// other attributes.
for ( var i = 0 ; i < 2; i++ )
{
for ( a in attributes )
{
newAttrName = a;
value = attributes[ a ];
if ( i == 1 )
attribsArray.push( [ a, value ] );
else if ( filter )
{
while ( true )
{
if ( !( newAttrName = filter.onAttributeName( a ) ) )
{
delete attributes[ a ];
break;
}
else if ( newAttrName != a )
{
delete attributes[ a ];
a = newAttrName;
continue;
}
else
break;
}
if ( newAttrName )
{
if ( ( value = filter.onAttribute( element, newAttrName, value ) ) === false )
delete attributes[ newAttrName ];
else
attributes [ newAttrName ] = value;
}
}
}
}
// Sort the attributes by name.
if ( writer.sortAttributes )
attribsArray.sort( sortAttribs );
// Send the attributes.
var len = attribsArray.length;
for ( i = 0 ; i < len ; i++ )
{
var attrib = attribsArray[ i ];
writer.attribute( attrib[0], attrib[1] );
}
// Close the tag.
writer.openTagClose( writeName, element.isEmpty );
if ( !element.isEmpty )
{
this.writeChildrenHtml.call( element, writer, isChildrenFiltered ? null : filter );
// Close the element.
writer.closeTag( writeName );
}
},
writeChildrenHtml : function( writer, filter )
{
// Send children.
CKEDITOR.htmlParser.fragment.prototype.writeChildrenHtml.apply( this, arguments );
}
};
})();
| 10npsite | trunk/guanli/system/ckeditor/_source/core/htmlparser/element.js | JavaScript | asf20 | 8,005 |
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
(function()
{
var loadedLangs = {};
/**
* @namespace Holds language related functions.
*/
CKEDITOR.lang =
{
/**
* The list of languages available in the editor core.
* @type Object
* @example
* alert( CKEDITOR.lang.en ); // "true"
*/
languages :
{
'af' : 1,
'ar' : 1,
'bg' : 1,
'bn' : 1,
'bs' : 1,
'ca' : 1,
'cs' : 1,
'cy' : 1,
'da' : 1,
'de' : 1,
'el' : 1,
'en-au' : 1,
'en-ca' : 1,
'en-gb' : 1,
'en' : 1,
'eo' : 1,
'es' : 1,
'et' : 1,
'eu' : 1,
'fa' : 1,
'fi' : 1,
'fo' : 1,
'fr-ca' : 1,
'fr' : 1,
'gl' : 1,
'gu' : 1,
'he' : 1,
'hi' : 1,
'hr' : 1,
'hu' : 1,
'is' : 1,
'it' : 1,
'ja' : 1,
'ka' : 1,
'km' : 1,
'ko' : 1,
'lt' : 1,
'lv' : 1,
'mn' : 1,
'ms' : 1,
'nb' : 1,
'nl' : 1,
'no' : 1,
'pl' : 1,
'pt-br' : 1,
'pt' : 1,
'ro' : 1,
'ru' : 1,
'sk' : 1,
'sl' : 1,
'sr-latn' : 1,
'sr' : 1,
'sv' : 1,
'th' : 1,
'tr' : 1,
'uk' : 1,
'vi' : 1,
'zh-cn' : 1,
'zh' : 1
},
/**
* Loads a specific language file, or auto detect it. A callback is
* then called when the file gets loaded.
* @param {String} languageCode The code of the language file to be
* loaded. If null or empty, autodetection will be performed. The
* same happens if the language is not supported.
* @param {String} defaultLanguage The language to be used if
* languageCode is not supported or if the autodetection fails.
* @param {Function} callback A function to be called once the
* language file is loaded. Two parameters are passed to this
* function: the language code and the loaded language entries.
* @example
*/
load : function( languageCode, defaultLanguage, callback )
{
// If no languageCode - fallback to browser or default.
// If languageCode - fallback to no-localized version or default.
if ( !languageCode || !CKEDITOR.lang.languages[ languageCode ] )
languageCode = this.detect( defaultLanguage, languageCode );
if ( !this[ languageCode ] )
{
CKEDITOR.scriptLoader.load( CKEDITOR.getUrl(
'_source/' + // @Packager.RemoveLine
'lang/' + languageCode + '.js' ),
function()
{
callback( languageCode, this[ languageCode ] );
}
, this );
}
else
callback( languageCode, this[ languageCode ] );
},
/**
* Returns the language that best fit the user language. For example,
* suppose that the user language is "pt-br". If this language is
* supported by the editor, it is returned. Otherwise, if only "pt" is
* supported, it is returned instead. If none of the previous are
* supported, a default language is then returned.
* @param {String} defaultLanguage The default language to be returned
* if the user language is not supported.
* @param {String} [probeLanguage] A language code to try to use,
* instead of the browser based autodetection.
* @returns {String} The detected language code.
* @example
* alert( CKEDITOR.lang.detect( 'en' ) ); // e.g., in a German browser: "de"
*/
detect : function( defaultLanguage, probeLanguage )
{
var languages = this.languages;
probeLanguage = probeLanguage || navigator.userLanguage || navigator.language || defaultLanguage;
var parts = probeLanguage
.toLowerCase()
.match( /([a-z]+)(?:-([a-z]+))?/ ),
lang = parts[1],
locale = parts[2];
if ( languages[ lang + '-' + locale ] )
lang = lang + '-' + locale;
else if ( !languages[ lang ] )
lang = null;
CKEDITOR.lang.detect = lang ?
function() { return lang; } :
function( defaultLanguage ) { return defaultLanguage; };
return lang || defaultLanguage;
}
};
})();
| 10npsite | trunk/guanli/system/ckeditor/_source/core/lang.js | JavaScript | asf20 | 4,071 |
/*
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.dom} object, which contains DOM
* manipulation objects and function.
*/
/**
* @namespace DOM manipulation objects, classes and functions.
* @see CKEDITOR.dom.element
* @see CKEDITOR.dom.node
* @example
*/
CKEDITOR.dom =
{};
// PACKAGER_RENAME( CKEDITOR.dom )
| 10npsite | trunk/guanli/system/ckeditor/_source/core/dom.js | JavaScript | asf20 | 487 |
/*
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
* Dutch language.
*/
/**#@+
@type String
@example
*/
/**
* Contains the dictionary of language entries.
* @namespace
*/
CKEDITOR.lang['nl'] =
{
/**
* 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 : 'ltr',
/*
* Screenreader titles. Please note that screenreaders are not always capable
* of reading non-English words. So be careful while translating it.
*/
editorTitle : 'Rich text editor, %1', // MISSING
editorHelp : 'Press ALT 0 for help', // MISSING
// ARIA descriptions.
toolbars : 'Werkbalken',
editor : 'Tekstverwerker',
// Toolbar buttons without dialogs.
source : 'Code',
newPage : 'Nieuwe pagina',
save : 'Opslaan',
preview : 'Voorbeeld',
cut : 'Knippen',
copy : 'Kopiëren',
paste : 'Plakken',
print : 'Printen',
underline : 'Onderstreept',
bold : 'Vet',
italic : 'Cursief',
selectAll : 'Alles selecteren',
removeFormat : 'Opmaak verwijderen',
strike : 'Doorhalen',
subscript : 'Subscript',
superscript : 'Superscript',
horizontalrule : 'Horizontale lijn invoegen',
pagebreak : 'Pagina-einde invoegen',
pagebreakAlt : 'Pagina-einde',
unlink : 'Link verwijderen',
undo : 'Ongedaan maken',
redo : 'Opnieuw uitvoeren',
// Common messages and labels.
common :
{
browseServer : 'Bladeren op server',
url : 'URL',
protocol : 'Protocol',
upload : 'Upload',
uploadSubmit : 'Naar server verzenden',
image : 'Afbeelding',
flash : 'Flash',
form : 'Formulier',
checkbox : 'Aanvinkvakje',
radio : 'Selectievakje',
textField : 'Tekstveld',
textarea : 'Tekstvak',
hiddenField : 'Verborgen veld',
button : 'Knop',
select : 'Selectieveld',
imageButton : 'Afbeeldingsknop',
notSet : '<niet ingevuld>',
id : 'Id',
name : 'Naam',
langDir : 'Schrijfrichting',
langDirLtr : 'Links naar rechts (LTR)',
langDirRtl : 'Rechts naar links (RTL)',
langCode : 'Taalcode',
longDescr : 'Lange URL-omschrijving',
cssClass : 'Stylesheet-klassen',
advisoryTitle : 'Adviserende titel',
cssStyle : 'Stijl',
ok : 'OK',
cancel : 'Annuleren',
close : 'Sluiten',
preview : 'Voorbeeld',
generalTab : 'Algemeen',
advancedTab : 'Geavanceerd',
validateNumberFailed : 'Deze waarde is geen geldig getal.',
confirmNewPage : 'Alle aangebrachte wijzigingen gaan verloren. Weet u zeker dat u een nieuwe pagina wilt openen?',
confirmCancel : 'Enkele opties zijn gewijzigd. Weet u zeker dat u dit dialoogvenster wilt sluiten?',
options : 'Opties',
target : 'Doelvenster',
targetNew : 'Nieuw venster (_blank)',
targetTop : 'Hele venster (_top)',
targetSelf : 'Zelfde venster (_self)',
targetParent : 'Origineel venster (_parent)',
langDirLTR : 'Links naar rechts (LTR)',
langDirRTL : 'Rechts naar links (RTL)',
styles : 'Stijl',
cssClasses : 'Stylesheet klassen',
width : 'Breedte',
height : 'Hoogte',
align : 'Uitlijning',
alignLeft : 'Links',
alignRight : 'Rechts',
alignCenter : 'Centreren',
alignTop : 'Boven',
alignMiddle : 'Midden',
alignBottom : 'Onder',
invalidHeight : 'De hoogte moet een getal zijn.',
invalidWidth : 'De breedte moet een getal zijn.',
invalidCssLength : 'Waarde in veld "%1" moet een positief nummer zijn, met of zonder een geldige CSS meeteenheid (px, %, in, cm, mm, em, ex, pt of pc).',
invalidHtmlLength : 'Waarde in veld "%1" moet een positief nummer zijn, met of zonder een geldige HTML meeteenheid (px of %).',
invalidInlineStyle : 'Waarde voor de online stijl moet bestaan uit een of meerdere tupels met het formaat "naam : waarde", gescheiden door puntkomma\'s.',
cssLengthTooltip : 'Geef een nummer in voor een waarde in pixels of geef een nummer in met een geldige CSS eenheid (px, %, in, cm, mm, em, ex, pt, of pc).',
// Put the voice-only part of the label in the span.
unavailable : '%1<span class="cke_accessibility">, niet beschikbaar</span>'
},
contextmenu :
{
options : 'Contextmenu opties'
},
// Special char dialog.
specialChar :
{
toolbar : 'Speciaal teken invoegen',
title : 'Selecteer speciaal teken',
options : 'Speciale tekens opties'
},
// Link dialog.
link :
{
toolbar : 'Link invoegen/wijzigen',
other : '<ander>',
menu : 'Link wijzigen',
title : 'Link',
info : 'Linkomschrijving',
target : 'Doelvenster',
upload : 'Upload',
advanced : 'Geavanceerd',
type : 'Linktype',
toUrl : 'URL',
toAnchor : 'Interne link in pagina',
toEmail : 'E-mail',
targetFrame : '<frame>',
targetPopup : '<popupvenster>',
targetFrameName : 'Naam doelframe',
targetPopupName : 'Naam popupvenster',
popupFeatures : 'Instellingen popupvenster',
popupResizable : 'Herschaalbaar',
popupStatusBar : 'Statusbalk',
popupLocationBar: 'Locatiemenu',
popupToolbar : 'Werkbalk',
popupMenuBar : 'Menubalk',
popupFullScreen : 'Volledig scherm (IE)',
popupScrollBars : 'Schuifbalken',
popupDependent : 'Afhankelijk (Netscape)',
popupLeft : 'Positie links',
popupTop : 'Positie boven',
id : 'Id',
langDir : 'Schrijfrichting',
langDirLTR : 'Links naar rechts (LTR)',
langDirRTL : 'Rechts naar links (RTL)',
acccessKey : 'Toegangstoets',
name : 'Naam',
langCode : 'Taalcode',
tabIndex : 'Tabvolgorde',
advisoryTitle : 'Adviserende titel',
advisoryContentType : 'Aanbevolen content-type',
cssClasses : 'Stylesheet-klassen',
charset : 'Karakterset van gelinkte bron',
styles : 'Stijl',
rel : 'Relatie',
selectAnchor : 'Kies een interne link',
anchorName : 'Op naam interne link',
anchorId : 'Op kenmerk interne link',
emailAddress : 'E-mailadres',
emailSubject : 'Onderwerp bericht',
emailBody : 'Inhoud bericht',
noAnchors : '(Geen interne links in document gevonden)',
noUrl : 'Geef de link van de URL',
noEmail : 'Geef een e-mailadres'
},
// Anchor dialog
anchor :
{
toolbar : 'Interne link',
menu : 'Eigenschappen interne link',
title : 'Eigenschappen interne link',
name : 'Naam interne link',
errorName : 'Geef de naam van de interne link op',
remove : 'Interne link verwijderen'
},
// List style dialog
list:
{
numberedTitle : 'Eigenschappen genummerde lijst',
bulletedTitle : 'Eigenschappen lijst met opsommingstekens',
type : 'Type',
start : 'Start',
validateStartNumber :'Startnummer van de lijst moet een heel nummer zijn.',
circle : 'Cirkel',
disc : 'Schijf',
square : 'Vierkant',
none : 'Geen',
notset : '<niet gezet>',
armenian : 'Armeense nummering',
georgian : 'Georgische nummering (an, ban, gan, etc.)',
lowerRoman : 'Romeins kleine letters (i, ii, iii, iv, v, etc.)',
upperRoman : 'Romeinse hoofdletters (I, II, III, IV, V, etc.)',
lowerAlpha : 'Kleine letters (a, b, c, d, e, etc.)',
upperAlpha : 'Hoofdletters (A, B, C, D, E, etc.)',
lowerGreek : 'Grieks kleine letters (alpha, beta, gamma, etc.)',
decimal : 'Cijfers (1, 2, 3, etc.)',
decimalLeadingZero : 'Cijfers beginnen met nul (01, 02, 03, etc.)'
},
// Find And Replace Dialog
findAndReplace :
{
title : 'Zoeken en vervangen',
find : 'Zoeken',
replace : 'Vervangen',
findWhat : 'Zoeken naar:',
replaceWith : 'Vervangen met:',
notFoundMsg : 'De opgegeven tekst is niet gevonden.',
findOptions : 'Zoekopties',
matchCase : 'Hoofdlettergevoelig',
matchWord : 'Hele woord moet voorkomen',
matchCyclic : 'Doorlopend zoeken',
replaceAll : 'Alles vervangen',
replaceSuccessMsg : '%1 resultaten vervangen.'
},
// Table Dialog
table :
{
toolbar : 'Tabel',
title : 'Eigenschappen tabel',
menu : 'Eigenschappen tabel',
deleteTable : 'Tabel verwijderen',
rows : 'Rijen',
columns : 'Kolommen',
border : 'Breedte rand',
widthPx : 'pixels',
widthPc : 'procent',
widthUnit : 'eenheid breedte',
cellSpace : 'Afstand tussen cellen',
cellPad : 'Ruimte in de cel',
caption : 'Naam',
summary : 'Samenvatting',
headers : 'Koppen',
headersNone : 'Geen',
headersColumn : 'Eerste kolom',
headersRow : 'Eerste rij',
headersBoth : 'Beide',
invalidRows : 'Het aantal rijen moet een getal zijn groter dan 0.',
invalidCols : 'Het aantal kolommen moet een getal zijn groter dan 0.',
invalidBorder : 'De rand breedte moet een getal zijn.',
invalidWidth : 'De tabelbreedte moet een getal zijn.',
invalidHeight : 'De tabelhoogte moet een getal zijn.',
invalidCellSpacing : 'Afstand tussen cellen moet een getal zijn.',
invalidCellPadding : 'Ruimte in de cel moet een getal zijn.',
cell :
{
menu : 'Cel',
insertBefore : 'Voeg cel in voor',
insertAfter : 'Voeg cel in achter',
deleteCell : 'Cellen verwijderen',
merge : 'Cellen samenvoegen',
mergeRight : 'Voeg samen naar rechts',
mergeDown : 'Voeg samen naar beneden',
splitHorizontal : 'Splits cellen horizontaal',
splitVertical : 'Splits cellen verticaal',
title : 'Cel eigenschappen',
cellType : 'Cel type',
rowSpan : 'Rijen samenvoegen',
colSpan : 'Kolommen samenvoegen',
wordWrap : 'Automatische terugloop',
hAlign : 'Horizontale uitlijning',
vAlign : 'Verticale uitlijning',
alignBaseline : 'Basislijn',
bgColor : 'Achtergrondkleur',
borderColor : 'Kleur rand',
data : 'Inhoud',
header : 'Kop',
yes : 'Ja',
no : 'Nee',
invalidWidth : 'De celbreedte moet een getal zijn.',
invalidHeight : 'De celhoogte moet een getal zijn.',
invalidRowSpan : 'Rijen samenvoegen moet een heel getal zijn.',
invalidColSpan : 'Kolommen samenvoegen moet een heel getal zijn.',
chooseColor : 'Kies'
},
row :
{
menu : 'Rij',
insertBefore : 'Voeg rij in voor',
insertAfter : 'Voeg rij in achter',
deleteRow : 'Rijen verwijderen'
},
column :
{
menu : 'Kolom',
insertBefore : 'Voeg kolom in voor',
insertAfter : 'Voeg kolom in achter',
deleteColumn : 'Kolommen verwijderen'
}
},
// Button Dialog.
button :
{
title : 'Eigenschappen knop',
text : 'Tekst (waarde)',
type : 'Soort',
typeBtn : 'Knop',
typeSbm : 'Versturen',
typeRst : 'Leegmaken'
},
// Checkbox and Radio Button Dialogs.
checkboxAndRadio :
{
checkboxTitle : 'Eigenschappen aanvinkvakje',
radioTitle : 'Eigenschappen selectievakje',
value : 'Waarde',
selected : 'Geselecteerd'
},
// Form Dialog.
form :
{
title : 'Eigenschappen formulier',
menu : 'Eigenschappen formulier',
action : 'Actie',
method : 'Methode',
encoding : 'Codering'
},
// Select Field Dialog.
select :
{
title : 'Eigenschappen selectieveld',
selectInfo : 'Informatie',
opAvail : 'Beschikbare opties',
value : 'Waarde',
size : 'Grootte',
lines : 'Regels',
chkMulti : 'Gecombineerde selecties toestaan',
opText : 'Tekst',
opValue : 'Waarde',
btnAdd : 'Toevoegen',
btnModify : 'Wijzigen',
btnUp : 'Omhoog',
btnDown : 'Omlaag',
btnSetValue : 'Als geselecteerde waarde instellen',
btnDelete : 'Verwijderen'
},
// Textarea Dialog.
textarea :
{
title : 'Eigenschappen tekstvak',
cols : 'Kolommen',
rows : 'Rijen'
},
// Text Field Dialog.
textfield :
{
title : 'Eigenschappen tekstveld',
name : 'Naam',
value : 'Waarde',
charWidth : 'Breedte (tekens)',
maxChars : 'Maximum aantal tekens',
type : 'Soort',
typeText : 'Tekst',
typePass : 'Wachtwoord'
},
// Hidden Field Dialog.
hidden :
{
title : 'Eigenschappen verborgen veld',
name : 'Naam',
value : 'Waarde'
},
// Image Dialog.
image :
{
title : 'Eigenschappen afbeelding',
titleButton : 'Eigenschappen afbeeldingsknop',
menu : 'Eigenschappen afbeelding',
infoTab : 'Informatie afbeelding',
btnUpload : 'Naar server verzenden',
upload : 'Upload',
alt : 'Alternatieve tekst',
lockRatio : 'Afmetingen vergrendelen',
resetSize : 'Afmetingen resetten',
border : 'Rand',
hSpace : 'HSpace',
vSpace : 'VSpace',
alertUrl : 'Geef de URL van de afbeelding',
linkTab : 'Link',
button2Img : 'Wilt u de geselecteerde afbeeldingsknop vervangen door een eenvoudige afbeelding?',
img2Button : 'Wilt u de geselecteerde afbeelding vervangen door een afbeeldingsknop?',
urlMissing : 'De URL naar de afbeelding ontbreekt.',
validateBorder : 'Rand moet een heel nummer zijn.',
validateHSpace : 'HSpace moet een heel nummer zijn.',
validateVSpace : 'VSpace moet een heel nummer zijn.'
},
// Flash Dialog
flash :
{
properties : 'Eigenschappen Flash',
propertiesTab : 'Eigenschappen',
title : 'Eigenschappen Flash',
chkPlay : 'Automatisch afspelen',
chkLoop : 'Herhalen',
chkMenu : 'Flashmenu\'s inschakelen',
chkFull : 'Schermvullend toestaan',
scale : 'Schaal',
scaleAll : 'Alles tonen',
scaleNoBorder : 'Geen rand',
scaleFit : 'Precies passend',
access : 'Script toegang',
accessAlways : 'Altijd',
accessSameDomain: 'Zelfde domeinnaam',
accessNever : 'Nooit',
alignAbsBottom : 'Absoluut-onder',
alignAbsMiddle : 'Absoluut-midden',
alignBaseline : 'Basislijn',
alignTextTop : 'Boven tekst',
quality : 'Kwaliteit',
qualityBest : 'Beste',
qualityHigh : 'Hoog',
qualityAutoHigh : 'Automatisch hoog',
qualityMedium : 'Gemiddeld',
qualityAutoLow : 'Automatisch laag',
qualityLow : 'Laag',
windowModeWindow: 'Venster',
windowModeOpaque: 'Ondoorzichtig',
windowModeTransparent : 'Doorzichtig',
windowMode : 'Venster modus',
flashvars : 'Variabelen voor Flash',
bgcolor : 'Achtergrondkleur',
hSpace : 'HSpace',
vSpace : 'VSpace',
validateSrc : 'De URL mag niet leeg zijn.',
validateHSpace : 'De HSpace moet een getal zijn.',
validateVSpace : 'De VSpace moet een getal zijn.'
},
// Speller Pages Dialog
spellCheck :
{
toolbar : 'Spellingscontrole',
title : 'Spellingscontrole',
notAvailable : 'Excuses, deze dienst is momenteel niet beschikbaar.',
errorLoading : 'Er is een fout opgetreden bij het laden van de dienst: %s.',
notInDic : 'Niet in het woordenboek',
changeTo : 'Wijzig in',
btnIgnore : 'Negeren',
btnIgnoreAll : 'Alles negeren',
btnReplace : 'Vervangen',
btnReplaceAll : 'Alles vervangen',
btnUndo : 'Ongedaan maken',
noSuggestions : '- Geen suggesties -',
progress : 'Bezig met spellingscontrole...',
noMispell : 'Klaar met spellingscontrole: geen fouten gevonden',
noChanges : 'Klaar met spellingscontrole: geen woorden aangepast',
oneChange : 'Klaar met spellingscontrole: één woord aangepast',
manyChanges : 'Klaar met spellingscontrole: %1 woorden aangepast',
ieSpellDownload : 'De spellingscontrole is niet geïnstalleerd. Wilt u deze nu downloaden?'
},
smiley :
{
toolbar : 'Smiley',
title : 'Smiley invoegen',
options : 'Smiley opties'
},
elementsPath :
{
eleLabel : 'Elementenpad',
eleTitle : '%1 element'
},
numberedlist : 'Genummerde lijst',
bulletedlist : 'Opsomming',
indent : 'Inspringing vergroten',
outdent : 'Inspringing verkleinen',
justify :
{
left : 'Links uitlijnen',
center : 'Centreren',
right : 'Rechts uitlijnen',
block : 'Uitvullen'
},
blockquote : 'Citaatblok',
clipboard :
{
title : 'Plakken',
cutError : 'De beveiligingsinstelling van de browser verhinderen het automatisch knippen. Gebruik de sneltoets Ctrl/Cmd+X van het toetsenbord.',
copyError : 'De beveiligingsinstelling van de browser verhinderen het automatisch kopiëren. Gebruik de sneltoets Ctrl/Cmd+C van het toetsenbord.',
pasteMsg : 'Plak de tekst in het volgende vak gebruikmakend van uw toetsenbord (<strong>Ctrl/Cmd+V</strong>) en klik op OK.',
securityMsg : 'Door de beveiligingsinstellingen van uw browser is het niet mogelijk om direct vanuit het klembord in de editor te plakken. Middels opnieuw plakken in dit venster kunt u de tekst alsnog plakken in de editor.',
pasteArea : 'Plakgebied'
},
pastefromword :
{
confirmCleanup : 'De tekst die u plakte lijkt gekopieerd te zijn vanuit Word. Wilt u de tekst opschonen voordat deze geplakt wordt?',
toolbar : 'Plakken als Word-gegevens',
title : 'Plakken als Word-gegevens',
error : 'Het was niet mogelijk om de geplakte tekst op te schonen door een interne fout'
},
pasteText :
{
button : 'Plakken als platte tekst',
title : 'Plakken als platte tekst'
},
templates :
{
button : 'Sjablonen',
title : 'Inhoud sjablonen',
options : 'Template opties',
insertOption : 'Vervang de huidige inhoud',
selectPromptMsg : 'Selecteer het sjabloon dat in de editor geopend moet worden (de actuele inhoud gaat verloren):',
emptyListMsg : '(Geen sjablonen gedefinieerd)'
},
showBlocks : 'Toon blokken',
stylesCombo :
{
label : 'Stijl',
panelTitle : 'Opmaakstijlen',
panelTitle1 : 'Blok stijlen',
panelTitle2 : 'Inline stijlen',
panelTitle3 : 'Object stijlen'
},
format :
{
label : 'Opmaak',
panelTitle : 'Opmaak',
tag_p : 'Normaal',
tag_pre : 'Met opmaak',
tag_address : 'Adres',
tag_h1 : 'Kop 1',
tag_h2 : 'Kop 2',
tag_h3 : 'Kop 3',
tag_h4 : 'Kop 4',
tag_h5 : 'Kop 5',
tag_h6 : 'Kop 6',
tag_div : 'Normaal (DIV)'
},
div :
{
title : 'Div aanmaken',
toolbar : 'Div aanmaken',
cssClassInputLabel : 'Stylesheet klassen',
styleSelectLabel : 'Stijl',
IdInputLabel : 'Id',
languageCodeInputLabel : ' Taalcode',
inlineStyleInputLabel : 'Inline stijl',
advisoryTitleInputLabel : 'Adviserende titel',
langDirLabel : 'Schrijfrichting',
langDirLTRLabel : 'Links naar rechts (LTR)',
langDirRTLLabel : 'Rechts naar links (RTL)',
edit : 'Div wijzigen',
remove : 'Div verwijderen'
},
iframe :
{
title : 'IFrame eigenschappen',
toolbar : 'IFrame',
noUrl : 'Geef de IFrame URL in',
scrolling : 'Scrollbalken inschakelen',
border : 'Framerand tonen'
},
font :
{
label : 'Lettertype',
voiceLabel : 'Lettertype',
panelTitle : 'Lettertype'
},
fontSize :
{
label : 'Lettergrootte',
voiceLabel : 'Lettergrootte',
panelTitle : 'Lettergrootte'
},
colorButton :
{
textColorTitle : 'Tekstkleur',
bgColorTitle : 'Achtergrondkleur',
panelTitle : 'Kleuren',
auto : 'Automatisch',
more : 'Meer kleuren...'
},
colors :
{
'000' : 'Zwart',
'800000' : 'Kastanjebruin',
'8B4513' : 'Chocoladebruin',
'2F4F4F' : 'Donkerleigrijs',
'008080' : 'Blauwgroen',
'000080' : 'Marine',
'4B0082' : 'Indigo',
'696969' : 'Donkergrijs',
'B22222' : 'Baksteen',
'A52A2A' : 'Bruin',
'DAA520' : 'Donkergeel',
'006400' : 'Donkergroen',
'40E0D0' : 'Turquoise',
'0000CD' : 'Middenblauw',
'800080' : 'Paars',
'808080' : 'Grijs',
'F00' : 'Rood',
'FF8C00' : 'Donkeroranje',
'FFD700' : 'Goud',
'008000' : 'Groen',
'0FF' : 'Cyaan',
'00F' : 'Blauw',
'EE82EE' : 'Violet',
'A9A9A9' : 'Donkergrijs',
'FFA07A' : 'Lichtzalm',
'FFA500' : 'Oranje',
'FFFF00' : 'Geel',
'00FF00' : 'Felgroen',
'AFEEEE' : 'Lichtturquoise',
'ADD8E6' : 'Lichtblauw',
'DDA0DD' : 'Pruim',
'D3D3D3' : 'Lichtgrijs',
'FFF0F5' : 'Linnen',
'FAEBD7' : 'Ivoor',
'FFFFE0' : 'Lichtgeel',
'F0FFF0' : 'Honingdauw',
'F0FFFF' : 'Azuur',
'F0F8FF' : 'Licht hemelsblauw',
'E6E6FA' : 'Lavendel',
'FFF' : 'Wit'
},
scayt :
{
title : 'Controleer de spelling tijdens het typen',
opera_title : 'Niet ondersteund door Opera',
enable : 'SCAYT inschakelen',
disable : 'SCAYT uitschakelen',
about : 'Over SCAYT',
toggle : 'SCAYT in/uitschakelen',
options : 'Opties',
langs : 'Talen',
moreSuggestions : 'Meer suggesties',
ignore : 'Negeren',
ignoreAll : 'Alles negeren',
addWord : 'Woord toevoegen',
emptyDic : 'De naam van het woordenboek mag niet leeg zijn.',
optionsTab : 'Opties',
allCaps : 'Negeer woorden helemaal in hoofdletters',
ignoreDomainNames : 'Negeer domeinnamen',
mixedCase : 'Negeer woorden met hoofd- en kleine letters',
mixedWithDigits : 'Negeer woorden met cijfers',
languagesTab : 'Talen',
dictionariesTab : 'Woordenboeken',
dic_field_name : 'Naam woordenboek',
dic_create : 'Aanmaken',
dic_restore : 'Terugzetten',
dic_delete : 'Verwijderen',
dic_rename : 'Hernoemen',
dic_info : 'Initieel wordt het gebruikerswoordenboek opgeslagen in een cookie. Cookies zijn echter beperkt in grootte. Zodra het gebruikerswoordenboek het punt bereikt waarop het niet meer in een cookie opgeslagen kan worden, dan wordt het woordenboek op de server opgeslagen. Om je persoonlijke woordenboek op je eigen server op te slaan, moet je een mapnaam opgeven. Indien je al een woordenboek hebt opgeslagen, typ dan de naam en klik op de Terugzetten knop.',
aboutTab : 'Over'
},
about :
{
title : 'Over CKEditor',
dlgTitle : 'Over CKEditor',
help : 'Bekijk de $1 voor hulp.',
userGuide : 'CKEditor gebruiksaanwijzing',
moreInfo : 'Voor licentie informatie, bezoek onze website:',
copy : 'Copyright © $1. Alle rechten voorbehouden.'
},
maximize : 'Maximaliseren',
minimize : 'Minimaliseren',
fakeobjects :
{
anchor : 'Interne link',
flash : 'Flash animatie',
iframe : 'IFrame',
hiddenfield : 'Verborgen veld',
unknown : 'Onbekend object'
},
resize : 'Sleep om te herschalen',
colordialog :
{
title : 'Selecteer kleur',
options : 'Kleuropties',
highlight : 'Actief',
selected : 'Geselecteerde kleur',
clear : 'Wissen'
},
toolbarCollapse : 'Werkbalk inklappen',
toolbarExpand : 'Werkbalk uitklappen',
toolbarGroups :
{
document : 'Document',
clipboard : 'Klembord/Ongedaan maken',
editing : 'Bewerken',
forms : 'Formulieren',
basicstyles : 'Basisstijlen',
paragraph : 'Paragraaf',
links : 'Links',
insert : 'Invoegen',
styles : 'Stijlen',
colors : 'Kleuren',
tools : 'Toepassingen'
},
bidi :
{
ltr : 'Schrijfrichting van links naar rechts',
rtl : 'Schrijfrichting van rechts naar links'
},
docprops :
{
label : 'Documenteigenschappen',
title : 'Documenteigenschappen',
design : 'Ontwerp',
meta : 'Meta tags',
chooseColor : 'Kies',
other : 'Anders...',
docTitle : 'Paginatitel',
charset : 'Tekencodering',
charsetOther : 'Andere tekencodering',
charsetASCII : 'ASCII',
charsetCE : 'Centraal Europees',
charsetCT : 'Traditioneel Chinees (Big5)',
charsetCR : 'Cyrillisch',
charsetGR : 'Grieks',
charsetJP : 'Japans',
charsetKR : 'Koreaans',
charsetTR : 'Turks',
charsetUN : 'Unicode (UTF-8)',
charsetWE : 'West Europees',
docType : 'Documenttype-definitie',
docTypeOther : 'Andere documenttype-definitie',
xhtmlDec : 'XHTML declaratie invoegen',
bgColor : 'Achtergrondkleur',
bgImage : 'Achtergrondafbeelding URL',
bgFixed : 'Niet-scrollend (gefixeerde) achtergrond',
txtColor : 'Tekstkleur',
margin : 'Pagina marges',
marginTop : 'Boven',
marginLeft : 'Links',
marginRight : 'Rechts',
marginBottom : 'Onder',
metaKeywords : 'Trefwoorden voor indexering (komma-gescheiden)',
metaDescription : 'Documentbeschrijving',
metaAuthor : 'Auteur',
metaCopyright : 'Auteursrechten',
previewHtml : '<p>Dit is <strong>voorbeeld tekst</strong>. Je gebruikt <a href="javascript:void(0)">CKEditor</a>.</p>'
}
};
| 10npsite | trunk/guanli/system/ckeditor/_source/lang/nl.js | JavaScript | asf20 | 24,343 |
/*
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['ug'] =
{
/**
* 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 : 'Rich text editor, %1', // MISSING
editorHelp : 'Press ALT 0 for help', // MISSING
// 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 : 'Flash',
form : 'جەدۋەل',
checkbox : 'كۆپ تاللاش رامكىسى',
radio : 'يەككە تاللاش توپچىسى',
textField : 'يەككە قۇر تېكىست',
textarea : 'كۆپ قۇر تېكىست',
hiddenField : 'يوشۇرۇن دائىرە',
button : 'توپچا',
select : 'تىزىم/تىزىملىك',
imageButton : 'سۈرەت دائىرە',
notSet : '‹تەڭشەلمىگەن›',
id : '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 : 'ئاستى',
invalidHeight : 'ئېگىزلىك چوقۇم رەقەم پىچىمىدا بولۇشى زۆرۈر',
invalidWidth : 'كەڭلىك چوقۇم رەقەم پىچىمىدا بولۇشى زۆرۈر',
invalidCssLength : 'بۇ سۆز بۆلىكى چوقۇم مۇۋاپىق بولغان CSS ئۇزۇنلۇق قىممىتى بولۇشى زۆرۈر، بىرلىكى (px, %, in, cm, mm, em, ex, pt ياكى pc)',
invalidHtmlLength : 'بۇ سۆز بۆلىكى چوقۇم بىرىكمە HTML ئۇزۇنلۇق قىممىتى بولۇشى كېرەك. ئۆز ئىچىگە ئالىدىغان بىرلىك (px ياكى %)',
invalidInlineStyle : 'ئىچكى باغلانما ئۇسلۇبى چوقۇم چېكىتلىك پەش بىلەن ئايرىلغان بىر ياكى كۆپ «خاسلىق ئاتى:خاسلىق قىممىتى» پىچىمىدا بولۇشى لازىم',
cssLengthTooltip : 'بۇ سۆز بۆلىكى بىرىكمە 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 : 'تەۋە (NS)',
popupLeft : 'سول',
popupTop : 'ئوڭ',
id : 'ID',
langDir : 'تىل يۆنىلىشى',
langDirLTR : 'سولدىن ئوڭغا (LTR)',
langDirRTL : 'ئوڭدىن سولغا (RTL)',
acccessKey : 'زىيارەت كۇنۇپكا',
name : 'ئات',
langCode : 'تىل كودى',
tabIndex : 'Tab تەرتىپى',
advisoryTitle : 'ماۋزۇ',
advisoryContentType : 'مەزمۇن تىپى',
cssClasses : 'ئۇسلۇب خىلى ئاتى',
charset : 'ھەرپ كودلىنىشى',
styles : 'قۇر ئىچىدىكى ئۇسلۇبى',
rel : 'باغلىنىش',
selectAnchor : 'بىر لەڭگەرلىك نۇقتا تاللاڭ',
anchorName : 'لەڭگەرلىك نۇقتا ئاتى بويىچە',
anchorId : 'لەڭگەرلىك نۇقتا ID سى بويىچە',
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 : 'بەلگىلەنگەن ئىستون سانى چوقۇم نۆلدىن چوڭ بولىدۇ',
invalidCols : 'بەلگىلەنگەن قۇر سانى چوقۇم نۆلدىن چوڭ بولىدۇ',
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 : 'Flash خاسلىق',
propertiesTab : 'خاسلىق',
title : 'ماۋزۇ',
chkPlay : 'ئۆزلۈكىدىن چال',
chkLoop : 'دەۋرىي',
chkMenu : 'Flash تىزىملىكنى قوزغات',
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 : 'Flash ئۆزگەرگۈچى',
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>) نى ئىشلىتىپ مەزمۇننى تۆۋەندىكى رامكىغا كۆچۈرۈڭ، ئاندىن <STRONG>جەزملە</STRONG>نى بېسىڭ',
securityMsg : 'توركۆرگۈڭىزنىڭ بىخەتەرلىك تەڭشىكى سەۋەبىدىن بۇ تەھرىرلىگۈچ چاپلاش تاختىسىدىكى مەزمۇننى بىۋاستە زىيارەت قىلالمايدۇ، بۇ كۆزنەكتە قايتا بىر قېتىم چاپلىشىڭىز كېرەك.',
pasteArea : 'چاپلاش دائىرىسى'
},
pastefromword :
{
confirmCleanup : 'سىز چاپلىماقچى بولغان مەزمۇن MS Word تىن كەلگەندەك قىلىدۇ، MS Word پىچىمىنى تازىلىۋەتكەندىن كېيىن ئاندىن چاپلامدۇ؟',
toolbar : 'MS Word تىن چاپلا',
title : 'MS Word تىن چاپلا',
error : 'ئىچكى خاتالىق سەۋەبىدىن چاپلايدىغان سانلىق مەلۇماتنى تازىلىيالمايدۇ'
},
pasteText :
{
button : 'پىچىمى يوق تېكىست سۈپىتىدە چاپلا',
title : 'پىچىمى يوق تېكىست سۈپىتىدە چاپلا'
},
templates :
{
button : 'قېلىپ',
title : 'مەزمۇن قېلىپى',
options : 'قېلىپ تاللانمىسى',
insertOption : 'نۆۋەتتىكى مەزمۇننى ئالماشتۇر',
selectPromptMsg : 'تەھرىرلىگۈچنىڭ مەزمۇن قېلىپىنى تاللاڭ:',
emptyListMsg : '(قېلىپ يوق)'
},
showBlocks : 'بۆلەكنى كۆرسەت',
stylesCombo :
{
label : 'ئۇسلۇب',
panelTitle : 'ئۇسلۇب',
panelTitle1 : 'بۆلەك دەرىجىسىدىكى ئېلېمېنت ئۇسلۇبى',
panelTitle2 : 'ئىچكى باغلانما ئېلېمېنت ئۇسلۇبى',
panelTitle3 : 'نەڭ (Object) ئېلېمېنت ئۇسلۇبى'
},
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)'
},
div :
{
title : 'DIV قاچا قۇر',
toolbar : 'DIV قاچا قۇر',
cssClassInputLabel : 'ئۇسلۇب تىپىنىڭ ئاتى',
styleSelectLabel : 'ئۇسلۇب',
IdInputLabel : 'ID',
languageCodeInputLabel : 'تىل كودى',
inlineStyleInputLabel : 'قۇر ئىچىدىكى ئۇسلۇبى',
advisoryTitleInputLabel : 'ماۋزۇ',
langDirLabel : 'تىل يۆنىلىشى',
langDirLTRLabel : 'سولدىن ئوڭغا (LTR)',
langDirRTLLabel : 'ئوڭدىن سولغا (RTL)',
edit : 'DIV تەھرىر',
remove : 'DIV چىقىرىۋەت'
},
iframe :
{
title : 'IFrame خاسلىق',
toolbar : 'IFrame ',
noUrl : 'كاندۇكنىڭ ئادرېسى(Url)نى كىرگۈزۈڭ',
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' : 'Lime', // MISSING
'AFEEEE' : 'سۇس ھاۋا رەڭ',
'ADD8E6' : 'ئوچۇق كۆك',
'DDA0DD' : 'قىزغۇچ بىنەپشە',
'D3D3D3' : 'سۇس كۆكۈچ كۈلرەڭ',
'FFF0F5' : 'سۇس قىزغۇچ بىنەپشە',
'FAEBD7' : 'Antique White', // MISSING
'FFFFE0' : 'سۇس سېرىق',
'F0FFF0' : 'Honeydew', // MISSING
'F0FFFF' : 'ئاسمان كۆكى',
'F0F8FF' : 'سۇس كۆك',
'E6E6FA' : 'سۇس بىنەپشە',
'FFF' : 'ئاق'
},
scayt :
{
title : 'شۇئان ئىملا تەكشۈر',
opera_title : 'Opera توركۆرگۈنى قوللىمايدۇ',
enable : 'شۇئان ئىملا تەكشۈرۈشنى قوزغات',
disable : 'شۇئان ئىملا تەكشۈرۈشنى چەكلە',
about : 'شۇئان ئىملا تەكشۈرۈش ھەققىدە',
toggle : 'شۇئان ئىملا تەكشۈرۈشنى ۋاقىتلىق توختات/قوزغات',
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 غا ساقلىنىدۇ ئەمما Cookie نىڭ سىغىمى چەكلىك بولغاچقا، ئىشلەتكۈچى لۇغىتى كۆپىيىپ Cookie چەكلىمىسىدىن ئېشىپ كەتكەندە ساقلىغىلى بولمايدۇ، بۇ چاغدا لۇغىتىڭىزنى مۇلازىمېتىرىمىزغا ساقلىسىڭىز بولىدۇ. شەخسىي لۇغىتىڭىزنى مۇلازىمېتىرىمىزغا ساقلىماقچى بولسىڭىز لۇغىتىڭىزگە ئاتتىن بىرنى قويۇڭ، ئەگەر مۇلازىمتېرىمىزدا سىزنىڭ لۇغىتىڭىزدىن بىرسى بولسا لۇغەت ئاتىنى كىرگۈزۈپ ئەسلىگە قايتۇر توپچىسىنى بېسىڭ.',
aboutTab : 'ھەققىدە'
},
about :
{
title : 'CKEditor ھەققىدە',
dlgTitle : 'CKEditor ھەققىدە',
help : '$1 نى زىيارەت قىلىپ ياردەمگە ئېرىشىڭ',
userGuide : 'CKEditor ئىشلەتكۈچى قوللانمىسى',
moreInfo : 'تور تۇرايىمىزنى زىيارەت قىلىپ كېلىشىمگە ئائىت تېخىمۇ كۆپ ئۇچۇرغا ئېرىشىڭ',
copy : 'Copyright © $1. نەشر ھوقۇقىغا ئىگە'
},
maximize : 'چوڭايت',
minimize : 'كىچىكلەت',
fakeobjects :
{
anchor : 'لەڭگەرلىك نۇقتا',
flash : '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 : 'تەگلىك سۈرەت',
bgFixed : 'تەگلىك سۈرەتنى دومىلاتما',
txtColor : 'تېكىست رەڭگى',
margin : 'بەت گىرۋەك',
marginTop : 'ئۈستى',
marginLeft : 'سول',
marginRight : 'ئوڭ',
marginBottom : 'ئاستى',
metaKeywords : 'بەت يۈزى ئىندېكىس ھالقىلىق سۆزى (ئىنگلىزچە پەش [,] بىلەن ئايرىلىدۇ)',
metaDescription : 'بەت يۈزى چۈشەندۈرۈشى',
metaAuthor : 'يازغۇچى',
metaCopyright : 'نەشر ھوقۇقى',
previewHtml : '<p>بۇ بىر قىسىم <strong>كۆرسەتمىگە ئىشلىتىدىغان تېكىست </strong>سىز نۆۋەتتە <a href=\\\\"javascript:void(0)\\\\">CKEditor</a>.نى ئىشلىتىۋاتىسىز.</p>'
}
};
| 10npsite | trunk/guanli/system/ckeditor/_source/lang/ug.js | JavaScript | asf20 | 33,212 |
/*
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
* Italian language.
*/
/**#@+
@type String
@example
*/
/**
* Contains the dictionary of language entries.
* @namespace
*/
CKEDITOR.lang['it'] =
{
/**
* 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 : 'ltr',
/*
* Screenreader titles. Please note that screenreaders are not always capable
* of reading non-English words. So be careful while translating it.
*/
editorTitle : 'Editor di testo Rich Text, %1',
editorHelp : 'Premi ALT 0 per aiuto',
// ARIA descriptions.
toolbars : 'Editor toolbar',
editor : 'Rich Text Editor',
// Toolbar buttons without dialogs.
source : 'Codice Sorgente',
newPage : 'Nuova pagina vuota',
save : 'Salva',
preview : 'Anteprima',
cut : 'Taglia',
copy : 'Copia',
paste : 'Incolla',
print : 'Stampa',
underline : 'Sottolineato',
bold : 'Grassetto',
italic : 'Corsivo',
selectAll : 'Seleziona tutto',
removeFormat : 'Elimina formattazione',
strike : 'Barrato',
subscript : 'Pedice',
superscript : 'Apice',
horizontalrule : 'Inserisci riga orizzontale',
pagebreak : 'Inserisci interruzione di pagina',
pagebreakAlt : 'Interruzione di pagina',
unlink : 'Elimina collegamento',
undo : 'Annulla',
redo : 'Ripristina',
// Common messages and labels.
common :
{
browseServer : 'Cerca sul server',
url : 'URL',
protocol : 'Protocollo',
upload : 'Carica',
uploadSubmit : 'Invia al server',
image : 'Immagine',
flash : 'Oggetto Flash',
form : 'Modulo',
checkbox : 'Checkbox',
radio : 'Radio Button',
textField : 'Campo di testo',
textarea : 'Area di testo',
hiddenField : 'Campo nascosto',
button : 'Bottone',
select : 'Menu di selezione',
imageButton : 'Bottone immagine',
notSet : '<non impostato>',
id : 'Id',
name : 'Nome',
langDir : 'Direzione scrittura',
langDirLtr : 'Da Sinistra a Destra (LTR)',
langDirRtl : 'Da Destra a Sinistra (RTL)',
langCode : 'Codice Lingua',
longDescr : 'URL descrizione estesa',
cssClass : 'Nome classe CSS',
advisoryTitle : 'Titolo',
cssStyle : 'Stile',
ok : 'OK',
cancel : 'Annulla',
close : 'Chiudi',
preview : 'Anteprima',
generalTab : 'Generale',
advancedTab : 'Avanzate',
validateNumberFailed : 'Il valore inserito non è un numero.',
confirmNewPage : 'Ogni modifica non salvata sarà persa. Sei sicuro di voler caricare una nuova pagina?',
confirmCancel : 'Alcune delle opzioni sono state cambiate. Sei sicuro di voler chiudere la finestra di dialogo?',
options : 'Opzioni',
target : 'Destinazione',
targetNew : 'Nuova finestra (_blank)',
targetTop : 'Finestra in primo piano (_top)',
targetSelf : 'Stessa finestra (_self)',
targetParent : 'Finestra Padre (_parent)',
langDirLTR : 'Da sinistra a destra (LTR)',
langDirRTL : 'Da destra a sinistra (RTL)',
styles : 'Stile',
cssClasses : 'Classi di stile',
width : 'Larghezza',
height : 'Altezza',
align : 'Allineamento',
alignLeft : 'Sinistra',
alignRight : 'Destra',
alignCenter : 'Centrato',
alignTop : 'In Alto',
alignMiddle : 'Centrato',
alignBottom : 'In Basso',
invalidHeight : 'L\'altezza dev\'essere un numero',
invalidWidth : 'La Larghezza dev\'essere un numero',
invalidCssLength : 'Il valore indicato per il campo "%1" deve essere un numero positivo con o senza indicazione di una valida unità di misura per le classi CSS (px, %, in, cm, mm, em, ex, pt, o pc).',
invalidHtmlLength : 'Il valore indicato per il campo "%1" deve essere un numero positivo con o senza indicazione di una valida unità di misura per le pagine HTML (px o %).',
invalidInlineStyle : 'Il valore specificato per lo stile inline deve consistere in una o più tuple con il formato di "name : value", separati da semicolonne.',
cssLengthTooltip : 'Inserisci un numero per il valore in pixel oppure un numero con una valida unità CSS (px, %, in, cm, mm, ex, pt, o pc).',
// Put the voice-only part of the label in the span.
unavailable : '%1<span class="cke_accessibility">, non disponibile</span>'
},
contextmenu :
{
options : 'Opzioni del menù contestuale'
},
// Special char dialog.
specialChar :
{
toolbar : 'Inserisci carattere speciale',
title : 'Seleziona carattere speciale',
options : 'Opzioni carattere speciale'
},
// Link dialog.
link :
{
toolbar : 'Inserisci/Modifica collegamento',
other : '<altro>',
menu : 'Modifica collegamento',
title : 'Collegamento',
info : 'Informazioni collegamento',
target : 'Destinazione',
upload : 'Carica',
advanced : 'Avanzate',
type : 'Tipo di Collegamento',
toUrl : 'URL',
toAnchor : 'Ancora nella pagina',
toEmail : 'E-Mail',
targetFrame : '<riquadro>',
targetPopup : '<finestra popup>',
targetFrameName : 'Nome del riquadro di destinazione',
targetPopupName : 'Nome finestra popup',
popupFeatures : 'Caratteristiche finestra popup',
popupResizable : 'Ridimensionabile',
popupStatusBar : 'Barra di stato',
popupLocationBar: 'Barra degli indirizzi',
popupToolbar : 'Barra degli strumenti',
popupMenuBar : 'Barra del menu',
popupFullScreen : 'A tutto schermo (IE)',
popupScrollBars : 'Barre di scorrimento',
popupDependent : 'Dipendente (Netscape)',
popupLeft : 'Posizione da sinistra',
popupTop : 'Posizione dall\'alto',
id : 'Id',
langDir : 'Direzione scrittura',
langDirLTR : 'Da Sinistra a Destra (LTR)',
langDirRTL : 'Da Destra a Sinistra (RTL)',
acccessKey : 'Scorciatoia<br />da tastiera',
name : 'Nome',
langCode : 'Direzione scrittura',
tabIndex : 'Ordine di tabulazione',
advisoryTitle : 'Titolo',
advisoryContentType : 'Tipo della risorsa collegata',
cssClasses : 'Nome classe CSS',
charset : 'Set di caretteri della risorsa collegata',
styles : 'Stile',
rel : 'Relazioni',
selectAnchor : 'Scegli Ancora',
anchorName : 'Per Nome',
anchorId : 'Per id elemento',
emailAddress : 'Indirizzo E-Mail',
emailSubject : 'Oggetto del messaggio',
emailBody : 'Corpo del messaggio',
noAnchors : '(Nessuna ancora disponibile nel documento)',
noUrl : 'Devi inserire l\'URL del collegamento',
noEmail : 'Devi inserire un\'indirizzo e-mail'
},
// Anchor dialog
anchor :
{
toolbar : 'Inserisci/Modifica Ancora',
menu : 'Proprietà ancora',
title : 'Proprietà ancora',
name : 'Nome ancora',
errorName : 'Inserici il nome dell\'ancora',
remove : 'Rimuovi l\'ancora'
},
// List style dialog
list:
{
numberedTitle : 'Proprietà liste numerate',
bulletedTitle : 'Proprietà liste puntate',
type : 'Tipo',
start : 'Inizio',
validateStartNumber :'Il numero di inizio di una lista numerata deve essere un numero intero.',
circle : 'Cerchio',
disc : 'Disco',
square : 'Quadrato',
none : 'Nessuno',
notset : '<non impostato>',
armenian : 'Numerazione Armena',
georgian : 'Numerazione Georgiana (an, ban, gan, ecc.)',
lowerRoman : 'Numerazione Romana minuscola (i, ii, iii, iv, v, ecc.)',
upperRoman : 'Numerazione Romana maiuscola (I, II, III, IV, V, ecc.)',
lowerAlpha : 'Alfabetico minuscolo (a, b, c, d, e, ecc.)',
upperAlpha : 'Alfabetico maiuscolo (A, B, C, D, E, ecc.)',
lowerGreek : 'Greco minuscolo (alpha, beta, gamma, ecc.)',
decimal : 'Decimale (1, 2, 3, ecc.)',
decimalLeadingZero : 'Decimale preceduto da 0 (01, 02, 03, ecc.)'
},
// Find And Replace Dialog
findAndReplace :
{
title : 'Cerca e Sostituisci',
find : 'Trova',
replace : 'Sostituisci',
findWhat : 'Trova:',
replaceWith : 'Sostituisci con:',
notFoundMsg : 'L\'elemento cercato non è stato trovato.',
findOptions : 'Opzioni di ricerca',
matchCase : 'Maiuscole/minuscole',
matchWord : 'Solo parole intere',
matchCyclic : 'Ricerca ciclica',
replaceAll : 'Sostituisci tutto',
replaceSuccessMsg : '%1 occorrenza(e) sostituite.'
},
// Table Dialog
table :
{
toolbar : 'Tabella',
title : 'Proprietà tabella',
menu : 'Proprietà tabella',
deleteTable : 'Cancella Tabella',
rows : 'Righe',
columns : 'Colonne',
border : 'Dimensione bordo',
widthPx : 'pixel',
widthPc : 'percento',
widthUnit : 'unità larghezza',
cellSpace : 'Spaziatura celle',
cellPad : 'Padding celle',
caption : 'Intestazione',
summary : 'Indice',
headers : 'Intestazione',
headersNone : 'Nessuna',
headersColumn : 'Prima Colonna',
headersRow : 'Prima Riga',
headersBoth : 'Entrambe',
invalidRows : 'Il numero di righe dev\'essere un numero maggiore di 0.',
invalidCols : 'Il numero di colonne dev\'essere un numero maggiore di 0.',
invalidBorder : 'La dimensione del bordo dev\'essere un numero.',
invalidWidth : 'La larghezza della tabella dev\'essere un numero.',
invalidHeight : 'L\'altezza della tabella dev\'essere un numero.',
invalidCellSpacing : 'La spaziatura tra le celle dev\'essere un numero.',
invalidCellPadding : 'Il paging delle celle dev\'essere un numero',
cell :
{
menu : 'Cella',
insertBefore : 'Inserisci Cella Prima',
insertAfter : 'Inserisci Cella Dopo',
deleteCell : 'Elimina celle',
merge : 'Unisce celle',
mergeRight : 'Unisci a Destra',
mergeDown : 'Unisci in Basso',
splitHorizontal : 'Dividi Cella Orizzontalmente',
splitVertical : 'Dividi Cella Verticalmente',
title : 'Proprietà della cella',
cellType : 'Tipo di cella',
rowSpan : 'Su più righe',
colSpan : 'Su più colonne',
wordWrap : 'Ritorno a capo',
hAlign : 'Allineamento orizzontale',
vAlign : 'Allineamento verticale',
alignBaseline : 'Linea Base',
bgColor : 'Colore di Sfondo',
borderColor : 'Colore del Bordo',
data : 'Dati',
header : 'Intestazione',
yes : 'Si',
no : 'No',
invalidWidth : 'La larghezza della cella dev\'essere un numero.',
invalidHeight : 'L\'altezza della cella dev\'essere un numero.',
invalidRowSpan : 'Il numero di righe dev\'essere un numero intero.',
invalidColSpan : 'Il numero di colonne dev\'essere un numero intero.',
chooseColor : 'Scegli'
},
row :
{
menu : 'Riga',
insertBefore : 'Inserisci Riga Prima',
insertAfter : 'Inserisci Riga Dopo',
deleteRow : 'Elimina righe'
},
column :
{
menu : 'Colonna',
insertBefore : 'Inserisci Colonna Prima',
insertAfter : 'Inserisci Colonna Dopo',
deleteColumn : 'Elimina colonne'
}
},
// Button Dialog.
button :
{
title : 'Proprietà bottone',
text : 'Testo (Valore)',
type : 'Tipo',
typeBtn : 'Bottone',
typeSbm : 'Invio',
typeRst : 'Annulla'
},
// Checkbox and Radio Button Dialogs.
checkboxAndRadio :
{
checkboxTitle : 'Proprietà checkbox',
radioTitle : 'Proprietà radio button',
value : 'Valore',
selected : 'Selezionato'
},
// Form Dialog.
form :
{
title : 'Proprietà modulo',
menu : 'Proprietà modulo',
action : 'Azione',
method : 'Metodo',
encoding : 'Codifica'
},
// Select Field Dialog.
select :
{
title : 'Proprietà menu di selezione',
selectInfo : 'Info',
opAvail : 'Opzioni disponibili',
value : 'Valore',
size : 'Dimensione',
lines : 'righe',
chkMulti : 'Permetti selezione multipla',
opText : 'Testo',
opValue : 'Valore',
btnAdd : 'Aggiungi',
btnModify : 'Modifica',
btnUp : 'Su',
btnDown : 'Gi',
btnSetValue : 'Imposta come predefinito',
btnDelete : 'Rimuovi'
},
// Textarea Dialog.
textarea :
{
title : 'Proprietà area di testo',
cols : 'Colonne',
rows : 'Righe'
},
// Text Field Dialog.
textfield :
{
title : 'Proprietà campo di testo',
name : 'Nome',
value : 'Valore',
charWidth : 'Larghezza',
maxChars : 'Numero massimo di caratteri',
type : 'Tipo',
typeText : 'Testo',
typePass : 'Password'
},
// Hidden Field Dialog.
hidden :
{
title : 'Proprietà campo nascosto',
name : 'Nome',
value : 'Valore'
},
// Image Dialog.
image :
{
title : 'Proprietà immagine',
titleButton : 'Proprietà bottone immagine',
menu : 'Proprietà immagine',
infoTab : 'Informazioni immagine',
btnUpload : 'Invia al server',
upload : 'Carica',
alt : 'Testo alternativo',
lockRatio : 'Blocca rapporto',
resetSize : 'Reimposta dimensione',
border : 'Bordo',
hSpace : 'HSpace',
vSpace : 'VSpace',
alertUrl : 'Devi inserire l\'URL per l\'immagine',
linkTab : 'Collegamento',
button2Img : 'Vuoi trasformare il bottone immagine selezionato in un\'immagine semplice?',
img2Button : 'Vuoi trasferomare l\'immagine selezionata in un bottone immagine?',
urlMissing : 'Manca l\'URL dell\'immagine.',
validateBorder : 'Il campo Bordo deve essere un numero intero.',
validateHSpace : 'Il campo HSpace deve essere un numero intero.',
validateVSpace : 'Il campo VSpace deve essere un numero intero.'
},
// Flash Dialog
flash :
{
properties : 'Proprietà Oggetto Flash',
propertiesTab : 'Proprietà',
title : 'Proprietà Oggetto Flash',
chkPlay : 'Avvio Automatico',
chkLoop : 'Riavvio automatico',
chkMenu : 'Abilita Menu di Flash',
chkFull : 'Permetti la modalità tutto schermo',
scale : 'Ridimensiona',
scaleAll : 'Mostra Tutto',
scaleNoBorder : 'Senza Bordo',
scaleFit : 'Dimensione Esatta',
access : 'Accesso Script',
accessAlways : 'Sempre',
accessSameDomain: 'Solo stesso dominio',
accessNever : 'Mai',
alignAbsBottom : 'In basso assoluto',
alignAbsMiddle : 'Centrato assoluto',
alignBaseline : 'Linea base',
alignTextTop : 'In alto al testo',
quality : 'Qualità',
qualityBest : 'Massima',
qualityHigh : 'Alta',
qualityAutoHigh : 'Alta Automatica',
qualityMedium : 'Intermedia',
qualityAutoLow : 'Bassa Automatica',
qualityLow : 'Bassa',
windowModeWindow: 'Finestra',
windowModeOpaque: 'Opaca',
windowModeTransparent : 'Trasparente',
windowMode : 'Modalità finestra',
flashvars : 'Variabili per Flash',
bgcolor : 'Colore sfondo',
hSpace : 'HSpace',
vSpace : 'VSpace',
validateSrc : 'Devi inserire l\'URL del collegamento',
validateHSpace : 'L\'HSpace dev\'essere un numero.',
validateVSpace : 'Il VSpace dev\'essere un numero.'
},
// Speller Pages Dialog
spellCheck :
{
toolbar : 'Correttore ortografico',
title : 'Controllo ortografico',
notAvailable : 'Il servizio non è momentaneamente disponibile.',
errorLoading : 'Errore nel caricamento dell\'host col servizio applicativo: %s.',
notInDic : 'Non nel dizionario',
changeTo : 'Cambia in',
btnIgnore : 'Ignora',
btnIgnoreAll : 'Ignora tutto',
btnReplace : 'Cambia',
btnReplaceAll : 'Cambia tutto',
btnUndo : 'Annulla',
noSuggestions : '- Nessun suggerimento -',
progress : 'Controllo ortografico in corso',
noMispell : 'Controllo ortografico completato: nessun errore trovato',
noChanges : 'Controllo ortografico completato: nessuna parola cambiata',
oneChange : 'Controllo ortografico completato: 1 parola cambiata',
manyChanges : 'Controllo ortografico completato: %1 parole cambiate',
ieSpellDownload : 'Contollo ortografico non installato. Lo vuoi scaricare ora?'
},
smiley :
{
toolbar : 'Emoticon',
title : 'Inserisci emoticon',
options : 'Opzioni Smiley'
},
elementsPath :
{
eleLabel : 'Percorso degli elementi',
eleTitle : '%1 elemento'
},
numberedlist : 'Elenco numerato',
bulletedlist : 'Elenco puntato',
indent : 'Aumenta rientro',
outdent : 'Riduci rientro',
justify :
{
left : 'Allinea a sinistra',
center : 'Centra',
right : 'Allinea a destra',
block : 'Giustifica'
},
blockquote : 'Citazione',
clipboard :
{
title : 'Incolla',
cutError : 'Le impostazioni di sicurezza del browser non permettono di tagliare automaticamente il testo. Usa la tastiera (Ctrl/Cmd+X).',
copyError : 'Le impostazioni di sicurezza del browser non permettono di copiare automaticamente il testo. Usa la tastiera (Ctrl/Cmd+C).',
pasteMsg : 'Incolla il testo all\'interno dell\'area sottostante usando la scorciatoia di tastiere (<STRONG>Ctrl/Cmd+V</STRONG>) e premi <STRONG>OK</STRONG>.',
securityMsg : 'A causa delle impostazioni di sicurezza del browser,l\'editor non è in grado di accedere direttamente agli appunti. E\' pertanto necessario incollarli di nuovo in questa finestra.',
pasteArea : 'Incolla'
},
pastefromword :
{
confirmCleanup : 'Il testo da incollare sembra provenire da Word. Desideri pulirlo prima di incollare?',
toolbar : 'Incolla da Word',
title : 'Incolla da Word',
error : 'Non è stato possibile eliminarre il testo incollato a causa di un errore interno.'
},
pasteText :
{
button : 'Incolla come testo semplice',
title : 'Incolla come testo semplice'
},
templates :
{
button : 'Modelli',
title : 'Contenuto dei modelli',
options : 'Opzioni del Modello',
insertOption : 'Cancella il contenuto corrente',
selectPromptMsg : 'Seleziona il modello da aprire nell\'editor<br />(il contenuto attuale verrà eliminato):',
emptyListMsg : '(Nessun modello definito)'
},
showBlocks : 'Visualizza Blocchi',
stylesCombo :
{
label : 'Stile',
panelTitle : 'Stili di formattazione',
panelTitle1 : 'Stili per blocchi',
panelTitle2 : 'Stili in linea',
panelTitle3 : 'Stili per oggetti'
},
format :
{
label : 'Formato',
panelTitle : 'Formato',
tag_p : 'Normale',
tag_pre : 'Formattato',
tag_address : 'Indirizzo',
tag_h1 : 'Titolo 1',
tag_h2 : 'Titolo 2',
tag_h3 : 'Titolo 3',
tag_h4 : 'Titolo 4',
tag_h5 : 'Titolo 5',
tag_h6 : 'Titolo 6',
tag_div : 'Paragrafo (DIV)'
},
div :
{
title : 'Crea DIV contenitore',
toolbar : 'Crea DIV contenitore',
cssClassInputLabel : 'Classi di stile',
styleSelectLabel : 'Stile',
IdInputLabel : 'Id',
languageCodeInputLabel : 'Codice lingua',
inlineStyleInputLabel : 'Stile Inline',
advisoryTitleInputLabel : 'Titolo Avviso',
langDirLabel : 'Direzione di scrittura',
langDirLTRLabel : 'Da sinistra a destra (LTR)',
langDirRTLLabel : 'Da destra a sinistra (RTL)',
edit : 'Modifica DIV',
remove : 'Rimuovi DIV'
},
iframe :
{
title : 'Proprietà IFrame',
toolbar : 'IFrame',
noUrl : 'Inserire l\'URL del campo IFrame',
scrolling : 'Abilita scrollbar',
border : 'Mostra il bordo'
},
font :
{
label : 'Carattere',
voiceLabel : 'Carattere',
panelTitle : 'Carattere'
},
fontSize :
{
label : 'Dimensione',
voiceLabel : 'Dimensione Carattere',
panelTitle : 'Dimensione'
},
colorButton :
{
textColorTitle : 'Colore testo',
bgColorTitle : 'Colore sfondo',
panelTitle : 'Colori',
auto : 'Automatico',
more : 'Altri colori...'
},
colors :
{
'000' : 'Nero',
'800000' : 'Marrone Castagna',
'8B4513' : 'Marrone Cuoio',
'2F4F4F' : 'Grigio Fumo di Londra',
'008080' : 'Acquamarina',
'000080' : 'Blu Oceano',
'4B0082' : 'Indigo',
'696969' : 'Grigio Scuro',
'B22222' : 'Giallo Fiamma',
'A52A2A' : 'Marrone',
'DAA520' : 'Giallo Mimosa',
'006400' : 'Verde Scuro',
'40E0D0' : 'Turchese',
'0000CD' : 'Blue Scuro',
'800080' : 'Viola',
'808080' : 'Grigio',
'F00' : 'Rosso',
'FF8C00' : 'Arancio Scuro',
'FFD700' : 'Oro',
'008000' : 'Verde',
'0FF' : 'Ciano',
'00F' : 'Blu',
'EE82EE' : 'Violetto',
'A9A9A9' : 'Grigio Scuro',
'FFA07A' : 'Salmone',
'FFA500' : 'Arancio',
'FFFF00' : 'Giallo',
'00FF00' : 'Lime',
'AFEEEE' : 'Turchese Chiaro',
'ADD8E6' : 'Blu Chiaro',
'DDA0DD' : 'Rosso Ciliegia',
'D3D3D3' : 'Grigio Chiaro',
'FFF0F5' : 'Lavanda Chiara',
'FAEBD7' : 'Bianco Antico',
'FFFFE0' : 'Giallo Chiaro',
'F0FFF0' : 'Verde Mela',
'F0FFFF' : 'Azzurro',
'F0F8FF' : 'Celeste',
'E6E6FA' : 'Lavanda',
'FFF' : 'Bianco'
},
scayt :
{
title : 'Controllo Ortografico Mentre Scrivi',
opera_title : 'Non supportato da Opera',
enable : 'Abilita COMS',
disable : 'Disabilita COMS',
about : 'About COMS',
toggle : 'Inverti abilitazione SCOMS',
options : 'Opzioni',
langs : 'Lingue',
moreSuggestions : 'Altri suggerimenti',
ignore : 'Ignora',
ignoreAll : 'Ignora tutti',
addWord : 'Aggiungi Parola',
emptyDic : 'Il nome del dizionario non può essere vuoto.',
optionsTab : 'Opzioni',
allCaps : 'Ignora Parole in maiuscolo',
ignoreDomainNames : 'Ignora nomi di dominio',
mixedCase : 'Ignora parole con maiuscole e minuscole',
mixedWithDigits : 'Ignora parole con numeri',
languagesTab : 'Lingue',
dictionariesTab : 'Dizionari',
dic_field_name : 'Nome del dizionario',
dic_create : 'Crea',
dic_restore : 'Ripristina',
dic_delete : 'Cancella',
dic_rename : 'Rinomina',
dic_info : 'Inizialmente il dizionario utente è memorizzato in un Cookie. I Cookie però hanno una dimensioni massima limitata. Quando il dizionario utente creasce a tal punto da non poter più essere memorizzato in un Cookie, allora il dizionario può essere memorizzato sul nostro server. Per memorizzare il proprio dizionario personale sul nostro server, è necessario specificare un nome per il proprio dizionario. Se avete già memorizzato un dizionario, inserite il nome che gli avete dato e premete il pulsante Ripristina.',
aboutTab : 'Info'
},
about :
{
title : 'Riguardo CKEditor',
dlgTitle : 'Riguardo CKEditor',
help : 'Vedi $1 per l\'aiuto.',
userGuide : 'Guida Utente CKEditor',
moreInfo : 'Per le informazioni sulla licenza si prega di visitare il nostro sito:',
copy : 'Copyright © $1. Tutti i diritti riservati.'
},
maximize : 'Massimizza',
minimize : 'Minimizza',
fakeobjects :
{
anchor : 'Ancora',
flash : 'Animazione Flash',
iframe : 'IFrame',
hiddenfield : 'Campo Nascosto',
unknown : 'Oggetto sconosciuto'
},
resize : 'Trascina per ridimensionare',
colordialog :
{
title : 'Selezionare il colore',
options : 'Opzioni colore',
highlight : 'Evidenzia',
selected : 'Seleziona il colore',
clear : 'cancella'
},
toolbarCollapse : 'Minimizza Toolbar',
toolbarExpand : 'Espandi Toolbar',
toolbarGroups :
{
document : 'Documento',
clipboard : 'Copia negli appunti/Indietro',
editing : 'Modifica',
forms : 'Form',
basicstyles : 'Stili di base',
paragraph : 'Paragrafo',
links : 'Link',
insert : 'Inserisci',
styles : 'Stili',
colors : 'Colori',
tools : 'Strumenti'
},
bidi :
{
ltr : 'Direzione del testo da sinistra verso destra',
rtl : 'Direzione del testo da destra verso sinistra'
},
docprops :
{
label : 'Proprietà del Documento',
title : 'Proprietà del Documento',
design : 'Disegna',
meta : 'Meta Data',
chooseColor : 'Scegli',
other : '<altro>',
docTitle : 'Titolo pagina',
charset : 'Set di caretteri',
charsetOther : 'Altro set di caretteri',
charsetASCII : 'ASCII',
charsetCE : 'Europa Centrale',
charsetCT : 'Cinese Tradizionale (Big5)',
charsetCR : 'Cirillico',
charsetGR : 'Greco',
charsetJP : 'Giapponese',
charsetKR : 'Coreano',
charsetTR : 'Turco',
charsetUN : 'Unicode (UTF-8)',
charsetWE : 'Europa Occidentale',
docType : 'Intestazione DocType',
docTypeOther : 'Altra intestazione DocType',
xhtmlDec : 'Includi dichiarazione XHTML',
bgColor : 'Colore di sfondo',
bgImage : 'Immagine di sfondo',
bgFixed : 'Sfondo fissato',
txtColor : 'Colore testo',
margin : 'Margini',
marginTop : 'In Alto',
marginLeft : 'A Sinistra',
marginRight : 'A Destra',
marginBottom : 'In Basso',
metaKeywords : 'Chiavi di indicizzazione documento (separate da virgola)',
metaDescription : 'Descrizione documento',
metaAuthor : 'Autore',
metaCopyright : 'Copyright',
previewHtml : '<p>Questo è un <strong>testo di esempio</strong>. State usando <a href="javascript:void(0)">CKEditor</a>.</p>'
}
};
| 10npsite | trunk/guanli/system/ckeditor/_source/lang/it.js | JavaScript | asf20 | 24,978 |
/*
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
* German language.
*/
/**#@+
@type String
@example
*/
/**
* Contains the dictionary of language entries.
* @namespace
*/
CKEDITOR.lang['de'] =
{
/**
* 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 : 'ltr',
/*
* Screenreader titles. Please note that screenreaders are not always capable
* of reading non-English words. So be careful while translating it.
*/
editorTitle : 'Rich text editor, %1', // MISSING
editorHelp : 'Press ALT 0 for help', // MISSING
// ARIA descriptions.
toolbars : 'Editor Symbolleisten',
editor : 'WYSIWYG-Editor',
// Toolbar buttons without dialogs.
source : 'Quellcode',
newPage : 'Neue Seite',
save : 'Speichern',
preview : 'Vorschau',
cut : 'Ausschneiden',
copy : 'Kopieren',
paste : 'Einfügen',
print : 'Drucken',
underline : 'Unterstrichen',
bold : 'Fett',
italic : 'Kursiv',
selectAll : 'Alles auswählen',
removeFormat : 'Formatierungen entfernen',
strike : 'Durchgestrichen',
subscript : 'Tiefgestellt',
superscript : 'Hochgestellt',
horizontalrule : 'Horizontale Linie einfügen',
pagebreak : 'Seitenumbruch einfügen',
pagebreakAlt : 'Seitenumbruch einfügen',
unlink : 'Link entfernen',
undo : 'Rückgängig',
redo : 'Wiederherstellen',
// Common messages and labels.
common :
{
browseServer : 'Server durchsuchen',
url : 'URL',
protocol : 'Protokoll',
upload : 'Hochladen',
uploadSubmit : 'Zum Server senden',
image : 'Bild',
flash : 'Flash',
form : 'Formular',
checkbox : 'Checkbox',
radio : 'Radiobutton',
textField : 'Textfeld einzeilig',
textarea : 'Textfeld mehrzeilig',
hiddenField : 'Verstecktes Feld',
button : 'Klickbutton',
select : 'Auswahlfeld',
imageButton : 'Bildbutton',
notSet : '<nichts>',
id : 'ID',
name : 'Name',
langDir : 'Schreibrichtung',
langDirLtr : 'Links nach Rechts (LTR)',
langDirRtl : 'Rechts nach Links (RTL)',
langCode : 'Sprachenkürzel',
longDescr : 'Langform URL',
cssClass : 'Stylesheet Klasse',
advisoryTitle : 'Titel Beschreibung',
cssStyle : 'Style',
ok : 'OK',
cancel : 'Abbrechen',
close : 'Schließen',
preview : 'Vorschau',
generalTab : 'Allgemein',
advancedTab : 'Erweitert',
validateNumberFailed : 'Dieser Wert ist keine Nummer.',
confirmNewPage : 'Alle nicht gespeicherten Änderungen gehen verlohren. Sind Sie sicher die neue Seite zu laden?',
confirmCancel : 'Einige Optionen wurden geändert. Wollen Sie den Dialog dennoch schließen?',
options : 'Optionen',
target : 'Zielseite',
targetNew : 'Neues Fenster (_blank)',
targetTop : 'Oberstes Fenster (_top)',
targetSelf : 'Gleiches Fenster (_self)',
targetParent : 'Oberes Fenster (_parent)',
langDirLTR : 'Links nach Rechts (LNR)',
langDirRTL : 'Rechts nach Links (RNL)',
styles : 'Style',
cssClasses : 'Stylesheet Klasse',
width : 'Breite',
height : 'Höhe',
align : 'Ausrichtung',
alignLeft : 'Links',
alignRight : 'Rechts',
alignCenter : 'Zentriert',
alignTop : 'Oben',
alignMiddle : 'Mitte',
alignBottom : 'Unten',
invalidHeight : 'Höhe muss eine Zahl sein.',
invalidWidth : 'Breite muss eine Zahl sein.',
invalidCssLength : 'Wert spezifiziert für "%1" Feld muss ein positiver numerischer Wert sein mit oder ohne korrekte CSS Messeinheit (px, %, in, cm, mm, em, ex, pt oder pc).',
invalidHtmlLength : 'Wert spezifiziert für "%1" Feld muss ein positiver numerischer Wert sein mit oder ohne korrekte HTML Messeinheit (px oder %).',
invalidInlineStyle : 'Wert spezifiziert für inline Stilart muss enthalten ein oder mehr Tupels mit dem Format "Name : Wert" getrennt mit Semikolons.',
cssLengthTooltip : 'Gebe eine Zahl ein für ein Wert in pixels oder eine Zahl mit einer korrekten CSS Messeinheit (px, %, in, cm, mm, em, ex, pt oder pc).',
// Put the voice-only part of the label in the span.
unavailable : '%1<span class="cke_accessibility">, nicht verfügbar</span>'
},
contextmenu :
{
options : 'Kontextmenü Optionen'
},
// Special char dialog.
specialChar :
{
toolbar : 'Sonderzeichen einfügen/editieren',
title : 'Sonderzeichen auswählen',
options : 'Sonderzeichen Optionen'
},
// Link dialog.
link :
{
toolbar : 'Link einfügen/editieren',
other : '<andere>',
menu : 'Link editieren',
title : 'Link',
info : 'Link-Info',
target : 'Zielseite',
upload : 'Hochladen',
advanced : 'Erweitert',
type : 'Link-Typ',
toUrl : 'URL',
toAnchor : 'Anker in dieser Seite',
toEmail : 'E-Mail',
targetFrame : '<Frame>',
targetPopup : '<Pop-up Fenster>',
targetFrameName : 'Ziel-Fenster-Name',
targetPopupName : 'Pop-up Fenster-Name',
popupFeatures : 'Pop-up Fenster-Eigenschaften',
popupResizable : 'Größe änderbar',
popupStatusBar : 'Statusleiste',
popupLocationBar: 'Adress-Leiste',
popupToolbar : 'Symbolleiste',
popupMenuBar : 'Menü-Leiste',
popupFullScreen : 'Vollbild (IE)',
popupScrollBars : 'Rollbalken',
popupDependent : 'Abhängig (Netscape)',
popupLeft : 'Linke Position',
popupTop : 'Obere Position',
id : 'Id',
langDir : 'Schreibrichtung',
langDirLTR : 'Links nach Rechts (LTR)',
langDirRTL : 'Rechts nach Links (RTL)',
acccessKey : 'Zugriffstaste',
name : 'Name',
langCode : 'Sprachenkürzel',
tabIndex : 'Tab-Index',
advisoryTitle : 'Titel Beschreibung',
advisoryContentType : 'Inhaltstyp',
cssClasses : 'Stylesheet Klasse',
charset : 'Ziel-Zeichensatz',
styles : 'Style',
rel : 'Beziehung',
selectAnchor : 'Anker auswählen',
anchorName : 'nach Anker Name',
anchorId : 'nach Element Id',
emailAddress : 'E-Mail Adresse',
emailSubject : 'Betreffzeile',
emailBody : 'Nachrichtentext',
noAnchors : '(keine Anker im Dokument vorhanden)',
noUrl : 'Bitte geben Sie die Link-URL an',
noEmail : 'Bitte geben Sie e-Mail Adresse an'
},
// Anchor dialog
anchor :
{
toolbar : 'Anker einfügen/editieren',
menu : 'Anker-Eigenschaften',
title : 'Anker-Eigenschaften',
name : 'Anker Name',
errorName : 'Bitte geben Sie den Namen des Ankers ein',
remove : 'Anker entfernen'
},
// List style dialog
list:
{
numberedTitle : 'Nummerierte Listen-Eigenschaften',
bulletedTitle : 'Listen-Eigenschaften',
type : 'Typ',
start : 'Start',
validateStartNumber :'List Startnummer muss eine ganze Zahl sein.',
circle : 'Ring',
disc : 'Kreis',
square : 'Quadrat',
none : 'Keine',
notset : '<nicht gesetzt>',
armenian : 'Armenisch Nummerierung',
georgian : 'Georgisch Nummerierung (an, ban, gan, etc.)',
lowerRoman : 'Klein römisch (i, ii, iii, iv, v, etc.)',
upperRoman : 'Groß römisch (I, II, III, IV, V, etc.)',
lowerAlpha : 'Klein alpha (a, b, c, d, e, etc.)',
upperAlpha : 'Groß alpha (A, B, C, D, E, etc.)',
lowerGreek : 'Klein griechisch (alpha, beta, gamma, etc.)',
decimal : 'Dezimal (1, 2, 3, etc.)',
decimalLeadingZero : 'Dezimal mit führende Null (01, 02, 03, etc.)'
},
// Find And Replace Dialog
findAndReplace :
{
title : 'Suchen und Ersetzen',
find : 'Suchen',
replace : 'Ersetzen',
findWhat : 'Suche nach:',
replaceWith : 'Ersetze mit:',
notFoundMsg : 'Der gesuchte Text wurde nicht gefunden.',
findOptions : 'Suchoptionen',
matchCase : 'Groß-Kleinschreibung beachten',
matchWord : 'Nur ganze Worte suchen',
matchCyclic : 'Zyklische Suche',
replaceAll : 'Alle ersetzen',
replaceSuccessMsg : '%1 vorkommen ersetzt.'
},
// Table Dialog
table :
{
toolbar : 'Tabelle',
title : 'Tabellen-Eigenschaften',
menu : 'Tabellen-Eigenschaften',
deleteTable : 'Tabelle löschen',
rows : 'Zeile',
columns : 'Spalte',
border : 'Rahmen',
widthPx : 'Pixel',
widthPc : '%',
widthUnit : 'Breite Einheit',
cellSpace : 'Zellenabstand außen',
cellPad : 'Zellenabstand innen',
caption : 'Überschrift',
summary : 'Inhaltsübersicht',
headers : 'Kopfzeile',
headersNone : 'Keine',
headersColumn : 'Erste Spalte',
headersRow : 'Erste Zeile',
headersBoth : 'Beide',
invalidRows : 'Die Anzahl der Zeilen muß größer als 0 sein.',
invalidCols : 'Die Anzahl der Spalten muß größer als 0 sein..',
invalidBorder : 'Die Rahmenbreite muß eine Zahl sein.',
invalidWidth : 'Die Tabellenbreite muss eine Zahl sein.',
invalidHeight : 'Die Tabellenbreite muß eine Zahl sein.',
invalidCellSpacing : 'Der Zellenabstand außen muß eine positive Zahl sein.',
invalidCellPadding : 'Der Zellenabstand innen muß eine positive Zahl sein.',
cell :
{
menu : 'Zelle',
insertBefore : 'Zelle davor einfügen',
insertAfter : 'Zelle danach einfügen',
deleteCell : 'Zelle löschen',
merge : 'Zellen verbinden',
mergeRight : 'Nach rechts verbinden',
mergeDown : 'Nach unten verbinden',
splitHorizontal : 'Zelle horizontal teilen',
splitVertical : 'Zelle vertikal teilen',
title : 'Zellen-Eigenschaften',
cellType : 'Zellart',
rowSpan : 'Anzahl Zeilen verbinden',
colSpan : 'Anzahl Spalten verbinden',
wordWrap : 'Zeilenumbruch',
hAlign : 'Horizontale Ausrichtung',
vAlign : 'Vertikale Ausrichtung',
alignBaseline : 'Grundlinie',
bgColor : 'Hintergrundfarbe',
borderColor : 'Rahmenfarbe',
data : 'Daten',
header : 'Überschrift',
yes : 'Ja',
no : 'Nein',
invalidWidth : 'Zellenbreite muß eine Zahl sein.',
invalidHeight : 'Zellenhöhe muß eine Zahl sein.',
invalidRowSpan : '"Anzahl Zeilen verbinden" muss eine Ganzzahl sein.',
invalidColSpan : '"Anzahl Spalten verbinden" muss eine Ganzzahl sein.',
chooseColor : 'Wählen'
},
row :
{
menu : 'Zeile',
insertBefore : 'Zeile oberhalb einfügen',
insertAfter : 'Zeile unterhalb einfügen',
deleteRow : 'Zeile entfernen'
},
column :
{
menu : 'Spalte',
insertBefore : 'Spalte links davor einfügen',
insertAfter : 'Spalte rechts danach einfügen',
deleteColumn : 'Spalte löschen'
}
},
// Button Dialog.
button :
{
title : 'Button-Eigenschaften',
text : 'Text (Wert)',
type : 'Typ',
typeBtn : 'Button',
typeSbm : 'Absenden',
typeRst : 'Zurücksetzen'
},
// Checkbox and Radio Button Dialogs.
checkboxAndRadio :
{
checkboxTitle : 'Checkbox-Eigenschaften',
radioTitle : 'Optionsfeld-Eigenschaften',
value : 'Wert',
selected : 'ausgewählt'
},
// Form Dialog.
form :
{
title : 'Formular-Eigenschaften',
menu : 'Formular-Eigenschaften',
action : 'Action',
method : 'Method',
encoding : 'Zeichenkodierung'
},
// Select Field Dialog.
select :
{
title : 'Auswahlfeld-Eigenschaften',
selectInfo : 'Info',
opAvail : 'Mögliche Optionen',
value : 'Wert',
size : 'Größe',
lines : 'Linien',
chkMulti : 'Erlaube Mehrfachauswahl',
opText : 'Text',
opValue : 'Wert',
btnAdd : 'Hinzufügen',
btnModify : 'Ändern',
btnUp : 'Hoch',
btnDown : 'Runter',
btnSetValue : 'Setze als Standardwert',
btnDelete : 'Entfernen'
},
// Textarea Dialog.
textarea :
{
title : 'Textfeld (mehrzeilig) Eigenschaften',
cols : 'Spalten',
rows : 'Reihen'
},
// Text Field Dialog.
textfield :
{
title : 'Textfeld (einzeilig) Eigenschaften',
name : 'Name',
value : 'Wert',
charWidth : 'Zeichenbreite',
maxChars : 'Max. Zeichen',
type : 'Typ',
typeText : 'Text',
typePass : 'Passwort'
},
// Hidden Field Dialog.
hidden :
{
title : 'Verstecktes Feld-Eigenschaften',
name : 'Name',
value : 'Wert'
},
// Image Dialog.
image :
{
title : 'Bild-Eigenschaften',
titleButton : 'Bildbutton-Eigenschaften',
menu : 'Bild-Eigenschaften',
infoTab : 'Bild-Info',
btnUpload : 'Zum Server senden',
upload : 'Hochladen',
alt : 'Alternativer Text',
lockRatio : 'Größenverhältnis beibehalten',
resetSize : 'Größe zurücksetzen',
border : 'Rahmen',
hSpace : 'Horizontal-Abstand',
vSpace : 'Vertikal-Abstand',
alertUrl : 'Bitte geben Sie die Bild-URL an',
linkTab : 'Link',
button2Img : 'Möchten Sie den gewählten Bild-Button in ein einfaches Bild umwandeln?',
img2Button : 'Möchten Sie das gewählten Bild in einen Bild-Button umwandeln?',
urlMissing : 'Imagequelle URL fehlt.',
validateBorder : 'Rahmen muß eine ganze Zahl sein.',
validateHSpace : 'Horizontal-Abstand muß eine ganze Zahl sein.',
validateVSpace : 'Vertikal-Abstand muß eine ganze Zahl sein.'
},
// Flash Dialog
flash :
{
properties : 'Flash-Eigenschaften',
propertiesTab : 'Eigenschaften',
title : 'Flash-Eigenschaften',
chkPlay : 'Automatisch Abspielen',
chkLoop : 'Endlosschleife',
chkMenu : 'Flash-Menü aktivieren',
chkFull : 'Vollbildmodus erlauben',
scale : 'Skalierung',
scaleAll : 'Alles anzeigen',
scaleNoBorder : 'Ohne Rand',
scaleFit : 'Passgenau',
access : 'Skript Zugang',
accessAlways : 'Immer',
accessSameDomain: 'Gleiche Domain',
accessNever : 'Nie',
alignAbsBottom : 'Abs Unten',
alignAbsMiddle : 'Abs Mitte',
alignBaseline : 'Baseline',
alignTextTop : 'Text Oben',
quality : 'Qualität',
qualityBest : 'Beste',
qualityHigh : 'Hoch',
qualityAutoHigh : 'Auto Hoch',
qualityMedium : 'Medium',
qualityAutoLow : 'Auto Niedrig',
qualityLow : 'Niedrig',
windowModeWindow: 'Fenster',
windowModeOpaque: 'Deckend',
windowModeTransparent : 'Transparent',
windowMode : 'Fenster Modus',
flashvars : 'Variablen für Flash',
bgcolor : 'Hintergrundfarbe',
hSpace : 'Horizontal-Abstand',
vSpace : 'Vertikal-Abstand',
validateSrc : 'Bitte geben Sie die Link-URL an',
validateHSpace : 'HSpace muss eine Zahl sein.',
validateVSpace : 'VSpace muss eine Zahl sein.'
},
// Speller Pages Dialog
spellCheck :
{
toolbar : 'Rechtschreibprüfung',
title : 'Rechtschreibprüfung',
notAvailable : 'Entschuldigung, aber dieser Dienst steht im Moment nicht zur Verfügung.',
errorLoading : 'Fehler beim laden des Dienstanbieters: %s.',
notInDic : 'Nicht im Wörterbuch',
changeTo : 'Ändern in',
btnIgnore : 'Ignorieren',
btnIgnoreAll : 'Alle Ignorieren',
btnReplace : 'Ersetzen',
btnReplaceAll : 'Alle Ersetzen',
btnUndo : 'Rückgängig',
noSuggestions : ' - keine Vorschläge - ',
progress : 'Rechtschreibprüfung läuft...',
noMispell : 'Rechtschreibprüfung abgeschlossen - keine Fehler gefunden',
noChanges : 'Rechtschreibprüfung abgeschlossen - keine Worte geändert',
oneChange : 'Rechtschreibprüfung abgeschlossen - ein Wort geändert',
manyChanges : 'Rechtschreibprüfung abgeschlossen - %1 Wörter geändert',
ieSpellDownload : 'Rechtschreibprüfung nicht installiert. Möchten Sie sie jetzt herunterladen?'
},
smiley :
{
toolbar : 'Smiley',
title : 'Smiley auswählen',
options : 'Smiley Optionen'
},
elementsPath :
{
eleLabel : 'Elements Pfad',
eleTitle : '%1 Element'
},
numberedlist : 'Nummerierte Liste',
bulletedlist : 'Liste',
indent : 'Einzug erhöhen',
outdent : 'Einzug verringern',
justify :
{
left : 'Linksbündig',
center : 'Zentriert',
right : 'Rechtsbündig',
block : 'Blocksatz'
},
blockquote : 'Zitatblock',
clipboard :
{
title : 'Einfügen',
cutError : 'Die Sicherheitseinstellungen Ihres Browsers lassen es nicht zu, den Text automatisch auszuschneiden. Bitte benutzen Sie die System-Zwischenablage über STRG-X (ausschneiden) und STRG-V (einfügen).',
copyError : 'Die Sicherheitseinstellungen Ihres Browsers lassen es nicht zu, den Text automatisch kopieren. Bitte benutzen Sie die System-Zwischenablage über STRG-C (kopieren).',
pasteMsg : 'Bitte fügen Sie den Text in der folgenden Box über die Tastatur (mit <STRONG>Strg+V</STRONG>) ein und bestätigen Sie mit <STRONG>OK</STRONG>.',
securityMsg : 'Aufgrund von Sicherheitsbeschränkungen Ihres Browsers kann der Editor nicht direkt auf die Zwischenablage zugreifen. Bitte fügen Sie den Inhalt erneut in diesem Fenster ein.',
pasteArea : 'Einfügebereich'
},
pastefromword :
{
confirmCleanup : 'Der Text, den Sie einfügen möchten, scheint aus MS-Word kopiert zu sein. Möchten Sie ihn zuvor bereinigen lassen?',
toolbar : 'Aus MS-Word einfügen',
title : 'Aus MS-Word einfügen',
error : 'Aufgrund eines internen Fehlers war es nicht möglich die eingefügten Daten zu bereinigen'
},
pasteText :
{
button : 'Als Text einfügen',
title : 'Als Text einfügen'
},
templates :
{
button : 'Vorlagen',
title : 'Vorlagen',
options : 'Vorlagen Optionen',
insertOption : 'Aktuellen Inhalt ersetzen',
selectPromptMsg : 'Klicken Sie auf eine Vorlage, um sie im Editor zu öffnen (der aktuelle Inhalt wird dabei gelöscht!):',
emptyListMsg : '(keine Vorlagen definiert)'
},
showBlocks : 'Blöcke anzeigen',
stylesCombo :
{
label : 'Stil',
panelTitle : 'Formatierungenstil',
panelTitle1 : 'Block Stilart',
panelTitle2 : 'Inline Stilart',
panelTitle3 : 'Objekt Stilart'
},
format :
{
label : 'Format',
panelTitle : 'Format',
tag_p : 'Normal',
tag_pre : 'Formatiert',
tag_address : 'Addresse',
tag_h1 : 'Überschrift 1',
tag_h2 : 'Überschrift 2',
tag_h3 : 'Überschrift 3',
tag_h4 : 'Überschrift 4',
tag_h5 : 'Überschrift 5',
tag_h6 : 'Überschrift 6',
tag_div : 'Normal (DIV)'
},
div :
{
title : 'Div Container erzeugen',
toolbar : 'Div Container erzeugen',
cssClassInputLabel : 'Stylesheet Klasse',
styleSelectLabel : 'Style',
IdInputLabel : 'Id',
languageCodeInputLabel : 'Sprachenkürzel',
inlineStyleInputLabel : 'Inline Stil',
advisoryTitleInputLabel : 'Tooltip',
langDirLabel : 'Sprache Richtung',
langDirLTRLabel : 'Links nach Rechs (LTR)',
langDirRTLLabel : 'Rechs nach Links (RTL)',
edit : 'Div bearbeiten',
remove : 'Div entfernen'
},
iframe :
{
title : 'IFrame-Eigenschaften',
toolbar : 'IFrame',
noUrl : 'Bitte geben Sie die IFrame-URL an',
scrolling : 'Rollbalken anzeigen',
border : 'Rahmen anzeigen'
},
font :
{
label : 'Schriftart',
voiceLabel : 'Schriftart',
panelTitle : 'Schriftart'
},
fontSize :
{
label : 'Größe',
voiceLabel : 'Schrifgröße',
panelTitle : 'Größe'
},
colorButton :
{
textColorTitle : 'Textfarbe',
bgColorTitle : 'Hintergrundfarbe',
panelTitle : 'Farben',
auto : 'Automatisch',
more : 'Weitere Farben...'
},
colors :
{
'000' : 'Schwarz',
'800000' : 'Kastanienbraun',
'8B4513' : 'Braun',
'2F4F4F' : 'Dunkles Schiefergrau',
'008080' : 'Blaugrün',
'000080' : 'Navy',
'4B0082' : 'Indigo',
'696969' : 'Dunkelgrau',
'B22222' : 'Ziegelrot',
'A52A2A' : 'Braun',
'DAA520' : 'Goldgelb',
'006400' : 'Dunkelgrün',
'40E0D0' : 'Türkis',
'0000CD' : 'Medium Blau',
'800080' : 'Lila',
'808080' : 'Grau',
'F00' : 'Rot',
'FF8C00' : 'Dunkelorange',
'FFD700' : 'Gold',
'008000' : 'Grün',
'0FF' : 'Cyan',
'00F' : 'Blau',
'EE82EE' : 'Hellviolett',
'A9A9A9' : 'Dunkelgrau',
'FFA07A' : 'Helles Lachsrosa',
'FFA500' : 'Orange',
'FFFF00' : 'Gelb',
'00FF00' : 'Lime',
'AFEEEE' : 'Blaß-Türkis',
'ADD8E6' : 'Hellblau',
'DDA0DD' : 'Pflaumenblau',
'D3D3D3' : 'Hellgrau',
'FFF0F5' : 'Lavendel',
'FAEBD7' : 'Antik Weiß',
'FFFFE0' : 'Hellgelb',
'F0FFF0' : 'Honigtau',
'F0FFFF' : 'Azurblau',
'F0F8FF' : 'Alice Blau',
'E6E6FA' : 'Lavendel',
'FFF' : 'Weiß'
},
scayt :
{
title : 'Rechtschreibprüfung während der Texteingabe (SCAYT)',
opera_title : 'Nicht von Opera unterstützt',
enable : 'SCAYT einschalten',
disable : 'SCAYT ausschalten',
about : 'Über SCAYT',
toggle : 'SCAYT umschalten',
options : 'Optionen',
langs : 'Sprachen',
moreSuggestions : 'Mehr Vorschläge',
ignore : 'Ignorieren',
ignoreAll : 'Alle ignorieren',
addWord : 'Wort hinzufügen',
emptyDic : 'Wörterbuchname sollte leer sein.',
optionsTab : 'Optionen',
allCaps : 'Groß geschriebenen Wörter ignorieren',
ignoreDomainNames : 'Domain-Namen ignorieren',
mixedCase : 'Wörter mit gemischte Setzkasten ignorieren',
mixedWithDigits : 'Wörter mit Zahlen ignorieren',
languagesTab : 'Sprachen',
dictionariesTab : 'Wörterbücher',
dic_field_name : 'Wörterbuchname',
dic_create : 'Erzeugen',
dic_restore : 'Wiederherstellen',
dic_delete : 'Löschen',
dic_rename : 'Umbenennen',
dic_info : 'Anfangs wird das Benutzerwörterbuch in einem Cookie gespeichert. Allerdings sind Cookies in der Größe begrenzt. Wenn das Benutzerwörterbuch bis zu einem Punkt wächst, wo es nicht mehr in einem Cookie gespeichert werden kann, wird das Benutzerwörterbuch auf dem Server gespeichert. Um Ihr persönliches Wörterbuch auf dem Server zu speichern, müssen Sie einen Namen für das Wörterbuch angeben. Falls Sie schon ein gespeicherte Wörterbuch haben, geben Sie bitte dessen Namen ein und klicken Sie auf die Schaltfläche Wiederherstellen.',
aboutTab : 'Über'
},
about :
{
title : 'Über CKEditor',
dlgTitle : 'Über CKEditor',
help : 'Prüfe $1 für Hilfe.',
userGuide : 'CKEditor Benutzerhandbuch',
moreInfo : 'Für Informationen über unsere Lizenzbestimmungen besuchen sie bitte unsere Webseite:',
copy : 'Copyright © $1. Alle Rechte vorbehalten.'
},
maximize : 'Maximieren',
minimize : 'Minimieren',
fakeobjects :
{
anchor : 'Anker',
flash : 'Flash Animation',
iframe : 'IFrame',
hiddenfield : 'Verstecktes Feld',
unknown : 'Unbekanntes Objekt'
},
resize : 'Zum Vergrößern ziehen',
colordialog :
{
title : 'Farbe wählen',
options : 'Farbeoptionen',
highlight : 'Hervorheben',
selected : 'Ausgewählte Farbe',
clear : 'Entfernen'
},
toolbarCollapse : 'Symbolleiste einklappen',
toolbarExpand : 'Symbolleiste ausklappen',
toolbarGroups :
{
document : 'Dokument',
clipboard : 'Zwischenablage/Rückgängig',
editing : 'Editieren',
forms : 'Formularen',
basicstyles : 'Grundstile',
paragraph : 'Absatz',
links : 'Links',
insert : 'Einfügen',
styles : 'Stile',
colors : 'Farben',
tools : 'Werkzeuge'
},
bidi :
{
ltr : 'Leserichtung von Links nach Rechts',
rtl : 'Leserichtung von Rechts nach Links'
},
docprops :
{
label : 'Dokument-Eigenschaften',
title : 'Dokument-Eigenschaften',
design : 'Design',
meta : 'Metadaten',
chooseColor : 'Wählen',
other : '<andere>',
docTitle : 'Seitentitel',
charset : 'Zeichenkodierung',
charsetOther : 'Andere Zeichenkodierung',
charsetASCII : 'ASCII',
charsetCE : 'Zentraleuropäisch',
charsetCT : 'traditionell Chinesisch (Big5)',
charsetCR : 'Kyrillisch',
charsetGR : 'Griechisch',
charsetJP : 'Japanisch',
charsetKR : 'Koreanisch',
charsetTR : 'Türkisch',
charsetUN : 'Unicode (UTF-8)',
charsetWE : 'Westeuropäisch',
docType : 'Dokumententyp',
docTypeOther : 'Anderer Dokumententyp',
xhtmlDec : 'Beziehe XHTML Deklarationen ein',
bgColor : 'Hintergrundfarbe',
bgImage : 'Hintergrundbild URL',
bgFixed : 'feststehender Hintergrund',
txtColor : 'Textfarbe',
margin : 'Seitenränder',
marginTop : 'Oben',
marginLeft : 'Links',
marginRight : 'Rechts',
marginBottom : 'Unten',
metaKeywords : 'Schlüsselwörter (durch Komma getrennt)',
metaDescription : 'Dokument-Beschreibung',
metaAuthor : 'Autor',
metaCopyright : 'Copyright',
previewHtml : '<p>Das ist ein <strong>Beispieltext</strong>. Du schreibst in <a href="javascript:void(0)">CKEditor</a>.</p>'
}
};
| 10npsite | trunk/guanli/system/ckeditor/_source/lang/de.js | JavaScript | asf20 | 24,763 |
/*
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
* Polish language.
*/
/**#@+
@type String
@example
*/
/**
* Contains the dictionary of language entries.
* @namespace
*/
CKEDITOR.lang['pl'] =
{
/**
* 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 : 'ltr',
/*
* Screenreader titles. Please note that screenreaders are not always capable
* of reading non-English words. So be careful while translating it.
*/
editorTitle : 'Rich text editor, %1', // MISSING
editorHelp : 'Press ALT 0 for help', // MISSING
// ARIA descriptions.
toolbars : 'Paski narzędzi edytora',
editor : 'Edytor tekstu sformatowanego',
// Toolbar buttons without dialogs.
source : 'Źródło dokumentu',
newPage : 'Nowa strona',
save : 'Zapisz',
preview : 'Podgląd',
cut : 'Wytnij',
copy : 'Kopiuj',
paste : 'Wklej',
print : 'Drukuj',
underline : 'Podkreślenie',
bold : 'Pogrubienie',
italic : 'Kursywa',
selectAll : 'Zaznacz wszystko',
removeFormat : 'Usuń formatowanie',
strike : 'Przekreślenie',
subscript : 'Indeks dolny',
superscript : 'Indeks górny',
horizontalrule : 'Wstaw poziomą linię',
pagebreak : 'Wstaw podział strony',
pagebreakAlt : 'Wstaw podział strony',
unlink : 'Usuń odnośnik',
undo : 'Cofnij',
redo : 'Ponów',
// Common messages and labels.
common :
{
browseServer : 'Przeglądaj',
url : 'Adres URL',
protocol : 'Protokół',
upload : 'Wyślij',
uploadSubmit : 'Wyślij',
image : 'Obrazek',
flash : 'Flash',
form : 'Formularz',
checkbox : 'Pole wyboru (checkbox)',
radio : 'Przycisk opcji (radio)',
textField : 'Pole tekstowe',
textarea : 'Obszar tekstowy',
hiddenField : 'Pole ukryte',
button : 'Przycisk',
select : 'Lista wyboru',
imageButton : 'Przycisk graficzny',
notSet : '<nie ustawiono>',
id : 'Id',
name : 'Nazwa',
langDir : 'Kierunek tekstu',
langDirLtr : 'Od lewej do prawej (LTR)',
langDirRtl : 'Od prawej do lewej (RTL)',
langCode : 'Kod języka',
longDescr : 'Adres URL długiego opisu',
cssClass : 'Nazwa klasy CSS',
advisoryTitle : 'Opis obiektu docelowego',
cssStyle : 'Styl',
ok : 'OK',
cancel : 'Anuluj',
close : 'Zamknij',
preview : 'Podgląd',
generalTab : 'Ogólne',
advancedTab : 'Zaawansowane',
validateNumberFailed : 'Ta wartość nie jest liczbą.',
confirmNewPage : 'Wszystkie niezapisane zmiany zostaną utracone. Czy na pewno wczytać nową stronę?',
confirmCancel : 'Pewne opcje zostały zmienione. Czy na pewno zamknąć okno dialogowe?',
options : 'Opcje',
target : 'Obiekt docelowy',
targetNew : 'Nowe okno (_blank)',
targetTop : 'Okno najwyżej w hierarchii (_top)',
targetSelf : 'To samo okno (_self)',
targetParent : 'Okno nadrzędne (_parent)',
langDirLTR : 'Od lewej do prawej (LTR)',
langDirRTL : 'Od prawej do lewej (RTL)',
styles : 'Style',
cssClasses : 'Klasy arkusza stylów',
width : 'Szerokość',
height : 'Wysokość',
align : 'Wyrównaj',
alignLeft : 'Do lewej',
alignRight : 'Do prawej',
alignCenter : 'Do środka',
alignTop : 'Do góry',
alignMiddle : 'Do środka',
alignBottom : 'Do dołu',
invalidHeight : 'Wysokość musi być liczbą.',
invalidWidth : 'Szerokość musi być liczbą.',
invalidCssLength : 'Wartość podana dla pola "%1" musi być liczbą dodatnią bez jednostki lub z poprawną jednostką długości zgodną z CSS (px, %, in, cm, mm, em, ex, pt lub pc).',
invalidHtmlLength : 'Wartość podana dla pola "%1" musi być liczbą dodatnią bez jednostki lub z poprawną jednostką długości zgodną z HTML (px lub %).',
invalidInlineStyle : 'Wartość podana dla stylu musi składać się z jednej lub większej liczby krotek w formacie "nazwa : wartość", rozdzielonych średnikami.',
cssLengthTooltip : 'Wpisz liczbę dla wartości w pikselach lub liczbę wraz z jednostką długości zgodną z CSS (px, %, in, cm, mm, em, ex, pt lub pc).',
// Put the voice-only part of the label in the span.
unavailable : '%1<span class="cke_accessibility">, niedostępne</span>'
},
contextmenu :
{
options : 'Opcje menu kontekstowego'
},
// Special char dialog.
specialChar :
{
toolbar : 'Wstaw znak specjalny',
title : 'Wybierz znak specjalny',
options : 'Opcje znaków specjalnych'
},
// Link dialog.
link :
{
toolbar : 'Wstaw/edytuj odnośnik',
other : '<inny>',
menu : 'Edytuj odnośnik',
title : 'Odnośnik',
info : 'Informacje ',
target : 'Obiekt docelowy',
upload : 'Wyślij',
advanced : 'Zaawansowane',
type : 'Typ odnośnika',
toUrl : 'Adres URL',
toAnchor : 'Odnośnik wewnątrz strony (kotwica)',
toEmail : 'Adres e-mail',
targetFrame : '<ramka>',
targetPopup : '<wyskakujące okno>',
targetFrameName : 'Nazwa ramki docelowej',
targetPopupName : 'Nazwa wyskakującego okna',
popupFeatures : 'Właściwości wyskakującego okna',
popupResizable : 'Skalowalny',
popupStatusBar : 'Pasek statusu',
popupLocationBar: 'Pasek adresu',
popupToolbar : 'Pasek narzędzi',
popupMenuBar : 'Pasek menu',
popupFullScreen : 'Pełny ekran (IE)',
popupScrollBars : 'Paski przewijania',
popupDependent : 'Okno zależne (Netscape)',
popupLeft : 'Pozycja w poziomie',
popupTop : 'Pozycja w pionie',
id : 'Id',
langDir : 'Kierunek tekstu',
langDirLTR : 'Od lewej do prawej (LTR)',
langDirRTL : 'Od prawej do lewej (RTL)',
acccessKey : 'Klawisz dostępu',
name : 'Nazwa',
langCode : 'Kod języka',
tabIndex : 'Indeks kolejności',
advisoryTitle : 'Opis obiektu docelowego',
advisoryContentType : 'Typ MIME obiektu docelowego',
cssClasses : 'Nazwa klasy CSS',
charset : 'Kodowanie znaków obiektu docelowego',
styles : 'Styl',
rel : 'Relacja',
selectAnchor : 'Wybierz kotwicę',
anchorName : 'Wg nazwy',
anchorId : 'Wg identyfikatora',
emailAddress : 'Adres e-mail',
emailSubject : 'Temat',
emailBody : 'Treść',
noAnchors : '(W dokumencie nie zdefiniowano żadnych kotwic)',
noUrl : 'Podaj adres URL',
noEmail : 'Podaj adres e-mail'
},
// Anchor dialog
anchor :
{
toolbar : 'Wstaw/edytuj kotwicę',
menu : 'Właściwości kotwicy',
title : 'Właściwości kotwicy',
name : 'Nazwa kotwicy',
errorName : 'Wpisz nazwę kotwicy',
remove : 'Usuń kotwicę'
},
// List style dialog
list:
{
numberedTitle : 'Właściwości list numerowanych',
bulletedTitle : 'Właściwości list wypunktowanych',
type : 'Typ punktora',
start : 'Początek',
validateStartNumber :'Listę musi rozpoczynać liczba całkowita.',
circle : 'Koło',
disc : 'Okrąg',
square : 'Kwadrat',
none : 'Brak',
notset : '<nie ustawiono>',
armenian : 'Numerowanie armeńskie',
georgian : 'Numerowanie gruzińskie (an, ban, gan itd.)',
lowerRoman : 'Małe cyfry rzymskie (i, ii, iii, iv, v itd.)',
upperRoman : 'Duże cyfry rzymskie (I, II, III, IV, V itd.)',
lowerAlpha : 'Małe litery (a, b, c, d, e itd.)',
upperAlpha : 'Duże litery (A, B, C, D, E itd.)',
lowerGreek : 'Małe litery greckie (alpha, beta, gamma itd.)',
decimal : 'Liczby (1, 2, 3 itd.)',
decimalLeadingZero : 'Liczby z początkowym zerem (01, 02, 03 itd.)'
},
// Find And Replace Dialog
findAndReplace :
{
title : 'Znajdź i zamień',
find : 'Znajdź',
replace : 'Zamień',
findWhat : 'Znajdź:',
replaceWith : 'Zastąp przez:',
notFoundMsg : 'Nie znaleziono szukanego hasła.',
findOptions : 'Opcje wyszukiwania',
matchCase : 'Uwzględnij wielkość liter',
matchWord : 'Całe słowa',
matchCyclic : 'Cykliczne dopasowanie',
replaceAll : 'Zamień wszystko',
replaceSuccessMsg : '%1 wystąpień zastąpionych.'
},
// Table Dialog
table :
{
toolbar : 'Tabela',
title : 'Właściwości tabeli',
menu : 'Właściwości tabeli',
deleteTable : 'Usuń tabelę',
rows : 'Liczba wierszy',
columns : 'Liczba kolumn',
border : 'Grubość obramowania',
widthPx : 'piksele',
widthPc : '%',
widthUnit : 'jednostka szerokości',
cellSpace : 'Odstęp pomiędzy komórkami',
cellPad : 'Dopełnienie komórek',
caption : 'Tytuł',
summary : 'Podsumowanie',
headers : 'Nagłówki',
headersNone : 'Brak',
headersColumn : 'Pierwsza kolumna',
headersRow : 'Pierwszy wiersz',
headersBoth : 'Oba',
invalidRows : 'Liczba wierszy musi być większa niż 0.',
invalidCols : 'Liczba kolumn musi być większa niż 0.',
invalidBorder : 'Wartość obramowania musi być liczbą.',
invalidWidth : 'Szerokość tabeli musi być liczbą.',
invalidHeight : 'Wysokość tabeli musi być liczbą.',
invalidCellSpacing : 'Odstęp pomiędzy komórkami musi być liczbą dodatnią.',
invalidCellPadding : 'Dopełnienie komórek musi być liczbą dodatnią.',
cell :
{
menu : 'Komórka',
insertBefore : 'Wstaw komórkę z lewej',
insertAfter : 'Wstaw komórkę z prawej',
deleteCell : 'Usuń komórki',
merge : 'Połącz komórki',
mergeRight : 'Połącz z komórką z prawej',
mergeDown : 'Połącz z komórką poniżej',
splitHorizontal : 'Podziel komórkę poziomo',
splitVertical : 'Podziel komórkę pionowo',
title : 'Właściwości komórki',
cellType : 'Typ komórki',
rowSpan : 'Scalenie wierszy',
colSpan : 'Scalenie komórek',
wordWrap : 'Zawijanie słów',
hAlign : 'Wyrównanie poziome',
vAlign : 'Wyrównanie pionowe',
alignBaseline : 'Linia bazowa',
bgColor : 'Kolor tła',
borderColor : 'Kolor obramowania',
data : 'Dane',
header : 'Nagłówek',
yes : 'Tak',
no : 'Nie',
invalidWidth : 'Szerokość komórki musi być liczbą.',
invalidHeight : 'Wysokość komórki musi być liczbą.',
invalidRowSpan : 'Scalenie wierszy musi być liczbą całkowitą.',
invalidColSpan : 'Scalenie komórek musi być liczbą całkowitą.',
chooseColor : 'Wybierz'
},
row :
{
menu : 'Wiersz',
insertBefore : 'Wstaw wiersz powyżej',
insertAfter : 'Wstaw wiersz poniżej',
deleteRow : 'Usuń wiersze'
},
column :
{
menu : 'Kolumna',
insertBefore : 'Wstaw kolumnę z lewej',
insertAfter : 'Wstaw kolumnę z prawej',
deleteColumn : 'Usuń kolumny'
}
},
// Button Dialog.
button :
{
title : 'Właściwości przycisku',
text : 'Tekst (Wartość)',
type : 'Typ',
typeBtn : 'Przycisk',
typeSbm : 'Wyślij',
typeRst : 'Wyczyść'
},
// Checkbox and Radio Button Dialogs.
checkboxAndRadio :
{
checkboxTitle : 'Właściwości pola wyboru (checkbox)',
radioTitle : 'Właściwości przycisku opcji (radio)',
value : 'Wartość',
selected : 'Zaznaczone'
},
// Form Dialog.
form :
{
title : 'Właściwości formularza',
menu : 'Właściwości formularza',
action : 'Akcja',
method : 'Metoda',
encoding : 'Kodowanie'
},
// Select Field Dialog.
select :
{
title : 'Właściwości listy wyboru',
selectInfo : 'Informacje',
opAvail : 'Dostępne opcje',
value : 'Wartość',
size : 'Rozmiar',
lines : 'wierszy',
chkMulti : 'Wielokrotny wybór',
opText : 'Tekst',
opValue : 'Wartość',
btnAdd : 'Dodaj',
btnModify : 'Zmień',
btnUp : 'Do góry',
btnDown : 'Do dołu',
btnSetValue : 'Ustaw jako zaznaczoną',
btnDelete : 'Usuń'
},
// Textarea Dialog.
textarea :
{
title : 'Właściwości obszaru tekstowego',
cols : 'Liczba kolumn',
rows : 'Liczba wierszy'
},
// Text Field Dialog.
textfield :
{
title : 'Właściwości pola tekstowego',
name : 'Nazwa',
value : 'Wartość',
charWidth : 'Szerokość w znakach',
maxChars : 'Szerokość maksymalna',
type : 'Typ',
typeText : 'Tekst',
typePass : 'Hasło'
},
// Hidden Field Dialog.
hidden :
{
title : 'Właściwości pola ukrytego',
name : 'Nazwa',
value : 'Wartość'
},
// Image Dialog.
image :
{
title : 'Właściwości obrazka',
titleButton : 'Właściwości przycisku graficznego',
menu : 'Właściwości obrazka',
infoTab : 'Informacje o obrazku',
btnUpload : 'Wyślij',
upload : 'Wyślij',
alt : 'Tekst zastępczy',
lockRatio : 'Zablokuj proporcje',
resetSize : 'Przywróć rozmiar',
border : 'Obramowanie',
hSpace : 'Odstęp poziomy',
vSpace : 'Odstęp pionowy',
alertUrl : 'Podaj adres obrazka.',
linkTab : 'Hiperłącze',
button2Img : 'Czy chcesz przekonwertować zaznaczony przycisk graficzny do zwykłego obrazka?',
img2Button : 'Czy chcesz przekonwertować zaznaczony obrazek do przycisku graficznego?',
urlMissing : 'Podaj adres URL obrazka.',
validateBorder : 'Wartość obramowania musi być liczbą całkowitą.',
validateHSpace : 'Wartość odstępu poziomego musi być liczbą całkowitą.',
validateVSpace : 'Wartość odstępu pionowego musi być liczbą całkowitą.'
},
// Flash Dialog
flash :
{
properties : 'Właściwości obiektu Flash',
propertiesTab : 'Właściwości',
title : 'Właściwości obiektu Flash',
chkPlay : 'Autoodtwarzanie',
chkLoop : 'Pętla',
chkMenu : 'Włącz menu',
chkFull : 'Zezwól na pełny ekran',
scale : 'Skaluj',
scaleAll : 'Pokaż wszystko',
scaleNoBorder : 'Bez obramowania',
scaleFit : 'Dokładne dopasowanie',
access : 'Dostęp skryptów',
accessAlways : 'Zawsze',
accessSameDomain: 'Ta sama domena',
accessNever : 'Nigdy',
alignAbsBottom : 'Do dołu',
alignAbsMiddle : 'Do środka w pionie',
alignBaseline : 'Do linii bazowej',
alignTextTop : 'Do góry tekstu',
quality : 'Jakość',
qualityBest : 'Najlepsza',
qualityHigh : 'Wysoka',
qualityAutoHigh : 'Auto wysoka',
qualityMedium : 'Średnia',
qualityAutoLow : 'Auto niska',
qualityLow : 'Niska',
windowModeWindow: 'Okno',
windowModeOpaque: 'Nieprzezroczyste',
windowModeTransparent : 'Przezroczyste',
windowMode : 'Tryb okna',
flashvars : 'Zmienne obiektu Flash',
bgcolor : 'Kolor tła',
hSpace : 'Odstęp poziomy',
vSpace : 'Odstęp pionowy',
validateSrc : 'Podaj adres URL',
validateHSpace : 'Odstęp poziomy musi być liczbą.',
validateVSpace : 'Odstęp pionowy musi być liczbą.'
},
// Speller Pages Dialog
spellCheck :
{
toolbar : 'Sprawdź pisownię',
title : 'Sprawdź pisownię',
notAvailable : 'Przepraszamy, ale usługa jest obecnie niedostępna.',
errorLoading : 'Błąd wczytywania hosta aplikacji usługi: %s.',
notInDic : 'Słowa nie ma w słowniku',
changeTo : 'Zmień na',
btnIgnore : 'Ignoruj',
btnIgnoreAll : 'Ignoruj wszystkie',
btnReplace : 'Zmień',
btnReplaceAll : 'Zmień wszystkie',
btnUndo : 'Cofnij',
noSuggestions : '- Brak sugestii -',
progress : 'Trwa sprawdzanie...',
noMispell : 'Sprawdzanie zakończone: nie znaleziono błędów',
noChanges : 'Sprawdzanie zakończone: nie zmieniono żadnego słowa',
oneChange : 'Sprawdzanie zakończone: zmieniono jedno słowo',
manyChanges : 'Sprawdzanie zakończone: zmieniono %l słów',
ieSpellDownload : 'Słownik nie jest zainstalowany. Czy chcesz go pobrać?'
},
smiley :
{
toolbar : 'Emotikony',
title : 'Wstaw emotikona',
options : 'Opcje emotikonów'
},
elementsPath :
{
eleLabel : 'Ścieżka elementów',
eleTitle : 'element %1'
},
numberedlist : 'Lista numerowana',
bulletedlist : 'Lista wypunktowana',
indent : 'Zwiększ wcięcie',
outdent : 'Zmniejsz wcięcie',
justify :
{
left : 'Wyrównaj do lewej',
center : 'Wyśrodkuj',
right : 'Wyrównaj do prawej',
block : 'Wyjustuj'
},
blockquote : 'Cytat',
clipboard :
{
title : 'Wklej',
cutError : 'Ustawienia bezpieczeństwa Twojej przeglądarki nie pozwalają na automatyczne wycinanie tekstu. Użyj skrótu klawiszowego Ctrl/Cmd+X.',
copyError : 'Ustawienia bezpieczeństwa Twojej przeglądarki nie pozwalają na automatyczne kopiowanie tekstu. Użyj skrótu klawiszowego Ctrl/Cmd+C.',
pasteMsg : 'Wklej tekst w poniższym polu, używając skrótu klawiaturowego (<STRONG>Ctrl/Cmd+V</STRONG>), i kliknij <STRONG>OK</STRONG>.',
securityMsg : 'Zabezpieczenia przeglądarki uniemożliwiają wklejenie danych bezpośrednio do edytora. Proszę ponownie wkleić dane w tym oknie.',
pasteArea : 'Obszar wklejania'
},
pastefromword :
{
confirmCleanup : 'Tekst, który chcesz wkleić, prawdopodobnie pochodzi z programu Microsoft Word. Czy chcesz go wyczyścić przed wklejeniem?',
toolbar : 'Wklej z programu MS Word',
title : 'Wklej z programu MS Word',
error : 'Wyczyszczenie wklejonych danych nie było możliwe z powodu wystąpienia błędu.'
},
pasteText :
{
button : 'Wklej jako czysty tekst',
title : 'Wklej jako czysty tekst'
},
templates :
{
button : 'Szablony',
title : 'Szablony zawartości',
options : 'Opcje szablonów',
insertOption : 'Zastąp obecną zawartość',
selectPromptMsg : 'Wybierz szablon do otwarcia w edytorze<br>(obecna zawartość okna edytora zostanie utracona):',
emptyListMsg : '(Brak zdefiniowanych szablonów)'
},
showBlocks : 'Pokaż bloki',
stylesCombo :
{
label : 'Styl',
panelTitle : 'Style formatujące',
panelTitle1 : 'Style blokowe',
panelTitle2 : 'Style liniowe',
panelTitle3 : 'Style obiektowe'
},
format :
{
label : 'Format',
panelTitle : 'Format',
tag_p : 'Normalny',
tag_pre : 'Tekst sformatowany',
tag_address : 'Adres',
tag_h1 : 'Nagłówek 1',
tag_h2 : 'Nagłówek 2',
tag_h3 : 'Nagłówek 3',
tag_h4 : 'Nagłówek 4',
tag_h5 : 'Nagłówek 5',
tag_h6 : 'Nagłówek 6',
tag_div : 'Normalny (DIV)'
},
div :
{
title : 'Utwórz pojemnik Div',
toolbar : 'Utwórz pojemnik Div',
cssClassInputLabel : 'Klasy arkusza stylów',
styleSelectLabel : 'Styl',
IdInputLabel : 'Id',
languageCodeInputLabel : 'Kod języka',
inlineStyleInputLabel : 'Style liniowe',
advisoryTitleInputLabel : 'Opis obiektu docelowego',
langDirLabel : 'Kierunek tekstu',
langDirLTRLabel : 'Od lewej do prawej (LTR)',
langDirRTLLabel : 'Od prawej do lewej (RTL)',
edit : 'Edytuj pojemnik Div',
remove : 'Usuń pojemnik Div'
},
iframe :
{
title : 'Właściwości elementu IFrame',
toolbar : 'IFrame',
noUrl : 'Podaj adres URL elementu IFrame',
scrolling : 'Włącz paski przewijania',
border : 'Pokaż obramowanie obiektu IFrame'
},
font :
{
label : 'Czcionka',
voiceLabel : 'Czcionka',
panelTitle : 'Czcionka'
},
fontSize :
{
label : 'Rozmiar',
voiceLabel : 'Rozmiar czcionki',
panelTitle : 'Rozmiar'
},
colorButton :
{
textColorTitle : 'Kolor tekstu',
bgColorTitle : 'Kolor tła',
panelTitle : 'Kolory',
auto : 'Automatycznie',
more : 'Więcej kolorów...'
},
colors :
{
'000' : 'Czarny',
'800000' : 'Kasztanowy',
'8B4513' : 'Czekoladowy',
'2F4F4F' : 'Ciemnografitowy',
'008080' : 'Morski',
'000080' : 'Granatowy',
'4B0082' : 'Indygo',
'696969' : 'Ciemnoszary',
'B22222' : 'Czerwień żelazowa',
'A52A2A' : 'Brązowy',
'DAA520' : 'Ciemnozłoty',
'006400' : 'Ciemnozielony',
'40E0D0' : 'Turkusowy',
'0000CD' : 'Ciemnoniebieski',
'800080' : 'Purpurowy',
'808080' : 'Szary',
'F00' : 'Czerwony',
'FF8C00' : 'Ciemnopomarańczowy',
'FFD700' : 'Złoty',
'008000' : 'Zielony',
'0FF' : 'Cyjan',
'00F' : 'Niebieski',
'EE82EE' : 'Fioletowy',
'A9A9A9' : 'Przygaszony szary',
'FFA07A' : 'Łososiowy',
'FFA500' : 'Pomarańczowy',
'FFFF00' : 'Żółty',
'00FF00' : 'Limonkowy',
'AFEEEE' : 'Bladoturkusowy',
'ADD8E6' : 'Jasnoniebieski',
'DDA0DD' : 'Śliwkowy',
'D3D3D3' : 'Jasnoszary',
'FFF0F5' : 'Jasnolawendowy',
'FAEBD7' : 'Kremowobiały',
'FFFFE0' : 'Jasnożółty',
'F0FFF0' : 'Bladozielony',
'F0FFFF' : 'Jasnolazurowy',
'F0F8FF' : 'Jasnobłękitny',
'E6E6FA' : 'Lawendowy',
'FFF' : 'Biały'
},
scayt :
{
title : 'Sprawdź pisownię podczas pisania (SCAYT)',
opera_title : 'Funkcja nie jest obsługiwana przez przeglądarkę Opera',
enable : 'Włącz SCAYT',
disable : 'Wyłącz SCAYT',
about : 'Informacje o SCAYT',
toggle : 'Przełącz SCAYT',
options : 'Opcje',
langs : 'Języki',
moreSuggestions : 'Więcej sugestii',
ignore : 'Ignoruj',
ignoreAll : 'Ignoruj wszystkie',
addWord : 'Dodaj słowo',
emptyDic : 'Nazwa słownika nie może być pusta.',
optionsTab : 'Opcje',
allCaps : 'Ignoruj wyrazy pisane dużymi literami',
ignoreDomainNames : 'Ignoruj nazwy domen',
mixedCase : 'Ignoruj wyrazy pisane dużymi i małymi literami',
mixedWithDigits : 'Ignoruj wyrazy zawierające cyfry',
languagesTab : 'Języki',
dictionariesTab : 'Słowniki',
dic_field_name : 'Nazwa słownika',
dic_create : 'Utwórz',
dic_restore : 'Przywróć',
dic_delete : 'Usuń',
dic_rename : 'Zmień nazwę',
dic_info : 'Początkowo słownik użytkownika przechowywany jest w cookie. Pliki cookie mają jednak ograniczoną pojemność. Jeśli słownik użytkownika przekroczy wielkość dopuszczalną dla pliku cookie, możliwe jest przechowanie go na naszym serwerze. W celu zapisania słownika na serwerze niezbędne jest nadanie mu nazwy. Jeśli słownik został już zapisany na serwerze, wystarczy podać jego nazwę i nacisnąć przycisk Przywróć.',
aboutTab : 'Informacje o SCAYT'
},
about :
{
title : 'Informacje o programie CKEditor',
dlgTitle : 'Informacje o programie CKEditor',
help : 'Pomoc znajdziesz w $1.',
userGuide : 'podręczniku użytkownika programu CKEditor',
moreInfo : 'Informacje na temat licencji można znaleźć na naszej stronie:',
copy : 'Copyright © $1. Wszelkie prawa zastrzeżone.'
},
maximize : 'Maksymalizuj',
minimize : 'Minimalizuj',
fakeobjects :
{
anchor : 'Kotwica',
flash : 'Animacja Flash',
iframe : 'IFrame',
hiddenfield : 'Pole ukryte',
unknown : 'Nieznany obiekt'
},
resize : 'Przeciągnij, aby zmienić rozmiar',
colordialog :
{
title : 'Wybierz kolor',
options : 'Opcje koloru',
highlight : 'Zaznacz',
selected : 'Wybrany',
clear : 'Wyczyść'
},
toolbarCollapse : 'Zwiń pasek narzędzi',
toolbarExpand : 'Rozwiń pasek narzędzi',
toolbarGroups :
{
document : 'Dokument',
clipboard : 'Schowek/Wstecz',
editing : 'Edycja',
forms : 'Formularze',
basicstyles : 'Style podstawowe',
paragraph : 'Akapit',
links : 'Hiperłącza',
insert : 'Wstawianie',
styles : 'Style',
colors : 'Kolory',
tools : 'Narzędzia'
},
bidi :
{
ltr : 'Kierunek tekstu od lewej strony do prawej',
rtl : 'Kierunek tekstu od prawej strony do lewej'
},
docprops :
{
label : 'Właściwości dokumentu',
title : 'Właściwości dokumentu',
design : 'Projekt strony',
meta : 'Znaczniki meta',
chooseColor : 'Wybierz',
other : 'Inne',
docTitle : 'Tytuł strony',
charset : 'Kodowanie znaków',
charsetOther : 'Inne kodowanie znaków',
charsetASCII : 'ASCII',
charsetCE : 'Środkowoeuropejskie',
charsetCT : 'Chińskie tradycyjne (Big5)',
charsetCR : 'Cyrylica',
charsetGR : 'Greckie',
charsetJP : 'Japońskie',
charsetKR : 'Koreańskie',
charsetTR : 'Tureckie',
charsetUN : 'Unicode (UTF-8)',
charsetWE : 'Zachodnioeuropejskie',
docType : 'Definicja typu dokumentu',
docTypeOther : 'Inna definicja typu dokumentu',
xhtmlDec : 'Uwzględnij deklaracje XHTML',
bgColor : 'Kolor tła',
bgImage : 'Adres URL obrazka tła',
bgFixed : 'Tło nieruchome (nieprzewijające się)',
txtColor : 'Kolor tekstu',
margin : 'Marginesy strony',
marginTop : 'Górny',
marginLeft : 'Lewy',
marginRight : 'Prawy',
marginBottom : 'Dolny',
metaKeywords : 'Słowa kluczowe dokumentu (oddzielone przecinkami)',
metaDescription : 'Opis dokumentu',
metaAuthor : 'Autor',
metaCopyright : 'Prawa autorskie',
previewHtml : '<p>To jest <strong>przykładowy tekst</strong>. Korzystasz z programu <a href="javascript:void(0)">CKEditor</a>.</p>'
}
};
| 10npsite | trunk/guanli/system/ckeditor/_source/lang/pl.js | JavaScript | asf20 | 25,117 |
/*
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 Georgian
* language.
*/
/**#@+
@type String
@example
*/
/**
* Contains the dictionary of language entries.
* @namespace
*/
CKEDITOR.lang['ka'] =
{
/**
* 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 : 'ltr',
/*
* Screenreader titles. Please note that screenreaders are not always capable
* of reading non-English words. So be careful while translating it.
*/
editorTitle : 'Rich text editor, %1', // MISSING
editorHelp : 'Press ALT 0 for help', // MISSING
// ARIA descriptions.
toolbars : 'Editor toolbars', // MISSING
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 : 'Flash',
form : 'ფორმა',
checkbox : 'მონიშვნის ღილაკი',
radio : 'ამორჩევის ღილაკი',
textField : 'ტექსტური ველი',
textarea : 'ტექსტური არე',
hiddenField : 'მალული ველი',
button : 'ღილაკი',
select : 'არჩევის ველი',
imageButton : 'სურათიანი ღილაკი',
notSet : '<არაფერი>',
id : 'Id',
name : 'სახელი',
langDir : 'ენის მიმართულება',
langDirLtr : 'მარცხნიდან მარჯვნივ (LTR)',
langDirRtl : 'მარჯვნიდან მარცხნივ (RTL)',
langCode : 'ენის კოდი',
longDescr : 'დიდი აღწერის URL',
cssClass : 'CSS კლასი',
advisoryTitle : 'სათაური',
cssStyle : 'CSS სტილი',
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 : 'CSS კლასი',
width : 'სიგანე',
height : 'სიმაღლე',
align : 'სწორება',
alignLeft : 'მარცხენა',
alignRight : 'მარჯვენა',
alignCenter : 'შუა',
alignTop : 'ზემოთა',
alignMiddle : 'შუა',
alignBottom : 'ქვემოთა',
invalidHeight : 'სიმაღლე რიცხვით უნდა იყოს წარმოდგენილი.',
invalidWidth : 'სიგანე რიცხვით უნდა იყოს წარმოდგენილი.',
invalidCssLength : 'Value specified for the "%1" field must be a positive number with or without a valid CSS measurement unit (px, %, in, cm, mm, em, ex, pt, or pc).', // MISSING
invalidHtmlLength : 'Value specified for the "%1" field must be a positive number with or without a valid HTML measurement unit (px or %).', // MISSING
invalidInlineStyle : 'Value specified for the inline style must consist of one or more tuples with the format of "name : value", separated by semi-colons.', // MISSING
cssLengthTooltip : 'Enter a number for a value in pixels or a number with a valid CSS unit (px, %, in, cm, mm, em, ex, pt, or pc).', // MISSING
// 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 : '<frame>',
targetPopup : '<popup ფანჯარა>',
targetFrameName : 'Frame-ის სახელი',
targetPopupName : 'Popup ფანჯრის სახელი',
popupFeatures : 'Popup ფანჯრის პარამეტრები',
popupResizable : 'ცვალებადი ზომით',
popupStatusBar : 'სტატუსის ზოლი',
popupLocationBar: 'ნავიგაციის ზოლი',
popupToolbar : 'ხელსაწყოთა ზოლი',
popupMenuBar : 'მენიუს ზოლი',
popupFullScreen : 'მთელი ეკრანი (IE)',
popupScrollBars : 'გადახვევის ზოლები',
popupDependent : 'დამოკიდებული (Netscape)',
popupLeft : 'მარცხენა პოზიცია',
popupTop : 'ზედა პოზიცია',
id : 'Id',
langDir : 'ენის მიმართულება',
langDirLTR : 'მარცხნიდან მარჯვნივ (LTR)',
langDirRTL : 'მარჯვნიდან მარცხნივ (RTL)',
acccessKey : 'წვდომის ღილაკი',
name : 'სახელი',
langCode : 'ენის კოდი',
tabIndex : 'Tab-ის ინდექსი',
advisoryTitle : 'სათაური',
advisoryContentType : 'შიგთავსის ტიპი',
cssClasses : 'CSS კლასი',
charset : 'კოდირება',
styles : 'CSS სტილი',
rel : 'კავშირი',
selectAnchor : 'აირჩიეთ ღუზა',
anchorName : 'ღუზის სახელით',
anchorId : 'ელემენტის Id-თ',
emailAddress : 'ელფოსტის მისამართები',
emailSubject : 'წერილის სათაური',
emailBody : 'წერილის ტექსტი',
noAnchors : '(ამ დოკუმენტში ღუზა არაა)',
noUrl : 'აკრიფეთ ბმულის URL',
noEmail : 'აკრიფეთ ელფოსტის მისამართი'
},
// Anchor dialog
anchor :
{
toolbar : 'ღუზა',
menu : 'ღუზის რედაქტირება',
title : 'ღუზის პარამეტრები',
name : 'ღუზუს სახელი',
errorName : 'აკრიფეთ ღუზის სახელი',
remove : 'Remove Anchor' // MISSING
},
// List style dialog
list:
{
numberedTitle : 'გადანომრილი სიის პარამეტრები',
bulletedTitle : 'ღილებიანი სიის პარამეტრები',
type : 'ტიპი',
start : 'საწყისი',
validateStartNumber :'სიის საწყისი მთელი რიცხვი უნდა იყოს.',
circle : 'წრეწირი',
disc : 'წრე',
square : 'კვადრატი',
none : 'არაფერი',
notset : '<არაფერი>',
armenian : 'სომხური გადანომრვა',
georgian : 'ქართული გადანომრვა (ან, ბან, გან, ..)',
lowerRoman : 'რომაული გადანომრვცა პატარა ციფრებით (i, ii, iii, iv, v, ..)',
upperRoman : 'რომაული გადანომრვა დიდი ციფრებით (I, II, III, IV, V, etc.)',
lowerAlpha : 'პატარა ლათინური ასოებით (a, b, c, d, e, ..)',
upperAlpha : 'დიდი ლათინური ასოებით (A, B, C, D, E, ..)',
lowerGreek : 'პატარა ბერძნული ასოებით (ალფა, ბეტა, გამა, ..)',
decimal : 'რიცხვებით (1, 2, 3, ..)',
decimalLeadingZero : 'ნულით დაწყებული რიცხვებით (01, 02, 03, ..)'
},
// Find And Replace Dialog
findAndReplace :
{
title : 'ძებნა და შეცვლა',
find : 'ძებნა',
replace : 'შეცვლა',
findWhat : 'საძიებელი ტექსტი:',
replaceWith : 'შეცვლის ტექსტი:',
notFoundMsg : 'მითითებული ტექსტი არ მოიძებნა.',
findOptions : 'Find Options', // MISSING
matchCase : 'დიდი და პატარა ასოების დამთხვევა',
matchWord : 'მთელი სიტყვის დამთხვევა',
matchCyclic : 'დოკუმენტის ბოლოში გასვლის მერე თავიდან დაწყება',
replaceAll : 'ყველას შეცვლა',
replaceSuccessMsg : '%1 მოძებნილი შეიცვალა.'
},
// Table Dialog
table :
{
toolbar : 'ცხრილი',
title : 'ცხრილის პარამეტრები',
menu : 'ცხრილის პარამეტრები',
deleteTable : 'ცხრილის წაშლა',
rows : 'სტრიქონი',
columns : 'სვეტი',
border : 'ჩარჩოს ზომა',
widthPx : 'წერტილი',
widthPc : 'პროცენტი',
widthUnit : 'საზომი ერთეული',
cellSpace : 'უჯრის სივრცე (spacing)',
cellPad : 'უჯრის კიდე (padding)',
caption : 'სათაური',
summary : 'შეჯამება',
headers : 'სათაურები',
headersNone : 'არაფერი',
headersColumn : 'პირველი სვეტი',
headersRow : 'პირველი სტრიქონი',
headersBoth : 'ორივე',
invalidRows : 'სტრიქონების რაოდენობა დადებითი რიცხვი უნდა იყოს.',
invalidCols : 'სვეტების რაოდენობა დადებითი რიცხვი უნდა იყოს.',
invalidBorder : 'ჩარჩოს ზომა რიცხვით უდნა იყოს წარმოდგენილი.',
invalidWidth : 'ცხრილის სიგანე რიცხვით უნდა იყოს წარმოდგენილი.',
invalidHeight : 'ცხრილის სიმაღლე რიცხვით უნდა იყოს წარმოდგენილი.',
invalidCellSpacing : 'უჯრის სივრცე (spacing) რიცხვით უნდა იყოს წარმოდგენილი.',
invalidCellPadding : 'უჯრის კიდე (padding) რიცხვით უნდა იყოს წარმოდგენილი.',
cell :
{
menu : 'უჯრა',
insertBefore : 'უჯრის ჩასმა მანამდე',
insertAfter : 'უჯრის ჩასმა მერე',
deleteCell : 'უჯრების წაშლა',
merge : 'უჯრების შეერთება',
mergeRight : 'შეერთება მარჯვენასთან',
mergeDown : 'შეერთება ქვემოთასთან',
splitHorizontal : 'გაყოფა ჰორიზონტალურად',
splitVertical : 'გაყოფა ვერტიკალურად',
title : 'უჯრის პარამეტრები',
cellType : 'უჯრის ტიპი',
rowSpan : 'სტრიქონების ოდენობა',
colSpan : 'სვეტების ოდენობა',
wordWrap : 'სტრიქონის გადატანა (Word Wrap)',
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 : 'მონიშვნის ღილაკის (Checkbox) პარამეტრები',
radioTitle : 'ასარჩევი ღილაკის (Radio) პარამეტრები',
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 : 'Flash-ის პარამეტრები',
propertiesTab : 'პარამეტრები',
title : 'Flash-ის პარამეტრები',
chkPlay : 'ავტო გაშვება',
chkLoop : 'ჩაციკლვა',
chkMenu : 'Flash-ის მენიუს დაშვება',
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 : 'ცვლადები Flash-ისთვის',
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>) და დააჭირეთ OK-ს',
securityMsg : 'თქვენი ბროუზერის უსაფრთხოების პარამეტრები არ იძლევა clipboard-ის მონაცემების წვდომის უფლებას. კიდევ უნდა ჩასვათ ტექსტი ამ ფანჯარაში.',
pasteArea : 'ჩასმის არე'
},
pastefromword :
{
confirmCleanup : 'ჩასასმელი ტექსტი ვორდიდან გადმოტანილს გავს - გინდათ მისი წინასწარ გაწმენდა?',
toolbar : 'ვორდიდან ჩასმა',
title : 'ვორდიდან ჩასმა',
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 : 'სათაური 1',
tag_h2 : 'სათაური 2',
tag_h3 : 'სათაური 3',
tag_h4 : 'სათაური 4',
tag_h5 : 'სათაური 5',
tag_h6 : 'სათაური 6',
tag_div : 'ჩვეულებრივი (DIV)'
},
div :
{
title : 'Div კონტეინერის შექმნა',
toolbar : 'Div კონტეინერის შექმნა',
cssClassInputLabel : 'CSS კლასები',
styleSelectLabel : 'სტილი',
IdInputLabel : 'Id',
languageCodeInputLabel : 'ენის კოდი',
inlineStyleInputLabel : 'თანდართული სტილი',
advisoryTitleInputLabel : 'სათაური',
langDirLabel : 'ენის მინართულება',
langDirLTRLabel : 'მარცხნიდან მარჯვნიც (LTR)',
langDirRTLLabel : 'მარჯვნიდან მარცხნივ (RTL)',
edit : 'Div-ის რედაქტირება',
remove : 'Div-ის წაშლა'
},
iframe :
{
title : 'IFrame-ის პარამეტრები',
toolbar : 'IFrame',
noUrl : 'აკრიფეთ iframe-ის URL',
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' : 'ღია ცისფერი 2',
'F0F8FF' : 'ღია ცისფერი 3',
'E6E6FA' : 'ღია იისფერი 2',
'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-ში. თუმცა Cookie შეზღუდულია ზომაში. როცა ლექსიკონის ზომა გაიზრდება საკმაოდ ის შეიძლება შევინახოთ ჩვენს სერვერზე. ჩვენს სერვერზე ლექსიკონს შესანახად უნდა მიუთითოთ მისი სახელი. თუ უკე გაქვთ ლექსიკონი, აკრიფეთ მისი სახელი და დააჭირეთ "დაბრუნების" ღილაკს.',
aboutTab : 'ინფორმაცია'
},
about :
{
title : 'CKEditor-ის შესახებ',
dlgTitle : 'CKEditor-ის შესახებ',
help : 'დახმარებისთვის იხილეთ $1.',
userGuide : 'CKEditor-ის მომხმარებლის სახელმძღვანელო',
moreInfo : 'ლიცენზიის ინფორმაციისთვის ეწვიეთ ჩვენს საიტს:',
copy : 'Copyright © $1. ყველა უფლება დაცულია.'
},
maximize : 'გადიდება',
minimize : 'დაპატარავება',
fakeobjects :
{
anchor : 'ღუზა',
flash : 'Flash ანიმაცია',
iframe : 'IFrame',
hiddenfield : 'მალული ველი',
unknown : 'უცნობი ობიექტი'
},
resize : 'გაწიე ზომის შესაცვლელად',
colordialog :
{
title : 'ფერის შეცვლა',
options : 'ფერის პარამეტრები',
highlight : 'ჩვენება',
selected : 'არჩეული ფერი',
clear : 'გასუფთავება'
},
toolbarCollapse : 'ხელსაწყოთა ზოლის შეწევა',
toolbarExpand : 'ხელსაწყოთა ზოლის გამოწევა',
toolbarGroups :
{
document : 'დოკუმენტი',
clipboard : 'Clipboard/გაუქმება',
editing : 'რედაქტირება',
forms : 'ფორმები',
basicstyles : 'ძირითადი სტილები',
paragraph : 'აბზაცი',
links : 'ბმულები',
insert : 'ჩასმა',
styles : 'სტილები',
colors : 'ფერები',
tools : 'ხელსაწყოები'
},
bidi :
{
ltr : 'ტექსტის მიმართულება მარცხნიდან მარჯვნივ',
rtl : 'ტექსტის მიმართულება მარჯვნიდან მარცხნივ'
},
docprops :
{
label : 'დოკუმენტის პარამეტრები',
title : 'დოკუმენტის პარამეტრები',
design : 'დიზაინი',
meta : 'მეტაTag-ები',
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 : 'Copyright',
previewHtml : '<p>ეს არის <strong>საცდელი ტექსტი</strong>. თქვენ <a href="javascript:void(0)">CKEditor</a>-ით სარგებლობთ.</p>'
}
};
| 10npsite | trunk/guanli/system/ckeditor/_source/lang/ka.js | JavaScript | asf20 | 41,322 |
/*
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
* Vietnamese language.
*/
/**#@+
@type String
@example
*/
/**
* Contains the dictionary of language entries.
* @namespace
*/
CKEDITOR.lang['vi'] =
{
/**
* 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 : 'trái-qua-phải',
/*
* Screenreader titles. Please note that screenreaders are not always capable
* of reading non-English words. So be careful while translating it.
*/
editorTitle : 'Trình soạn thảo phong phú, %1',
editorHelp : 'Nhấn ALT + 0 để được giúp đỡ',
// ARIA descriptions.
toolbars : 'Thanh công cụ',
editor : 'Bộ soạn thảo',
// Toolbar buttons without dialogs.
source : 'Mã HTML',
newPage : 'Trang mới',
save : 'Lưu',
preview : 'Xem trước',
cut : 'Cắt',
copy : 'Sao chép',
paste : 'Dán',
print : 'In',
underline : 'Gạch chân',
bold : 'Đậm',
italic : 'Nghiêng',
selectAll : 'Chọn tất cả',
removeFormat : 'Xoá định dạng',
strike : 'Gạch xuyên ngang',
subscript : 'Chỉ số dưới',
superscript : 'Chỉ số trên',
horizontalrule : 'Chèn đường phân cách ngang',
pagebreak : 'Chèn ngắt trang',
pagebreakAlt : 'Ngắt trang',
unlink : 'Xoá liên kết',
undo : 'Khôi phục thao tác',
redo : 'Làm lại thao tác',
// Common messages and labels.
common :
{
browseServer : 'Duyệt trên máy chủ',
url : 'URL',
protocol : 'Giao thức',
upload : 'Tải lên',
uploadSubmit : 'Tải lên máy chủ',
image : 'Hình ảnh',
flash : 'Flash',
form : 'Biểu mẫu',
checkbox : 'Nút kiểm',
radio : 'Nút chọn',
textField : 'Trường văn bản',
textarea : 'Vùng văn bản',
hiddenField : 'Trường ẩn',
button : 'Nút',
select : 'Ô chọn',
imageButton : 'Nút hình ảnh',
notSet : '<không thiết lập>',
id : 'Định danh',
name : 'Tên',
langDir : 'Hướng ngôn ngữ',
langDirLtr : 'Trái sang phải (LTR)',
langDirRtl : 'Phải sang trái (RTL)',
langCode : 'Mã ngôn ngữ',
longDescr : 'Mô tả URL',
cssClass : 'Lớp Stylesheet',
advisoryTitle : 'Nhan đề hướng dẫn',
cssStyle : 'Kiểu (style)',
ok : 'Đồng ý',
cancel : 'Bỏ qua',
close : 'Đóng',
preview : 'Xem trước',
generalTab : 'Tab chung',
advancedTab : 'Tab mở rộng',
validateNumberFailed : 'Giá trị này không phải là số.',
confirmNewPage : 'Mọi thay đổi không được lưu lại, nội dung này sẽ bị mất. Bạn có chắc chắn muốn tải một trang mới?',
confirmCancel : 'Một vài tùy chọn đã bị thay đổi. Bạn có chắc chắn muốn đóng hộp thoại?',
options : 'Tùy chọn',
target : 'Đích đến',
targetNew : 'Cửa sổ mới (_blank)',
targetTop : 'Cửa sổ trên cùng (_top)',
targetSelf : 'Tại trang (_self)',
targetParent : 'Cửa sổ cha (_parent)',
langDirLTR : 'Trái sang phải (LTR)',
langDirRTL : 'Phải sang trái (RTL)',
styles : 'Kiểu',
cssClasses : 'Lớp CSS',
width : 'Chiều rộng',
height : 'chiều cao',
align : 'Vị trí',
alignLeft : 'Trái',
alignRight : 'Phải',
alignCenter : 'Giữa',
alignTop : 'Trên',
alignMiddle : 'Giữa',
alignBottom : 'Dưới',
invalidHeight : 'Chiều cao phải là số nguyên.',
invalidWidth : 'Chiều rộng phải là số nguyên.',
invalidCssLength : 'Giá trị quy định cho trường "%1" phải là một số dương có hoặc không có một đơn vị đo CSS hợp lệ (px, %, in, cm, mm, em, ex, pt, hoặc pc).',
invalidHtmlLength : 'Giá trị quy định cho trường "%1" phải là một số dương có hoặc không có một đơn vị đo HTML hợp lệ (px hoặc %).',
invalidInlineStyle : 'Giá trị quy định cho kiểu nội tuyến phải bao gồm một hoặc nhiều dữ liệu với định dạng "tên:giá trị", cách nhau bằng dấu chấm phẩy.',
cssLengthTooltip : 'Nhập một giá trị theo pixel hoặc một số với một đơn vị CSS hợp lệ (px, %, in, cm, mm, em, ex, pt, hoặc pc).',
// Put the voice-only part of the label in the span.
unavailable : '%1<span class="cke_accessibility">, không có</span>'
},
contextmenu :
{
options : 'Tùy chọn menu bổ xung'
},
// Special char dialog.
specialChar :
{
toolbar : 'Chèn ký tự đặc biệt',
title : 'Hãy chọn ký tự đặc biệt',
options : 'Tùy chọn các ký tự đặc biệt'
},
// Link dialog.
link :
{
toolbar : 'Chèn/Sửa liên kết',
other : '<khác>',
menu : 'Sửa liên kết',
title : 'Liên kết',
info : 'Thông tin liên kết',
target : 'Đích',
upload : 'Tải lên',
advanced : 'Mở rộng',
type : 'Kiểu liên kết',
toUrl : 'URL',
toAnchor : 'Neo trong trang này',
toEmail : 'Thư điện tử',
targetFrame : '<khung>',
targetPopup : '<cửa sổ popup>',
targetFrameName : 'Tên khung đích',
targetPopupName : 'Tên cửa sổ Popup',
popupFeatures : 'Đặc điểm của cửa sổ Popup',
popupResizable : 'Có thể thay đổi kích cỡ',
popupStatusBar : 'Thanh trạng thái',
popupLocationBar: 'Thanh vị trí',
popupToolbar : 'Thanh công cụ',
popupMenuBar : 'Thanh Menu',
popupFullScreen : 'Toàn màn hình (IE)',
popupScrollBars : 'Thanh cuộn',
popupDependent : 'Phụ thuộc (Netscape)',
popupLeft : 'Vị trí bên trái',
popupTop : 'Vị trí phía trên',
id : 'Định danh',
langDir : 'Hướng ngôn ngữ',
langDirLTR : 'Trái sang phải (LTR)',
langDirRTL : 'Phải sang trái (RTL)',
acccessKey : 'Phím hỗ trợ truy cập',
name : 'Tên',
langCode : 'Mã ngôn ngữ',
tabIndex : 'Chỉ số của Tab',
advisoryTitle : 'Nhan đề hướng dẫn',
advisoryContentType : 'Nội dung hướng dẫn',
cssClasses : 'Lớp Stylesheet',
charset : 'Bảng mã của tài nguyên được liên kết đến',
styles : 'Kiểu (style)',
rel : 'Quan hệ',
selectAnchor : 'Chọn một điểm neo',
anchorName : 'Theo tên điểm neo',
anchorId : 'Theo định danh thành phần',
emailAddress : 'Thư điện tử',
emailSubject : 'Tiêu đề thông điệp',
emailBody : 'Nội dung thông điệp',
noAnchors : '(Không có điểm neo nào trong tài liệu)',
noUrl : 'Hãy đưa vào đường dẫn liên kết (URL)',
noEmail : 'Hãy đưa vào địa chỉ thư điện tử'
},
// Anchor dialog
anchor :
{
toolbar : 'Chèn/Sửa điểm neo',
menu : 'Thuộc tính điểm neo',
title : 'Thuộc tính điểm neo',
name : 'Tên của điểm neo',
errorName : 'Hãy nhập vào tên của điểm neo',
remove : 'Xóa neo'
},
// List style dialog
list:
{
numberedTitle : 'Thuộc tính danh sách có thứ tự',
bulletedTitle : 'Thuộc tính danh sách không thứ tự',
type : 'Kiểu loại',
start : 'Bắt đầu',
validateStartNumber :'Số bắt đầu danh sách phải là một số nguyên.',
circle : 'Khuyên tròn',
disc : 'Hình đĩa',
square : 'Hình vuông',
none : 'Không gì cả',
notset : '<không thiết lập>',
armenian : 'Số theo kiểu Armenian',
georgian : 'Số theo kiểu Georgian (an, ban, gan...)',
lowerRoman : 'Số La Mã kiểu thường (i, ii, iii, iv, v...)',
upperRoman : 'Số La Mã kiểu HOA (I, II, III, IV, V...)',
lowerAlpha : 'Kiểu abc thường (a, b, c, d, e...)',
upperAlpha : 'Kiểu ABC HOA (A, B, C, D, E...)',
lowerGreek : 'Kiểu Hy Lạp (alpha, beta, gamma...)',
decimal : 'Kiểu số (1, 2, 3 ...)',
decimalLeadingZero : 'Kiểu số (01, 02, 03...)'
},
// Find And Replace Dialog
findAndReplace :
{
title : 'Tìm kiếm và thay thế',
find : 'Tìm kiếm',
replace : 'Thay thế',
findWhat : 'Tìm chuỗi:',
replaceWith : 'Thay bằng:',
notFoundMsg : 'Không tìm thấy chuỗi cần tìm.',
findOptions : 'Tìm tùy chọn',
matchCase : 'Phân biệt chữ hoa/thường',
matchWord : 'Giống toàn bộ từ',
matchCyclic : 'Giống một phần',
replaceAll : 'Thay thế tất cả',
replaceSuccessMsg : '%1 vị trí đã được thay thế.'
},
// Table Dialog
table :
{
toolbar : 'Bảng',
title : 'Thuộc tính bảng',
menu : 'Thuộc tính bảng',
deleteTable : 'Xóa bảng',
rows : 'Số hàng',
columns : 'Số cột',
border : 'Kích thước đường viền',
widthPx : 'Điểm ảnh (px)',
widthPc : 'Phần trăm (%)',
widthUnit : 'Đơn vị',
cellSpace : 'Khoảng cách giữa các ô',
cellPad : 'Khoảng đệm giữ ô và nội dung',
caption : 'Đầu đề',
summary : 'Tóm lược',
headers : 'Đầu đề',
headersNone : 'Không có',
headersColumn : 'Cột đầu tiên',
headersRow : 'Hàng đầu tiên',
headersBoth : 'Cả hai',
invalidRows : 'Số lượng hàng phải là một số lớn hơn 0.',
invalidCols : 'Số lượng cột phải là một số lớn hơn 0.',
invalidBorder : 'Kích cỡ của đường biên phải là một số nguyên.',
invalidWidth : 'Chiều rộng của bảng phải là một số nguyên.',
invalidHeight : 'Chiều cao của bảng phải là một số nguyên.',
invalidCellSpacing : 'Khoảng cách giữa các ô phải là một số nguyên.',
invalidCellPadding : 'Khoảng đệm giữa ô và nội dung phải là một số nguyên.',
cell :
{
menu : 'Ô',
insertBefore : 'Chèn ô Phía trước',
insertAfter : 'Chèn ô Phía sau',
deleteCell : 'Xoá ô',
merge : 'Kết hợp ô',
mergeRight : 'Kết hợp sang phải',
mergeDown : 'Kết hợp xuống dưới',
splitHorizontal : 'Phân tách ô theo chiều ngang',
splitVertical : 'Phân tách ô theo chiều dọc',
title : 'Thuộc tính của ô',
cellType : 'Kiểu của ô',
rowSpan : 'Kết hợp hàng',
colSpan : 'Kết hợp cột',
wordWrap : 'Chữ liền hàng',
hAlign : 'Canh lề ngang',
vAlign : 'Canh lề dọc',
alignBaseline : 'Đường cơ sở',
bgColor : 'Màu nền',
borderColor : 'Màu viền',
data : 'Dữ liệu',
header : 'Đầu đề',
yes : 'Có',
no : 'Không',
invalidWidth : 'Chiều rộng của ô phải là một số nguyên.',
invalidHeight : 'Chiều cao của ô phải là một số nguyên.',
invalidRowSpan : 'Số hàng kết hợp phải là một số nguyên.',
invalidColSpan : 'Số cột kết hợp phải là một số nguyên.',
chooseColor : 'Chọn màu'
},
row :
{
menu : 'Hàng',
insertBefore : 'Chèn hàng phía trước',
insertAfter : 'Chèn hàng phía sau',
deleteRow : 'Xoá hàng'
},
column :
{
menu : 'Cột',
insertBefore : 'Chèn cột phía trước',
insertAfter : 'Chèn cột phía sau',
deleteColumn : 'Xoá cột'
}
},
// Button Dialog.
button :
{
title : 'Thuộc tính của nút',
text : 'Chuỗi hiển thị (giá trị)',
type : 'Kiểu',
typeBtn : 'Nút bấm',
typeSbm : 'Nút gửi',
typeRst : 'Nút nhập lại'
},
// Checkbox and Radio Button Dialogs.
checkboxAndRadio :
{
checkboxTitle : 'Thuộc tính nút kiểm',
radioTitle : 'Thuộc tính nút chọn',
value : 'Giá trị',
selected : 'Được chọn'
},
// Form Dialog.
form :
{
title : 'Thuộc tính biểu mẫu',
menu : 'Thuộc tính biểu mẫu',
action : 'Hành động',
method : 'Phương thức',
encoding : 'Bảng mã'
},
// Select Field Dialog.
select :
{
title : 'Thuộc tính ô chọn',
selectInfo : 'Thông tin',
opAvail : 'Các tùy chọn có thể sử dụng',
value : 'Giá trị',
size : 'Kích cỡ',
lines : 'dòng',
chkMulti : 'Cho phép chọn nhiều',
opText : 'Văn bản',
opValue : 'Giá trị',
btnAdd : 'Thêm',
btnModify : 'Thay đổi',
btnUp : 'Lên',
btnDown : 'Xuống',
btnSetValue : 'Giá trị được chọn',
btnDelete : 'Nút xoá'
},
// Textarea Dialog.
textarea :
{
title : 'Thuộc tính vùng văn bản',
cols : 'Số cột',
rows : 'Số hàng'
},
// Text Field Dialog.
textfield :
{
title : 'Thuộc tính trường văn bản',
name : 'Tên',
value : 'Giá trị',
charWidth : 'Độ rộng của ký tự',
maxChars : 'Số ký tự tối đa',
type : 'Kiểu',
typeText : 'Ký tự',
typePass : 'Mật khẩu'
},
// Hidden Field Dialog.
hidden :
{
title : 'Thuộc tính trường ẩn',
name : 'Tên',
value : 'Giá trị'
},
// Image Dialog.
image :
{
title : 'Thuộc tính của ảnh',
titleButton : 'Thuộc tính nút của ảnh',
menu : 'Thuộc tính của ảnh',
infoTab : 'Thông tin của ảnh',
btnUpload : 'Tải lên máy chủ',
upload : 'Tải lên',
alt : 'Chú thích ảnh',
lockRatio : 'Giữ nguyên tỷ lệ',
resetSize : 'Kích thước gốc',
border : 'Đường viền',
hSpace : 'Khoảng đệm ngang',
vSpace : 'Khoảng đệm dọc',
alertUrl : 'Hãy đưa vào đường dẫn của ảnh',
linkTab : 'Tab liên kết',
button2Img : 'Bạn có muốn chuyển nút bấm bằng ảnh được chọn thành ảnh?',
img2Button : 'Bạn có muốn chuyển đổi ảnh được chọn thành nút bấm bằng ảnh?',
urlMissing : 'Thiếu đường dẫn hình ảnh',
validateBorder : 'Chiều rộng của đường viền phải là một số nguyên dương',
validateHSpace : 'Khoảng đệm ngang phải là một số nguyên dương',
validateVSpace : 'Khoảng đệm dọc phải là một số nguyên dương'
},
// Flash Dialog
flash :
{
properties : 'Thuộc tính Flash',
propertiesTab : 'Thuộc tính',
title : 'Thuộc tính Flash',
chkPlay : 'Tự động chạy',
chkLoop : 'Lặp',
chkMenu : 'Cho phép bật menu của Flash',
chkFull : 'Cho phép toàn màn hình',
scale : 'Tỷ lệ',
scaleAll : 'Hiển thị tất cả',
scaleNoBorder : 'Không đường viền',
scaleFit : 'Vừa vặn',
access : 'Truy cập mã',
accessAlways : 'Luôn luôn',
accessSameDomain: 'Cùng tên miền',
accessNever : 'Không bao giờ',
alignAbsBottom : 'Dưới tuyệt đối',
alignAbsMiddle : 'Giữa tuyệt đối',
alignBaseline : 'Đường cơ sở',
alignTextTop : 'Phía trên chữ',
quality : 'Chất lượng',
qualityBest : 'Tốt nhất',
qualityHigh : 'Cao',
qualityAutoHigh : 'Cao tự động',
qualityMedium : 'Trung bình',
qualityAutoLow : 'Thấp tự động',
qualityLow : 'Thấp',
windowModeWindow: 'Cửa sổ',
windowModeOpaque: 'Mờ đục',
windowModeTransparent : 'Trong suốt',
windowMode : 'Chế độ cửa sổ',
flashvars : 'Các biến số dành cho Flash',
bgcolor : 'Màu nền',
hSpace : 'Khoảng đệm ngang',
vSpace : 'Khoảng đệm dọc',
validateSrc : 'Hãy đưa vào đường dẫn liên kết',
validateHSpace : 'Khoảng đệm ngang phải là số nguyên.',
validateVSpace : 'Khoảng đệm dọc phải là số nguyên.'
},
// Speller Pages Dialog
spellCheck :
{
toolbar : 'Kiểm tra chính tả',
title : 'Kiểm tra chính tả',
notAvailable : 'Xin lỗi, dịch vụ này hiện tại không có.',
errorLoading : 'Lỗi khi đang nạp dịch vụ ứng dụng: %s.',
notInDic : 'Không có trong từ điển',
changeTo : 'Chuyển thành',
btnIgnore : 'Bỏ qua',
btnIgnoreAll : 'Bỏ qua tất cả',
btnReplace : 'Thay thế',
btnReplaceAll : 'Thay thế tất cả',
btnUndo : 'Phục hồi lại',
noSuggestions : '- Không đưa ra gợi ý về từ -',
progress : 'Đang tiến hành kiểm tra chính tả...',
noMispell : 'Hoàn tất kiểm tra chính tả: Không có lỗi chính tả',
noChanges : 'Hoàn tất kiểm tra chính tả: Không có từ nào được thay đổi',
oneChange : 'Hoàn tất kiểm tra chính tả: Một từ đã được thay đổi',
manyChanges : 'Hoàn tất kiểm tra chính tả: %1 từ đã được thay đổi',
ieSpellDownload : 'Chức năng kiểm tra chính tả chưa được cài đặt. Bạn có muốn tải về ngay bây giờ?'
},
smiley :
{
toolbar : 'Hình biểu lộ cảm xúc (mặt cười)',
title : 'Chèn hình biểu lộ cảm xúc (mặt cười)',
options : 'Tùy chọn hình biểu lộ cảm xúc'
},
elementsPath :
{
eleLabel : 'Nhãn thành phần',
eleTitle : '%1 thành phần'
},
numberedlist : 'Chèn/Xoá Danh sách có thứ tự',
bulletedlist : 'Chèn/Xoá Danh sách không thứ tự',
indent : 'Dịch vào trong',
outdent : 'Dịch ra ngoài',
justify :
{
left : 'Canh trái',
center : 'Canh giữa',
right : 'Canh phải',
block : 'Canh đều'
},
blockquote : 'Khối trích dẫn',
clipboard :
{
title : 'Dán',
cutError : 'Các thiết lập bảo mật của trình duyệt không cho phép trình biên tập tự động thực thi lệnh cắt. Hãy sử dụng bàn phím cho lệnh này (Ctrl/Cmd+X).',
copyError : 'Các thiết lập bảo mật của trình duyệt không cho phép trình biên tập tự động thực thi lệnh sao chép. Hãy sử dụng bàn phím cho lệnh này (Ctrl/Cmd+C).',
pasteMsg : 'Hãy dán nội dung vào trong khung bên dưới, sử dụng tổ hợp phím (<STRONG>Ctrl/Cmd+V</STRONG>) và nhấn vào nút <STRONG>Đồng ý</STRONG>.',
securityMsg : 'Do thiết lập bảo mật của trình duyệt nên trình biên tập không thể truy cập trực tiếp vào nội dung đã sao chép. Bạn cần phải dán lại nội dung vào cửa sổ này.',
pasteArea : 'Khu vực dán'
},
pastefromword :
{
confirmCleanup : 'Văn bản bạn muốn dán có kèm định dạng của Word. Bạn có muốn loại bỏ định dạng Word trước khi dán?',
toolbar : 'Dán với định dạng Word',
title : 'Dán với định dạng Word',
error : 'Không thể để làm sạch các dữ liệu dán do một lỗi nội bộ'
},
pasteText :
{
button : 'Dán theo định dạng văn bản thuần',
title : 'Dán theo định dạng văn bản thuần'
},
templates :
{
button : 'Mẫu dựng sẵn',
title : 'Nội dung Mẫu dựng sẵn',
options : 'Tùy chọn mẫu dựng sẵn',
insertOption : 'Thay thế nội dung hiện tại',
selectPromptMsg : 'Hãy chọn mẫu dựng sẵn để mở trong trình biên tập<br>(nội dung hiện tại sẽ bị mất):',
emptyListMsg : '(Không có mẫu dựng sẵn nào được định nghĩa)'
},
showBlocks : 'Hiển thị các khối',
stylesCombo :
{
label : 'Kiểu',
panelTitle : 'Phong cách định dạng',
panelTitle1 : 'Kiểu khối',
panelTitle2 : 'Kiểu trực tiếp',
panelTitle3 : 'Kiểu đối tượng'
},
format :
{
label : 'Định dạng',
panelTitle : 'Định dạng',
tag_p : 'Bình thường (P)',
tag_pre : 'Đã thiết lập',
tag_address : 'Address',
tag_h1 : 'Heading 1',
tag_h2 : 'Heading 2',
tag_h3 : 'Heading 3',
tag_h4 : 'Heading 4',
tag_h5 : 'Heading 5',
tag_h6 : 'Heading 6',
tag_div : 'Bình thường (DIV)'
},
div :
{
title : 'Tạo khối các thành phần',
toolbar : 'Tạo khối các thành phần',
cssClassInputLabel : 'Các lớp CSS',
styleSelectLabel : 'Kiểu (style)',
IdInputLabel : 'Định danh (id)',
languageCodeInputLabel : 'Mã ngôn ngữ',
inlineStyleInputLabel : 'Kiểu nội dòng',
advisoryTitleInputLabel : 'Nhan đề hướng dẫn',
langDirLabel : 'Hướng ngôn ngữ',
langDirLTRLabel : 'Trái sang phải (LTR)',
langDirRTLLabel : 'Phải qua trái (RTL)',
edit : 'Chỉnh sửa',
remove : 'Xóa bỏ'
},
iframe :
{
title : 'Thuộc tính iframe',
toolbar : 'Iframe',
noUrl : 'Vui lòng nhập địa chỉ iframe',
scrolling : 'Kích hoạt thanh cuộn',
border : 'Hiển thị viền khung'
},
font :
{
label : 'Phông',
voiceLabel : 'Phông',
panelTitle : 'Phông'
},
fontSize :
{
label : 'Cỡ chữ',
voiceLabel : 'Kích cỡ phông',
panelTitle : 'Cỡ chữ'
},
colorButton :
{
textColorTitle : 'Màu chữ',
bgColorTitle : 'Màu nền',
panelTitle : 'Màu sắc',
auto : 'Tự động',
more : 'Màu khác...'
},
colors :
{
'000' : 'Đen',
'800000' : 'Maroon',
'8B4513' : 'Saddle Brown',
'2F4F4F' : 'Dark Slate Gray',
'008080' : 'Teal',
'000080' : 'Navy',
'4B0082' : 'Indigo',
'696969' : 'Dark Gray',
'B22222' : 'Fire Brick',
'A52A2A' : 'Nâu',
'DAA520' : 'Golden Rod',
'006400' : 'Dark Green',
'40E0D0' : 'Turquoise',
'0000CD' : 'Medium Blue',
'800080' : 'Purple',
'808080' : 'Xám',
'F00' : 'Đỏ',
'FF8C00' : 'Dark Orange',
'FFD700' : 'Vàng',
'008000' : 'Xanh lá cây',
'0FF' : 'Cyan',
'00F' : 'Xanh da trời',
'EE82EE' : 'Tím',
'A9A9A9' : 'Xám tối',
'FFA07A' : 'Light Salmon',
'FFA500' : 'Màu cam',
'FFFF00' : 'Vàng',
'00FF00' : 'Lime',
'AFEEEE' : 'Pale Turquoise',
'ADD8E6' : 'Light Blue',
'DDA0DD' : 'Plum',
'D3D3D3' : 'Light Grey',
'FFF0F5' : 'Lavender Blush',
'FAEBD7' : 'Antique White',
'FFFFE0' : 'Light Yellow',
'F0FFF0' : 'Honeydew',
'F0FFFF' : 'Azure',
'F0F8FF' : 'Alice Blue',
'E6E6FA' : 'Lavender',
'FFF' : 'Trắng'
},
scayt :
{
title : 'Kiểm tra chính tả ngay khi gõ chữ (SCAYT)',
opera_title : 'Không hỗ trợ trên trình duyệt Opera',
enable : 'Bật SCAYT',
disable : 'Tắt SCAYT',
about : 'Thông tin về SCAYT',
toggle : 'Bật tắt SCAYT',
options : 'Tùy chọn',
langs : 'Ngôn ngữ',
moreSuggestions : 'Đề xuất thêm',
ignore : 'Bỏ qua',
ignoreAll : 'Bỏ qua tất cả',
addWord : 'Thêm từ',
emptyDic : 'Tên của từ điển không được để trống.',
optionsTab : 'Tùy chọn',
allCaps : 'Không phân biệt chữ HOA chữ thường',
ignoreDomainNames : 'Bỏ qua tên miền',
mixedCase : 'Không phân biệt loại chữ',
mixedWithDigits : 'Không phân biệt chữ và số',
languagesTab : 'Tab ngôn ngữ',
dictionariesTab : 'Từ điển',
dic_field_name : 'Tên từ điển',
dic_create : 'Tạo',
dic_restore : 'Phục hồi',
dic_delete : 'Xóa',
dic_rename : 'Thay tên',
dic_info : 'Ban đầu, từ điển người dùng được lưu trữ trong một cookie. Tuy nhiên, kích thước cookie bị giới hạn. Khi người sử dụng từ điển phát triển đến điểm không thể được lưu trữ trong cookie, từ điển sẽ được lưu trữ trên máy chủ của chúng tôi. Để lưu trữ từ điển cá nhân của bạn trên máy chủ của chúng tôi, bạn nên xác định một tên cho từ điển của bạn. Nếu bạn đã có một cuốn từ điển được lưu trữ, xin vui lòng gõ tên của nó và nhấn vào nút Khôi phục.',
aboutTab : 'Thông tin'
},
about :
{
title : 'Thông tin về CKEditor',
dlgTitle : 'Thông tin về CKEditor',
help : 'Kiểm tra $1 để được giúp đỡ.',
userGuide : 'Hướng dẫn sử dụng CKEditor',
moreInfo : 'Vui lòng ghé thăm trang web của chúng tôi để có thông tin về giấy phép:',
copy : 'Bản quyền © $1. Giữ toàn quyền.'
},
maximize : 'Phóng to tối đa',
minimize : 'Thu nhỏ',
fakeobjects :
{
anchor : 'Điểm neo',
flash : 'Flash',
iframe : 'IFrame',
hiddenfield : 'Trường ẩn',
unknown : 'Đối tượng không rõ ràng'
},
resize : 'Kéo rê để thay đổi kích cỡ',
colordialog :
{
title : 'Chọn màu',
options : 'Tùy chọn màu',
highlight : 'Màu chọn',
selected : 'Màu đã chọn',
clear : 'Xóa bỏ'
},
toolbarCollapse : 'Thu gọn thanh công cụ',
toolbarExpand : 'Mở rộng thnah công cụ',
toolbarGroups :
{
document : 'Tài liệu',
clipboard : 'Clipboard/Undo',
editing : 'Chỉnh sửa',
forms : 'Bảng biểu',
basicstyles : 'Kiểu cơ bản',
paragraph : 'Đoạn',
links : 'Liên kết',
insert : 'Chèn',
styles : 'Kiểu',
colors : 'Màu sắc',
tools : 'Công cụ'
},
bidi :
{
ltr : 'Văn bản hướng từ trái sang phải',
rtl : 'Văn bản hướng từ phải sang trái'
},
docprops :
{
label : 'Thuộc tính Tài liệu',
title : 'Thuộc tính Tài liệu',
design : 'Thiết kế',
meta : 'Siêu dữ liệu',
chooseColor : 'Chọn màu',
other : '<khác>',
docTitle : 'Tiêu đề Trang',
charset : 'Bảng mã ký tự',
charsetOther : 'Bảng mã ký tự khác',
charsetASCII : 'ASCII',
charsetCE : 'Trung Âu',
charsetCT : 'Tiếng Trung Quốc (Big5)',
charsetCR : 'Tiếng Kirin',
charsetGR : 'Tiếng Hy Lạp',
charsetJP : 'Tiếng Nhật',
charsetKR : 'Tiếng Hàn',
charsetTR : 'Tiếng Thổ Nhĩ Kỳ',
charsetUN : 'Unicode (UTF-8)',
charsetWE : 'Tây Âu',
docType : 'Kiểu Đề mục Tài liệu',
docTypeOther : 'Kiểu Đề mục Tài liệu khác',
xhtmlDec : 'Bao gồm cả định nghĩa XHTML',
bgColor : 'Màu nền',
bgImage : 'URL của Hình ảnh nền',
bgFixed : 'Không cuộn nền',
txtColor : 'Màu chữ',
margin : 'Đường biên của Trang',
marginTop : 'Trên',
marginLeft : 'Trái',
marginRight : 'Phải',
marginBottom : 'Dưới',
metaKeywords : 'Các từ khóa chỉ mục tài liệu (phân cách bởi dấu phẩy)',
metaDescription : 'Mô tả tài liệu',
metaAuthor : 'Tác giả',
metaCopyright : 'Bản quyền',
previewHtml : '<p>Đây là một số <strong>văn bản mẫu</strong>. Bạn đang sử dụng <a href="javascript:void(0)">CKEditor</a>.</p>'
}
};
| 10npsite | trunk/guanli/system/ckeditor/_source/lang/vi.js | JavaScript | asf20 | 27,411 |
/*
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
* Hungarian language.
*/
/**#@+
@type String
@example
*/
/**
* Contains the dictionary of language entries.
* @namespace
*/
CKEDITOR.lang['hu'] =
{
/**
* 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 : 'ltr',
/*
* Screenreader titles. Please note that screenreaders are not always capable
* of reading non-English words. So be careful while translating it.
*/
editorTitle : 'Rich text editor, %1', // MISSING
editorHelp : 'Press ALT 0 for help', // MISSING
// ARIA descriptions.
toolbars : 'Szerkesztő Eszköztár',
editor : 'HTML szerkesztő',
// Toolbar buttons without dialogs.
source : 'Forráskód',
newPage : 'Új oldal',
save : 'Mentés',
preview : 'Előnézet',
cut : 'Kivágás',
copy : 'Másolás',
paste : 'Beillesztés',
print : 'Nyomtatás',
underline : 'Aláhúzott',
bold : 'Félkövér',
italic : 'Dőlt',
selectAll : 'Mindent kijelöl',
removeFormat : 'Formázás eltávolítása',
strike : 'Áthúzott',
subscript : 'Alsó index',
superscript : 'Felső index',
horizontalrule : 'Elválasztóvonal beillesztése',
pagebreak : 'Oldaltörés beillesztése',
pagebreakAlt : 'Oldaltörés',
unlink : 'Hivatkozás törlése',
undo : 'Visszavonás',
redo : 'Ismétlés',
// Common messages and labels.
common :
{
browseServer : 'Böngészés a szerveren',
url : 'Hivatkozás',
protocol : 'Protokoll',
upload : 'Feltöltés',
uploadSubmit : 'Küldés a szerverre',
image : 'Kép',
flash : 'Flash',
form : 'Űrlap',
checkbox : 'Jelölőnégyzet',
radio : 'Választógomb',
textField : 'Szövegmező',
textarea : 'Szövegterület',
hiddenField : 'Rejtettmező',
button : 'Gomb',
select : 'Legördülő lista',
imageButton : 'Képgomb',
notSet : '<nincs beállítva>',
id : 'Azonosító',
name : 'Név',
langDir : 'Írás iránya',
langDirLtr : 'Balról jobbra',
langDirRtl : 'Jobbról balra',
langCode : 'Nyelv kódja',
longDescr : 'Részletes leírás webcíme',
cssClass : 'Stíluskészlet',
advisoryTitle : 'Súgócimke',
cssStyle : 'Stílus',
ok : 'Rendben',
cancel : 'Mégsem',
close : 'Bezárás',
preview : 'Előnézet',
generalTab : 'Általános',
advancedTab : 'További opciók',
validateNumberFailed : 'A mezőbe csak számokat írhat.',
confirmNewPage : 'Minden nem mentett változás el fog veszni! Biztosan be szeretné tölteni az oldalt?',
confirmCancel : 'Az űrlap tartalma megváltozott, ám a változásokat nem rögzítette. Biztosan be szeretné zárni az űrlapot?',
options : 'Beállítások',
target : 'Cél',
targetNew : 'Új ablak (_blank)',
targetTop : 'Legfelső ablak (_top)',
targetSelf : 'Aktuális ablakban (_self)',
targetParent : 'Szülő ablak (_parent)',
langDirLTR : 'Balról jobbra (LTR)',
langDirRTL : 'Jobbról balra (RTL)',
styles : 'Stílus',
cssClasses : 'Stíluslap osztály',
width : 'Szélesség',
height : 'Magasság',
align : 'Igazítás',
alignLeft : 'Bal',
alignRight : 'Jobbra',
alignCenter : 'Középre',
alignTop : 'Tetejére',
alignMiddle : 'Középre',
alignBottom : 'Aljára',
invalidHeight : 'A magasság mezőbe csak számokat írhat.',
invalidWidth : 'A szélesség mezőbe csak számokat írhat.',
invalidCssLength : '"%1"-hez megadott érték csakis egy pozitív szám lehet, esetleg egy érvényes CSS egységgel megjelölve(px, %, in, cm, mm, em, ex, pt vagy pc).',
invalidHtmlLength : '"%1"-hez megadott érték csakis egy pozitív szám lehet, esetleg egy érvényes HTML egységgel megjelölve(px vagy %).',
invalidInlineStyle : 'Value specified for the inline style must consist of one or more tuples with the format of "name : value", separated by semi-colons.', // MISSING
cssLengthTooltip : 'Enter a number for a value in pixels or a number with a valid CSS unit (px, %, in, cm, mm, em, ex, pt, or pc).', // MISSING
// Put the voice-only part of the label in the span.
unavailable : '%1<span class="cke_accessibility">, nem elérhető</span>'
},
contextmenu :
{
options : 'Helyi menü opciók'
},
// Special char dialog.
specialChar :
{
toolbar : 'Speciális karakter beillesztése',
title : 'Speciális karakter választása',
options : 'Speciális karakter opciók'
},
// Link dialog.
link :
{
toolbar : 'Hivatkozás beillesztése/módosítása',
other : '<más>',
menu : 'Hivatkozás módosítása',
title : 'Hivatkozás tulajdonságai',
info : 'Alaptulajdonságok',
target : 'Tartalom megjelenítése',
upload : 'Feltöltés',
advanced : 'További opciók',
type : 'Hivatkozás típusa',
toUrl : 'URL',
toAnchor : 'Horgony az oldalon',
toEmail : 'E-Mail',
targetFrame : '<keretben>',
targetPopup : '<felugró ablakban>',
targetFrameName : 'Keret neve',
targetPopupName : 'Felugró ablak neve',
popupFeatures : 'Felugró ablak jellemzői',
popupResizable : 'Átméretezés',
popupStatusBar : 'Állapotsor',
popupLocationBar: 'Címsor',
popupToolbar : 'Eszköztár',
popupMenuBar : 'Menü sor',
popupFullScreen : 'Teljes képernyő (csak IE)',
popupScrollBars : 'Gördítősáv',
popupDependent : 'Szülőhöz kapcsolt (csak Netscape)',
popupLeft : 'Bal pozíció',
popupTop : 'Felső pozíció',
id : 'Id',
langDir : 'Írás iránya',
langDirLTR : 'Balról jobbra',
langDirRTL : 'Jobbról balra',
acccessKey : 'Billentyűkombináció',
name : 'Név',
langCode : 'Írás iránya',
tabIndex : 'Tabulátor index',
advisoryTitle : 'Súgócimke',
advisoryContentType : 'Súgó tartalomtípusa',
cssClasses : 'Stíluskészlet',
charset : 'Hivatkozott tartalom kódlapja',
styles : 'Stílus',
rel : 'Kapcsolat típusa',
selectAnchor : 'Horgony választása',
anchorName : 'Horgony név szerint',
anchorId : 'Azonosító szerint',
emailAddress : 'E-Mail cím',
emailSubject : 'Üzenet tárgya',
emailBody : 'Üzenet',
noAnchors : '(Nincs horgony a dokumentumban)',
noUrl : 'Adja meg a hivatkozás webcímét',
noEmail : 'Adja meg az E-Mail címet'
},
// Anchor dialog
anchor :
{
toolbar : 'Horgony beillesztése/szerkesztése',
menu : 'Horgony tulajdonságai',
title : 'Horgony tulajdonságai',
name : 'Horgony neve',
errorName : 'Kérem adja meg a horgony nevét',
remove : 'Horgony eltávolítása'
},
// List style dialog
list:
{
numberedTitle : 'Sorszámozott lista tulajdonságai',
bulletedTitle : 'Pontozott lista tulajdonságai',
type : 'Típus',
start : 'Kezdőszám',
validateStartNumber :'A kezdőszám nem lehet tört érték.',
circle : 'Kör',
disc : 'Korong',
square : 'Négyzet',
none : 'Nincs',
notset : '<Nincs beállítva>',
armenian : 'Örmény számozás',
georgian : 'Grúz számozás (an, ban, gan, stb.)',
lowerRoman : 'Római kisbetűs (i, ii, iii, iv, v, stb.)',
upperRoman : 'Római nagybetűs (I, II, III, IV, V, stb.)',
lowerAlpha : 'Kisbetűs (a, b, c, d, e, stb.)',
upperAlpha : 'Nagybetűs (A, B, C, D, E, stb.)',
lowerGreek : 'Görög (alpha, beta, gamma, stb.)',
decimal : 'Arab számozás (1, 2, 3, stb.)',
decimalLeadingZero : 'Számozás bevezető nullákkal (01, 02, 03, stb.)'
},
// Find And Replace Dialog
findAndReplace :
{
title : 'Keresés és csere',
find : 'Keresés',
replace : 'Csere',
findWhat : 'Keresett szöveg:',
replaceWith : 'Csere erre:',
notFoundMsg : 'A keresett szöveg nem található.',
findOptions : 'Find Options', // MISSING
matchCase : 'kis- és nagybetű megkülönböztetése',
matchWord : 'csak ha ez a teljes szó',
matchCyclic : 'Ciklikus keresés',
replaceAll : 'Az összes cseréje',
replaceSuccessMsg : '%1 egyezőség cserélve.'
},
// Table Dialog
table :
{
toolbar : 'Táblázat',
title : 'Táblázat tulajdonságai',
menu : 'Táblázat tulajdonságai',
deleteTable : 'Táblázat törlése',
rows : 'Sorok',
columns : 'Oszlopok',
border : 'Szegélyméret',
widthPx : 'képpont',
widthPc : 'százalék',
widthUnit : 'Szélesség egység',
cellSpace : 'Cella térköz',
cellPad : 'Cella belső margó',
caption : 'Felirat',
summary : 'Leírás',
headers : 'Fejlécek',
headersNone : 'Nincsenek',
headersColumn : 'Első oszlop',
headersRow : 'Első sor',
headersBoth : 'Mindkettő',
invalidRows : 'A sorok számának nagyobbnak kell lenni mint 0.',
invalidCols : 'Az oszlopok számának nagyobbnak kell lenni mint 0.',
invalidBorder : 'A szegélyméret mezőbe csak számokat írhat.',
invalidWidth : 'A szélesség mezőbe csak számokat írhat.',
invalidHeight : 'A magasság mezőbe csak számokat írhat.',
invalidCellSpacing : 'A cella térköz mezőbe csak számokat írhat.',
invalidCellPadding : 'A cella belső margó mezőbe csak számokat írhat.',
cell :
{
menu : 'Cella',
insertBefore : 'Beszúrás balra',
insertAfter : 'Beszúrás jobbra',
deleteCell : 'Cellák törlése',
merge : 'Cellák egyesítése',
mergeRight : 'Cellák egyesítése jobbra',
mergeDown : 'Cellák egyesítése lefelé',
splitHorizontal : 'Cellák szétválasztása vízszintesen',
splitVertical : 'Cellák szétválasztása függőlegesen',
title : 'Cella tulajdonságai',
cellType : 'Cella típusa',
rowSpan : 'Függőleges egyesítés',
colSpan : 'Vízszintes egyesítés',
wordWrap : 'Hosszú sorok törése',
hAlign : 'Vízszintes igazítás',
vAlign : 'Függőleges igazítás',
alignBaseline : 'Alapvonalra',
bgColor : 'Háttér színe',
borderColor : 'Keret színe',
data : 'Adat',
header : 'Fejléc',
yes : 'Igen',
no : 'Nem',
invalidWidth : 'A szélesség mezőbe csak számokat írhat.',
invalidHeight : 'A magasság mezőbe csak számokat írhat.',
invalidRowSpan : 'A függőleges egyesítés mezőbe csak számokat írhat.',
invalidColSpan : 'A vízszintes egyesítés mezőbe csak számokat írhat.',
chooseColor : 'Válasszon'
},
row :
{
menu : 'Sor',
insertBefore : 'Beszúrás fölé',
insertAfter : 'Beszúrás alá',
deleteRow : 'Sorok törlése'
},
column :
{
menu : 'Oszlop',
insertBefore : 'Beszúrás balra',
insertAfter : 'Beszúrás jobbra',
deleteColumn : 'Oszlopok törlése'
}
},
// Button Dialog.
button :
{
title : 'Gomb tulajdonságai',
text : 'Szöveg (Érték)',
type : 'Típus',
typeBtn : 'Gomb',
typeSbm : 'Küldés',
typeRst : 'Alaphelyzet'
},
// Checkbox and Radio Button Dialogs.
checkboxAndRadio :
{
checkboxTitle : 'Jelölőnégyzet tulajdonságai',
radioTitle : 'Választógomb tulajdonságai',
value : 'Érték',
selected : 'Kiválasztott'
},
// Form Dialog.
form :
{
title : 'Űrlap tulajdonságai',
menu : 'Űrlap tulajdonságai',
action : 'Adatfeldolgozást végző hivatkozás',
method : 'Adatküldés módja',
encoding : 'Kódolás'
},
// Select Field Dialog.
select :
{
title : 'Legördülő lista tulajdonságai',
selectInfo : 'Alaptulajdonságok',
opAvail : 'Elérhető opciók',
value : 'Érték',
size : 'Méret',
lines : 'sor',
chkMulti : 'több sor is kiválasztható',
opText : 'Szöveg',
opValue : 'Érték',
btnAdd : 'Hozzáad',
btnModify : 'Módosít',
btnUp : 'Fel',
btnDown : 'Le',
btnSetValue : 'Legyen az alapértelmezett érték',
btnDelete : 'Töröl'
},
// Textarea Dialog.
textarea :
{
title : 'Szövegterület tulajdonságai',
cols : 'Karakterek száma egy sorban',
rows : 'Sorok száma'
},
// Text Field Dialog.
textfield :
{
title : 'Szövegmező tulajdonságai',
name : 'Név',
value : 'Érték',
charWidth : 'Megjelenített karakterek száma',
maxChars : 'Maximális karakterszám',
type : 'Típus',
typeText : 'Szöveg',
typePass : 'Jelszó'
},
// Hidden Field Dialog.
hidden :
{
title : 'Rejtett mező tulajdonságai',
name : 'Név',
value : 'Érték'
},
// Image Dialog.
image :
{
title : 'Kép tulajdonságai',
titleButton : 'Képgomb tulajdonságai',
menu : 'Kép tulajdonságai',
infoTab : 'Alaptulajdonságok',
btnUpload : 'Küldés a szerverre',
upload : 'Feltöltés',
alt : 'Buborék szöveg',
lockRatio : 'Arány megtartása',
resetSize : 'Eredeti méret',
border : 'Keret',
hSpace : 'Vízsz. táv',
vSpace : 'Függ. táv',
alertUrl : 'Töltse ki a kép webcímét',
linkTab : 'Hivatkozás',
button2Img : 'A kiválasztott képgombból sima képet szeretne csinálni?',
img2Button : 'A kiválasztott képből képgombot szeretne csinálni?',
urlMissing : 'Hiányzik a kép URL-je',
validateBorder : 'A keret méretének egész számot kell beírni!',
validateHSpace : 'Vízszintes távolságnak egész számot kell beírni!',
validateVSpace : 'Függőleges távolságnak egész számot kell beírni!'
},
// Flash Dialog
flash :
{
properties : 'Flash tulajdonságai',
propertiesTab : 'Tulajdonságok',
title : 'Flash tulajdonságai',
chkPlay : 'Automata lejátszás',
chkLoop : 'Folyamatosan',
chkMenu : 'Flash menü engedélyezése',
chkFull : 'Teljes képernyő engedélyezése',
scale : 'Méretezés',
scaleAll : 'Mindent mutat',
scaleNoBorder : 'Keret nélkül',
scaleFit : 'Teljes kitöltés',
access : 'Szkript hozzáférés',
accessAlways : 'Mindig',
accessSameDomain: 'Azonos domainről',
accessNever : 'Soha',
alignAbsBottom : 'Legaljára',
alignAbsMiddle : 'Közepére',
alignBaseline : 'Alapvonalhoz',
alignTextTop : 'Szöveg tetejére',
quality : 'Minőség',
qualityBest : 'Legjobb',
qualityHigh : 'Jó',
qualityAutoHigh : 'Automata jó',
qualityMedium : 'Közepes',
qualityAutoLow : 'Automata gyenge',
qualityLow : 'Gyenge',
windowModeWindow: 'Window',
windowModeOpaque: 'Opaque',
windowModeTransparent : 'Transparent',
windowMode : 'Ablak mód',
flashvars : 'Flash változók',
bgcolor : 'Háttérszín',
hSpace : 'Vízsz. táv',
vSpace : 'Függ. táv',
validateSrc : 'Adja meg a hivatkozás webcímét',
validateHSpace : 'A vízszintes távolsűág mezőbe csak számokat írhat.',
validateVSpace : 'A függőleges távolsűág mezőbe csak számokat írhat.'
},
// Speller Pages Dialog
spellCheck :
{
toolbar : 'Helyesírás-ellenőrzés',
title : 'Helyesírás ellenörző',
notAvailable : 'Sajnálom, de a szolgáltatás jelenleg nem elérhető.',
errorLoading : 'Hiba a szolgáltatás host betöltése közben: %s.',
notInDic : 'Nincs a szótárban',
changeTo : 'Módosítás',
btnIgnore : 'Kihagyja',
btnIgnoreAll : 'Mindet kihagyja',
btnReplace : 'Csere',
btnReplaceAll : 'Összes cseréje',
btnUndo : 'Visszavonás',
noSuggestions : 'Nincs javaslat',
progress : 'Helyesírás-ellenőrzés folyamatban...',
noMispell : 'Helyesírás-ellenőrzés kész: Nem találtam hibát',
noChanges : 'Helyesírás-ellenőrzés kész: Nincs változtatott szó',
oneChange : 'Helyesírás-ellenőrzés kész: Egy szó cserélve',
manyChanges : 'Helyesírás-ellenőrzés kész: %1 szó cserélve',
ieSpellDownload : 'A helyesírás-ellenőrző nincs telepítve. Szeretné letölteni most?'
},
smiley :
{
toolbar : 'Hangulatjelek',
title : 'Hangulatjel beszúrása',
options : 'Hangulatjel opciók'
},
elementsPath :
{
eleLabel : 'Elem utak',
eleTitle : '%1 elem'
},
numberedlist : 'Számozás',
bulletedlist : 'Felsorolás',
indent : 'Behúzás növelése',
outdent : 'Behúzás csökkentése',
justify :
{
left : 'Balra',
center : 'Középre',
right : 'Jobbra',
block : 'Sorkizárt'
},
blockquote : 'Idézet blokk',
clipboard :
{
title : 'Beillesztés',
cutError : 'A böngésző biztonsági beállításai nem engedélyezik a szerkesztőnek, hogy végrehajtsa a kivágás műveletet. Használja az alábbi billentyűkombinációt (Ctrl/Cmd+X).',
copyError : 'A böngésző biztonsági beállításai nem engedélyezik a szerkesztőnek, hogy végrehajtsa a másolás műveletet. Használja az alábbi billentyűkombinációt (Ctrl/Cmd+X).',
pasteMsg : 'Másolja be az alábbi mezőbe a <STRONG>Ctrl/Cmd+V</STRONG> billentyűk lenyomásával, majd nyomjon <STRONG>Rendben</STRONG>-t.',
securityMsg : 'A böngésző biztonsági beállításai miatt a szerkesztő nem képes hozzáférni a vágólap adataihoz. Illeszd be újra ebben az ablakban.',
pasteArea : 'Beszúrás mező'
},
pastefromword :
{
confirmCleanup : 'Úgy tűnik a beillesztett szöveget Word-ből másolt át. Meg szeretné tisztítani a szöveget? (ajánlott)',
toolbar : 'Beillesztés Word-ből',
title : 'Beillesztés Word-ből',
error : 'Egy belső hiba miatt nem sikerült megtisztítani a szöveget'
},
pasteText :
{
button : 'Beillesztés formázatlan szövegként',
title : 'Beillesztés formázatlan szövegként'
},
templates :
{
button : 'Sablonok',
title : 'Elérhető sablonok',
options : 'Sablon opciók',
insertOption : 'Kicseréli a jelenlegi tartalmat',
selectPromptMsg : 'Válassza ki melyik sablon nyíljon meg a szerkesztőben<br>(a jelenlegi tartalom elveszik):',
emptyListMsg : '(Nincs sablon megadva)'
},
showBlocks : 'Blokkok megjelenítése',
stylesCombo :
{
label : 'Stílus',
panelTitle : 'Formázási stílusok',
panelTitle1 : 'Blokk stílusok',
panelTitle2 : 'Inline stílusok',
panelTitle3 : 'Objektum stílusok'
},
format :
{
label : 'Formátum',
panelTitle : 'Formátum',
tag_p : 'Normál',
tag_pre : 'Formázott',
tag_address : 'Címsor',
tag_h1 : 'Fejléc 1',
tag_h2 : 'Fejléc 2',
tag_h3 : 'Fejléc 3',
tag_h4 : 'Fejléc 4',
tag_h5 : 'Fejléc 5',
tag_h6 : 'Fejléc 6',
tag_div : 'Bekezdés (DIV)'
},
div :
{
title : 'DIV tároló létrehozása',
toolbar : 'DIV tároló létrehozása',
cssClassInputLabel : 'Stíluslap osztály',
styleSelectLabel : 'Stílus',
IdInputLabel : 'Azonosító',
languageCodeInputLabel : ' Nyelv kódja',
inlineStyleInputLabel : 'Inline stílus',
advisoryTitleInputLabel : 'Tipp szöveg',
langDirLabel : 'Nyelvi irány',
langDirLTRLabel : 'Balról jobbra (LTR)',
langDirRTLLabel : 'Jobbról balra (RTL)',
edit : 'DIV szerkesztése',
remove : 'DIV eltávolítása'
},
iframe :
{
title : 'IFrame Tulajdonságok',
toolbar : 'IFrame',
noUrl : 'Kérem írja be a iframe URL-t',
scrolling : 'Gördítősáv bekapcsolása',
border : 'Legyen keret'
},
font :
{
label : 'Betűtípus',
voiceLabel : 'Betűtípus',
panelTitle : 'Betűtípus'
},
fontSize :
{
label : 'Méret',
voiceLabel : 'Betűméret',
panelTitle : 'Méret'
},
colorButton :
{
textColorTitle : 'Betűszín',
bgColorTitle : 'Háttérszín',
panelTitle : 'Színek',
auto : 'Automatikus',
more : 'További színek...'
},
colors :
{
'000' : 'Fekete',
'800000' : 'Bordó',
'8B4513' : 'Barna',
'2F4F4F' : 'Sötét türkiz',
'008080' : 'Türkiz',
'000080' : 'Király kék',
'4B0082' : 'Indigó kék',
'696969' : 'Szürke',
'B22222' : 'Tégla vörös',
'A52A2A' : 'Vörös',
'DAA520' : 'Arany sárga',
'006400' : 'Sötét zöld',
'40E0D0' : 'Türkiz',
'0000CD' : 'Kék',
'800080' : 'Lila',
'808080' : 'Szürke',
'F00' : 'Piros',
'FF8C00' : 'Sötét narancs',
'FFD700' : 'Arany',
'008000' : 'Zöld',
'0FF' : 'Türkiz',
'00F' : 'Kék',
'EE82EE' : 'Rózsaszín',
'A9A9A9' : 'Sötét szürke',
'FFA07A' : 'Lazac',
'FFA500' : 'Narancs',
'FFFF00' : 'Citromsárga',
'00FF00' : 'Neon zöld',
'AFEEEE' : 'Világos türkiz',
'ADD8E6' : 'Világos kék',
'DDA0DD' : 'Világos lila',
'D3D3D3' : 'Világos szürke',
'FFF0F5' : 'Lavender Blush',
'FAEBD7' : 'Törtfehér',
'FFFFE0' : 'Világos sárga',
'F0FFF0' : 'Menta',
'F0FFFF' : 'Azúr kék',
'F0F8FF' : 'Halvány kék',
'E6E6FA' : 'Lavender',
'FFF' : 'Fehér'
},
scayt :
{
title : 'Helyesírás ellenőrzés gépelés közben',
opera_title : 'Az Opera nem támogatja',
enable : 'SCAYT engedélyezése',
disable : 'SCAYT letiltása',
about : 'SCAYT névjegy',
toggle : 'SCAYT kapcsolása',
options : 'Beállítások',
langs : 'Nyelvek',
moreSuggestions : 'További javaslatok',
ignore : 'Kihagy',
ignoreAll : 'Összes kihagyása',
addWord : 'Szó hozzáadása',
emptyDic : 'A szótár nevét meg kell adni.',
optionsTab : 'Beállítások',
allCaps : 'Nagybetűs szavak kihagyása',
ignoreDomainNames : 'Domain nevek kihagyása',
mixedCase : 'Kis és nagybetűt is tartalmazó szavak kihagyása',
mixedWithDigits : 'Számokat tartalmazó szavak kihagyása',
languagesTab : 'Nyelvek',
dictionariesTab : 'Szótár',
dic_field_name : 'Szótár neve',
dic_create : 'Létrehozás',
dic_restore : 'Visszaállítás',
dic_delete : 'Törlés',
dic_rename : 'Átnevezés',
dic_info : 'Kezdetben a felhasználói szótár böngésző sütiben tárolódik. Azonban a sütik maximális mérete korlátozott. Amikora a szótár akkora lesz, hogy már sütiben nem lehet tárolni, akkor a szótárat tárolhatja a szerveren is. Ehhez egy nevet kell megadni a szótárhoz. Amennyiben már van szerveren tárolt szótára, adja meg a nevét és kattintson a visszaállítás gombra.',
aboutTab : 'Névjegy'
},
about :
{
title : 'CKEditor névjegy',
dlgTitle : 'CKEditor névjegy',
help : 'Itt találsz segítséget: $1',
userGuide : 'CKEditor Felhasználói útmutató',
moreInfo : 'Licenszelési információkért kérjük látogassa meg weboldalunkat:',
copy : 'Copyright © $1. Minden jog fenntartva.'
},
maximize : 'Teljes méret',
minimize : 'Kis méret',
fakeobjects :
{
anchor : 'Horgony',
flash : 'Flash animáció',
iframe : 'IFrame',
hiddenfield : 'Rejtett mezõ',
unknown : 'Ismeretlen objektum'
},
resize : 'Húzza az átméretezéshez',
colordialog :
{
title : 'Válasszon színt',
options : 'Szín opciók',
highlight : 'Nagyítás',
selected : 'Kiválasztott',
clear : 'Ürítés'
},
toolbarCollapse : 'Eszköztár összecsukása',
toolbarExpand : 'Eszköztár szétnyitása',
toolbarGroups :
{
document : 'Dokumentum',
clipboard : 'Vágólap/Visszavonás',
editing : 'Szerkesztés',
forms : 'Űrlapok',
basicstyles : 'Alapstílusok',
paragraph : 'Bekezdés',
links : 'Hivatkozások',
insert : 'Beszúrás',
styles : 'Stílusok',
colors : 'Színek',
tools : 'Eszközök'
},
bidi :
{
ltr : 'Szöveg iránya balról jobbra',
rtl : 'Szöveg iránya jobbról balra'
},
docprops :
{
label : 'Dokumentum tulajdonságai',
title : 'Dokumentum tulajdonságai',
design : 'Design',
meta : 'Meta adatok',
chooseColor : 'Válasszon',
other : '<más>',
docTitle : 'Oldalcím',
charset : 'Karakterkódolás',
charsetOther : 'Más karakterkódolás',
charsetASCII : 'ASCII',
charsetCE : 'Közép-Európai',
charsetCT : 'Kínai Tradicionális (Big5)',
charsetCR : 'Cyrill',
charsetGR : 'Görög',
charsetJP : 'Japán',
charsetKR : 'Koreai',
charsetTR : 'Török',
charsetUN : 'Unicode (UTF-8)',
charsetWE : 'Nyugat-Európai',
docType : 'Dokumentum típus fejléc',
docTypeOther : 'Más dokumentum típus fejléc',
xhtmlDec : 'XHTML deklarációk beillesztése',
bgColor : 'Háttérszín',
bgImage : 'Háttérkép cím',
bgFixed : 'Nem gördíthető háttér',
txtColor : 'Betűszín',
margin : 'Oldal margók',
marginTop : 'Felső',
marginLeft : 'Bal',
marginRight : 'Jobb',
marginBottom : 'Alsó',
metaKeywords : 'Dokumentum keresőszavak (vesszővel elválasztva)',
metaDescription : 'Dokumentum leírás',
metaAuthor : 'Szerző',
metaCopyright : 'Szerzői jog',
previewHtml : '<p>Ez itt egy <strong>példa</strong>. A <a href="javascript:void(0)">CKEditor</a>-t használod.</p>'
}
};
| 10npsite | trunk/guanli/system/ckeditor/_source/lang/hu.js | JavaScript | asf20 | 25,358 |
/*
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
* Croatian language.
*/
/**#@+
@type String
@example
*/
/**
* Contains the dictionary of language entries.
* @namespace
*/
CKEDITOR.lang['hr'] =
{
/**
* 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 : 'ltr',
/*
* Screenreader titles. Please note that screenreaders are not always capable
* of reading non-English words. So be careful while translating it.
*/
editorTitle : 'Rich text editor, %1', // MISSING
editorHelp : 'Press ALT 0 for help', // MISSING
// ARIA descriptions.
toolbars : 'Alatne trake uređivača teksta',
editor : 'Bogati uređivač teksta',
// Toolbar buttons without dialogs.
source : 'Kôd',
newPage : 'Nova stranica',
save : 'Snimi',
preview : 'Pregledaj',
cut : 'Izreži',
copy : 'Kopiraj',
paste : 'Zalijepi',
print : 'Ispiši',
underline : 'Potcrtano',
bold : 'Podebljaj',
italic : 'Ukosi',
selectAll : 'Odaberi sve',
removeFormat : 'Ukloni formatiranje',
strike : 'Precrtano',
subscript : 'Subscript',
superscript : 'Superscript',
horizontalrule : 'Ubaci vodoravnu liniju',
pagebreak : 'Ubaci prijelom stranice',
pagebreakAlt : 'Prijelom stranice',
unlink : 'Ukloni link',
undo : 'Poništi',
redo : 'Ponovi',
// Common messages and labels.
common :
{
browseServer : 'Pretraži server',
url : 'URL',
protocol : 'Protokol',
upload : 'Pošalji',
uploadSubmit : 'Pošalji na server',
image : 'Slika',
flash : 'Flash',
form : 'Form',
checkbox : 'Checkbox',
radio : 'Radio Button',
textField : 'Text Field',
textarea : 'Textarea',
hiddenField : 'Hidden Field',
button : 'Button',
select : 'Selection Field',
imageButton : 'Image Button',
notSet : '<nije postavljeno>',
id : 'Id',
name : 'Naziv',
langDir : 'Smjer jezika',
langDirLtr : 'S lijeva na desno (LTR)',
langDirRtl : 'S desna na lijevo (RTL)',
langCode : 'Kôd jezika',
longDescr : 'Dugački opis URL',
cssClass : 'Stylesheet klase',
advisoryTitle : 'Advisory naslov',
cssStyle : 'Stil',
ok : 'OK',
cancel : 'Poništi',
close : 'Zatvori',
preview : 'Pregledaj',
generalTab : 'Općenito',
advancedTab : 'Napredno',
validateNumberFailed : 'Ova vrijednost nije broj.',
confirmNewPage : 'Sve napravljene promjene će biti izgubljene ukoliko ih niste snimili. Sigurno želite učitati novu stranicu?',
confirmCancel : 'Neke od opcija su promjenjene. Sigurno želite zatvoriti ovaj prozor?',
options : 'Opcije',
target : 'Odredište',
targetNew : 'Novi prozor (_blank)',
targetTop : 'Vršni prozor (_top)',
targetSelf : 'Isti prozor (_self)',
targetParent : 'Roditeljski prozor (_parent)',
langDirLTR : 'S lijeva na desno (LTR)',
langDirRTL : 'S desna na lijevo (RTL)',
styles : 'Stil',
cssClasses : 'Klase stilova',
width : 'Širina',
height : 'Visina',
align : 'Poravnaj',
alignLeft : 'Lijevo',
alignRight : 'Desno',
alignCenter : 'Središnje',
alignTop : 'Vrh',
alignMiddle : 'Sredina',
alignBottom : 'Dolje',
invalidHeight : 'Visina mora biti broj.',
invalidWidth : 'Širina mora biti broj.',
invalidCssLength : 'Vrijednost određena za "%1" polje mora biti pozitivni broj sa ili bez važećih CSS mjernih jedinica (px, %, in, cm, mm, em, ex, pt ili pc).',
invalidHtmlLength : 'Vrijednost određena za "%1" polje mora biti pozitivni broj sa ili bez važećih HTML mjernih jedinica (px ili %).',
invalidInlineStyle : 'Vrijednost za linijski stil mora sadržavati jednu ili više definicija s formatom "naziv:vrijednost", odvojenih točka-zarezom.',
cssLengthTooltip : 'Unesite broj za vrijednost u pikselima ili broj s važećim CSS mjernim jedinicama (px, %, in, cm, mm, em, ex, pt ili pc).',
// Put the voice-only part of the label in the span.
unavailable : '%1<span class="cke_accessibility">, nedostupno</span>'
},
contextmenu :
{
options : 'Opcije izbornika'
},
// Special char dialog.
specialChar :
{
toolbar : 'Ubaci posebne znakove',
title : 'Odaberite posebni karakter',
options : 'Opcije specijalnih znakova'
},
// Link dialog.
link :
{
toolbar : 'Ubaci/promijeni link',
other : '<drugi>',
menu : 'Promijeni link',
title : 'Link',
info : 'Link Info',
target : 'Meta',
upload : 'Pošalji',
advanced : 'Napredno',
type : 'Link vrsta',
toUrl : 'URL',
toAnchor : 'Sidro na ovoj stranici',
toEmail : 'E-Mail',
targetFrame : '<okvir>',
targetPopup : '<popup prozor>',
targetFrameName : 'Ime ciljnog okvira',
targetPopupName : 'Naziv popup prozora',
popupFeatures : 'Mogućnosti popup prozora',
popupResizable : 'Promjenjiva veličina',
popupStatusBar : 'Statusna traka',
popupLocationBar: 'Traka za lokaciju',
popupToolbar : 'Traka s alatima',
popupMenuBar : 'Izborna traka',
popupFullScreen : 'Cijeli ekran (IE)',
popupScrollBars : 'Scroll traka',
popupDependent : 'Ovisno (Netscape)',
popupLeft : 'Lijeva pozicija',
popupTop : 'Gornja pozicija',
id : 'Id',
langDir : 'Smjer jezika',
langDirLTR : 'S lijeva na desno (LTR)',
langDirRTL : 'S desna na lijevo (RTL)',
acccessKey : 'Pristupna tipka',
name : 'Naziv',
langCode : 'Smjer jezika',
tabIndex : 'Tab Indeks',
advisoryTitle : 'Advisory naslov',
advisoryContentType : 'Advisory vrsta sadržaja',
cssClasses : 'Stylesheet klase',
charset : 'Kodna stranica povezanih resursa',
styles : 'Stil',
rel : 'Veza',
selectAnchor : 'Odaberi sidro',
anchorName : 'Po nazivu sidra',
anchorId : 'Po Id elementa',
emailAddress : 'E-Mail adresa',
emailSubject : 'Naslov',
emailBody : 'Sadržaj poruke',
noAnchors : '(Nema dostupnih sidra)',
noUrl : 'Molimo upišite URL link',
noEmail : 'Molimo upišite e-mail adresu'
},
// Anchor dialog
anchor :
{
toolbar : 'Ubaci/promijeni sidro',
menu : 'Svojstva sidra',
title : 'Svojstva sidra',
name : 'Ime sidra',
errorName : 'Molimo unesite ime sidra',
remove : 'Ukloni sidro'
},
// List style dialog
list:
{
numberedTitle : 'Svojstva brojčane liste',
bulletedTitle : 'Svojstva liste',
type : 'Vrsta',
start : 'Početak',
validateStartNumber :'Početak brojčane liste mora biti cijeli broj.',
circle : 'Krug',
disc : 'Disk',
square : 'Kvadrat',
none : 'Bez',
notset : '<nije određen>',
armenian : 'Armenijska numeracija',
georgian : 'Gruzijska numeracija(an, ban, gan, etc.)',
lowerRoman : 'Romanska numeracija mala slova (i, ii, iii, iv, v, itd.)',
upperRoman : 'Romanska numeracija velika slova (I, II, III, IV, V, itd.)',
lowerAlpha : 'Znakovi mala slova (a, b, c, d, e, itd.)',
upperAlpha : 'Znakovi velika slova (A, B, C, D, E, itd.)',
lowerGreek : 'Grčka numeracija mala slova (alfa, beta, gama, itd).',
decimal : 'Decimalna numeracija (1, 2, 3, itd.)',
decimalLeadingZero : 'Decimalna s vodećom nulom (01, 02, 03, itd)'
},
// Find And Replace Dialog
findAndReplace :
{
title : 'Pronađi i zamijeni',
find : 'Pronađi',
replace : 'Zamijeni',
findWhat : 'Pronađi:',
replaceWith : 'Zamijeni s:',
notFoundMsg : 'Traženi tekst nije pronađen.',
findOptions : 'Opcije traženja',
matchCase : 'Usporedi mala/velika slova',
matchWord : 'Usporedi cijele riječi',
matchCyclic : 'Usporedi kružno',
replaceAll : 'Zamijeni sve',
replaceSuccessMsg : 'Zamijenjeno %1 pojmova.'
},
// Table Dialog
table :
{
toolbar : 'Tablica',
title : 'Svojstva tablice',
menu : 'Svojstva tablice',
deleteTable : 'Izbriši tablicu',
rows : 'Redova',
columns : 'Kolona',
border : 'Veličina okvira',
widthPx : 'piksela',
widthPc : 'postotaka',
widthUnit : 'jedinica širine',
cellSpace : 'Prostornost ćelija',
cellPad : 'Razmak ćelija',
caption : 'Naslov',
summary : 'Sažetak',
headers : 'Zaglavlje',
headersNone : 'Ništa',
headersColumn : 'Prva kolona',
headersRow : 'Prvi red',
headersBoth : 'Oba',
invalidRows : 'Broj redova mora biti broj veći od 0.',
invalidCols : 'Broj kolona mora biti broj veći od 0.',
invalidBorder : 'Debljina ruba mora biti broj.',
invalidWidth : 'Širina tablice mora biti broj.',
invalidHeight : 'Visina tablice mora biti broj.',
invalidCellSpacing : 'Prostornost ćelija mora biti broj.',
invalidCellPadding : 'Razmak ćelija mora biti broj.',
cell :
{
menu : 'Ćelija',
insertBefore : 'Ubaci ćeliju prije',
insertAfter : 'Ubaci ćeliju poslije',
deleteCell : 'Izbriši ćelije',
merge : 'Spoji ćelije',
mergeRight : 'Spoji desno',
mergeDown : 'Spoji dolje',
splitHorizontal : 'Podijeli ćeliju vodoravno',
splitVertical : 'Podijeli ćeliju okomito',
title : 'Svojstva ćelije',
cellType : 'Vrsta ćelije',
rowSpan : 'Rows Span',
colSpan : 'Columns Span',
wordWrap : 'Prelazak u novi red',
hAlign : 'Vodoravno poravnanje',
vAlign : 'Okomito poravnanje',
alignBaseline : 'Osnovna linija',
bgColor : 'Boja pozadine',
borderColor : 'Boja ruba',
data : 'Podatak',
header : 'Zaglavlje',
yes : 'Da',
no : 'ne',
invalidWidth : 'Širina ćelije mora biti broj.',
invalidHeight : 'Visina ćelije mora biti broj.',
invalidRowSpan : 'Rows span mora biti cijeli broj.',
invalidColSpan : 'Columns span mora biti cijeli broj.',
chooseColor : 'Odaberi'
},
row :
{
menu : 'Red',
insertBefore : 'Ubaci red prije',
insertAfter : 'Ubaci red poslije',
deleteRow : 'Izbriši redove'
},
column :
{
menu : 'Kolona',
insertBefore : 'Ubaci kolonu prije',
insertAfter : 'Ubaci kolonu poslije',
deleteColumn : 'Izbriši kolone'
}
},
// Button Dialog.
button :
{
title : 'Image Button svojstva',
text : 'Tekst (vrijednost)',
type : 'Vrsta',
typeBtn : 'Gumb',
typeSbm : 'Pošalji',
typeRst : 'Poništi'
},
// Checkbox and Radio Button Dialogs.
checkboxAndRadio :
{
checkboxTitle : 'Checkbox svojstva',
radioTitle : 'Radio Button svojstva',
value : 'Vrijednost',
selected : 'Odabrano'
},
// Form Dialog.
form :
{
title : 'Form svojstva',
menu : 'Form svojstva',
action : 'Akcija',
method : 'Metoda',
encoding : 'Encoding'
},
// Select Field Dialog.
select :
{
title : 'Selection svojstva',
selectInfo : 'Info',
opAvail : 'Dostupne opcije',
value : 'Vrijednost',
size : 'Veličina',
lines : 'linija',
chkMulti : 'Dozvoli višestruki odabir',
opText : 'Tekst',
opValue : 'Vrijednost',
btnAdd : 'Dodaj',
btnModify : 'Promijeni',
btnUp : 'Gore',
btnDown : 'Dolje',
btnSetValue : 'Postavi kao odabranu vrijednost',
btnDelete : 'Obriši'
},
// Textarea Dialog.
textarea :
{
title : 'Textarea svojstva',
cols : 'Kolona',
rows : 'Redova'
},
// Text Field Dialog.
textfield :
{
title : 'Text Field svojstva',
name : 'Ime',
value : 'Vrijednost',
charWidth : 'Širina',
maxChars : 'Najviše karaktera',
type : 'Vrsta',
typeText : 'Tekst',
typePass : 'Šifra'
},
// Hidden Field Dialog.
hidden :
{
title : 'Hidden Field svojstva',
name : 'Ime',
value : 'Vrijednost'
},
// Image Dialog.
image :
{
title : 'Svojstva slika',
titleButton : 'Image Button svojstva',
menu : 'Svojstva slika',
infoTab : 'Info slike',
btnUpload : 'Pošalji na server',
upload : 'Pošalji',
alt : 'Alternativni tekst',
lockRatio : 'Zaključaj odnos',
resetSize : 'Obriši veličinu',
border : 'Okvir',
hSpace : 'HSpace',
vSpace : 'VSpace',
alertUrl : 'Unesite URL slike',
linkTab : 'Link',
button2Img : 'Želite li promijeniti odabrani gumb u jednostavnu sliku?',
img2Button : 'Želite li promijeniti odabranu sliku u gumb?',
urlMissing : 'Nedostaje URL slike.',
validateBorder : 'Okvir mora biti cijeli broj.',
validateHSpace : 'HSpace mora biti cijeli broj',
validateVSpace : 'VSpace mora biti cijeli broj.'
},
// Flash Dialog
flash :
{
properties : 'Flash svojstva',
propertiesTab : 'Svojstva',
title : 'Flash svojstva',
chkPlay : 'Auto Play',
chkLoop : 'Ponavljaj',
chkMenu : 'Omogući Flash izbornik',
chkFull : 'Omogući Fullscreen',
scale : 'Omjer',
scaleAll : 'Prikaži sve',
scaleNoBorder : 'Bez okvira',
scaleFit : 'Točna veličina',
access : 'Script Access',
accessAlways : 'Uvijek',
accessSameDomain: 'Ista domena',
accessNever : 'Nikad',
alignAbsBottom : 'Abs dolje',
alignAbsMiddle : 'Abs sredina',
alignBaseline : 'Bazno',
alignTextTop : 'Vrh teksta',
quality : 'Kvaliteta',
qualityBest : 'Best',
qualityHigh : 'High',
qualityAutoHigh : 'Auto High',
qualityMedium : 'Medium',
qualityAutoLow : 'Auto Low',
qualityLow : 'Low',
windowModeWindow: 'Window',
windowModeOpaque: 'Opaque',
windowModeTransparent : 'Transparent',
windowMode : 'Vrsta prozora',
flashvars : 'Varijable za Flash',
bgcolor : 'Boja pozadine',
hSpace : 'HSpace',
vSpace : 'VSpace',
validateSrc : 'Molimo upišite URL link',
validateHSpace : 'HSpace mora biti broj.',
validateVSpace : 'VSpace mora biti broj.'
},
// Speller Pages Dialog
spellCheck :
{
toolbar : 'Provjeri pravopis',
title : 'Provjera pravopisa',
notAvailable : 'Žao nam je, ali usluga trenutno nije dostupna.',
errorLoading : 'Greška učitavanja aplikacije: %s.',
notInDic : 'Nije u rječniku',
changeTo : 'Promijeni u',
btnIgnore : 'Zanemari',
btnIgnoreAll : 'Zanemari sve',
btnReplace : 'Zamijeni',
btnReplaceAll : 'Zamijeni sve',
btnUndo : 'Vrati',
noSuggestions : '-Nema preporuke-',
progress : 'Provjera u tijeku...',
noMispell : 'Provjera završena: Nema grešaka',
noChanges : 'Provjera završena: Nije napravljena promjena',
oneChange : 'Provjera završena: Jedna riječ promjenjena',
manyChanges : 'Provjera završena: Promijenjeno %1 riječi',
ieSpellDownload : 'Provjera pravopisa nije instalirana. Želite li skinuti provjeru pravopisa?'
},
smiley :
{
toolbar : 'Smješko',
title : 'Ubaci smješka',
options : 'Opcije smješka'
},
elementsPath :
{
eleLabel : 'Putanja elemenata',
eleTitle : '%1 element'
},
numberedlist : 'Brojčana lista',
bulletedlist : 'Obična lista',
indent : 'Pomakni udesno',
outdent : 'Pomakni ulijevo',
justify :
{
left : 'Lijevo poravnanje',
center : 'Središnje poravnanje',
right : 'Desno poravnanje',
block : 'Blok poravnanje'
},
blockquote : 'Blockquote',
clipboard :
{
title : 'Zalijepi',
cutError : 'Sigurnosne postavke Vašeg pretraživača ne dozvoljavaju operacije automatskog izrezivanja. Molimo koristite kraticu na tipkovnici (Ctrl/Cmd+X).',
copyError : 'Sigurnosne postavke Vašeg pretraživača ne dozvoljavaju operacije automatskog kopiranja. Molimo koristite kraticu na tipkovnici (Ctrl/Cmd+C).',
pasteMsg : 'Molimo zaljepite unutar doljnjeg okvira koristeći tipkovnicu (<STRONG>Ctrl/Cmd+V</STRONG>) i kliknite <STRONG>OK</STRONG>.',
securityMsg : 'Zbog sigurnosnih postavki Vašeg pretraživača, editor nema direktan pristup Vašem međuspremniku. Potrebno je ponovno zalijepiti tekst u ovaj prozor.',
pasteArea : 'Prostor za ljepljenje'
},
pastefromword :
{
confirmCleanup : 'Tekst koji želite zalijepiti čini se da je kopiran iz Worda. Želite li prije očistiti tekst?',
toolbar : 'Zalijepi iz Worda',
title : 'Zalijepi iz Worda',
error : 'Nije moguće očistiti podatke za ljepljenje zbog interne greške'
},
pasteText :
{
button : 'Zalijepi kao čisti tekst',
title : 'Zalijepi kao čisti tekst'
},
templates :
{
button : 'Predlošci',
title : 'Predlošci sadržaja',
options : 'Opcije predložaka',
insertOption : 'Zamijeni trenutne sadržaje',
selectPromptMsg : 'Molimo odaberite predložak koji želite otvoriti<br>(stvarni sadržaj će biti izgubljen):',
emptyListMsg : '(Nema definiranih predložaka)'
},
showBlocks : 'Prikaži blokove',
stylesCombo :
{
label : 'Stil',
panelTitle : 'Stilovi formatiranja',
panelTitle1 : 'Block stilovi',
panelTitle2 : 'Inline stilovi',
panelTitle3 : 'Object stilovi'
},
format :
{
label : 'Format',
panelTitle : 'Format',
tag_p : 'Normal',
tag_pre : 'Formatirano',
tag_address : 'Address',
tag_h1 : 'Heading 1',
tag_h2 : 'Heading 2',
tag_h3 : 'Heading 3',
tag_h4 : 'Heading 4',
tag_h5 : 'Heading 5',
tag_h6 : 'Heading 6',
tag_div : 'Normal (DIV)'
},
div :
{
title : 'Napravi DIV kontejner',
toolbar : 'Napravi DIV kontejner',
cssClassInputLabel : 'Klase stilova',
styleSelectLabel : 'Stil',
IdInputLabel : 'Id',
languageCodeInputLabel : 'Jezični kod',
inlineStyleInputLabel : 'Stil u liniji',
advisoryTitleInputLabel : 'Savjetodavni naslov',
langDirLabel : 'Smjer jezika',
langDirLTRLabel : 'S lijeva na desno (LTR)',
langDirRTLLabel : 'S desna na lijevo (RTL)',
edit : 'Uredi DIV',
remove : 'Ukloni DIV'
},
iframe :
{
title : 'IFrame svojstva',
toolbar : 'IFrame',
noUrl : 'Unesite URL iframe-a',
scrolling : 'Omogući trake za skrolanje',
border : 'Prikaži okvir IFrame-a'
},
font :
{
label : 'Font',
voiceLabel : 'Font',
panelTitle : 'Font'
},
fontSize :
{
label : 'Veličina',
voiceLabel : 'Veličina slova',
panelTitle : 'Veličina'
},
colorButton :
{
textColorTitle : 'Boja teksta',
bgColorTitle : 'Boja pozadine',
panelTitle : 'Boje',
auto : 'Automatski',
more : 'Više boja...'
},
colors :
{
'000' : 'Crna',
'800000' : 'Kesten',
'8B4513' : 'Smeđa',
'2F4F4F' : 'Tamno siva',
'008080' : 'Teal',
'000080' : 'Mornarska',
'4B0082' : 'Indigo',
'696969' : 'Tamno siva',
'B22222' : 'Vatrena cigla',
'A52A2A' : 'Smeđa',
'DAA520' : 'Zlatna',
'006400' : 'Tamno zelena',
'40E0D0' : 'Tirkizna',
'0000CD' : 'Srednje plava',
'800080' : 'Ljubičasta',
'808080' : 'Siva',
'F00' : 'Crvena',
'FF8C00' : 'Tamno naranđasta',
'FFD700' : 'Zlatna',
'008000' : 'Zelena',
'0FF' : 'Cijan',
'00F' : 'Plava',
'EE82EE' : 'Ljubičasta',
'A9A9A9' : 'Mutno siva',
'FFA07A' : 'Svijetli losos',
'FFA500' : 'Naranđasto',
'FFFF00' : 'Žuto',
'00FF00' : 'Limun',
'AFEEEE' : 'Blijedo tirkizna',
'ADD8E6' : 'Svijetlo plava',
'DDA0DD' : 'Šljiva',
'D3D3D3' : 'Svijetlo siva',
'FFF0F5' : 'Lavanda rumeno',
'FAEBD7' : 'Antikno bijela',
'FFFFE0' : 'Svijetlo žuta',
'F0FFF0' : 'Med',
'F0FFFF' : 'Azurna',
'F0F8FF' : 'Alice plava',
'E6E6FA' : 'Lavanda',
'FFF' : 'Bijela'
},
scayt :
{
title : 'Provjeri pravopis tijekom tipkanja (SCAYT)',
opera_title : 'Nije podržano u Operi',
enable : 'Omogući SCAYT',
disable : 'Onemogući SCAYT',
about : 'O SCAYT',
toggle : 'Omoguću/Onemogući SCAYT',
options : 'Opcije',
langs : 'Jezici',
moreSuggestions : 'Više prijedloga',
ignore : 'Zanemari',
ignoreAll : 'Zanemari sve',
addWord : 'Dodaj riječ',
emptyDic : 'Naziv rječnika ne smije biti prazno.',
optionsTab : 'Opcije',
allCaps : 'Ignoriraj riječi s velikim slovima',
ignoreDomainNames : 'Ignoriraj nazive domena',
mixedCase : 'Ignoriraj riječi s miješanim slovima',
mixedWithDigits : 'Ignoriraj riječi s brojevima',
languagesTab : 'Jezici',
dictionariesTab : 'Rječnici',
dic_field_name : 'Naziv riječnika',
dic_create : 'Napravi',
dic_restore : 'Povrati',
dic_delete : 'Obriši',
dic_rename : 'Promijeni naziv',
dic_info : 'Na početku se korisnički Riječnik sprema u Cookie. Nažalost, veličina im je ograničena. Kada korisnički Riječnik naraste preko te veličine, Riječnik će biti smješten na naš server. Kako bi se korisnički Riječnik spremio na naš server morate odabrati naziv Vašeg Riječnika. Ukoliko ste već prije spremali Riječnik na naše servere, unesite naziv Riječnika i pritisnite na Povrati.',
aboutTab : 'O SCAYT'
},
about :
{
title : 'O CKEditoru',
dlgTitle : 'O CKEditoru',
help : 'Provjeri $1 za pomoć.',
userGuide : 'Vodič za CKEditor korisnike',
moreInfo : 'Za informacije o licencama posjetite našu web stranicu:',
copy : 'Copyright © $1. All rights reserved.'
},
maximize : 'Povećaj',
minimize : 'Smanji',
fakeobjects :
{
anchor : 'Sidro',
flash : 'Flash animacija',
iframe : 'IFrame',
hiddenfield : 'Sakriveno polje',
unknown : 'Nepoznati objekt'
},
resize : 'Povuci za promjenu veličine',
colordialog :
{
title : 'Odaberi boju',
options : 'Opcije boje',
highlight : 'Istaknuto',
selected : 'Odabrana boja',
clear : 'Očisti'
},
toolbarCollapse : 'Smanji alatnu traku',
toolbarExpand : 'Proširi alatnu traku',
toolbarGroups :
{
document : 'Dokument',
clipboard : 'Međuspremnik/Poništi',
editing : 'Uređivanje',
forms : 'Forme',
basicstyles : 'Osnovni stilovi',
paragraph : 'Paragraf',
links : 'Veze',
insert : 'Umetni',
styles : 'Stilovi',
colors : 'Boje',
tools : 'Alatke'
},
bidi :
{
ltr : 'Smjer teksta s lijeva na desno',
rtl : 'Smjer teksta s desna na lijevo'
},
docprops :
{
label : 'Svojstva dokumenta',
title : 'Svojstva dokumenta',
design : 'Dizajn',
meta : 'Meta Data',
chooseColor : 'Odaberi',
other : '<drugi>',
docTitle : 'Naslov stranice',
charset : 'Enkodiranje znakova',
charsetOther : 'Ostalo enkodiranje znakova',
charsetASCII : 'ASCII',
charsetCE : 'Središnja Europa',
charsetCT : 'Tradicionalna kineska (Big5)',
charsetCR : 'Ćirilica',
charsetGR : 'Grčka',
charsetJP : 'Japanska',
charsetKR : 'Koreanska',
charsetTR : 'Turska',
charsetUN : 'Unicode (UTF-8)',
charsetWE : 'Zapadna Europa',
docType : 'Zaglavlje vrste dokumenta',
docTypeOther : 'Ostalo zaglavlje vrste dokumenta',
xhtmlDec : 'Ubaci XHTML deklaracije',
bgColor : 'Boja pozadine',
bgImage : 'URL slike pozadine',
bgFixed : 'Pozadine se ne pomiče',
txtColor : 'Boja teksta',
margin : 'Margine stranice',
marginTop : 'Vrh',
marginLeft : 'Lijevo',
marginRight : 'Desno',
marginBottom : 'Dolje',
metaKeywords : 'Ključne riječi dokumenta (odvojene zarezom)',
metaDescription : 'Opis dokumenta',
metaAuthor : 'Autor',
metaCopyright : 'Autorska prava',
previewHtml : '<p>Ovo je neki <strong>primjer teksta</strong>. Vi koristite <a href="javascript:void(0)">CKEditor</a>.</p>'
}
};
| 10npsite | trunk/guanli/system/ckeditor/_source/lang/hr.js | JavaScript | asf20 | 23,611 |