move cke toolbar css tweaks to a better place
which also makes it independent from cke plugin file usage. References #148
This commit is contained in:
28
htmlarea/s9y_cketoolbar.css
Normal file
28
htmlarea/s9y_cketoolbar.css
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
/* CKEDITOR Toolbar tweaks */
|
||||||
|
/* hide cke-image button to support the internal functionality needed for MediaLibrary inserts, but disables the button to eyes, if not in CKE PRESET Toolbar (#65) */
|
||||||
|
/* Sadly firefox and chrome engines count differently in textareas, DOM ID 65/146 in FF/IE is 67/150 in Chrome. */
|
||||||
|
#cke_1_top .cke_toolgroup a.cke_button__image:not(#cke_65),
|
||||||
|
#cke_2_top .cke_toolgroup a.cke_button__image:not(#cke_146):not(#cke_150) {
|
||||||
|
display: none !important;
|
||||||
|
visibility: hidden;
|
||||||
|
height: 0 !important;
|
||||||
|
padding: 0 !important;
|
||||||
|
border-radius: 0 !important;
|
||||||
|
}
|
||||||
|
/* hide next sibling separator */
|
||||||
|
#cke_1_top .cke_toolgroup a.cke_button__image:not(#cke_65)~.cke_toolbar_separator,
|
||||||
|
#cke_2_top .cke_toolgroup a.cke_button__image:not(#cke_67)~.cke_toolbar_separator {
|
||||||
|
display: none;
|
||||||
|
visibility: hidden;
|
||||||
|
margin: 0px;
|
||||||
|
height: 0px;
|
||||||
|
width: 0px;
|
||||||
|
border-radius: 0 !important;
|
||||||
|
}
|
||||||
|
/* hide empty image toolgroup in toolbar BASIC (do not remove the span tag!) */
|
||||||
|
#cke_1_top span#cke_27, #cke_2_top span#cke_63, #cke_2_top span#cke_67 {
|
||||||
|
display: none;
|
||||||
|
visibility: hidden;
|
||||||
|
width: 0 !important;
|
||||||
|
}
|
||||||
|
/* end CKEDITOR fixes */
|
@ -2344,35 +2344,6 @@ input[name="serendipity[filter][fileCategory]"] {
|
|||||||
}
|
}
|
||||||
/* end TEMP fixes */
|
/* end TEMP fixes */
|
||||||
|
|
||||||
/* CKEDITOR Toolbar */
|
|
||||||
/* hide cke-image button to support the internal functionality needed for MediaLibrary inserts, but disables the button to eyes, if not in CKE PRESET Toolbar (#65) */
|
|
||||||
/* Sadly firefox and chrome engines count differently in textareas, DOM ID 65/146 in FF/IE is 67/150 in Chrome. */
|
|
||||||
#cke_1_top .cke_toolgroup a.cke_button__image:not(#cke_65),
|
|
||||||
#cke_2_top .cke_toolgroup a.cke_button__image:not(#cke_146):not(#cke_150) {
|
|
||||||
display: none !important;
|
|
||||||
visibility: hidden;
|
|
||||||
height: 0 !important;
|
|
||||||
padding: 0 !important;
|
|
||||||
border-radius: 0 !important;
|
|
||||||
}
|
|
||||||
/* hide next sibling separator */
|
|
||||||
#cke_1_top .cke_toolgroup a.cke_button__image:not(#cke_65)~.cke_toolbar_separator,
|
|
||||||
#cke_2_top .cke_toolgroup a.cke_button__image:not(#cke_67)~.cke_toolbar_separator {
|
|
||||||
display: none;
|
|
||||||
visibility: hidden;
|
|
||||||
margin: 0px;
|
|
||||||
height: 0px;
|
|
||||||
width: 0px;
|
|
||||||
border-radius: 0 !important;
|
|
||||||
}
|
|
||||||
/* hide empty image toolgroup in toolbar BASIC (do not remove the span tag!) */
|
|
||||||
#cke_1_top span#cke_27, #cke_2_top span#cke_63, #cke_2_top span#cke_67 {
|
|
||||||
display: none;
|
|
||||||
visibility: hidden;
|
|
||||||
width: 0 !important;
|
|
||||||
}
|
|
||||||
/* end CKEDITOR fixes */
|
|
||||||
|
|
||||||
/* MAGNIFIC POPUP */
|
/* MAGNIFIC POPUP */
|
||||||
.mfp-bg {
|
.mfp-bg {
|
||||||
top: 0;
|
top: 0;
|
||||||
|
@ -1,6 +1,9 @@
|
|||||||
{if $init == false}
|
{if $init == false}
|
||||||
<script src="{$serendipityHTTPPath}htmlarea/ckeditor/ckeditor/ckeditor.js"></script>
|
|
||||||
<script src="{$wysiwyg_customPlugin}"></script>
|
<link rel="stylesheet" href="{$serendipityHTTPPath}htmlarea/s9y_cketoolbar.css">
|
||||||
|
<script src="{$serendipityHTTPPath}htmlarea/ckeditor/ckeditor/ckeditor.js"></script>
|
||||||
|
<script src="{$wysiwyg_customPlugin}"></script>
|
||||||
|
|
||||||
{/if}
|
{/if}
|
||||||
<script>
|
<script>
|
||||||
$('document').ready(function() {
|
$('document').ready(function() {
|
||||||
|
Reference in New Issue
Block a user