Максим Червонный (fiskus_boulder) wrote in changelog,
Максим Червонный
fiskus_boulder
changelog

[livejournal] r20535: LJSUP-9873: RTE - lj-cut highlight

Committer: mchervonniy
LJSUP-9873: RTE - lj-cut highlight
U   trunk/htdocs/js/ck/contents.css
U   trunk/htdocs/js/ck/plugins/livejournal/plugin.js
Modified: trunk/htdocs/js/ck/contents.css
===================================================================
--- trunk/htdocs/js/ck/contents.css	2011-11-15 05:51:07 UTC (rev 20534)
+++ trunk/htdocs/js/ck/contents.css	2011-11-15 06:35:52 UTC (rev 20535)
@@ -4,6 +4,12 @@
 */
 @namespace lj "livejournal";
 
+/*
+Achtung!
+Some styles can be found in stc/lj/ck/plugins/livejournal/plugin.js
+It is for ultra sonic loading of style. Styles from plugin.js moved to <style></style>, and loads before <link rel="stylesheet"/>
+*/
+
 BODY {
 	position: relative;
 	font: 13px/18px 'Arial', sans-serif;
@@ -71,28 +77,6 @@
 	background-color: #d2d2d2;
 	min-height: 14px;
 }
-.lj-cut {
-	display: block;
-	margin: 5px 0;
-	width: 100%;
-	cursor: pointer;
-	height: 9px!important;
-	background-color: #FFF;
-	border: 0 dashed #BCBCBC;
-	background: url(/js/ck/images/ljcut.png) no-repeat 0 0;
-	}
-.lj-cut-open {
-	background-position: 0 2px;
-	border-width: 0 0 1px;
-	}
-.lj-cut-close {
-	border-width: 1px 0 0;
-	background-position: 0 -8px;
-	}
-.lj-cut-selected {
-	background-color: #C4E0F7;
-	border: 1px solid #6EA9DF;
-	}
 
 /* fix inline behavior, for no IE */
 .lj|cut ul, .lj|cut ol {

Modified: trunk/htdocs/js/ck/plugins/livejournal/plugin.js
===================================================================
--- trunk/htdocs/js/ck/plugins/livejournal/plugin.js	2011-11-15 05:51:07 UTC (rev 20534)
+++ trunk/htdocs/js/ck/plugins/livejournal/plugin.js	2011-11-15 06:35:52 UTC (rev 20535)
@@ -261,8 +261,6 @@
 
 	CKEDITOR.plugins.add('livejournal', {
 		init: function(editor) {
-			editor.addCss('.lj-cut-selected');
-
 			function onClickFrame(evt) {
 				if (this.$ != editor.document.$) {
 					this.frameElement.addClass('lj-cut-selected');
@@ -615,8 +613,30 @@
 			}
 
 			//////////  LJ Cut Button //////////////
-			editor.addCss('.lj-cut');
+			editor.addCss('.lj-cut {\
+				display: block;\
+				margin: 5px 0;\
+				width: 100%;\
+				cursor: pointer;\
+				height: 9px!important;\
+				background-color: #FFF;\
+				border: 0 dashed #BCBCBC;\
+				background: url(/js/ck/images/ljcut.png) no-repeat 0 0;\
+			}');
+			editor.addCss('.lj-cut-open {\
+				background-position: 0 2px;\
+				border-width: 0 0 1px;\
+			}');
+			editor.addCss('.lj-cut-close {\
+				border-width: 1px 0 0;\
+				background-position: 0 -8px;\
+			}');
+			editor.addCss('.lj-cut-selected {\
+				background-color: #C4E0F7;\
+				border: 1px solid #6EA9DF;\
+			}');
 
+
 			editor.addCommand('LJCut', {
 				exec: function() {
 					var text,

Tags: css, fiskus_boulder, js, livejournal, mchervonniy
Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 0 comments