You are not logged in.
saccade wrote:
Is it possible to achieve multiple non-consecutive selection in your plugin?
No, unfortunately it is not. As of v0.7, the plugin allows selecting range of letters, and modifies strictly that single selection. Adding multiple, non-consecutive selection support isn’t possible in terms of APIs afaik.
Looking at the future, the next version of rah_textile_bar will work differently (if it comes out), and will not actually even really strictly use user’s highlighted selections, but instead modifies either the current word(s) or the line(s) based on the action.
Last edited by Gocom (2012-06-22 22:38:54)
Rah-plugins | What? I’m a little confused… again :-) <txp:is_god />
Offline
Jukka, thanks for your reply about the list button. If recent browser advances make it any easier to incorporate this feature (turning all selected lines into list items rather than just the first one), I would be very interested. Greatly appreciate your work on this plugin.
Offline
Hi, I made a “hack” to use rah_textile_bar to insert image using its button. (See How to create Macros to insert image with caption)
In line 519
Overwrite function rah_textile_bar_edInsertImage
with this
function rah_textile_bar_edInsertImage(myField) {
var myValue = prompt('ID:', '');
var myTitle = prompt('Leyenda:', '');
var myValue2 = myValue;
if (myValue) {
myValue = '<txp:imagen id="';
myValue += myValue2;
if(myTitle) {
myValue += '" caption="' + myTitle + '';
}
myValue += '" />';
rah_textile_bar_edInsertContent(myField, myValue);
}
}
With this, just click on the button of image, and follow the easy steps, ID, is image ID, and Leyenda (Spanish word) stands for Caption. I have erased “Style” because I dont use it. Here I use “imagen” instead of “figure”.
Regards,
Robhert
Last edited by robhert (2012-10-30 13:29:50)
—-
ONE is LOVE
Offline
Hi, I’ve installed this plugin twice and have checked it in four different browsers, but they’re all the same: I can’t see the buttons. They’re all blank. See:

What could’ve gone wrong?
Thanks!
It takes a heap of sense to write good nonsense. – Mark Twain
Offline