Announcement

Do not use the forums to submit bug reports, feature requests or patches, submit a New Ticket instead.

#126 Re: User Discussion & Help » focus editor after display : trouble solved » 2007-09-21 04:44:40

ray

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

#127 Re: User Discussion & Help » Newbie Guide » 2007-09-08 10:23:05

ray

To reduce confusion with different topics in one thread, I'm closing this one. Please open a new thread for each question.

#128 Re: User Discussion & Help » Insert image by URL » 2007-09-06 17:54:12

ray

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)

#129 Re: User Discussion & Help » Newbie Guide » 2007-09-06 09:56:51

ray

@Mr P!nk (#174): No you can't have attributes unquoted. Anyway why do want it?

#130 Re: User Discussion & Help » Save button - Start Maximised and "Decimal Numbers" » 2007-09-03 10:38:54

ray

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;

#131 Re: User Discussion & Help » NULL http GET requests » 2007-08-22 12:12:13

ray

Ticket #1001 Fixed in revision 881. Btw. slow loading is untouched; the requests happend when unloading the page

#132 Re: User Discussion & Help » Translating character on load of HTML into editor... » 2007-08-22 09:27:01

ray

Sorry, that is done by the browser (IE in this case, doesn't seem to happen in Firefox); nothing to be done about it.

#133 Re: User Discussion & Help » Xinha Editor with ASCIIMathML Javascript » 2007-08-17 14:21:36

ray

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.

http://xinha.webfactional.com/ticket/1060

#134 Re: User Discussion & Help » Equation / AsciiMathML plugins » 2007-08-17 14:18:16

ray

Hi kram!

kram wrote:

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)

kram wrote:

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

kram wrote:

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

kram wrote:

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

#135 Re: User Discussion & Help » Upgrade Breaks Styles/Theme » 2007-08-14 10:43:58

ray

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

#136 Re: User Discussion & Help » Upgrade Breaks Styles/Theme » 2007-08-13 18:49:43

ray

Sorry for the lack of documentation; I invite everyone to submit any type of knowledge they are having smile

Your issue has been fixed in revision 878; see ticket 1026

#137 Re: User Discussion & Help » Style declarations are dropped by Xinha » 2007-08-02 11:23:28

ray
steph48 wrote:

Hi,

It's very easy to reproduce my problem:

Hi,
it's also very easy to solve smile

By default, Xinha only edits the body part of the page. Please set

xinha_config.fullPage = true;

in your config

#138 Re: User Discussion & Help » problem with styles » 2007-07-25 12:32:09

ray

Thanks for you contribution, hermes. Please don't hesitate sharing any other insights you might have smile

#139 Re: User Discussion & Help » Newbie Guide » 2007-07-25 12:16:12

ray

You are right, thank you. I updated the NewbieGuide accordingly

#140 Re: User Discussion & Help » Xinha does not load (same app works on other server) » 2007-06-29 04:48:45

ray

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 smile
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 smile

#141 Re: User Discussion & Help » Internet explorer slow saving » 2007-06-27 11:05:22

ray

Sadly this is a workaround for a very bad bad bug in IE, you can read here for more information about this

#142 Re: User Discussion & Help » Xinha Stripping CSS » 2007-06-26 12:00:31

ray

Style elements are only allowed in the head section (rules of HTML)

#143 Re: User Discussion & Help » press the SaveSubmit-button » 2007-06-25 15:50:04

ray
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 action

Many roads lead to Rome smile

#144 Re: User Discussion & Help » Textmode editing problem in Mozilla » 2007-06-22 18:38:08

ray

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>

#145 Re: User Discussion & Help » debugging IE 6/7 timing issue with Xinha initialization. » 2007-06-22 16:42:33

ray

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)

#146 Re: User Discussion & Help » xinha output is not html? » 2007-06-21 07:42:16

ray

Well, of it outputs HTML, that's what it's supposed to be for, isn't it? smile
Do you do a strip_tags() or something?

#147 Re: User Discussion & Help » debugging IE 6/7 timing issue with Xinha initialization. » 2007-06-21 07:39:27

ray

Is there any special reason for that you don't bind the xinha_init function to window.onload ?

#148 Re: User Discussion & Help » Xinha turns " into " HELP PLZ!!! » 2007-06-20 04:18:25

ray

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.

#149 Re: User Discussion & Help » can I tell xinha to make a local copy of pictures added in xinha » 2007-06-19 18:18:55

ray

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" smile

#150 Re: User Discussion & Help » Textmode editing problem in Mozilla » 2007-06-19 18:11:42

ray

How  about using a panel (top or bottom)? That'd be much nicer anyway smile

Board footer

Powered by FluxBB