Announcement

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

#701 User Discussion & Help » OT (sorta): DHTML drag-drop sorting interface » 2005-05-27 14:23:50

gogo
Replies: 16

This isn't immediatly related to Xinha (but might be in V2 for sorting toolbar groups), I'm looking for an example of a DHTML (Javascript) interface for sorting a list of items by dragging an item and dropping it into another position in the list.

Has anybody seen anything like that?  The only dragging stuff I can seem to find is for dragging layers around to arbitrary positions, rather than dragging static page elements into alternate locations.

#702 Re: User Discussion & Help » textarea » 2005-05-27 11:49:16

You must entize HTML before putting it in your textarea!

#703 Re: User Discussion & Help » New Skins :) » 2005-05-26 16:32:31

ooooo pretty smile  would you like these included in the Xinha distribution or you prefer not?  Submit a ticket if you would like them in smile

#704 Re: User Discussion & Help » Resize Xinha together with window? » 2005-05-26 06:33:15

myEditor is just the editor reference you have obtained.

If you follow the newbie guide it would be something like

  xinha_editors.myEditor

#705 Re: User Discussion & Help » Leftover <p>-tags after removing style » 2005-05-26 02:58:56

I found out that this isn't due to HTMLTidy, but due to switching to source view, if I switch to source view, the code disappears, and when switching back, it's still gone...

Hmmm.  Strange.  What version IE?

#706 Re: User Discussion & Help » Safari 2.0 -- will we be compatible? » 2005-05-25 17:45:58

Does anybody know why Stanislas is using HTMLArea from mishoo instead of Xinha?   Is mish restarting htmlarea development?

#707 Re: User Discussion & Help » Design A Logo for Xinha! » 2005-05-25 17:44:06

I like the proposals smile  Lets say we have a vote and choose just before releasing Version 1.0.  So entries welcome up until then!

I'll haev to find some voting thing for punbb or something smile

#708 Re: User Discussion & Help » Multi configuration editor » 2005-05-25 10:19:20

I didn't understand that V1 will die so quickly

New features would not be added to the V1 branch except if really necessary, bugfixes would of course be maintained there.  But there is no point in striving for backwards compatability with V1.0 in v2 as it will just hinder development.

#709 Re: User Discussion & Help » Resize Xinha together with window? » 2005-05-25 10:16:22

Xinha should resize on-the-fly no problem if you are using relative sizes.  Eg if your textarea is style="width:100%;height:100%" it should work.

You can however call the sizeEditor() method on the editor explicitly if you wish

myEditor.sizeEditor(width, height)

#710 Re: User Discussion & Help » Multi configuration editor » 2005-05-25 05:52:22

Forgot..

all old configurations still works

nope, not on your nelly, Version 1 configs are extremely unlikely to work for Version 2, that's why it's going to be Version 2 and not Version 1.x, different major numbers = not expected to be backwards compatable.

#711 Re: User Discussion & Help » Multi configuration editor » 2005-05-25 05:48:53

I agree with you V1 should be the main focus.. I try to understand how I can help but I don't understand why "Tickets to be completed for V1.0" contains trunk elements and is not ordered by priority (I wasn't able to find your reply telling that the Xinha team shoiuld define the priority).

Trunk is because thats where we are working, on the trunk, when V1 is done and released it will become a branch and tickets specific to V1 and not V2 would be assigned to the V1 branch, while tickets specific to V2 development are assigned to trunk.

The tickets are shown ordered by priority, the severity is a different thing.  Severity should be set by the ticket submitted (so if they think something is very serious they select serious) it is an indicator of how bad the problem is, Priority on the other hand should be set by the Xinha developers after looking at the ticket, it is an indicator of how quickly we should look at the problem in relation to other problems.  But really the ordering doesn't matter, just pick something you can do and do it smile

For defining the name of the group, I propose to add this name to the separator which serves for starting group  then the name should be something like ["separator:group1"..."separator:group2"]. Unamed group won't be checkable but then all old configurations still works.

No, I was thinking of turning the current toolbar array into a toolbar object

this.toolbar =
  {
     'character' : ['color', 'font', 'size'],
     'control'     : ['htmlmode', 'infopopup']
  }

etc.  Then plugins can do toolbar.control.push(my_new_control_button_here)

Loading time is not the main reason for me (even that shorter Xinha will be, better it will): consider the Linker plugin, why don't you imagine that there could be several "Linker" implementations which should be defined on need (on content for example or due to the fact that I ask for a more and more powerfull one) and not at start.

But shouldn't it be that you just extend Linker into your own plugin which caters for all your needs, or make a Meta-plugin that combines features from other plugins etc etc.  I can't really imagine a situation where you would be benefited by being able to "unregister" a plugin and then register another plugin in it's place, without reloading the page.

#712 Re: User Discussion & Help » Leftover <p>-tags after removing style » 2005-05-25 05:36:53

When selecting one of the list items in the example page, and then selecting a style through the stylist plugin, it appropriately puts the <p>-tags within the list item and the style changes. However, since having <p> tags within a list item is not desireable, I want to remove it again, but then it turns out it only removes the class attribute of the paragraph-tag, but leaves the paragraph tag itself intact.

I don't recall any changes that would have just now introduced this, can you check back with an earlier version and see if it's always been like that before submitting a ticket.

Also, this brings me to my next problem, of course I can manually delete the <p>-tags from the source view, but I thought maybe HTMLTidy could be able to solve it quickly,

I wouldn't imagine so, <p> within <li> is AFAIK perfectly valid markup, there is no reason for tidy to remove it.

