better ca1e81a
again
Gosh - even node IDs were counted different in 1.7 and 2.0 envoronments! Needs to get refactored in future.
This commit is contained in:
parent
20e4067b80
commit
0bfa3bde51
|
@ -1,4 +1,4 @@
|
|||
/* last modified: 2014-11-28
|
||||
/* last modified: 2014-11-28, < version S9Y 2.0
|
||||
CKEDITOR Toolbar tweak to hide the cke-image widget buttons.
|
||||
Keeps image widget functionality needed for S9y-MediaLibrary inserts,
|
||||
but disables these button to eyes! (cke_backend.css)
|
31
serendipity_event_ckeditor/basic_toolbar2.css
Normal file
31
serendipity_event_ckeditor/basic_toolbar2.css
Normal file
|
@ -0,0 +1,31 @@
|
|||
/* last modified: 2014-11-28, > version S9Y 2.0
|
||||
CKEDITOR Toolbar tweak to hide the cke-image widget buttons.
|
||||
Keeps image widget functionality needed for S9y-MediaLibrary inserts,
|
||||
but disables these button to eyes! (cke_backend.css)
|
||||
|
||||
Sadly firefox and chrome engines count node IDs differently in textareas,
|
||||
which for the BASIC emptied image toolbar group is DOM ID 27/65 in FF/IE is 27/69 in Chrome.
|
||||
The Basic toolbar tweak is separated in here, to not interfere with other toolbars!
|
||||
Hides an empty image toolgroup in toolbar BASIC (do not remove the .cke_toolbar class!)
|
||||
*/
|
||||
#cke_1_top #cke_27.cke_toolbar {
|
||||
display: none;
|
||||
visibility: hidden;
|
||||
width: 0 !important;
|
||||
}
|
||||
/* Firefox and IE */
|
||||
#cke_2_top #cke_65.cke_toolbar .cke_toolgroup {
|
||||
display: none;
|
||||
visibility: hidden;
|
||||
width: 0 !important;
|
||||
}
|
||||
|
||||
/* on Safari and Chrome webkit engines */
|
||||
@media screen and (-webkit-min-device-pixel-ratio:0)
|
||||
{
|
||||
#cke_2_top #cke_69.cke_toolbar .cke_toolgroup {
|
||||
display: none;
|
||||
visibility: hidden;
|
||||
width: 0 !important;
|
||||
}
|
||||
}
|
|
@ -475,9 +475,15 @@ if ($headcss) {
|
|||
<?php
|
||||
// sadly this can't be pushed into streamed css, since that is cached to lazyload
|
||||
if ($toolbar == 'Basic') {
|
||||
if ($serendipity['version'][0] < 2) {
|
||||
?>
|
||||
<link rel="stylesheet" href="<?php echo $plgpath . 'serendipity_event_ckeditor/'; ?>basic_toolbar.css" />
|
||||
<link rel="stylesheet" href="<?php echo $plgpath . 'serendipity_event_ckeditor/'; ?>basic_toolbar1.css" />
|
||||
<?php
|
||||
} else {
|
||||
?>
|
||||
<link rel="stylesheet" href="<?php echo $plgpath . 'serendipity_event_ckeditor/'; ?>basic_toolbar2.css" />
|
||||
<?php
|
||||
}
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
|
Loading…
Reference in a new issue