diff --git a/modules/editor/skins/xpresseditor/LICENSE.txt b/modules/editor/skins/xpresseditor/LICENSE.txt
deleted file mode 100644
index f237bc556..000000000
--- a/modules/editor/skins/xpresseditor/LICENSE.txt
+++ /dev/null
@@ -1,9 +0,0 @@
-XpressEditor - http://www.xpressengine.com
-
-XpressEditor nhn SmartEditor Basic ߽ϴ.
-SmartEditor Basic LGPL v2 Ƿ, XpressEditor ش ̼ ϴ.
- XpressEditor Ѵٴ XpressEditor ̼ ǹմϴ.
-
-LGPL v2̼ URL Ȯ ֽϴ.
-
-http://www.gnu.org/licenses/lgpl-2.1.html
\ No newline at end of file
diff --git a/modules/editor/skins/xpresseditor/css/default.css b/modules/editor/skins/xpresseditor/css/default.css
deleted file mode 100644
index d118ed5dd..000000000
--- a/modules/editor/skins/xpresseditor/css/default.css
+++ /dev/null
@@ -1,348 +0,0 @@
-@charset "utf-8";
-/* NAVER (developers@xpressengine.com) */
-/* TextEditor */
-.xeTextEditor {margin:0 12px 0 0}
-.xeTextEditor textarea {display:block;margin:0;padding:5px}
-.xeTextEditor.black textarea {color:#fff;background-color:#000}
-/* Type Selector */
-.xpress-editor *{margin:0;padding:0;font-style:normal;font-size:12px}
-.xpress-editor img,
-.xpress-editor fieldset,
-.xpress-editor button{border:0}
-.xpress-editor button{background:none;background-repeat:no-repeat;cursor:pointer}
-.xpress-editor button *{visibility:hidden}
-.xpress-editor legend{position:absolute;width:0;height:0;font-size:0;line-height:0;overflow:hidden;visibility:hidden}
-.xpress-editor label{cursor:pointer}
-.xpress-editor hr{display:none}
-.xpress-editor li{list-style:none}
-/* Layout Selector */
-.xpress-editor{position:relative;background:transparent}
-.xpress-editor #smart_content{position:relative;clear:both;margin:0 0 10px 0;border:1px solid #c2c2c2;*zoom:1;z-index:1;background:#fff}
-.xpress-editor.black #smart_content {background:transparent}
-.xpress-editor #smart_footer{position:relative;text-align:center;padding:10px 0}
-/* Footer */
-.xpress-editor #smart_footer *{vertical-align:top}
-.xpress-editor #smart_footer button{position:relative;width:67px;height:25px;margin:0 5px 0 0}
-.xpress-editor #smart_footer button.save_temp{background:url(../img/btn_save_temp.gif) no-repeat}
-.xpress-editor #smart_footer button.preview{background:url(../img/btn_preview.gif) no-repeat}
-.xpress-editor #smart_footer input{margin:0}
-.xpress-editor #smart_footer input.reset{width:67px;height:25px;border:0;background:url(../img/btn_cancel.gif) no-repeat;cursor:pointer;margin-left:5px}
-/* Content > Input Area */
-.xpress-editor a.skip{position:absolute;display:block;top:0;right:0;width:1px;height:1px;overflow:hidden;clear:both;zoom:1}
-.xpress-editor a.skip:hover,
-.xpress-editor a.skip:active,
-.xpress-editor a.skip:focus{position:relative;display:block;padding:5px;right:0;z-index:60;width:auto;height:auto;text-align:right;white-space:nowrap;color:#000;text-decoration:none;letter-spacing:-1px;_zoom:1}
-.xpress-editor .input_area{position:relative;margin:10px 10px 20px 10px;z-index:30;*zoom:1;height:300px;overflow:hidden}
-.xpress-editor .input_area iframe,
-.xpress-editor .input_area textarea{display:block;width:100% !important;position:relative;height:100%;border:0 !important;padding:0 !important;overflow:auto}
-.xpress-editor .input_area textarea{*margin:0 -10px;_margin-bottom:-2px}
-.xpress-editor .input_area textarea.blind{display:none}
-.xpress-editor .input_control{position:relative;display:block;width:100%;height:25px;clear:both;text-align:center;border-top:1px solid #ccc;background:#f8f8f8 url(../img/btn_expand.gif) no-repeat center center;cursor:n-resize;margin:0 0 -25px 0}
-.xpress-editor .input_control span{display:block;zoom:1;height:21px;visibility:hidden;overflow:visible;font-size:0;line-height:0;white-space:nowrap;color:#fff}
-.xpress-editor .input_auto{position:relative;z-index:2;zoom:1;white-space:nowrap;display:block;height:0;border-top:1px solid #ccc;margin:0 0 24px 0;*margin:0}
-.xpress-editor .input_auto input{margin:0 4px 0 0 !important;padding:0;width:13px;height:13px;vertical-align:middle}
-.xpress-editor .input_auto label{position:absolute;font-size:11px;color:#666;padding:0 5px !important;line-height:25px;font-weight:normal !important}
-.xpress-editor.black .input_control {background:#111 url(../img/btn_expand.black.gif) no-repeat center center}
-.xpress-editor.black .input_control span{border-top:1px solid #333; color:#000}
-.xpress-editor .tool{position:relative;overflow:visible;padding:5px 10px 6px 10px;*padding:5px 10px 8px 10px;z-index:40;clear:both;background:#f8f8f8 url(../img/bg_tool.gif) repeat-x left bottom;border:0;*zoom:1}
-.xpress-editor .tool.disable {display:none}
-.xpress-editor.black .tool{background:#111 url(../img/bg_tool.black.gif) repeat-x left bottom}
-.xpress-editor .tool:after{content:"";display:block;clear:both}
-.xpress-editor .tool ul{position:relative;overflow:visible;float:left;margin:0 5px 2px 0 !important;z-index:2;border:0 !important}
-.xpress-editor .tool ul.action{width:43px}
-.xpress-editor .tool ul.type{width:auto;white-space:nowrap;height:21px}
-.xpress-editor .tool ul.style{width:169px;z-index:6}
-.xpress-editor .tool ul.paragraph{width:169px;z-index:5}
-.xpress-editor .tool ul.extra1{width:69px;z-index:4}
-.xpress-editor .tool ul.table{width:85px;z-index:3}
-.xpress-editor .tool ul.extra2{width:auto;z-index:2}
-.xpress-editor .tool ul.extra3{float:left;width:auto;z-index:1;margin-right:1px}
-.xpress-editor .tool ul.extra3 li{margin-right:4px}
-.xpress-editor .tool li{position:relative;float:left;margin:0 !important;padding:0 !important;border:0 !important}
-.xpress-editor .tool li button{width:21px;height:21px;background:url(../img/btn_set.gif) no-repeat 0 0;vertical-align:top;float:left}
-.xpress-editor.black .tool li button{width:21px;height:21px;background:url(../img/btn_set.black.gif) no-repeat 0 0;vertical-align:top}
-.xpress-editor .tool li button span{position:absolute;top:0;left:0;width:0;height:0;overflow:hidden;visibility:hidden}
-.xpress-editor .tool li.extensions span.exButton,
-.xpress-editor .tool li.extensions span.exButton button{float:left;position:relative;display:inline-block;width:auto;background:url(../img/btn_set_blank.gif) no-repeat left top}
-.xpress-editor .tool li.extensions span.exButton button{left:2px;height:21px;background-position:right top;padding:0 4px;font:11px/21px Tahoma, Sans-serif;text-align:left;*overflow:visible;*line-height:20px}
-.xpress-editor.black .tool li.extensions span.exButton,
-.xpress-editor.black .tool li.extensions span.exButton button{color:#fff;background-image:url(../img/btn_set_blank.black.gif)}
-.xpress-editor .tool li.html span,
-.xpress-editor .tool li.html span button,
-.xpress-editor .tool li.preview span,
-.xpress-editor .tool li.preview span button{float:left;position:relative;display:inline-block;width:auto;height:auto;visibility:visible;background:url(../img/btn_set_blank.gif) no-repeat 0 0;white-space:nowrap}
-.xpress-editor.black .tool li.html span,
-.xpress-editor.black .tool li.html span button,
-.xpress-editor.black .tool li.preview span,
-.xpress-editor.black .tool li.preview span button{color:#fff;background-image:url(../img/btn_set_blank.black.gif)}
-.xpress-editor .tool li.html span,
-.xpress-editor .tool li.preview span{margin-right:2px;background-position:left top}
-.xpress-editor .tool li.html span button,
-.xpress-editor .tool li.preview span button{left:2px;height:21px;background-position:right top;font:11px/21px Tahoma, Sans-serif;padding:0 4px;*overflow:visible;*line-height:20px}
-.xpress-editor .tool ul.type li{float:none;display:inline;*top:1px}
-.xpress-editor .tool ul.type li select{height:21px;width:64px;white-space:nowrap;min-width:64px;padding:0;font-size:12px}
-.xpress-editor .tool ul.type li option{white-space:nowrap}
-.xpress-editor.black .tool ul.type li select{color:#fff;background-color:#000}
-/* Content > Tool > Button Default */
-.xpress-editor .tool li.undo button{width:22px;background-position:0 0}
-.xpress-editor .tool li.redo button{background-position:-22px 0}
-.xpress-editor .tool li.bold button{width:22px;background-position:-43px 0}
-.xpress-editor .tool li.underline button{background-position:-65px 0}
-.xpress-editor .tool li.italic button{background-position:-86px 0}
-.xpress-editor .tool li.del button{background-position:-107px 0}
-.xpress-editor .tool li.fcolor button{background-position:-128px 0}
-.xpress-editor .tool li.bcolor button{background-position:-149px 0}
-.xpress-editor .tool li.sup button{background-position:-170px 0}
-.xpress-editor .tool li.sub button{background-position:-191px 0}
-.xpress-editor .tool li.left button{width:22px;background-position:-212px 0}
-.xpress-editor .tool li.center button{background-position:-234px 0}
-.xpress-editor .tool li.right button{background-position:-255px 0}
-.xpress-editor .tool li.justify button{background-position:-276px 0}
-.xpress-editor .tool li.ol button{background-position:-297px 0}
-.xpress-editor .tool li.ul button{background-position:-318px 0}
-.xpress-editor .tool li.outdent button{background-position:-339px 0}
-.xpress-editor .tool li.indent button{background-position:-360px 0}
-.xpress-editor .tool li.blockquote button{width:22px;background-position:-381px 0}
-.xpress-editor .tool li.url button{width:26px;background-position:-403px 0}
-.xpress-editor .tool li.character button{background-position:-429px 0}
-.xpress-editor .tool li.table{width:auto}
-.xpress-editor .tool li.table button{width:22px;background-position:-450px 0}
-.xpress-editor .tool li.merge button{background-position:-472px 0}
-.xpress-editor .tool li.splitCol button{background-position:-493px 0}
-.xpress-editor .tool li.splitRow button{background-position:-514px 0}
-.xpress-editor .tool li.extensions span{background-position:0 0}
-.xpress-editor .tool li.extensions span button{background-position:right 0}
-.xpress-editor .tool li.html span{background-position:0 0}
-.xpress-editor .tool li.html span button{background-position:right 0}
-.xpress-editor .tool li.preview span{background-position:0 0}
-.xpress-editor .tool li.preview span button{background-position:right 0}
-/* Content > Tool > Button Hover */
-.xpress-editor .tool li.undo button.hover{width:22px;background-position:0 -21px}
-.xpress-editor .tool li.redo button.hover{background-position:-22px -21px}
-.xpress-editor .tool li.bold button.hover{width:22px;background-position:-43px -21px}
-.xpress-editor .tool li.underline button.hover{background-position:-65px -21px}
-.xpress-editor .tool li.italic button.hover{background-position:-86px -21px}
-.xpress-editor .tool li.del button.hover{background-position:-107px -21px}
-.xpress-editor .tool li.fcolor button.hover{background-position:-128px -21px}
-.xpress-editor .tool li.bcolor button.hover{background-position:-149px -21px}
-.xpress-editor .tool li.sup button.hover{background-position:-170px -21px}
-.xpress-editor .tool li.sub button.hover{background-position:-191px -21px}
-.xpress-editor .tool li.left button.hover{width:22px;background-position:-212px -21px}
-.xpress-editor .tool li.center button.hover{background-position:-234px -21px}
-.xpress-editor .tool li.right button.hover{background-position:-255px -21px}
-.xpress-editor .tool li.justify button.hover{background-position:-276px -21px}
-.xpress-editor .tool li.ol button.hover{background-position:-297px -21px}
-.xpress-editor .tool li.ul button.hover{background-position:-318px -21px}
-.xpress-editor .tool li.outdent button.hover{background-position:-339px -21px}
-.xpress-editor .tool li.indent button.hover{background-position:-360px -21px}
-.xpress-editor .tool li.blockquote button.hover{width:22px;background-position:-381px -21px}
-.xpress-editor .tool li.url button.hover{width:26px;background-position:-403px -21px}
-.xpress-editor .tool li.character button.hover{background-position:-429px -21px}
-.xpress-editor .tool li.table button.hover{width:22px;background-position:-450px -21px}
-.xpress-editor .tool li.merge button.hover{background-position:-472px -21px}
-.xpress-editor .tool li.splitCol button.hover{background-position:-493px -21px}
-.xpress-editor .tool li.splitRow button.hover{background-position:-514px -21px}
-.xpress-editor .tool li.extensions span.hover{background-position:0 -21px}
-.xpress-editor .tool li.extensions span.hover button{background-position:right -21px}
-.xpress-editor .tool li.html span.hover{background-position:0 -21px}
-.xpress-editor .tool li.html span.hover button{background-position:right -21px}
-.xpress-editor .tool li.preview span.hover{background-position:0 -21px}
-.xpress-editor .tool li.preview span.hover button{background-position:right -21px}
-/* Content > Tool > Button Active */
-.xpress-editor .tool li.undo button.active{width:22px;background-position:0 -42px}
-.xpress-editor .tool li.redo button.active{background-position:-22px -42px}
-.xpress-editor .tool li.bold button.active{width:22px;background-position:-43px -42px}
-.xpress-editor .tool li.underline button.active{background-position:-65px -42px}
-.xpress-editor .tool li.italic button.active{background-position:-86px -42px}
-.xpress-editor .tool li.del button.active{background-position:-107px -42px}
-.xpress-editor .tool li.fcolor button.active{background-position:-128px -42px}
-.xpress-editor .tool li.bcolor button.active{background-position:-149px -42px}
-.xpress-editor .tool li.sup button.active{background-position:-170px -42px}
-.xpress-editor .tool li.sub button.active{background-position:-191px -42px}
-.xpress-editor .tool li.left button.active{width:22px;background-position:-212px -42px}
-.xpress-editor .tool li.center button.active{background-position:-234px -42px}
-.xpress-editor .tool li.right button.active{background-position:-255px -42px}
-.xpress-editor .tool li.justify button.active{background-position:-276px -42px}
-.xpress-editor .tool li.ol button.active{background-position:-297px -42px}
-.xpress-editor .tool li.ul button.active{background-position:-318px -42px}
-.xpress-editor .tool li.outdent button.active{background-position:-339px -42px}
-.xpress-editor .tool li.indent button.active{background-position:-360px -42px}
-.xpress-editor .tool li.blockquote button.active{width:22px;background-position:-381px -42px}
-.xpress-editor .tool li.url button.active{width:26px;background-position:-403px -42px}
-.xpress-editor .tool li.character button.active{background-position:-429px -42px}
-.xpress-editor .tool li.table button.active{width:22px;background-position:-450px -42px}
-.xpress-editor .tool li.merge button.active{background-position:-472px -42px}
-.xpress-editor .tool li.splitCol button.active{background-position:-493px -42px}
-.xpress-editor .tool li.splitRow button.active{background-position:-514px -42px}
-.xpress-editor .tool li.extensions span.active{background-position:0 -42px}
-.xpress-editor .tool li.extensions span.active button{background-position:right -42px}
-.xpress-editor .tool li.html span.active{background-position:0 -42px}
-.xpress-editor .tool li.html span.active button{background-position:right -42px}
-.xpress-editor .tool li.preview span.active{background-position:0 -42px}
-.xpress-editor .tool li.preview span.active button{background-position:right -42px}
-/* Content > Tool > Button Off */
-.xpress-editor .tool.off li.undo button,
-.xpress-editor .tool li.undo button.off{width:22px;background-position:0 -63px}
-.xpress-editor .tool.off li.redo button,
-.xpress-editor .tool li.redo button.off{background-position:-22px -63px}
-.xpress-editor .tool.off li.bold button{width:22px;background-position:-43px -63px}
-.xpress-editor .tool.off li.underline button{background-position:-65px -63px}
-.xpress-editor .tool.off li.italic button{background-position:-86px -63px}
-.xpress-editor .tool.off li.del button{background-position:-107px -63px}
-.xpress-editor .tool.off li.fcolor button{background-position:-128px -63px}
-.xpress-editor .tool.off li.bcolor button{background-position:-149px -63px}
-.xpress-editor .tool.off li.sup button{background-position:-170px -63px}
-.xpress-editor .tool.off li.sub button{background-position:-191px -63px}
-.xpress-editor .tool.off li.left button{width:22px;background-position:-212px -63px}
-.xpress-editor .tool.off li.center button{background-position:-234px -63px}
-.xpress-editor .tool.off li.right button{background-position:-255px -63px}
-.xpress-editor .tool.off li.justify button{background-position:-276px -63px}
-.xpress-editor .tool.off li.ol button{background-position:-297px -63px}
-.xpress-editor .tool.off li.ul button{background-position:-318px -63px}
-.xpress-editor .tool.off li.outdent button{background-position:-339px -63px}
-.xpress-editor .tool.off li.indent button{background-position:-360px -63px}
-.xpress-editor .tool.off li.blockquote button{width:22px;background-position:-381px -63px}
-.xpress-editor .tool.off li.url button{width:26px;background-position:-403px -63px}
-.xpress-editor .tool.off li.character button{background-position:-429px -63px}
-.xpress-editor .tool.off li.table button{width:22px;background-position:-450px -63px}
-.xpress-editor .tool.off li.merge button,
-.xpress-editor .tool li.merge button.off{background-position:-472px -63px}
-.xpress-editor .tool.off li.splitCol button,
-.xpress-editor .tool li.splitCol button.off{background-position:-493px -63px}
-.xpress-editor .tool.off li.splitRow button,
-.xpress-editor .tool li.splitRow button.off{background-position:-514px -63px}
-.xpress-editor .tool.off li.extensions span{background-position:0 -63px}
-.xpress-editor .tool.off li.extensions span button{background-position:right -63px;color:#bcbcbc}
-.xpress-editor .tool.off li button{cursor:default}
-.xpress-editor .tool.off ul.extra3 li button{cursor:pointer}
-/* Content > Tool > Layer */
-.xpress-editor .tool .layer{display:none;position:absolute;left:0;top:20px;background-color:#fbfbfb;border:1px solid #c5c5c5;border-right:1px solid #9f9f9f;border-bottom:1px solid #9f9f9f}
-.xpress-editor .tool .layer li{float:none;left:0}
-.xpress-editor .tool .layer button,
-.xpress-editor.black .tool .layer button{margin:0 !important;width:auto;height:auto;background:none;float:none}
-.xpress-editor .tool .layer button span{position:absolute;width:0;height:0;font-size:0;line-height:0;overflow:hidden;visibility:hidden}
-.xpress-editor .tool .btn_area{position:relative;clear:both;text-align:center !important;padding:7px 0 12px 0;width:100%;white-space:nowrap;*zoom:1}
-.xpress-editor .tool .btn_area *{vertical-align:top}
-.xpress-editor .tool button.close{position:absolute;top:4px;right:3px;width:21px;height:20px;background:url(../img/btn_layer_close.gif) no-repeat center center !important}
-.xpress-editor .tool button.close span{position:absolute;width:0;height:0;overflow:hidden;visibility:hidden}
-.xpress-editor .tool .layer .btn_area button{*margin:0 2px !important}
-.xpress-editor .tool .layer .btn_area button.confirm{width:38px;height:21px;background:url(../img/btn_layer_confirm.gif) no-repeat}
-.xpress-editor .tool .layer .btn_area button.cancel{width:38px;height:21px;background:url(../img/btn_layer_cancel.gif) no-repeat}
-.xpress-editor .tool li.fcolor .layer{width:218px !important;height:auto !important;background-image:none !important;overflow:hidden}
-.xpress-editor .tool .layer .palette{width:210px;position:relative;left:7px;padding:8px 0 7px 0;margin:0}
-.xpress-editor .tool .layer .palette li{float:left;margin:0 1px 1px 0 !important;font-size:0;line-height:0}
-.xpress-editor .tool .layer .palette button{position:relative;overflow:hidden;width:11px !important;height:11px !important}
-.xpress-editor .tool li.bcolor .layer {width:218px;overflow:hidden}
-.xpress-editor .tool .layer .background{width:210px;position:relative;left:7px;margin:0 0 -2px 0;padding:8px 0 0 0;*padding-bottom:8px;_padding-bottom:4px}
-.xpress-editor .tool .layer .background li{float:left;margin:0 5px 2px 0 !important}
-.xpress-editor .tool .layer .background button{position:relative;overflow:hidden;width:65px;height:19px;text-align:left;padding:4px}
-.xpress-editor .tool .layer .background button span{position:relative;visibility:visible;font-size:12px;line-height:normal;width:auto;height:auto}
-.xpress-editor .tool li.style .layer{padding:4px 2px;_overflow:hidden;filter:progid:DXImageTransform.Microsoft.Shadow(color=#dddddd,direction=135,strength=2)}
-.xpress-editor .tool li.style .layer li{position:relative;background:#fbfbfb}
-.xpress-editor .tool li.style .layer li button{display:block;width:134px;position:relative}
-.xpress-editor .tool li.style .layer li button span{display:block;width:130px;text-align:left;letter-spacing:normal}
-.xpress-editor .tool li.style .layer li.h3 button span{padding:3px 0 1px 4px;height:15px;font-size:16px;font-weight:bold}
-.xpress-editor .tool li.style .layer li.h4 button span{padding:3px 0 2px 4px;height:13px;font-size:14px;font-weight:bold}
-.xpress-editor .tool li.style .layer li.h5 button span{padding:3px 0 1px 4px;height:11px;font-size:12px;font-weight:bold}
-.xpress-editor .tool li.style .layer li.h6 button span{padding:3px 0 1px 4px;height:11px;font-size:12px}
-.xpress-editor .tool li.style .layer li.p button span{padding:3px 0 1px 4px;height:11px;font-size:12px;color:#5d5d5d}
-.xpress-editor .tool li.style .layer li button.hover{background:#c1f471;*height:1%}
-.xpress-editor .tool li.blockquote .layer{padding:6px 0 6px 7px;left:0;width:294px}
-.xpress-editor .tool li.blockquote .layer ul{*zoom:1;margin:0}
-.xpress-editor .tool li.blockquote .layer ul:after{content:"";display:block;clear:both}
-.xpress-editor .tool li.blockquote .layer li{position:relative;float:left;overflow:hidden;width:32px;height:34px;margin:0 2px 0 0 !important;border:1px solid #cdcecc !important;background-image:url(../img/btn_qmark.gif);background-repeat:no-repeat}
-.xpress-editor .tool li.blockquote .layer li.q1{background-position:0 0}
-.xpress-editor .tool li.blockquote .layer li.q2{background-position:-32px 0}
-.xpress-editor .tool li.blockquote .layer li.q3{background-position:-64px 0}
-.xpress-editor .tool li.blockquote .layer li.q4{background-position:-96px 0}
-.xpress-editor .tool li.blockquote .layer li.q5{background-position:-128px 0}
-.xpress-editor .tool li.blockquote .layer li.q6{background-position:-160px 0}
-.xpress-editor .tool li.blockquote .layer li.q7{background-position:-192px 0}
-.xpress-editor .tool li.blockquote .layer li.q8{background-position:-224px 0}
-.xpress-editor .tool li.blockquote .layer li button{width:32px;height:34px}
-.xpress-editor .tool li.url .layer{width:231px;height:125px;background-image:url(../img/bx_url.gif);background-repeat:no-repeat;background-position:10px 14px}
-.xpress-editor .tool li.url .layer fieldset{position:absolute;width:212px;left:10px;top:14px}
-.xpress-editor .tool li.url .layer fieldset h3{position:absolute;top:-4px;left:15px;color:#404040;visibility:visible;font-size:12px;line-height:normal;width:auto;height:auto;background:none;margin:0;padding:0;font-weight:normal}
-.xpress-editor .tool li.url .layer fieldset input.link{position:absolute;left:12px;top:19px;width:179px;padding:2px 0 1px 6px;*margin:-1px 0;font-size:11px;height:13px;border:1px solid #818181;border-right:1px solid #dadada;border-bottom:1px solid #dadada}
-.xpress-editor .tool li.url .layer fieldset p{position:absolute;left:12px;top:44px}
-.xpress-editor .tool li.url .layer fieldset p input{width:13px;height:13px;vertical-align:middle;margin-right:3px}
-.xpress-editor .tool li.url .layer .btn_area{position:absolute;bottom:12px;padding:0}
-.xpress-editor .tool li.table .layer{width:242px;height:239px;background-image:url(../img/bx_table.gif);background-repeat:no-repeat;background-position:10px 14px}
-.xpress-editor .tool li.table .layer fieldset{position:absolute;width:222px;left:10px}
-.xpress-editor .tool li.table .layer fieldset h3{position:absolute;top:-4px;left:15px;color:#404040;visibility:visible;font-size:12px;line-height:normal;width:auto;height:auto;background:none;margin:0;padding:0;font-weight:normal}
-.xpress-editor .tool li.table .layer fieldset dl{position:absolute;left:10px}
-.xpress-editor .tool li.table .layer fieldset dt{float:left;padding:3px 0 0 0;height:20px;white-space:nowrap;letter-spacing:-1px}
-.xpress-editor .tool li.table .layer fieldset dd{float:right;position:relative}
-.xpress-editor .tool li.table .layer fieldset dd button.add,
-.xpress-editor .tool li.table .layer fieldset dd button.del{position:absolute;left:27px;width:15px;height:8px;background:url(../img/btn_layer_cell_adjust.gif) no-repeat}
-.xpress-editor .tool li.table .layer fieldset dd button.add{top:1px}
-.xpress-editor .tool li.table .layer fieldset dd button.del{top:9px;background-position:0 -8px}
-.xpress-editor .tool li.table .layer fieldset dd .preview_palette{display:block;float:left;margin:0 3px 0 0;padding:2px;position:relative;border:1px solid #c8c9c6;width:14px;height:14px;overflow:hidden}
-.xpress-editor .tool li.table .layer fieldset dd .preview_palette button{width:14px;height:14px;font-size:500px;line-height:0}
-.xpress-editor .tool li.table .layer fieldset dd .find_palette{width:33px;height:20px;background:url(../img/btn_search.gif) no-repeat}
-.xpress-editor .tool li.table .layer fieldset.num{top:14px}
-.xpress-editor .tool li.table .layer fieldset.num dl{top:18px;width:60px}
-.xpress-editor .tool li.table .layer fieldset.num dt{height:20px}
-.xpress-editor .tool li.table .layer fieldset.num dd{height:23px}
-.xpress-editor .tool li.table .layer fieldset.num dt label{font-size:11px;color:#333}
-.xpress-editor .tool li.table .layer fieldset.num dd input{padding:3px 0 0 6px;*margin:-1px 0;width:35px;height:13px;font-size:11px;border:1px solid #818181;border-right:1px solid #dadada;border-bottom:1px solid #dadada}
-.xpress-editor .tool li.table .layer fieldset.color{top:96px}
-.xpress-editor .tool li.table .layer fieldset.color dl{top:18px;width:210px}
-.xpress-editor .tool li.table .layer fieldset.color dt{height:23px}
-.xpress-editor .tool li.table .layer fieldset.color dd{height:26px;width:146px}
-.xpress-editor .tool li.table .layer fieldset.color dt label{font-size:11px;color:#333}
-.xpress-editor .tool li.table .layer fieldset.color dd input{padding:3px 0 0 6px;*margin:-1px 0;font-size:11px;border:1px solid #818181;border-right:1px solid #dadada;border-bottom:1px solid #dadada}
-.xpress-editor .tool li.table .layer fieldset.color dd input#table_border_width{width:35px;height:13px}
-.xpress-editor .tool li.table .layer fieldset.color dd input#table_border_color,
-.xpress-editor .tool li.table .layer fieldset.color dd input#table_bg_color{width:70px;height:15px;*margin-right:3px}
-.xpress-editor .tool li.table .layer table{position:absolute;top:18px;left:75px;width:137px;height:40px;table-layout:fixed;border-collapse:separate;border:0}
-.xpress-editor .tool li.table .layer table *{font-size:0;line-height:0}
-.xpress-editor .tool li.table .layer table th,
-.xpress-editor .tool li.table .layer table td{text-align:center;padding:0;border:0}
-.xpress-editor .tool li.table .layer .btn_area{position:absolute;bottom:12px;padding:0;z-index:1}
-.xpress-editor .tool li.table .layer .palette{display:none;position:absolute;z-index:2;left:11px;width:204px;padding:8px 7px 7px 7px;_padding-right:6px;background-color:#fbfbfb;border:1px solid #c5c5c5;border-right:1px solid #9f9f9f;border-bottom:1px solid #9f9f9f}
-.xpress-editor .tool li.table .layer.p1 .palette{display:block;top:163px}
-.xpress-editor .tool li.table .layer.p2 .palette{display:block;top:189px}
-.xpress-editor .tool li.character .layer{width:433px;height:242px;overflow:hidden}
-.xpress-editor .tool li.character .layer ul{margin:0}
-.xpress-editor .tool li.character .layer h3{position:absolute;width:0;height:0;overflow:hidden;visibility:hidden}
-.xpress-editor .tool li.character .layer .characterNav{position:absolute;top:11px;left:-1px;overflow:hidden;white-space:nowrap}
-.xpress-editor .tool li.character .layer .characterNav li{display:inline;margin:0 -4px 0 0;padding:0 8px !important;background:url(../img/vr_layer_character.gif) no-repeat 0 0}
-.xpress-editor .tool li.character .layer .characterNav li a{color:#444;text-decoration:none;letter-spacing:-1px}
-.xpress-editor .tool li.character .layer .characterNav li a:hover,
-.xpress-editor .tool li.character .layer .characterNav li a:active,
-.xpress-editor .tool li.character .layer .characterNav li a:focus{text-decoration:underline}
-.xpress-editor .tool li.character .layer .characterNav li a.on{font-weight:bold;color:#004790;display:inline}
-.xpress-editor .tool li.character .layer .list{position:absolute;left:7px;top:30px;width:421px;height:172px;background:url(../img/bx_character.gif) no-repeat}
-.xpress-editor .tool li.character .layer .list li{position:relative;top:1px;left:1px;float:left;width:20px;height:18px;margin:0 1px 1px 0 !important}
-.xpress-editor .tool li.character .layer .list li button{width:20px;height:18px}
-.xpress-editor .tool li.character .layer .list li button.hover{border:2px solid #27c11a}
-.xpress-editor .tool li.character .layer .list li button span{overflow:visible;font-size:12px;width:auto;height:auto;position:relative;visibility:visible;line-height:normal}
-.xpress-editor .tool li.character .layer p{position:absolute;top:212px;left:7px}
-.xpress-editor .tool li.character .layer p *{vertical-align:top}
-.xpress-editor .tool li.character .layer p label{position:relative;top:4px;margin:0 7px 0 0;color:#333;letter-spacing:-1px}
-.xpress-editor .tool li.character .layer p input{padding:3px 0 0 4px;margin:0 4px 0 0;width:300px;_width /**/:306px;height:16px;_height /**/:20px;border:1px solid #acacac;border-right:1px solid #dadada;border-bottom:1px solid #dadada}
-.xpress-editor .tool li.character .layer p button{position:relative;*top:1px;width:38px;height:21px;background:url(../img/btn_layer_confirm.gif) no-repeat}
-.xpress-editor .tool li.character .layer p button span{position:absolute;width:0;height:0;overflow:hidden;visibility:hidden}
-.xpress-editor .tool li.extensions .layer{width:auto;white-space:nowrap;padding:5px 10px}
-.xpress-editor .tool li.extensions .layer li{margin:2px 0}
-.xpress-editor .tool li.extensions .layer li a {color:#000;text-decoration:none}
-.xpress-editor .tool li.extensions .layer li a:hover {text-decoration:underline}
-/* File Uploader */
-.xpress-editor .fileUploader{clear:both;padding-top:5px;margin-bottom:10px}
-.xpress-editor .fileUploader:after{content:"";display:block;clear:both}
-.xpress-editor .fileUploader .preview{float:left;width:64px;height:64px;border:1px solid #ccc;;padding:2px;margin:0 10px 5px 0}
-.xpress-editor .fileUploader .preview.black {background-color:#000;border:1px solid #666}
-.xpress-editor .fileUploader .preview img{display:block;width:64px;height:64px}
-.xpress-editor .fileUploader .fileListArea{float:left;width:260px;margin:0 10px 5px 0}
-.xpress-editor .fileUploader .fileListArea select{width:100%;height:70px;overflow:auto;margin:0;padding:0;float:none}
-.xpress-editor .fileUploader .fileListArea select option{font-size:11px}
-.xpress-editor .fileUploader .fileListArea.black select {background-color:#000;border:1px solid #666}
-.xpress-editor .fileUploader .fileListArea.black select option {color:#aaa}
-.xpress-editor .fileUploader .fileUploadControl{clear:right}
-.xpress-editor .fileUploader .fileUploadControl .text{margin:0 0 5px 0;font-size:11px;text-decoration:underline}
-.xpress-editor .fileUploader .file_attach_info{clear:right;margin:5px 0;font-size:11px;color:#333}
-/* Auto Save */
-.xpress-editor .autosave_message {display:none;background: #f6ffdb;padding:6px 10px;margin:0;line-height:1}
-.xpress-editor.black .autosave_message {display:none;background:#222;padding:6px 10px;margin:0;line-height:1;color:#fff}
-.xpress-editor .input_syntax.black {background:transparent;color:#fff}
diff --git a/modules/editor/skins/xpresseditor/css/default.min.css b/modules/editor/skins/xpresseditor/css/default.min.css
deleted file mode 100644
index 303be945e..000000000
--- a/modules/editor/skins/xpresseditor/css/default.min.css
+++ /dev/null
@@ -1 +0,0 @@
-/* This file is not used in Rhymix. */
diff --git a/modules/editor/skins/xpresseditor/editor.html b/modules/editor/skins/xpresseditor/editor.html
deleted file mode 100644
index 3baf416bc..000000000
--- a/modules/editor/skins/xpresseditor/editor.html
+++ /dev/null
@@ -1,483 +0,0 @@
-
-
NODE2
NODE3[A]BCD
---paste O---> OBCD
- clone.moveToBookmark(sBM); - clone.deleteContents(); - clone.removeStringBookmark(sBM); - }, - - toString : function(){ - this.toString = xe.W3CDOMRange.prototype.toString; - return this.toString(); - }, - - toHTMLString : function(){ - var oTmpContainer = this._document.createElement("DIV"); - oTmpContainer.appendChild(this.cloneContents()); - - return oTmpContainer.innerHTML; - }, - - findAncestorByTagName : function(sTagName){ - var oNode = this.commonAncestorContainer; - while(oNode && oNode.tagName != sTagName) oNode = xe.DOMFix.parentNode(oNode); - - return oNode; - }, - - selectNodeContents : function(oNode){ - if(!oNode) return; - - var oFirstNode = oNode.firstChild?oNode.firstChild:oNode; - var oLastNode = oNode.lastChild?oNode.lastChild:oNode; - - if(oFirstNode.nodeType == 3) - this.setStart(oFirstNode, 0); - else - this.setStartBefore(oFirstNode); - - if(oLastNode.nodeType == 3) - this.setEnd(oLastNode, oLastNode.nodeValue.length); - else - this.setEndAfter(oLastNode); - }, - - styleRange : function(oStyle, oAttribute, sNewSpanMarker){ - var aStyleParents = this._getStyleParentNodes(sNewSpanMarker); - if(aStyleParents.length < 1) return; - - var sName, sValue; - - for(var i=0; i tag when enter key is pressed
- * @name hp_XE_WYSIWYGEnterKey.js
- */
-xe.XE_WYSIWYGEnterKey = $.Class({
- name : "XE_WYSIWYGEnterKey",
- // IE/Opera do not need this
- unsupportedBrowser : ['ie', 'opera'],
- oEditingArea : null,
-
- $init : function(oEditingArea){
- this.oEditingArea = oEditingArea;
- },
-
- $BEFORE_MSG_APP_READY : function(){
- // the right document will be available only when the src is completely loaded
- if(this.oEditingArea && this.oEditingArea.tagName == "IFRAME")
- this.oEditingArea = this.oEditingArea.contentWindow.document;
- },
-
- $ON_EVENT_EDITING_AREA_KEYDOWN : function(oEvent){
- if(this.oApp.getEditingMode() != "WYSIWYG") return;
-
- if(oEvent.shiftKey) return;
-
- if(oEvent.keyCode == 13){
- var oSelection = this.oApp.getSelection();
- var sBM = oSelection.placeStringBookmark();
- var oLineInfo = oSelection.getLineInfo();
- var oStart = oLineInfo.oStart;
- var oEnd = oLineInfo.oEnd;
-
- //top.document.title = oStart.oNode.tagName+":"+oStart.oNode.nodeValue+", "+oEnd.oNode.tagName+":"+oEnd.oNode.nodeValue+"::"+oStart.bParentBreak+", "+oStart.oLineBreaker.tagName;
-
- // line broke by sibling
- // or
- // the parent line breaker is just a block container
- if(!oStart.bParentBreak || oSelection.rxBlockContainer.test(oStart.oLineBreaker.tagName)){
- oEvent.stopPropagation();
- oEvent.preventDefault();
-
- var oSWrapper = this.oEditingArea.createElement("P");
- oSelection.moveToBookmark(sBM);
- oSelection.setStartBefore(oStart.oNode);
- oSelection.surroundContents(oSWrapper);
-
- oSelection.collapseToEnd();
-
- var oEWrapper = this.oEditingArea.createElement("P");
- oSelection.setEndAfter(oEnd.oNode);
- oSelection.surroundContents(oEWrapper);
-
- oSelection.removeStringBookmark(sBM);
-
- if(oSWrapper.innerHTML == "") oSWrapper.innerHTML = "
";
- if(oEWrapper.innerHTML == "") oEWrapper.innerHTML = "
";
-
- if(oEWrapper.nextSibling && oEWrapper.nextSibling.tagName == "BR") oEWrapper.parentNode.removeChild(oEWrapper.nextSibling);
-
- oSelection.selectNodeContents(oEWrapper);
- oSelection.collapseToStart();
- oSelection.select();
- this.oApp.exec("CHECK_STYLE_CHANGE", []);
- }else{
- oSelection.removeStringBookmark(sBM);
- }
- }
- }
-});
-//}
-
-//{
-/**
- * @fileOverview This file contains Xpress plugin that takes care of the operations related to styling the font
- * @name hp_XE_WYSIWYGStyler.js
- * @required XE_EditingArea_WYSIWYG, XpressRangeManager
- */
-xe.XE_WYSIWYGStyler = $.Class({
- name : "XE_WYSIWYGStyler",
-
- $PRECONDITION : function(sFullCommand, aArgs){
- return (this.oApp.getEditingMode() == "WYSIWYG");
- },
-
- $ON_SET_WYSIWYG_STYLE : function(oStyles){
- var oSelection = this.oApp.getSelection();
-
- // style cursor
- if(oSelection.collapsed){
- var oSpan = this.oApp.getWYSIWYGDocument().createElement("SPAN");
- oSelection.insertNode(oSpan);
- oSpan.innerHTML = unescape("%uFEFF");
-
- var sValue;
- for(var sName in oStyles){
- sValue = oStyles[sName];
-
- if(typeof sValue != "string") continue;
-
- oSpan.style[sName] = sValue;
- }
-
- oSelection.selectNodeContents(oSpan);
- oSelection.collapseToEnd();
- oSelection._window.focus();
- oSelection._window.document.body.focus();
- oSelection.select();
-
- // FF3 will actually display %uFEFF when it is followed by a number AND certain font-family is used(like Gulim), so remove the chcaracter for FF3
- if($.browser.mozilla && $.browser.nVersion == 3)
- oSpan.innerHTML = "";
-
- return;
- }
-
- this.oApp.exec("RECORD_UNDO_BEFORE_ACTION", ["FONT STYLE"]);
-
- oSelection.styleRange(oStyles);
- oSelection._window.focus();
- oSelection.select();
-
- this.oApp.exec("RECORD_UNDO_AFTER_ACTION", ["FONT STYLE"]);
- }
-});
-//}
-
-//{
-/**
- * @fileOverview This file contains Xpress plugin that takes care of the operations related to detecting the style change
- * @name hp_XE_WYSIWYGStyleGetter.js
- */
-xe.XE_WYSIWYGStyleGetter = $.Class({
- name : "XE_WYSIWYGStyleGetter",
-
- hKeyUp : null,
-
- getStyleInterval : 200,
-
- oStyleMap : {
- fontFamily : {
- type : "Value",
- css : "fontFamily"
- },
- fontSize : {
- type : "Value",
- css : "fontSize"
- },
- lineHeight : {
- type : "Value",
- css : "lineHeight",
- converter : function(sValue, oStyle){
- if(!sValue.match(/px$/)) return sValue;
-
- return Math.ceil((parseInt(sValue)/parseInt(oStyle.fontSize))*10)/10;
- }
- },
- bold : {
- command : "bold"
- },
- underline : {
- command : "underline"
- },
- italic : {
- command : "italic"
- },
- lineThrough : {
- command : "strikethrough"
- },
- superscript : {
- command : "superscript"
- },
- subscript : {
- command : "subscript"
- },
- justifyleft : {
- command : "justifyleft"
- },
- justifycenter : {
- command : "justifycenter"
- },
- justifyright : {
- command : "justifyright"
- },
- justifyfull : {
- command : "justifyfull"
- },
- orderedlist : {
- command : "insertorderedlist"
- },
- unorderedlist : {
- command : "insertunorderedlist"
- }
- },
-
- $init : function(){
- this.oStyle = this._getBlankStyle();
- },
-
- $PRECONDITION : function(){
- if(this.oApp.getEditingMode() != "WYSIWYG") return false;
-
- return true;
- },
-
- $ON_MSG_APP_READY : function(){
- this.oDocument = this.oApp.getWYSIWYGDocument();
- this.oApp.exec("ADD_APP_PROPERTY", ["getCurrentStyle", $.fnBind(this.getCurrentStyle, this)]);
- },
-
- $ON_EVENT_EDITING_AREA_MOUSEUP : function(oEvnet){
- if(this.hKeyUp) clearTimeout(this.hKeyUp);
- this.oApp.exec("CHECK_STYLE_CHANGE", []);
- },
-
- $ON_EVENT_EDITING_AREA_KEYUP : function(oEvent){
- /*
- backspace 8
- page up 33
- page down 34
- end 35
- home 36
- left arrow 37
- up arrow 38
- right arrow 39
- down arrow 40
- insert 45
- delete 46
- */
- if(!(oEvent.keyCode == 8 || (oEvent.keyCode >= 33 && oEvent.keyCode <= 40) || oEvent.keyCode == 45 || oEvent.keyCode == 46)) return;
-
- if(this.hKeyUp) clearTimeout(this.hKeyUp);
-
- this.hKeyUp = setTimeout($.fnBind(this.oApp.exec, this.oApp, "CHECK_STYLE_CHANGE", []), this.getStyleInterval);
- },
-
- $ON_CHECK_STYLE_CHANGE : function(){
- this._getStyle();
- },
-
- $ON_RESET_STYLE_STATUS : function(){
- var oBlankStyle = this._getBlankStyle();
- for(var sAttributeName in oBlankStyle)
- this.oApp.exec("SET_STYLE_STATUS", [sAttributeName, oBlankStyle[sAttributeName]]);
- },
-
- getCurrentStyle : function(){
- return this.oStyle;
- },
-
- _check_style_change : function(){
- this.oApp.exec("CHECK_STYLE_CHANGE", []);
- },
-
- _getBlankStyle : function(){
- var oBlankStyle = {};
- for(var attributeName in this.oStyleMap){
- if(this.oStyleMap[attributeName].type == "Value")
- oBlankStyle[attributeName] = "";
- else
- oBlankStyle[attributeName] = 0;
- }
-
- return oBlankStyle;
- },
-
- _getStyle : function(){
- var oSelection = this.oApp.getSelection();
-
- var funcFilter = function(oNode){
- if (!oNode.childNodes || oNode.childNodes.length == 0)
- return true;
- else
- return false;
- }
-
- var aBottomNodes = oSelection.getNodes(false, funcFilter);
-
- var oStyle, oBaseStyle, oTmpStyle, attributeName;
- if(aBottomNodes.length == 0){
- oStyle = this._getStyleOf(oSelection.commonAncestorContainer);
- }else{
- oStyle = this._getStyleOf(aBottomNodes[0]);
- }
-
- for(attributeName in oStyle){
- if(this.oStyleMap[attributeName].converter){
- oStyle[attributeName] = this.oStyleMap[attributeName].converter(oStyle[attributeName], oStyle);
- }
-
- if(this.oStyle[attributeName] != oStyle[attributeName])
- this.oApp.exec("MSG_STYLE_CHANGED", [attributeName, oStyle[attributeName]]);
- }
-
- this.oStyle = oStyle;
- },
-
- _getStyleOf : function(oNode){
- var oStyle = this._getBlankStyle();
-
- // this must not happen
- if(!oNode) return oStyle;
-
- if(oNode.nodeType == 3) oNode = oNode.parentNode;
-
- var welNode = $(oNode);
- var attribute, cssName;
- for(var styleName in this.oStyle){
- attribute = this.oStyleMap[styleName];
-
- if(attribute.type && attribute.type == "Value"){
- if(attribute.css){
- var sValue = welNode.css(attribute.css);
-
- if(styleName == "fontFamily"){
- sValue = sValue.split(/,/)[0];
- }
-
- oStyle[styleName] = sValue;
- }else{
- if(attribute.command){
- try{
- oStyle[styleName] = this.oDocument.queryCommandState(attribute.command);
- }catch(e){}
- }else{
- // todo
- }
- }
- }else{
- if(attribute.command){
- try{
- if(this.oDocument.queryCommandState(attribute.command)){
- oStyle[styleName] = 1;
- }else{
- oStyle[styleName] = 0;
- }
- }catch(e){}
- }else{
- // todo
- }
- }
- }
- return oStyle;
- }
-});
-//}
-//{
-/**
- * @fileOverview This file contains Xpress plugin that takes care of the operations related to changing the font size using Select element
- * @name hp_XE_FontSizeWithSelectUI.js
- */
-xe.XE_FontSizeWithSelectUI = $.Class({
- name : "XE_FontSizeWithSelectUI",
-
- $init : function(elAppContainer){
- this._assignHTMLObjects(elAppContainer);
- },
-
- _assignHTMLObjects : function(elAppContainer){
- this.elFontSizeSelect = $("SELECT.xpress_xeditor_ui_fontSize_select", elAppContainer).get(0);
- },
-
- $ON_MSG_APP_READY : function(){
- this.oApp.registerBrowserEvent(this.elFontSizeSelect, "change", "SET_FONTSIZE_FROM_SELECT_UI");
- this.elFontSizeSelect.selectedIndex = 0;
- },
-
- $ON_MSG_STYLE_CHANGED : function(sAttributeName, sAttributeValue){
- if(sAttributeName == "fontSize"){
- this.elFontSizeSelect.value = sAttributeValue;
- if(this.elFontSizeSelect.selectedIndex < 0) this.elFontSizeSelect.selectedIndex = 0;
- }
- },
-
- $ON_SET_FONTSIZE_FROM_SELECT_UI : function(){
- var sFontSize = this.elFontSizeSelect.value;
- if(!sFontSize) return;
-
- this.oApp.exec("SET_WYSIWYG_STYLE", [{"fontSize":sFontSize}]);
- this.oApp.exec("CHECK_STYLE_CHANGE", []);
- }
-});
-//}
-//{
-/**
- * @fileOverview This file contains Xpress plugin that takes care of the operations related to changing the font name using Select element
- * @name hp_XE_FontNameWithSelectUI.js
- */
-xe.XE_FontNameWithSelectUI = $.Class({
- name : "XE_FontNameWithSelectUI",
-
- $init : function(elAppContainer){
- this._assignHTMLObjects(elAppContainer);
- },
-
- _assignHTMLObjects : function(elAppContainer){
- this.elFontNameSelect = $("SELECT.xpress_xeditor_ui_fontName_select", elAppContainer).get(0);
- },
-
- $ON_MSG_APP_READY : function(){
- this.oApp.registerBrowserEvent(this.elFontNameSelect, "change", "SET_FONTNAME_FROM_SELECT_UI");
- this.elFontNameSelect.selectedIndex = 0;
- },
-
- $ON_MSG_STYLE_CHANGED : function(sAttributeName, sAttributeValue){
- if(sAttributeName == "fontFamily"){
- this.elFontNameSelect.value = sAttributeValue.toLowerCase();
- if(this.elFontNameSelect.selectedIndex < 0) this.elFontNameSelect.selectedIndex = 0;
- }
- },
-
- $ON_SET_FONTNAME_FROM_SELECT_UI : function(){
- var sFontName = this.elFontNameSelect.value;
- if(!sFontName) return;
-
- this.oApp.exec("SET_WYSIWYG_STYLE", [{"fontFamily":sFontName}]);
- this.oApp.exec("CHECK_STYLE_CHANGE", []);
- }
-});
-//}
-//{
-/**
- * @fileOverview This file contains Xpress plugin that takes care of the operations related to setting/changing the lineheight
- * @name hp_XE_LineHeight.js
- */
-xe.XE_LineHeight = $.Class({
- name : "XE_LineHeight",
-
- $init : function(oAppContainer){
- this._assignHTMLObjects(oAppContainer);
- },
-
- _assignHTMLObjects : function(oAppContainer){
- },
-
- $ON_SET_LINEHEIGHT : function(nLineHeight){
- this.setLineHeight(nLineHeight);
- },
-
- getLineHeight : function(){
- var nodes = this._getSelectedNodes(false);
-
- var curWrapper, prevWrapper;
- var iCurHeight, iHeight;
-
- if(nodes.length == 0) return -1;
-
- var iLength = nodes.length;
-
- if(iLength == 0){
- iHeight = -1;
- }else{
- prevWrapper = this._getLineWrapper(nodes[0]);
- iHeight = this._getWrapperLineheight(prevWrapper);
- }
-
- var firstNode = this.oSelection.getStartNode();
-
- if(iHeight > 0){
- for(var i=1; i
");
- oFormattingNode.parentNode.insertBefore(oP, oFormattingNode.nextSibling);
- }
-
- this.oApp.exec("RECORD_UNDO_ACTION", ["Block Quote"]);
-
- return oFormattingNode;
- },
-
- _expandToTableStart : function(oSelection, oNode){
- var oC = oSelection.commonAncestorContainer;
- var oResultNode = null;
-
- var bLastIteration = false;
- while(oNode && !bLastIteration){
- if(oNode == oC) bLastIteration = true;
-
- if(/TBODY|TFOOT|THEAD|TR/i.test(oNode.tagName)){
- oResultNode = this._getTableRoot(oNode);
- break;
- }
- oNode = oNode.parentNode;
- }
-
- return oResultNode;
- },
-
- _getTableRoot : function(oNode){
- while(oNode && oNode.tagName != "TABLE") oNode = oNode.parentNode;
-
- return oNode;
- }
-});
-//}
-//{
-/**
- * @fileOverview This file contains Xpress plugin that takes care of the operations related to inserting special characters
- * @name hp_XE_SCharacter.js
- * @required XpressRangeManager
- */
-xe.XE_SCharacter = $.Class({
- name : "XE_SCharacter",
-
- $init : function(oAppContainer){
- this.bIE = $.browser.msie;
-
- this._assignHTMLObjects(oAppContainer);
-
- this.charSet = [];
- this.charSet[0] = unescape('FF5B FF5D 3014 3015 3008 3009 300A 300B 300C 300D 300E 300F 3010 3011 2018 2019 201C 201D 3001 3002 %B7 2025 2026 %A7 203B 2606 2605 25CB 25CF 25CE 25C7 25C6 25A1 25A0 25B3 25B2 25BD 25BC 25C1 25C0 25B7 25B6 2664 2660 2661 2665 2667 2663 2299 25C8 25A3 25D0 25D1 2592 25A4 25A5 25A8 25A7 25A6 25A9 %B1 %D7 %F7 2260 2264 2265 221E 2234 %B0 2032 2033 2220 22A5 2312 2202 2261 2252 226A 226B 221A 223D 221D 2235 222B 222C 2208 220B 2286 2287 2282 2283 222A 2229 2227 2228 FFE2 21D2 21D4 2200 2203 %B4 FF5E 02C7 02D8 02DD 02DA 02D9 %B8 02DB %A1 %BF 02D0 222E 2211 220F 266D 2669 266A 266C 327F 2192 2190 2191 2193 2194 2195 2197 2199 2196 2198 321C 2116 33C7 2122 33C2 33D8 2121 2668 260F 260E 261C 261E %B6 2020 2021 %AE %AA %BA 2642 2640').replace(/(\S{4})/g, function(a){return "%u"+a}).split(' ');
- this.charSet[1] = unescape('%BD 2153 2154 %BC %BE 215B 215C 215D 215E %B9 %B2 %B3 2074 207F 2081 2082 2083 2084 2160 2161 2162 2163 2164 2165 2166 2167 2168 2169 2170 2171 2172 2173 2174 2175 2176 2177 2178 2179 FFE6 %24 FFE5 FFE1 20AC 2103 212B 2109 FFE0 %A4 2030 3395 3396 3397 2113 3398 33C4 33A3 33A4 33A5 33A6 3399 339A 339B 339C 339D 339E 339F 33A0 33A1 33A2 33CA 338D 338E 338F 33CF 3388 3389 33C8 33A7 33A8 33B0 33B1 33B2 33B3 33B4 33B5 33B6 33B7 33B8 33B9 3380 3381 3382 3383 3384 33BA 33BB 33BC 33BD 33BE 33BF 3390 3391 3392 3393 3394 2126 33C0 33C1 338A 338B 338C 33D6 33C5 33AD 33AE 33AF 33DB 33A9 33AA 33AB 33AC 33DD 33D0 33D3 33C3 33C9 33DC 33C6').replace(/(\S{4})/g, function(a){return "%u"+a}).split(' ');
- this.charSet[2] = unescape('3260 3261 3262 3263 3264 3265 3266 3267 3268 3269 326A 326B 326C 326D 326E 326F 3270 3271 3272 3273 3274 3275 3276 3277 3278 3279 327A 327B 24D0 24D1 24D2 24D3 24D4 24D5 24D6 24D7 24D8 24D9 24DA 24DB 24DC 24DD 24DE 24DF 24E0 24E1 24E2 24E3 24E4 24E5 24E6 24E7 24E8 24E9 2460 2461 2462 2463 2464 2465 2466 2467 2468 2469 246A 246B 246C 246D 246E 3200 3201 3202 3203 3204 3205 3206 3207 3208 3209 320A 320B 320C 320D 320E 320F 3210 3211 3212 3213 3214 3215 3216 3217 3218 3219 321A 321B 249C 249D 249E 249F 24A0 24A1 24A2 24A3 24A4 24A5 24A6 24A7 24A8 24A9 24AA 24AB 24AC 24AD 24AE 24AF 24B0 24B1 24B2 24B3 24B4 24B5 2474 2475 2476 2477 2478 2479 247A 247B 247C 247D 247E 247F 2480 2481 2482').replace(/(\S{4})/g, function(a){return "%u"+a}).split(' ');
- this.charSet[3] = unescape('3131 3132 3133 3134 3135 3136 3137 3138 3139 313A 313B 313C 313D 313E 313F 3140 3141 3142 3143 3144 3145 3146 3147 3148 3149 314A 314B 314C 314D 314E 314F 3150 3151 3152 3153 3154 3155 3156 3157 3158 3159 315A 315B 315C 315D 315E 315F 3160 3161 3162 3163 3165 3166 3167 3168 3169 316A 316B 316C 316D 316E 316F 3170 3171 3172 3173 3174 3175 3176 3177 3178 3179 317A 317B 317C 317D 317E 317F 3180 3181 3182 3183 3184 3185 3186 3187 3188 3189 318A 318B 318C 318D 318E').replace(/(\S{4})/g, function(a){return "%u"+a}).split(' ');
- this.charSet[4] = unescape('0391 0392 0393 0394 0395 0396 0397 0398 0399 039A 039B 039C 039D 039E 039F 03A0 03A1 03A3 03A4 03A5 03A6 03A7 03A8 03A9 03B1 03B2 03B3 03B4 03B5 03B6 03B7 03B8 03B9 03BA 03BB 03BC 03BD 03BE 03BF 03C0 03C1 03C3 03C4 03C5 03C6 03C7 03C8 03C9 %C6 %D0 0126 0132 013F 0141 %D8 0152 %DE 0166 014A %E6 0111 %F0 0127 I 0133 0138 0140 0142 0142 0153 %DF %FE 0167 014B 0149 0411 0413 0414 0401 0416 0417 0418 0419 041B 041F 0426 0427 0428 0429 042A 042B 042C 042D 042E 042F 0431 0432 0433 0434 0451 0436 0437 0438 0439 043B 043F 0444 0446 0447 0448 0449 044A 044B 044C 044D 044E 044F').replace(/(\S{4})/g, function(a){return "%u"+a}).split(' ');
- this.charSet[5] = unescape('3041 3042 3043 3044 3045 3046 3047 3048 3049 304A 304B 304C 304D 304E 304F 3050 3051 3052 3053 3054 3055 3056 3057 3058 3059 305A 305B 305C 305D 305E 305F 3060 3061 3062 3063 3064 3065 3066 3067 3068 3069 306A 306B 306C 306D 306E 306F 3070 3071 3072 3073 3074 3075 3076 3077 3078 3079 307A 307B 307C 307D 307E 307F 3080 3081 3082 3083 3084 3085 3086 3087 3088 3089 308A 308B 308C 308D 308E 308F 3090 3091 3092 3093 30A1 30A2 30A3 30A4 30A5 30A6 30A7 30A8 30A9 30AA 30AB 30AC 30AD 30AE 30AF 30B0 30B1 30B2 30B3 30B4 30B5 30B6 30B7 30B8 30B9 30BA 30BB 30BC 30BD 30BE 30BF 30C0 30C1 30C2 30C3 30C4 30C5 30C6 30C7 30C8 30C9 30CA 30CB 30CC 30CD 30CE 30CF 30D0 30D1 30D2 30D3 30D4 30D5 30D6 30D7 30D8 30D9 30DA 30DB 30DC 30DD 30DE 30DF 30E0 30E1 30E2 30E3 30E4 30E5 30E6 30E7 30E8 30E9 30EA 30EB 30EC 30ED 30EE 30EF 30F0 30F1 30F2 30F3 30F4 30F5 30F6').replace(/(\S{4})/g, function(a){return "%u"+a}).split(' ');
- },
-
- _assignHTMLObjects : function(oAppContainer){
- oAppContainer = $.$(oAppContainer) || document;
-
- this.elDropdownLayer = $("DIV.xpress_xeditor_sCharacter_layer", oAppContainer).get(0);
-
- this.oTextField = $("INPUT", this.elDropdownLayer).get(0);
- this.oInsertButton = $("+ BUTTON", this.oTextField).get(0);
- this.aCloseButton = $("BUTTON.close", this.elDropdownLayer).get();
- this.aSCharList = $(".list", this.elDropdownLayer).get();
- var oLabelUL = $(">UL", this.elDropdownLayer).get(0);
- this.aLabelA = $("A", oLabelUL).get();
- },
-
- $ON_MSG_APP_READY : function(){
- var funcInsert = $.fnBind(this.oApp.exec, this.oApp, "INSERT_SCHARACTERS", [this.oTextField.value]);
- $(this.oInsertButton).click(funcInsert);
-
- this.oApp.exec("SET_SCHARACTER_LIST", [this.charSet]);
-
- for(var i=0; i
",
-
- $init : function(){
- this.aUndoHistory = [];
- this.oCurStateIdx = {nIdx: 0, nStep: 0};
- },
-
- $PRECONDITION : function(sCmd){
- if(sCmd.match(/_DO_RECORD_UNDO_HISTORY_AT$/)) return true;
-
- try{
- if(this.oApp.getEditingMode() != "WYSIWYG") return false;
- }catch(e){
- return false;
- }
-
- return true;
- },
-
- $BEFORE_MSG_APP_READY : function(){
- this.oApp.exec("DO_RECORD_UNDO_HISTORY_AT", [this.oCurStateIdx, "", "", null]);
- },
-
- $ON_MSG_APP_READY : function(){
- this.bFF = $.browser.mozilla;
-
- this.oApp.exec("ADD_APP_PROPERTY", ["getUndoHistory", $.fnBind(this.getUndoHistory, this)]);
- this.oApp.exec("ADD_APP_PROPERTY", ["getUndoStateIdx", $.fnBind(this.getUndoStateIdx, this)]);
-
- this.oApp.exec("REGISTER_UI_EVENT", ["undo", "click", "UNDO"]);
- this.oApp.exec("REGISTER_UI_EVENT", ["redo", "click", "REDO"]);
-
- this.oApp.exec("REGISTER_HOTKEY", ["ctrl+z", "UNDO"]);
- this.oApp.exec("REGISTER_HOTKEY", ["ctrl+y", "REDO"]);
- },
-
- $ON_UNDO : function(){
- var oTmpStateIdx = {};
- this.oApp.exec("DO_RECORD_UNDO_HISTORY", ["KEYPRESS", false, false, 1]);
- if(this.oCurStateIdx.nIdx == 0) return;
-
- if(this.oCurStateIdx.nStep > 0){
- this.oCurStateIdx.nStep--;
- }else{
- var oTmpHistory = this.aUndoHistory[this.oCurStateIdx.nIdx];
-
- this.oCurStateIdx.nIdx--;
-
- if(oTmpHistory.nTotalSteps>1){
- this.oCurStateIdx.nStep = 0;
- }else{
- oTmpHistory = this.aUndoHistory[this.oCurStateIdx.nIdx];
- this.oCurStateIdx.nStep = oTmpHistory.nTotalSteps-1;
- }
- }
-
- this.oApp.exec("RESTORE_UNDO_HISTORY", [this.oCurStateIdx.nIdx, this.oCurStateIdx.nStep]);
-
- this.oApp.exec("CHECK_STYLE_CHANGE", []);
- },
-
-
- $ON_REDO : function(){
- if(this.oCurStateIdx.nIdx >= this.aUndoHistory.length) return;
-
- var oCurHistory = this.aUndoHistory[this.oCurStateIdx.nIdx];
- if(this.oCurStateIdx.nIdx == this.aUndoHistory.length-1 && this.oCurStateIdx.nStep >= oCurHistory.nTotalSteps-1) return;
-
- if(this.oCurStateIdx.nStep < oCurHistory.nTotalSteps-1){
- this.oCurStateIdx.nStep++;
- }else{
- this.oCurStateIdx.nIdx++;
- oCurHistory = this.aUndoHistory[this.oCurStateIdx.nIdx];
- this.oCurStateIdx.nStep = oCurHistory.nTotalSteps-1;
- }
-
- this.oApp.exec("RESTORE_UNDO_HISTORY", [this.oCurStateIdx.nIdx, this.oCurStateIdx.nStep]);
-
- this.oApp.exec("CHECK_STYLE_CHANGE", []);
- },
-
- $ON_RECORD_UNDO_ACTION : function(sAction){
- this.oApp.exec("DO_RECORD_UNDO_HISTORY", [sAction]);
- },
-
- $ON_RECORD_UNDO_BEFORE_ACTION : function(sAction){
- this.oApp.exec("DO_RECORD_UNDO_HISTORY", [sAction, true, true]);
- },
-
- $ON_RECORD_UNDO_AFTER_ACTION : function(sAction){
- this.oApp.exec("DO_RECORD_UNDO_HISTORY", [sAction, true, false]);
- },
-
- $ON_RESTORE_UNDO_HISTORY : function(nUndoIdx, nUndoStateStep){
- this.oCurStateIdx.nIdx = nUndoIdx;
- this.oCurStateIdx.nStep = nUndoStateStep;
-
- var oCurHistory = this.aUndoHistory[this.oCurStateIdx.nIdx];
- var sContent = oCurHistory.sContent[this.oCurStateIdx.nStep];
- var oBookmark = oCurHistory.oBookmark[this.oCurStateIdx.nStep];
-
- this.oApp.setIR(sContent, true);
-
- // setting the innerHTML may change the internal DOM structure, so save the value again.
- var sCurContent = this.oApp.getIR();
- if(this.bFF && sCurContent == this.sBlankContentsForFF){
- sCurContent = "";
- }
- oCurHistory.sContent[this.oCurStateIdx.nStep] = sCurContent;
-
- var oSelection = this.oApp.getEmptySelection();
- if(oSelection.selectionLoaded){
- if(oBookmark){
- oSelection.moveToXPathBookmark(oBookmark);
- }else{
- oSelection = this.oApp.getEmptySelection();
- }
-
- oSelection.select();
- }
- },
-
- $ON_DO_RECORD_UNDO_HISTORY : function(sAction, bTwoStepAction, bBeforeAction, nForceAddUnlessEqual){
- bTwoStepAction = bTwoStepAction || false;
- bBeforeAction = bBeforeAction || false;
- nForceAddUnlessEqual = nForceAddUnlessEqual || 0;
-
- // if we're in the middle of some action history, remove everything after current idx if any "little" change is made
- if(!(this.oCurStateIdx.nIdx == this.aUndoHistory.length-1)) nForceAddUnlessEqual = 1;
-
- var oCurHistory = this.aUndoHistory[this.oCurStateIdx.nIdx];
-
- var sCurContent = this.oApp.getIR();
- var sHistoryContent = oCurHistory.sContent[this.oCurStateIdx.nStep];
-
- if(this.bFF && sCurContent == this.sBlankContentsForFF){
- sCurContent = "";
- }
-
- // every TwoStepAction needs to be recorded
- if(!bTwoStepAction){
- switch(nForceAddUnlessEqual){
- case 0:
- if(Math.abs(sHistoryContent.length - sCurContent.length)";
- }else{
- if($.browser.firefox){
- sTD = " ";
- }else{
- sTD = " ";
- }
- }
-
- var sTable = '';
- var sRow = '
";
-
- return sTable;
- }
-});
-//}
-//{
-/**
- * @fileOverview This file contains Xpress plugin that takes care of the operations related to changing the editing mode using a Button element
- * @name hp_XE_EditingModeToggler.js
- */
-xe.XE_EditingModeToggler = $.Class({
- name : "XE_EditingModeToggler",
-
- $init : function(elAppContainer){
- this._assignHTMLObjects(elAppContainer);
- },
-
- _assignHTMLObjects : function(elAppContainer){
- elAppContainer = $.$(elAppContainer) || document;
-
- this.elModeToggleButton = $("BUTTON.xpress_xeditor_mode_toggle_button", elAppContainer).get(0);
- this.welModeToggleButton = $(this.elModeToggleButton);
- },
-
- $ON_MSG_APP_READY : function(){
- this.oApp.registerBrowserEvent(this.elModeToggleButton, "click", "EVENT_TOGGLE_EDITING_MODE", []);
- },
-
- $ON_EVENT_TOGGLE_EDITING_MODE : function(){
- if(this.oApp.getEditingMode() == "WYSIWYG")
- this.oApp.exec("CHANGE_EDITING_MODE", ["HTMLSrc"]);
- else
- this.oApp.exec("CHANGE_EDITING_MODE", ["WYSIWYG"]);
- },
-
- $ON_CHANGE_EDITING_MODE : function(sMode){
- if(sMode == "HTMLSrc"){
- this.welModeToggleButton.addClass("active").parent("span").addClass("active");
- this.oApp.exec("DISABLE_ALL_UI", []);
- }else{
- this.welModeToggleButton.removeClass("active").parent("span").removeClass("active");
- this.oApp.exec("ENABLE_ALL_UI", []);
- }
- }
-});
-
-xe.XE_Editorresize = $.Class({
- name : "XE_Editorresize",
- $init : function(elAppContainer, oWYSIWYGIFrame){
- this.inputArea = $('.xpress_xeditor_editing_area_container', elAppContainer).get(0);
- this.oVerticalResizer = $('.xpress_xeditor_editingArea_verticalResizer', elAppContainer).get(0);
- this.oCheckBox = $('#editorresize', elAppContainer).get(0);
- this.oIframe = oWYSIWYGIFrame;
- var self = this;
- $(oWYSIWYGIFrame).load(function(){
- self.oIframeBody = $(oWYSIWYGIFrame).contents().find('body');
- });
- },
-
- $ON_MSG_APP_READY : function(){
- this.oApp.registerBrowserEvent(this.oCheckBox, 'change', 'XE_TOGGLE_EDITOR_RESIZE');
- },
- $ON_XE_TOGGLE_EDITOR_RESIZE : function(){
- if(this.oCheckBox.checked == true){
- if(this._prevHeight == undefined)
- this._prevHeight = this.inputArea.style.height;
-
- this.oVerticalResizer.style.display = 'none';
- this.oApp.registerBrowserEvent(this.oIframeBody, 'keydown', 'XE_EDITOR_RESIZE');
-
- this.inputArea.style.height = this.oIframe.style.height = this.oIframeBody[0].scrollHeight + 'px';
- }else{
- $(this.oIframeBody).unbind('keydown');
-
- this.oVerticalResizer.style.display = 'block';
- this.inputArea.style.height = this._prevHeight;
- this.oIframe.style.height = this._prevHeight;
- }
- },
- $ON_XE_EDITOR_RESIZE : function(){
- var t = this;
- setTimeout(function(){
- t.inputArea.style.height = t.oIframe.style.height = t.oIframeBody[0].scrollHeight + 'px';
- }, 0);
- }
-});
-//}
-/**
- * @fileOverview This file contains a message mapping(Korean), which is used to map the message code to the actual message
- * @name xpress_XE_Lang_KR.js
- */
-var oMessageMap = {
- 'XE_EditingAreaManager.onExit' : '%uB0B4%uC6A9%uC774%20%uBCC0%uACBD%uB418%uC5C8%uC2B5%uB2C8%uB2E4.',
- 'XE_FontColor.invalidColorCode' : '%uC0C9%uC0C1%20%uCF54%uB4DC%uB97C%20%uC62C%uBC14%uB974%uAC8C%20%uC785%uB825%uD558%uC5EC%20%uC8FC%uC2DC%uAE30%20%uBC14%uB78D%uB2C8%uB2E4.\n\n%uC608%29%20%23000000%2C%20%23FF0000%2C%20%23FFFFFF%2C%20%23ffffff%2C%20ffffff',
- 'XE_BGColor.invalidColorCode' : '%uC0C9%uC0C1%20%uCF54%uB4DC%uB97C%20%uC62C%uBC14%uB974%uAC8C%20%uC785%uB825%uD558%uC5EC%20%uC8FC%uC2DC%uAE30%20%uBC14%uB78D%uB2C8%uB2E4.\n\n%uC608%29%20%23000000%2C%20%23FF0000%2C%20%23FFFFFF%2C%20%23ffffff%2C%20ffffff',
- 'XE_Hyperlink.invalidURL' : '%uC785%uB825%uD558%uC2E0%20URL%uC774%20%uC62C%uBC14%uB974%uC9C0%20%uC54A%uC2B5%uB2C8%uB2E4.'
-};
-xe.XpressCore.oMessageMap = oMessageMap;
-/**
- * XHTML Formatter
- * @author NAVER (developer@xpressengine.com)
- */
-var
- regex_meanless_css1 = /<(.*?)\s+style\s*=\s*"(.*?(?:margin|padding)\s*:\s*0(?:px)?.*?|.*?\-(?:moz|ms|webkit|opera).*?)"(.*?)>/ig,
- regex_meanless_css2 = /(?:(?:margin|padding)\s*:\s*0(?:px)?|\-(?:moz|ms|webkit|opera)\-[\w-]+\s*:\s*.*?|[\w-]+\s*:\s*\-(?:moz|ms|webkit|opera)\-[\w-]+|(?:line-height|font-variant|font-stretch|font-size-adjust|font-size)\s*:\s*[a-z_-]+)\s*;?\s*|font-(?:weight|style)\s*:\s*normal;?/ig,
- regex_class = /<(.*?)\s+class\s*=(?:\s*"(.*?)"|\s*'(.*?)'|([^\s>]+))(.*?)>/ig,
- regex_class2 = /xe_selected_cell/g;
- regex_handler = /<(.*?)\s+on[a-z]+\s*=(?:\s*".*?"|\s*'.*?'|[^\s>]+)(.*?)>/ig,
- //regex_id = /<(.*?)\s+id\s*=(?:[^\s>]+|\s*".*?"|\s*'.*?')(.*?)>/ig,
- //regex_script = /';
- var iColumns = this.oColumnInput.value;
- for(var i=0; i