Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
ckeditor questions
#1
Does anyone know what controls the theme and options for ckeditor ?

Images
I am using 3.1 and in 3.0 i had image insertion dialogs for
border and vspace and hspace fields, the ckeditor demo page still has them.
Why are ours missing ?

Also Anyone ever figure out how to get a <pre> style ?

Also our editor is missing the link tab in image insertion, so it's a pain for lightboxes also.

Can you setup a custom style for a lightbox automatically ?
say a link wrapped image with a specific class and linked to the image.
Is there a better way to insert lightbox images and galleries with a rel="" ?
Ideas welcome.
NEW: SA Admin Toolbar Plugin | View All My Plugins
- Shawn A aka Tablatronix
Reply
#2
shawn_a Wrote:Also Anyone ever figure out how to get a <pre> style ?

I think it's automatically included in the "Format" selection, if you include it in your toolbar (at least it is for me).
I18N, I18N Search, I18N Gallery, I18N Special Pages - essential plugins for multi-language sites.
Reply
#3
Yup, it is "formatted" in the styles. doh.Thanks.

I found a way to add a button plugin for pre and code or any element, ill post it when I get it implemented.


I also figured out where these options are removed, still dont know what the reasoning behind it was.
I guess to make it more "simple". Seems like a bad idea and much less functional to me.

I commented the lines out below, to get these features back.

admin/templates/js/ckeditor/config.js
Code:
if ( dialogName == 'image' ) {
            // var infoTab = dialogDefinition.getContents( 'info' );
            // infoTab.remove( 'txtBorder' );
            // infoTab.remove( 'txtHSpace' );
            // infoTab.remove( 'txtVSpace' );
            // infoTab.remove( 'btnResetSize' );
            // dialogDefinition.removeContents( 'Link' );
            var advTab = dialogDefinition.getContents( 'advanced' );
            advTab.remove( 'cmbLangDir' );
            advTab.remove( 'txtLangCode' );
            advTab.remove( 'txtGenLongDescr' );
            advTab.remove( 'txtGenTitle' );
        }
});

At least now, i can insert image, link to image. save dialog
Right click the image, edit link, advanced, add my lightbox class and done.
A few less clicks is always nice.
NEW: SA Admin Toolbar Plugin | View All My Plugins
- Shawn A aka Tablatronix
Reply
#4
shawn_a Wrote:I also figured out where these options are removed, still dont know what the reasoning behind it was.
I guess to make it more "simple". Seems like a bad idea and much less functional to me.

Maybe it is because inline styles are bad practice. You should rather assign a class to the image and define the styles in a CSS. That way you won't need to change all pages, if you decide to change the design/theme and it calls for different borders or other margins.

I normally don't want the business user to change colors or font sizes or borders. He rather gets a custom styles drop down according to his requirements. And the styles will have functional names like promotion or reference and not something descriptive like big red caption.
I18N, I18N Search, I18N Gallery, I18N Special Pages - essential plugins for multi-language sites.
Reply
#5
Yeah I didn't think of inline styles not being overridden and hence loss of control, the styles input is still there though.

I really just sometimes need custom margins and a border if the image blends into the page or is the same background color.

I just realized the custom ckeditor config replaces the default config, I thought it was ancillary.
This makes this so much easier, i must have misread the wiki on that.
NEW: SA Admin Toolbar Plugin | View All My Plugins
- Shawn A aka Tablatronix
Reply
#6
Does anyone know why the ckeditor icons in this skin are greyed out ?
Can we get a sprite without them greyed out ?

Anyone recognize that icon set ? Is it silk ?
NEW: SA Admin Toolbar Plugin | View All My Plugins
- Shawn A aka Tablatronix
Reply
#7
shawn_a Wrote:Does anyone know why the ckeditor icons in this skin are greyed out ?
Can we get a sprite without them greyed out ?

Anyone recognize that icon set ? Is it silk ?

there is so much documentation in the wiki, concerning the editor, so I would not repeat myself here

but:

just use another skin if you do not like the standard one

it is good practice to define "your" editor with the editor options, so they are not subject to any up- or downgrade

if you want another sprite instead of just using another skin, go to CKEDITOR-site, search there or in google for "ckeditor skin"

you will find some
|--

Das deutschsprachige GetSimple-(Unter-)Forum:   http://get-simple.info/forums/forumdisplay.php?fid=18
Reply
#8
(2012-03-02, 06:01:22)shawn_a Wrote: Does anyone know why the ckeditor icons in this skin are greyed out ?
Can we get a sprite without them greyed out ?

Anyone recognize that icon set ? Is it silk ?

Hi, it seems to be a mistake in the image sprite. I have repared it, you can easily replace the image ...\admin\template\js\ckeditor\skins\getsimple\icons.png with this one (in attachment).


Attached Files Thumbnail(s)
   
Reply
#9
you can just install the cke patch branch on downloads and get newer version of ckeditor
NEW: SA Admin Toolbar Plugin | View All My Plugins
- Shawn A aka Tablatronix
Reply
#10
Does anyone know any free Bootstrap components plugin for ckeditor? that would be nice, to add cols etc from the editor Big Grin.
Reply




Users browsing this thread: 1 Guest(s)