You are not logged in.
Make sure to say what plugins you are using also.
Submit a bug report.
In the ticket system http://xinha.python-hosting.com/wiki/Tickets
gogo wrote:Learn by example. You need to know (well) Javascript. Perhaps look at a simpler plugin first, SuperClean or CharCounter.
You mean to tell me their is *no* documentation anywhere for making plugins???
There is none. We don't have much in the way of user documentation, let alone API documentation. The code is commented though.
Making plugins is not really hard provided you can program in Javascript in an object oriented manner (if you cannot, then learn that first), just look at some of the small ones to get the idea, InsertWords (very simple), InsertSmiley, CharacterMap, BackgroundImage, and for a bit more look at SuperClean, and Linker.
Learn by example. You need to know (well) Javascript. Perhaps look at a simpler plugin first, SuperClean or CharCounter.
Update to the latest from the subversion repository, should be scrollable in that.
xinha_editors is not in the document object, try just
window.opener.xinha_editors['text_area'].setHTML('blah');
This is a browser feature, I do not believe we can alter it.
It should work. But the toolbars are only generated once, so you can't change after the editor has been generated. Specifically if you are using the standard initilisation code it would go in step 5...
xinha_editors.myTextArea.config.toolbar = [ ["formatblock","fontname","fontsize","bold","italic","underline","strikethrough"] ];note that xinha_editors is all lower case (you have an upper case X in what you posted).
http://mokhet.com/xinha/examples/full_example.html
This is my first attempt to make Xinha work under Opera9 beta 2, and i'm quite satisfy right now. Still a lot of issues but there is only a few lines to change to make it work
A while ago I created a fork in the SVN for initial Opera compatability - you can check that out (/branches/opera) to see what changes I've made in that; but this was for the first preview release so may not work in the Beta.
1) browser identification
(issue : this is a bad way to detect feature, we should check for objects instead of something not reliable like useragent, anyway ...)
Yes.... to an extent. But when you have to work around browser problems/differences you really need to know, "is this IE in quirks mode" or "is this Opera version xxx with the yyy bug" - you can't just look to see if a certain feature is there sometimes.
As for floating toolbars, I don't know about that, I don't think they would be very nice to use in a web application, not really suited to them IMHO. One toolbar to control many editors is something that comes up quite often, I seem to remember somebody was working on it but who escapes me. Just thinking about it now, the easiest way of doing that would be to just hide the toolbars (display:none them), move them to a single toolbar div (specified in config) and when an editor is activated set display:block on the correct toolbar (and display:none on the previously shown). That should work now I think with very minimal changes. I think.
I havn't posted here much lately (ok, for quite a while) because I just havn't had time to work on Xinha
Have a project coming up though that might allow me some time for the X (actually, I really want to get it working in Opera 9 now it's in beta -- I use Opera almost exclusively nowadays).
Anyway, a toolbar cleanup has always been "on the books", for the simple reason that plugins adding buttons to toolbars is completely haphazard at the moment. Like you say, I would like to see set named groups of toolbars which plugins can, well, plug into; I think I've mentioned this either in a post here or in a ticket before. I think this could be achieved without too much trouble because we already have toolbar groups in a fashion, they just are not named.
The styled-selects for fonts etc is something I've wanted for a while. A friend of mine was working on it for a while but never was able to get it to work quite right cross-browser.
As for tabs of buttons, I think the panels system could be used in this regard, perhaps even a plugin which replaces/extends the existing toolbar creation with a panels-based one.
I have reservations about that new Word toolbar screenshot, personally, I don't like it. But then I'm a programmer, not a joe bloggs who actually uses Xinha, so I'm not the best person to design the toolbar.
Good one Kim. I've placed my votes. Can we be sure that people won't vote many times to skew the results, perhaps you could put a captcha on the first page to "start a session", would at least make it more difficult to fiddle with ![]()
Lets leave it open till May and see how many votes we have collected.
Select lists are "windowed" elements in IE, they always appear on top. At least last time I looked there is no solution (aside from hiding the select lists, but that's a job for your menu code, not Xinha).
See the newbie guide -- http://xinha.python-hosting.com/wiki/NewbieGuide
My guess is that doc.Documents(document.all.hello.value).Content is returning plain text, you'd have to find the documentation of the Word ActiveX object and see if you can get it to return HTML which you can then insert.
Are you using the aspell which you can download from http://xinha.python-hosting.com/wiki/SpellChecker
The browser will be doing that, not much we can do to stop it. Script in Xinha (or any online HTML editor) will be limited at best.
What are the details of the server environment?
It's a bug in Firefox, head on over to bugzilla.mozilla.org ![]()
It is not possible to disable image resizing, the web browsers do not make any events available when resizing occurs. It is not a feature of Xinha to set the cursor position after an image when the image is inserted, you could (probably) modify the image inserter you are using (built in, ImageManager... etc) to do this.
I believe the browsers enforce link differentiation when in an editable area (such as Xinha)...ie it's not Xinha changing them, it's the browser.
Permissions?
The only reason is would add head/body is if you have it in FullPage mode, which is intended for editing, well, Full HTML Pages with head and body. Take it out of FullPage and your troubles will be gone.
Post a sample of one of the images that don't work. Are you using GD or Imagemagick to do the resizing (setting in ImageManager).
Divs inside paragraphs is invalid (block within block), if you write invalid HTML, be happy with what you get out
To get teh current element, have a look in htmlarea.js, there is a method there to do that as I recall.