but nomatter what I try, as soon as I click on the tidy button, my COMPLETE editor is emptied, nowhere to be found again....

Try the SuperClean plugin, HTMLTidy is somewhat deprecated.  However, do submit a ticket for HTMLTidy at low priority (or fix it if you dare).

Another thing that I noticed is that when loading Xinha in FF, it goes pretty fast, almost unnoticable, however when loading in IE, it takes quite some time and you see the counter in the lower left corner telling you that only 48 other items are remaining. Can anyone explain what causes the difference?

Yes, the answer is that IE is shite smile  There havn't been any changes to cause that recently.  Check your cache settings.

#713 Re: User Discussion & Help » Multi configuration editor » 2005-05-24 17:08:05

It is up to gogo to decide...

Once version 1 is done, the toolbars system is due for a rethink and rewrite, I want to clean that whole thing up and am thinking about having "named" groups in toolbars so that a plugin can insert a button into a certain group of buttons (eg insert a button into the "character" group, or into the "lists" group or the "control" group etc....) rather than just smushing them onto the start or end of the bar without any care.

At the same time we will take a look at allowing for expanding and contracting the groups in the toolbar with a handle on the edge of each group and perhaps even rearranging them via drag-drop and saving the positions in a cookie, now that would be cool.

We may take a look at implementing progressive loading of plugins also, however I'm still not convinced that it's worth the extra trouble to save a few seconds of loading time.

#714 Re: User Discussion & Help » textarea error - if multiple textareas on document » 2005-05-24 17:00:50

Your source shows that you are not entitizing the data you are putting into your textarea..

<textarea id="page_content" name="page_content" accesskey="h" style="width:600; height:250">                <span class="bHead">Kontakt<br>

<table align="center" width="100%">
<tbody><tr><td rowspan="2" width="15%"> </td><td class="nText">Vielen Dank fr Ihr Interesse!<br>
   Wir freuen uns auf Ihre Kontaktaufnahme und werden uns umgehend mit Ihnen in Verbindung setzen.<br> <br>
   </td></tr>
   <tr>
 <td class="nText" align="left">

you should entitize data put into textareas (change at least < to < > to > and & to &).

#715 Re: User Discussion & Help » config.baseHref <-> config.baseUrl » 2005-05-20 02:37:48

If it's not used, then it's a candidate for removal smile

#716 Re: User Discussion & Help » Changing the link created by linker. » 2005-05-19 22:58:09

aldoh: copy the Linker backend (scan.php in plugins/Linker), modify it to suit your needs, and set config.Linker.backend to point to your new backend.  It's fairly straight forward PHP code.

Also see the Linker plugin wiki page which details the structure that gets returned and alternative ways to supply it - http://xinha.python-hosting.com/wiki/Linker

#717 Re: User Discussion & Help » Spanish characters doesnt show!! » 2005-05-19 22:53:05

aldoh: as niko says, you need to give more information.  What character sets are involved?  The recommended is utf-8 all the way, but iso-8859-1 should be OK too.

#718 Re: User Discussion & Help » Linker for spanish speakers? » 2005-05-19 22:51:26

aldoh: sounds like a bug if it's replacing the special characters with just '?', submit a ticket please.

#719 Re: User Discussion & Help » PHP specific fork of Xinha » 2005-05-19 14:54:31

Have you checked out O'reilly's Dynamic HTML the Definitive Reference book? Without it I would never have been able to come up to speed on this stuff. It's a very good reference that details all the differences between NS, DOM and IE on an interface by interface basis ..

Nope, never had a book on JS or DHTML or anything, google is my best friend smile

#720 Re: User Discussion & Help » PHP specific fork of Xinha » 2005-05-19 13:36:45

For it to work for me I'd have to recreate EnterParagraphs for MSIE to do the same thing.

I suspect that you have no chance of doing that.  IE's selection and range interfaces are pretty lack lustre as I remember.  Even without any documentation for Gecko's selection object it's easier to work with than IE.

#721 Re: User Discussion & Help » PHP specific fork of Xinha » 2005-05-19 13:08:02

At this point I've given up on the EnterParagraphs plugin for the time being. I just don't have enough time to fix it for every case; but I will go back to it at some point. I'd really like MSIE and Gecko to generate the same HTML.

Don't forget the reason for EP (and dom_checkInsertP) in the first place isn't just to get Moz and IE to produce the same code, it's to get Moz to produce code that's usefully manipulable with CSS smile

#722 Re: User Discussion & Help » Insert Image after current selection / select two nodes » 2005-05-19 12:00:26

You need to work with a range object to do that.  It's different (completely) between IE and gecko, and I don't remember how sorry.

#724 Re: User Discussion & Help » Potential solution of designMode = 'on' problems in Gecko. » 2005-05-19 03:31:35

http://www.unix.org.ua/orelly/web/jscript/ch10_07.html

So yes, I think the point must be moot and the current code must stop executing before the event can fire.

#725 Re: User Discussion & Help » Potential solution of designMode = 'on' problems in Gecko. » 2005-05-19 03:28:49

It seems like either there's some side-effect of how the multithreading works that the onLoad event is cached somehow .. might be a side-effect of how addEventListener works. I'll have to test it without debugging messages, but if anything you would expect the trace messages to slow everything down allowing the race condition to occur.

I'll have to plead ignorance on how threading happens in javascript.  It may be that events (and timeouts etc) won't fire until tbere are no instructions to be executed, that is, they wouldn't fire until generate has done.  Essentially that the event "threads" are synchronised into a single thread.

Board footer

Powered by FluxBB