Announcement

Do not use the forums to submit bug reports, feature requests or patches, submit a New Ticket instead.

#476 Re: User Discussion & Help » IE converting urls to absolute form » 2006-02-15 09:21:03

ray

yes, I think mozilla does work better with xinha anyway

#477 Re: User Discussion & Help » MINIMAL XINHA (Small footprint for distribution in web apps) » 2006-02-14 06:20:55

ray

Best would be to compress the js code. there´s a ticket about this http://xinha.python-hosting.com/ticket/115.

I´d like to have a crunching script for php, to crunch the code on the fly.
Anyone know something like this?

#478 Re: User Discussion & Help » IE converting urls to absolute form » 2006-02-14 06:02:32

ray

Never being lucky with this matter, I turned to stripping the baseURL server-side

#480 Re: User Discussion & Help » Newbie Guide » 2006-02-14 05:52:58

ray

Hello Audrey,
xinha, or HTMLArea (the original program) was made to do exactly this: replace a textarea in a form.
My humble opinion--this is the elegant solution as opposed to just clutching some javascript in the page. You need the form anyway to get the stuff to the server, don't you?

#482 Re: User Discussion & Help » Only display a couple of options/toolbars » 2006-02-05 20:55:02

ray

Hi Rolf!

You can easily customize your toolbar.
Just define the toolbar variable inside your configuration file and edit the array to suit your needs (STEP 3 in the Newbie Guide).
xinha_config.toolbar =
  [
    ["popupeditor"],
    ["separator","formatblock","fontname","fontsize","bold","italic","underline","strikethrough"],
    ["separator","forecolor","hilitecolor","textindicator"],
    ["separator","subscript","superscript"],
    ["linebreak","separator","justifyleft","justifycenter","justifyright","justifyfull"],
    ["separator","insertorderedlist","insertunorderedlist","outdent","indent"],
    ["separator","inserthorizontalrule","createlink","insertimage","inserttable"],
    ["separator","undo","redo","selectall","print"], (HTMLArea.is_gecko ? [] : ["cut","copy","paste","overwrite","saveas"]),
    ["separator","killword","clearfonts","removeformat","toggleborders","splitblock","lefttoright", "righttoleft"],
    ["separator","htmlmode","showhelp","about"]
  ];

#484 Re: User Discussion & Help » Stylist wont load external stylheet » 2006-01-21 09:35:48

ray

1. You have to use the absolute path from your server root (like the browser sees it), not the filesystem path.
2. I can confirm Stylist is a little picky, e.g I could not load a editor.css until I renamed it

#485 Re: User Discussion & Help » Creating a Custom Button » 2006-01-21 07:21:24

ray

The "Insert Web Link" button calls the function HTMLArea.prototype._createLink where the the popup is hardcoded. So to use another popup you either have to duplicate this function or hack it.
Why don´t you use the exquisit Linker plugin? you can configure that to show the contents of a give directory.

#486 Re: User Discussion & Help » Creating a Custom Button » 2006-01-20 14:38:13

ray

oh, looks like creating the button is the least of your tasks smile  I suggest you grab one of the simpler plugins (one that has a popup) and tweak it to do what you need

#487 User Discussion & Help » new plugin: SaveSubmit or The Advanced Save Button » 2005-12-20 21:53:16

ray
Replies: 30

At first I just wanted to have a plugin so that I don´t have to register a save button  in my config file that submited the form via onsubmit()/submit(). But then i had the idea to post the data asynchronously which turned out to be a much cooler thing because this way the whole editor has not to be constructed again. Then added some feedback message for user confidence and a keyboard shortcut, and now I think it´s gotten a handy one.

http://xinha.python-hosting.com/ticket/628

#488 Re: User Discussion & Help » document.form.submit() does not capture Xinha editor » 2005-12-20 21:36:48

ray

You must call document.myform.onsubmit() before submit().

You can also try my new plugin which i incidentally just got ready  http://xinha.python-hosting.com/ticket/628

#489 User Discussion & Help » Have a look at my new plugin: InsertSnippet » 2005-12-17 09:26:04

ray
Replies: 3

A little advertising here: I have made my first plugin. It´s for inserting pieces of HTML or template variables. I find it quite handy, it´s easily maintainable and cofigurable
http://xinha.python-hosting.com/ticket/622

#490 User Discussion & Help » Costum key events » 2005-12-17 09:14:10

ray
Replies: 1

Is there a way to customize key events, to have e.g. a save function on ctrl-s?

#491 Re: User Discussion & Help » Save as Word document » 2005-12-16 09:34:10

ray

Images could be packed into one MIME multipart file.  Like e-mails. "Multipurpose Internet Mail Extension HTML" is the keyword

#492 Re: User Discussion & Help » Save as Word document » 2005-12-15 17:18:40

ray

nice idea. you should make a plugin out of this

#493 User Discussion & Help » How to use a form inside Xinha? » 2005-12-15 12:47:01

ray
Replies: 1

How can i use a form inside the textarea. As I see there are two form plugins, i think this gotta be possible somehow?
when I write a form inside the textarea, the contents (naturally) at </textarea> or </form>. Is there a way to prevent this?

#494 Re: User Discussion & Help » GetHtml » 2005-12-14 05:36:08

ray

one deeper question: anyone bother  explaining the difference between InnerHTML ond OuterHTML?
I´m afraid I don´t quite get the concept..

#496 User Discussion & Help » GetHtml » 2005-12-10 05:25:20

ray
Replies: 3

Can anyone explain what the GetHtml plugin actually does and why or if one should use it?
One thing I noticed (actually my boss) and I found a little distrcting that it gives links some empty attributes (target, title)  which make the document not validate

#497 Re: User Discussion & Help » ray » 2005-12-10 05:15:56

ray

Sorry, this should be titled GetHtml!

#498 User Discussion & Help » ray » 2005-12-10 05:14:17

ray
Replies: 3

Can anyone explain what the GetHtml plugin actually does and why or if one should use it?
One thing I noticed (actually my boss) and I found a little distrcting that it gives links some empty attributes (target, title)  which make the document not validate

#499 Re: User Discussion & Help » Creating a Custom Button » 2005-12-09 07:16:55

ray

If you still have questions, maybe you can tell us what your button should do

#500 Re: User Discussion & Help » Creating a Custom Button » 2005-12-09 07:05:31

ray

There´s a function for this in Xinha

/** Helper function: register a new button with the configuration.  It can be
 * called with all 5 arguments, or with only one (first one).  When called with
 * only one argument it must be an object with the following properties: id,
 * tooltip, image, textMode, action.  Examples:
 *
 * 1. config.registerButton("my-hilite", "Hilite text", "my-hilite.gif", false, function(editor) {...});
 * 2. config.registerButton({
 *      id       : "my-hilite",      // the ID of your button
 *      tooltip  : "Hilite text",    // the tooltip
 *      image    : "my-hilite.gif",  // image to be displayed in the toolbar
 *      textMode : false,            // disabled in text mode
 *      action   : function(editor) { // called when the button is clicked
 *                   editor.surroundHTML('<span class="hilite">', '</span>');
 *                 },
 *      context  : "p"               // will be disabled if outside a <p> element
 *    });
 */

I used it like this for making a "save"-button:

xinha_config.registerButton("save_submit", "Speichern", [_editor_url+"images/ed_buttons_main.gif",9,1], false, function() {document.getElementById("editor_form").onsubmit();document.getElementById("editor_form").submit()});
    
    xinha_config.toolbar =
     [
        ["save_submit",  ....

Board footer

Powered by FluxBB