You are not logged in.
You can view the generated documentation at
http://xinha.raimundmeyer.de/JSdoc/Xinha/
or, for those with deeper interest in Xinha internals
http://xinha.raimundmeyer.de/JSdoc/XinhaWithPrivates/
I ask anybody who can to improve this!
Obviously file size hase increased considerably through the inline documentation, so I want to point out the existence of the compression script in contrib/comression.php.
<script language="javascript">
function change_risk(valeur) {
var reg = new RegExp("<font color=(\"|\')#[0-9a-fA-F]{6}(\"|\')>","gi");
// the below retrieves the Xinha content and stores it in the variable html; now you can do things with it
var html = xinha_editors.vulnerability_name.outwardHtml(xinha_editors.vulnerability_name.getHTML());
// change it
html = html.replace(reg,"<font color='" + valeur + "'>");
// then put it back in the editor
xinha_editors.vulnerability_name.setHTML(xinha_editors.vulnerability_name.inwardHtml(html));
// this does nothing, because the editor area is independent from the textarea
//document.form.vulnerability_name.value = document.form.vulnerability_name.value.replace(reg,"<font color='" + valeur + "'>");
}
</script>var html = xinha_editors.yourEditor.outwardHtml(xinha_editors.yourEditor.getHTML());
// do something with it
xinha_editors.yourEditor.setHTML(xinha_editors.yourEditor.inwardHtml(html))var html = xinha_editors.yourEditor.outwardHtml(xinha_editors.yourEditor.getHTML());
// do something with it
xinha_editors.yourEditor.setHTML(xinha_editors.yourEditor.inwardHtml(html))you have access to the document object inside the iframe through the Xinha object property
var doc = xinha_editors.myTextArea._doc; // get a grip on the document
var element = doc.getElementsByTagName('p')[5]; //get some element
xinha_editors.myTextArea.scrollToElement(element); // use one of the many built-in secret magic functions :)You might have to use a version from the svn (or the nightly)
no idea why this would happen ![]()
or get the latest version of char-counter.js from the svn, which does not contain this limit anymore by default and offers a standard Xinha.Config parameter for setting the limit
see http://xinha.python-hosting.com/ticket/1003
As I guess, you have installed the CharCounter plugin. Please try it without
No, that functionality is not yet part of Xinha, but this seems not too hard to implement as a plugin. If I find the time, I will try and do it in the next days
It's fixed in changeset 807. Look at line 4140, it's using Xinha's own String.prototype.trim() function
please look here http://xinha.python-hosting.com/ticket/998
There's a script (contrib/lc_parse_strings.php) that parses the js files and creates empty language files, this would have to be extended to sync the existing ones and, as I said, a nice interface (form)
is $_POST['content'] not set at all, or does it just not contain the edited content? Does it work with aplain textarea?
some php tool with UI would be cool ![]()
Hello sir_qwerty,
it looks like you have not set
$IMConfig['images_url']Also, if want to use relative links, you have to set
xinha_config.expandRelativeUrl = false;Sounds like you are working on the compressed file, that's of course a tough job ![]()
You should check out the svn repository ( http://svn.xinha.python-hosting.com/trunk/ ) or download the nightly from the downloads page to get the indented code with the real variable names. It's not not well commented though, but if you once have understood how it works, it's not overly complicated
I have set up a wiki page to keep track of text changes
Just incidently found this, which does work like a tab ( actually is a tab)
<p>Text<span style="white-space:pre"> </span>Text</p>EDIT: the empty space above is the numerical entity for the tab character which is &_#9; without the _ (don't know how to enter it
)
plugins/ExtendedFileManager/assets/manager.js around l. 50
There's a variable called offsetForInputs that's does the job
How do you submit, I see no button in your form
function submitForm(myForm,message,serverScript,reloadContent)
{
document.getElementById(myForm).onsubmit(); // you have to trigger this manually, it copies the content of Xinha in the textarea
var options = {
method : 'post',
parameters : Form.serialize(myForm),
onSuccess : alert(message)
};
new Ajax.Request(serverScript, options);
doSubNav(reloadContent,'content');
}OK, it missed that the argument myForm is a string (as opposed to a DOM object), sorry. Please try this one
The button status is updated (and thus enabled) by updateToolbar() all the time
Dirty hack: define a context for the buttons that never occurs
xinha_config.btnList.about[4] = 'del';This would be the clean way, a plugin the disables the respective buttons on each cycle
function DisableButtons(editor) {
this.editor = editor;
}
DisableButtons._pluginInfo = {
name : "DisableButtons",
version : "1.0",
developer : "Xinha Core Developer Team",
developer_url : "http://xinha.org",
c_owner : "Xinha community",
sponsor : "",
sponsor_url : "",
license : "Creative Commons Attribution-ShareAlike License"
}
Xinha.Config.prototype.btnsToDisable =
[
'about','formatblock','fullscreen'
]
DisableButtons.prototype.onUpdateToolbar = function()
{
for (var i =0; i<this.editor.config.btnsToDisable.length;i++)
{
this.editor._toolbarObjects[this.editor.config.btnsToDisable[i]].state("enabled", false);
}
}Yes, of course ![]()
Short answer: the popup is plugins/ExtendedFileManager/manager.php, the code that inserts the image/link is to be found in plugins/ExtendedFileManager/extended-file-manager.js
If you have any further questions (and I'm sure you will
), ask and I will try to do my best to help