You are not logged in.
Well, I have to admit I'm a little clueless what this is supposed to mean. there is nothing in line 165 that looks like it could break it.
Maybe I can have a look at your page?
I'm very unhappy that this is causing such trouble, and also curious what's going on.
When do the backslashes occur? Already in the editor or when submit the Form? If the latter andyou're using php, this would be the magic quotes engine of php. Then you would have to do something like
$html = (get_magic_quotes_gpc()) ? stripslashes($html) :$html;If otherwise it already happens in the editor, I don't know either ![]()
Have a look at this:http://raimundmeyer.de/xinha/examples/testbed.html
In this example the savesubmit.php is located in the same folder like the testbed.html and it's simply
<?php
print_r($_POST);
?>
for demonstration purposes.
The problem is not your form I have tested this.
What kind of error do you get? Does it work with a "real" submit button? Is the URL of the action right?
I'm so sorry! It was really my fault. There was a suffix to the URL that was a remainder of how I use it with serveral GET parameters, but it broke a simple URL. So, please try it again, I have attached an updated version to the ticket: http://xinha.python-hosting.com/ticket/628
Once again a note on the usage:
This should be more or less a drop-in replace for a normal submit button. It takes the action URL from the
HTML form and sends the data from the textarea in a HTTP post with the name of the textarea.
I'm sorry. What exactly does not work, maybe we can work it out
If you, as you said, want to edit the HTML by hand you have to do it like said, because there is no option in HTML to set font-size in pixels via the <font> tag (i.e. there is no size="13px"). It's only the 1 to 7 range (of relative values) you have in the select box.
The problem is that the combo box we have in the editor only triggers the browser's built in function which (unfortunately) works with the double plus ungood font-tag.
You could submit a feature request ticket that this be changed or otherwise write a plugin youself.
You have to use CSS to set the font size if you want to use px.
<p style="font-size:13px">...</p>Just an example, if you don't know how CSS works, google for a tutorial. It´s worth it!
plugins/Linker/scan.php
set $dir to desired path
The function is part of the browser's editing engine
http://www.mozilla.org/editor/midas-spec.html
http://msdn.microsoft.com/workshop/auth … ommand.asp
If that's your biggest problem, congratulations!
as for fullscreen: I still couldn't figure to do this, I instead took the code from the plugin that gets the dimensions and put it in my config
var x,y;
if (self.innerHeight) // all except Explorer
{
x = self.innerWidth;
y = self.innerHeight;
}
else if (document.documentElement && document.documentElement.clientHeight)
// Explorer 6 Strict Mode
{
x = document.documentElement.clientWidth;
y = document.documentElement.clientHeight;
}
else if (document.body) // other Explorers
{
x = document.body.clientWidth;
y = document.body.clientHeight;
}
xinha_config.height = y + 'px';
xinha_config.width = x + 'px';There´s a config variable for that (Config.fullPage=true)
line number?
Hi,
you don't need the submit button, because the data is submitted without an actual submit, in the background. It takes the url from the action attribute of the form, so you are OK there. You have to set up your (php/perl-)script that it listens for a POST with the name of the textarea for saving, and it has to print out something when it has received the data. In the moment the plugin waits only to get anything back(it does not account errors), but you could change line 121 to
self.setMessage(getback);to show what the server says.
Hope you get it to work!
@Xinha 2: How do youz submit the form? In case you use javascript form.submit(), you have to call form.onsubmit() beforehand .
@ImageManager 1: Normally GD should do the job
@ImageManager 2: That's an old bug, search the tickets
You problably have them already, because Xinha is shipped with all plugins on board.
PS:Try InsertSnippet instead of Template (just a little ad for my work)
put an alert() in xinha_init to test this
unlikely, but easy to try. also i'd have another look at the _editor_url. take the absolute variant /admin/xinha/.
did you check if anything interfered with the window.onload?
You will have to use the plugin "ImageManager".
For the usage see here http://xinha.python-hosting.com/wiki/ImageManager
yeah, that'd be most great!
as xinha is explicitly an HTML editor you would have to replace them manually
I'm glad it does'n the other way round!!
wasn'n there long ago an attempt to do this?
You have to use the absolute path from your server root, not the full filesystem path (i.e. inyour example /.....etc). The browser that executes the javascript does not know your filesystem!