Announcement

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

#501 Re: User Discussion & Help » problem with image in <div> tag » 2006-05-24 03:47:25

Make sure to say what plugins you are using also.

#503 Re: User Discussion & Help » Plugin Help » 2006-05-16 11:12:01

dlublink wrote:
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.

#504 Re: User Discussion & Help » Plugin Help » 2006-05-15 23:08:56

Learn by example.  You need to know (well) Javascript.  Perhaps look at a simpler plugin first, SuperClean or CharCounter.

#505 Re: User Discussion & Help » Scrollable Style List » 2006-05-08 22:53:54

Update to the latest from the subversion repository, should be scrollable in that.

#506 Re: User Discussion & Help » Javascript to insert into TextArea? » 2006-05-08 22:53:18

xinha_editors is not in the document object, try just
  window.opener.xinha_editors['text_area'].setHTML('blah');

#508 Re: User Discussion & Help » Different toolbars/textareas on one page » 2006-04-29 22:10:22

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).

#509 Re: User Discussion & Help » Xinha and the Future of Rich Text Editing » 2006-04-29 22:04:58

mokhet wrote:

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.

#510 Re: User Discussion & Help » Xinha and the Future of Rich Text Editing » 2006-04-29 09:47:22

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.

#511 Re: User Discussion & Help » Xinha and the Future of Rich Text Editing » 2006-04-29 09:31:03

I havn't posted here much lately (ok, for quite a while) because I just havn't had time to work on Xinha sad  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.

#512 Re: User Discussion & Help » Xinha Logo - Cast your vote now! » 2006-04-16 20:48:48

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 smile

Lets leave it open till May and see how many votes we have collected.

#513 Re: User Discussion & Help » xinha is hiding the css menu » 2006-02-12 21:28:38

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).

#515 Re: User Discussion & Help » Save as Word document » 2006-02-07 08:13:42

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.

#517 Re: User Discussion & Help » insert of javascript src stmnt gets interpreted » 2006-02-06 04:35:04

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.

#518 Re: User Discussion & Help » SpellChecker woes » 2006-02-06 04:32:27

What are the details of the server environment?

#519 Re: User Discussion & Help » 2 editors, 2 cursors blinking » 2006-02-06 04:30:15

It's a bug in Firefox, head on over to bugzilla.mozilla.org smile

#520 Re: User Discussion & Help » Help!! Please... Move cursor after insert an image » 2006-02-06 04:28:36

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.

#521 Re: User Discussion & Help » trouble with external stylesheet » 2006-02-06 04:26:33

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.

#523 Re: User Discussion & Help » Don't add <head> and <body> to edited content » 2006-02-06 04:23:06

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.

#524 Re: User Discussion & Help » Image Manager missing images » 2006-02-06 04:21:54

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).

#525 Re: User Discussion & Help » Inserting DIVs » 2006-02-06 04:18:51

Divs inside paragraphs is invalid (block within block), if you write invalid HTML, be happy with what you get out smile  To get teh current element, have a look in htmlarea.js, there is a method there to do that as I recall.

Board footer

Powered by FluxBB