If I want users to have buttons like the left indent/unindent, but to change the right margin instead, do I write a plugin for that? Or is there one already?
Is it practical for me to recognize Shift- or Ctrl- with the existing left-indent buttons and give those the meaning I want or is it easier to create new buttons?
Anything any experienced customizer might say that will save me hours or days of floundering toward a solution? A key method to look at, for instance? Because I'm starting with minimal knowledge of the ckeditor API and general framework.
Is it practical for me to recognize Shift- or Ctrl- with the existing left-indent buttons and give those the meaning I want or is it easier to create new buttons?
Anything any experienced customizer might say that will save me hours or days of floundering toward a solution? A key method to look at, for instance? Because I'm starting with minimal knowledge of the ckeditor API and general framework.
Re: Right margin indent/unindent
I suppose I could always make one that works only on the closest or outermost ancestor <div> or <p> since I'm supporting a standards-based editing framework that discourages nesting.
Still, it seems like something that would have come up frequently in the past. I can see it would be a simple, fairly quick change for the code author, but of course no matter how useful any one thing would be, there's always a ton of everything else that needs doing. I could see it taking me days to modify a copy of that code, and I just don't have them right now.
Re: Right margin indent/unindent
It's far from ideal but it met my need for something quick and usable (more-or-less).
It doesn't come anywhere close to handling all the situations that the indent and outdent buttons do, but if someone searches later for right-indent handling, here is the minimalist solution. You might want to modify another copy of these lines to handle your paragraph elements.
It's probably obvious, but the difference between RightInd-nil and RightInd-00 is that the first one reverts to whatever margin is defined in the class of the div, where RightInd-00 overrides whatever margin is defined in the class, forcing it to 0.
Re: Right margin indent/unindent
I've "created" a plugin with this feature or if you like modified original plugin to do the same but on the opposite side.
Seems to be working fine, demo:
http://ckeditor.rozwell.pl/
Here you can download the plugin:
http://ckeditor.rozwell.pl/indent2.tgz
And the config file:
http://ckeditor.rozwell.pl/ckeditor/config.js
Installation:
Copy indent2 catalog to /ckeditor/plugins/ and add the indent2 plugin to config:
Notes:
There are only office2003 theme styles included.
Plugin is designed to inject itself next to original Indent & Outdent buttons in Full toolbar.
Re: Right margin indent/unindent