You are not logged in.
I just wrote a plugin for Xinha to work under s9y.
Now what i need is to add manage Image functionality to Xinha toolbar. S9Y by default uses htmlarea3.
the code in S9Y that enables manage image functionality is as follows
var editorbody = new HTMLArea("serendipity[body]");
var configbody = editorbody.config;
configbody.registerButton('image_selector', 'Manage Images', 'htmlarea/images/ed_s9yimage.gif', false,
function(editor, id) {
window.open('serendipity_admin_image_selector.php?serendipity[textarea]=body', 'ImageSel', 'width=800,height=600,toolbar=no,scrollbars=1,scrollbars,resize=1,resizable=1');
editorref = editorbody;
}
);
Now since Xinha is similar to htmlarea can anyone tell me how do i add this code in xinha.
Offline
this sould still work - as xinha is more or less compatible with htmlarea
or what errors do you get if it doesn't work?=
Niko
Offline
i didn't try it
i do not know where should i enter it. IN Xinha documentation u have like 5 steps to make xinha work, so where do i enter this code.
Offline
step 3
just add
xinha_config.registerButton('image_selector', 'Manage Images', 'htmlarea/images/ed_s9yimage.gif', false,
function(editor, id) {
window.open('serendipity_admin_image_selector.php?serendipity[textarea]=body', 'ImageSel', 'width=800,height=600,toolbar=no,scrollbars=1,scrollbars,resize=1,resizable=1');
editorref = editorbody;
}
);
Niko
Offline
Oh sweet.
thanks niko
ok I guess now i have to figure out the path to the image file.
What if i put it inside xinha-nightly/images.
Offline
put it anywhere you like
Niko
Offline