You are not logged in.
yes, I think mozilla does work better with xinha anyway
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?
Never being lucky with this matter, I turned to stripping the baseURL server-side
http://xinha.gogo.co.nz/punbb/viewtopic.php?id=577
This should be added to the FAQ
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?
I thought script code didn´t work at all
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"]
];
Maybe this helps you
http://xinha.python-hosting.com/ticket/127
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
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.
oh, looks like creating the button is the least of your tasks
I suggest you grab one of the simpler plugins (one that has a popup) and tweak it to do what you need
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.
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
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
Is there a way to customize key events, to have e.g. a save function on ctrl-s?
Images could be packed into one MIME multipart file. Like e-mails. "Multipurpose Internet Mail Extension HTML" is the keyword
nice idea. you should make a plugin out of this
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?
one deeper question: anyone bother explaining the difference between InnerHTML ond OuterHTML?
I´m afraid I don´t quite get the concept..
Have a look at this
http://xinha.python-hosting.com/ticket/535
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
Sorry, this should be titled GetHtml!
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
If you still have questions, maybe you can tell us what your button should do
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", ....