You are not logged in.
Of course, the formatblock is fully i18nized. Maybe the translation is missing for your language, see e.g. de.js line 49. If you feel like extending your language localization, please consider sending it to us (attach it to a ticket)
Xinha normally strips out the server part from absolute URLs that point to the server Xinha runs on. That happens because the browsers tend to transform relative and semi-absolute URLs to absolute ones, which is usually unwanted.
You can switch that off by setting
xinha_config.stripBaseHref = false;Hi loack31, your first problem is solved in the latest revision. The second problem I don't quite understand, please could you describe a little more?
No, at the moment there's no such option. I have added a feature request ticket for this http://trac.xinha.org/ticket/1385
All released versions are packed using dojo shrinksafe, from the next release on we will be using the YUI packer, which saves some additional KBs. Possibly even more could be saved using Dean Edward's packer, but we have not tried this yet (but maybe I will)
you can use the PreserveScripts plugin to preserve PHP code
This is from the uncompressed source code. You can find all config options on http://xinha.raimundmeyer.de/JSdoc/Xinha/
xinha_editors = xinha_editors ? xinha_editors : document.getElementsByTagName('textarea');All plugins are in the distribution package and can be activated as described in the NewbieGuide
Hi garvin,
You can either use http://xinha.raimundmeyer.de/JSdoc/Xinh … ripScripts
or try the PreserveScripts plugin
Please give some more informaion or a url
i have a rather old version of xinha
That will be the problem, as Xinha.getEditor() is a rather new function. You can instad use
var editor = xinha_editors["content"];
var html = editor.getEditorContent();
//if editor.getEditorContent() doesn't exist either, this will do
var html = editor.outwardHtml(editor.getHTML());Thanks you are taking care of the plugin, as I don't have the time
Unfortunately what you want to do is not so super easy. You have to create a range and move it, which, especially in IE, is a pain in the ass ![]()
Try having a look at the plugin SmartReplace, it also looks at what's before the caret
Good luck ![]()
Hard to say. Is $pfade['Xinh'] correct? Any Javascript or PHP errors?
Going to HTML mode is no option?
Absolutely
Xinha is pure client-side JavaScript. However, some plugins (Linker, ExtendedFileManager, SuperClean e.g.) need PHP, but should work with all versions out there. For ExtendedFileManager you also need some image processing library like GD or ImageMagick
This is a obviously bug, thanks for spotting it. Instead of the broken characters the hyphen should be replaced by a dash. This seems to be a malicious effect of compressing the code for the release.
I have created a ticket on this topic http://trac.xinha.org/ticket/1329
this seems to be a bug related to the plugin SmartReplace, but I can say little about it without some more information, especially which browser you are using
In the second example, the xinha_editors (and xinha_plugins) array is empty, so its clear that the textarea is not converted. Why this happens is not possible to say from here, as it seems to be your server app that's acting wrongly
Sorry, I tried hard, but I could not reproduce your problem. However I would advise you to massively clean up your code.
Sorry, I don't quite understand what you mean. Xinha is always applied to one ore more specific textarea(s) (specified in xinha_editors)
All is said in the error. This would have to be fixed on your server.
There are several ways to fill the tree, see http://trac.xinha.org/wiki/Linker