added back CKEditor support...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2013-03-04 23:37:54 +04:00
parent b6ab8b1ed5
commit 7eff1f3b52
2 changed files with 37 additions and 1 deletions

View File

@ -265,6 +265,19 @@
<script src="lib/scroller.js"></script>
<script src="lib/keyboard.js"></script>
<!-- CKEDITOR -->
<script>
// NOTE: do not remove the next line if the CKEditor not important, or remove
// all references to this in the code...
var CKEDITOR_ENABLED = false
</script>
<script src="ckeditor/ckeditor.js"></script>
<script>
CKEDITOR.disableAutoInline = true
CKEDITOR_ENABLED = true
</script>
<!--script src="lib/log.js"></script-->
<script src="magazine.js"></script>
@ -377,11 +390,21 @@ function setupEditor(){
if(action == 'on'){
MagazineScroller.stop()
$('[contenteditable]').attr({contenteditable: 'true'})
// ckeditor...
if(CKEDITOR_ENABLED){
CKEDITOR.inlineAll()
}
} else {
$('[contenteditable]')
.blur()
.attr({contenteditable: 'false'})
MagazineScroller.start()
// ckeditor...
if(CKEDITOR_ENABLED){
for( var i in CKEDITOR.instances){
CKEDITOR.instances[i].destroy()
}
}
}
})

View File

@ -295,6 +295,12 @@
color: gray;
}
::selection {
}
::-moz-selection {
}
/*********************************************************** light ***/
@ -342,7 +348,14 @@
background: black;
}
.dark ::selection {
background: yellow;
color: white;
}
.dark ::-moz-selection {
background: yellow;
color: white;
}