You are not logged in.
You may use visibility:hidden during creation when you want the editor not to be seen. Once it's ready you may do deactivateEditor() and display:none
To reduce confusion with different topics in one thread, I'm closing this one. Please open a new thread for each question.
Indeed ImageManager has not even a field for putting in a URL. You should consider using ExtendedFileManager instead, it offers the same functionality as ImageManager and more, and you can insert an image by URL (please check out the newest version from svn or wait for the Nightly of tomorrow, because I just fixed a bug that made this not work)
@Mr P!nk (#174): No you can't have attributes unquoted. Anyway why do want it?
remove the "Decimal Numbers" drop down: Don't use the ListType plugin or set
xinha_config.ListType.mode = 'panel';'Save' button: try the SaveSubmit plugin
Xinha start maximised:
xinha_config.fullScreen = true;Ticket #1001 Fixed in revision 881. Btw. slow loading is untouched; the requests happend when unloading the page
Sorry, that is done by the browser (IE in this case, doesn't seem to happen in Firefox); nothing to be done about it.
Hi,
I have just commited an updated version of Equation to the trunk that can output MathML (in the dialog). Maybe you can find something to convert this in a format you can work with.
Hi kram!
In XINHA version 0.931 (2007-05-16) I'm assuming that the 'Equation' plugin is the same thing as the 'AsciiMath' plugin developed by Peter Jipsen - or rather that the original Equation plugin has been replaced Peter's code?
No the plugin has been by me using parts from Peter's code (like the input table)
In Explorer with the latest MathPlayer ActiveX plugin I can see formulae in the plugin but they appear as text in the textarea, like this `lim_(x->oo)`
I'm sorry, I had a terriby hard time trying to make it work in IE and finally gave it up. Maybe I try to fix it some other time
On submitting with Firefox all formulae are lost,
I just submitted a fix for this to the trunk, see http://xinha.webfactional.com/ticket/1059 . For some other changes I did see http://xinha.webfactional.com/ticket/1060
It would be nice to be able to show formula on pages that aren't being edited - essential really. I think I must be missing something basic from the page - like a JS library?
Indeed, you have to include ASCIIMathML.js, see the readme files in the plugin folder. That is because it's not at all trivial to make MathML show on a page and it works really good with ASCIIMathML.js
No, I mean it is fixed in your sense. Read the ticket to the bottom. I changed the code last night so you can specify "alternate stylesheet" links as you wish
Sorry for the lack of documentation; I invite everyone to submit any type of knowledge they are having ![]()
Your issue has been fixed in revision 878; see ticket 1026
Hi,
It's very easy to reproduce my problem:
Hi,
it's also very easy to solve ![]()
By default, Xinha only edits the body part of the page. Please set
xinha_config.fullPage = true;in your config
Thanks for you contribution, hermes. Please don't hesitate sharing any other insights you might have ![]()
You are right, thank you. I updated the NewbieGuide accordingly
This is in fact as you might have guessed a server configuration issue. Xinha loads its language files using XMLHttpRequest. For security reasons this works only for requests the same server. Now it happens that some language files are not found, your server should send a 404 and everything's OK, no translated strings, but at least it works in English. BUT the server instead sends a 302 redirect to a different server, and there it quits because of the aforementioned security reason. This is wrong behaviour, quite simply; you might want to tell the administrator about that.
Now you have to take several steps to solve this:
1. Get yourself Firebug to see what's going on ![]()
2. change _editor_lang from "pt" to "pt_br", as there are no translations for pt but there are for pt_br
3. Use Firebug in your working installation to check whether there are any 404's left (in the Net tab). If there still are, you will have no other choice than to translate the missing plugins (send in the translations then)
I hope you can make it ![]()
Sadly this is a workaround for a very bad bad bug in IE, you can read here for more information about this
Style elements are only allowed in the head section (rules of HTML)
var editor = this; // inside a plugin OR
var editor = xinha_editors.yourEditor; // from JS outside
editor.plugins.SaveSubmit.instance.save(editor); // calling the plugin's function OR
editor._toolbarObjects.savesubmit.cmd(editor); // calling the button's actionMany roads lead to Rome ![]()
Hi cau,
I made a template for a panel plugin
your-plugin.js
/*------------------------------------------*\
YourPlugin for Xinha
_______________________
\*------------------------------------------*/
function YourPlugin(editor) {
this.editor = editor;
var cfg = editor.config;
var self = this;
cfg.registerButton
({
id : "YourPlugin",
tooltip : this._lc("YourPlugin"),
image : _editor_url+"plugins/YourPlugin/img/smartquotes.gif",
textMode : false,
action : function() { self.buttonPress(); }
});
cfg.addToolbarElement("YourPlugin", "htmlmode", 1);
}
YourPlugin._pluginInfo = {
name : "YourPlugin",
version : "1.0",
developer : "Raimund Meyer",
developer_url : "http://rheinauf.de",
c_owner : "Raimund Meyer",
sponsor : "",
sponsor_url : "",
license : "htmlArea"
};
YourPlugin.prototype._lc = function(string) {
return Xinha._lc(string, 'YourPlugin');
};
Xinha.Config.prototype.YourPlugin =
{
// configName : "configDefaultValue"
}
YourPlugin.prototype.buttonPress = function(opts, obj)
{
var self = this;
if ( this.shown) // same as cancel
{
return this.hide();
}
var inputValues = // this fills the inputs with values
{
exampleInput : "value to put in"
};
this.dialog.setValues(inputValues);
this.dialog.show();
this.shown = true;
};
YourPlugin.prototype.onGenerateOnce = function()
{
var self = this;
this._prepareDialog();
// if the dialog is supposed to be hidden in text mode
this.editor.notifyOn('modechange',
function(e,args)
{
switch(args.mode)
{
case 'text':
{
if (self.shown) self.dialog.hide();
break;
}
case 'wysiwyg':
{
if (self.shown) self.dialog.show();
break;
}
}
}
);
};
YourPlugin.prototype._prepareDialog = function()
{
var self = this;
var editor = this.editor;
if ( typeof Xinha.PanelDialog == 'undefined')
{
Xinha._loadback( _editor_url + 'modules/Dialogs/panel-dialog.js', this._prepareDialog,this);
return;
}
if(!this.html)
{
Xinha._getback(_editor_url + 'plugins/YourPlugin/dialog.html', function(getback) { self.html = getback; self._prepareDialog(); });
return;
}
// Now we have everything we need, so we can build the dialog.
this.dialog = new Xinha.PanelDialog(editor, 'top',this.html);
this.dialog.getElementById('ok').onclick = function ()
{
// onOK
var values = self.hide(); // this gets us the values from the inputs in the dialog as an object
// do something
}
this.dialog.getElementById('cancel').onclick = function ()
{
self.hide();
}
this.ready = true;
this.hide();
};
YourPlugin.prototype.hide = function()
{
this.shown = false;
return this.dialog.hide();
};dialog.html
<h1><l10n>YourPlugin</l10n></h1>
<input type="text" name="[exampleInput]" />
<div class="buttons">
<input type="button" id="[ok]" value="_(OK)" />
<input type="button" id="[cancel]" value="_(Cancel)" />
</div>You should consider the method proposed in the NewbieGuide
Xinha._addEvent(window,'load', xinha_init); // this executes the xinha_init function on page load
// and does not interfere with window.onload properties set by other scripts(Of course you have to use HTMLArea._addEvent() in 421)
Well, of it outputs HTML, that's what it's supposed to be for, isn't it? ![]()
Do you do a strip_tags() or something?
Is there any special reason for that you don't bind the xinha_init function to window.onload ?
Sorry, as Xinha is for the main part a HTML editor, the " is always converted, as it is usual in HTML. It's not absolutely forbidden though, so it could be discussed that this conversion be removed. Please open a ticket for this topic if you want this to happen.
I understood it like saving the files on the server, which would also make more sense.
P.S. Sorry, seems like I have forgotten this thing. You should open a ticket for this, they are more "sticky" ![]()
How about using a panel (top or bottom)? That'd be much nicer anyway ![]()