2011-11-10, 17:58:47
(This post was last modified: 2011-11-10, 18:00:50 by aadamasyndextay8363.)
Hello,
I have created a custom editor menu for my needs, however the method was quite quick'n dirty, so I would like to do it properly.
The menu I made yesterday is attached.
Where is the main CSS for styling classes? I really digged in hard to format the "Format" selector. It is nasty how they designed it.
Also, when I turn on certain options, like full screen, or blocks, the buttons are grayed out. I was searching for a way to style them properly, but couldn't do it well.
Any hep appreciated, CSS code for formatting is here:
To CSS format "Format" dropdown list (the same is limited by options in "config.js"), in "editor.css":
and
Custom menu (in "edit.php"):
I have created a custom editor menu for my needs, however the method was quite quick'n dirty, so I would like to do it properly.
The menu I made yesterday is attached.
Where is the main CSS for styling classes? I really digged in hard to format the "Format" selector. It is nasty how they designed it.
Also, when I turn on certain options, like full screen, or blocks, the buttons are grayed out. I was searching for a way to style them properly, but couldn't do it well.
Any hep appreciated, CSS code for formatting is here:
To CSS format "Format" dropdown list (the same is limited by options in "config.js"), in "editor.css":
Code:
.cke_skin_getsimple .cke_format_panel
{
height: 116px;
width: 150px;
}
and
Quote:.cke_skin_getsimple .cke_rcombo a,.cke_skin_getsimple .cke_rcombo a:active,.cke_skin_getsimple .cke_rcombo a:hover
{
border:1px solid #ccc;
background:#eee;
color:#333;
float: left;
height: 22px;
padding: 2px;
/* edited part */ margin:2px 1px 0px -8px !important;
}
Custom menu (in "edit.php"):
Quote:elseif ($EDTOOL == 'custom') { $toolbar = "['Bold', 'Italic', 'Underline', 'NumberedList', 'BulletedList', 'Format', 'Link', 'Unlink', 'Image', 'RemoveFormat', 'Source']";