Announcement

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

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

For that matter how does the panel code work. Is that a race condition as well? Does the iframe.src get loaded "in the background"?

What part of the panel code in particular?  When you set .src on an iframe/image/script whatever it's done asynchronously, yes (well, as far as I know).

#727 Re: User Discussion & Help » Potential solution of designMode = 'on' problems in Gecko. » 2005-05-19 02:11:48

I wonder if we even need to set the src in the first place.  If we droped that then the iframe would perhaps be ready to go as soon as we create it and we could then go straight into initIframe from the tail of generate, no need for timeouts or events.

I guess mish must have put it there for some reason though, so perhaps it just doesn't work without some src.

#728 Re: User Discussion & Help » Potential solution of designMode = 'on' problems in Gecko. » 2005-05-19 02:06:27

I'm not sure, but I think you have a race condition in your new code, currently I believe the sequence is...

1. create iframe
2. set iframe.src
3. ... some stuff
4. add onload event to iframe

what happens if the iframe finishes loading while step 3 is happening?  You might think it simply a matter of moving the event attachment prior to the iframe src, but that could mean that the initIframe is attempted before the rest of generate is finished?

#729 Re: User Discussion & Help » Initial font format, help!!! » 2005-05-19 00:42:28

Did you try reordering the fonts in the config?

#730 Re: User Discussion & Help » Potential solution of designMode = 'on' problems in Gecko. » 2005-05-18 05:52:25

Lets try that reply again..

It was endless looping on me and I couldn't figure out why. It looked like every time it went to refresh that it triggered the event again

Hmm, well, I don't know.  I would have expected it to fire once when the document (about:blank) is loaded.  But I guess it may fire again when we do doc.close() because essentially we have replaced the document (illustrated by the insertion into the history list) - of course whether that's an intended behaviour or a bug related to the history insertion I couldn't say.

removeEventListener should work, but you may not be able to do that from within the event listener itself as I loosly recall.  So perhaps just setting the boolean is the best way around it.

#731 Re: User Discussion & Help » Developers: Release buildup » 2005-05-18 03:53:23

Is there any way to specify the environment used to help ticket selection?

No, not really.  Ticket submitters could use the keywords field for that if it's specific to a certain platform.

Perhaps severity should be defined by ticket issuer and priority by xinha team?

Sounds good to me.

#732 Re: User Discussion & Help » Potential solution of designMode = 'on' problems in Gecko. » 2005-05-17 23:10:28

PS: What's the purpose of editor.isGenerated ?  Shouldn't

  if ( HTMLArea.is_gecko )
  {
    this._iframe.addEventListener("load",
      function(e)
      {
        editor.initIframe();
        return true;
      },
     false);
  }

do the job?

#733 Re: User Discussion & Help » Potential solution of designMode = 'on' problems in Gecko. » 2005-05-17 23:06:28

Interesting (and a much better way of doing it BTW).  I wonder if the delay is due to the src we are setting on the iframe.  I have found that recently (last few months) my F/fox installs have been having trouble with local connections, they just get slower, and slower, and slower.  Restart the fox and it's quick again for a while.  It's not anythign to do with Xinha, this is totally without Xinha even in the picture. 

I havn't been able to find any relevant bug reports about it though so I thought it was probably just me.

#735 Re: User Discussion & Help » eval and functions » 2005-05-17 22:52:41

Hmmmm.

There is something else to consider - debugging, and error messages in general.  If we use XMLHTTPRequest and then eval then the browser can't tie the code to a filename, which makes debugging much harder.

I think we need to stick with inserting script tags in this case.  I'll rewrite loadplugin and loadplugins to solve the problem in 226 .

#736 Re: User Discussion & Help » eval and functions » 2005-05-17 13:20:42

because with that we would not have any problem

But would have a lot of changes :-(

What is the reason we should try and use XMLHTTPRequest anyway when just inserting a script into the dom seems to work fine?

#737 Re: User Discussion & Help » eval and functions » 2005-05-17 12:15:28

Exactly.  That was why I didn't go with XMLHTTPRequest to load plugins.  I couldn't come up with any way of getting the code to be evaluated in the global scope (technically the scope of window).

I'm pretty sure I mentioned that somewhere in the past?

Did you have a look at the code that the dude who was working on the Safari stuff did?  How did he do it?

#740 Re: User Discussion & Help » update contents of an editor » 2005-05-16 22:46:53

xinha_editors.yourEditor.setEditorContent()
xinha_editors.yourEditor.getEditorContent()

#741 Re: User Discussion & Help » IE problem with DOCTYPE » 2005-05-16 05:43:34

Be more specific, what doesn't work?

#742 Re: User Discussion & Help » gecko/DOM question - lists and default ENTER key behavior? » 2005-05-16 01:56:14

Yes thats what I would have thought, but the selection object for Gecko isn't documented, so it would probably be a matter of experimentation to get it working.

If letting it drop through to the browser works, whats wrong with that?

#743 Re: User Discussion & Help » gecko/DOM question - lists and default ENTER key behavior? » 2005-05-16 00:15:47

Taken from dom_checkInsertP this should help

  var sel = this._getSelection();
  sel.removeAllRanges();
  sel.collapse(newblock,0);

that would put the cursor at offset 0 inside newblock (which is just a dom element).

#744 Re: User Discussion & Help » what's wrong with dom_checkInsertP()? » 2005-05-14 01:46:20

What are the problems with HTMLArea.prototype.dom_checkInsertP()?
Why is it considered a worse alternative to EnterParagraphs?

http://www.htmlarea.com/forum/htmlArea_ … gine#37530

#745 Re: User Discussion & Help » svn:external / TortoiseSVN / Xinha » 2005-05-13 02:52:50

imho if you use xinha for a cms in production it is dangerous to use the nightly direct from svn!

If you don't at least do a cursory test first, yes smile

Chuck:
for one way see this section of the subversion docs, http://svnbook.red-bean.com/en/1.0/ch07 … 7-sect-4.1
but you might be able to get away with using svn merge, heres how (don't know if this works, worth a try)...

For this example I'll denote revisions in the Xinha svn as X.<rev> and in your own svn as Y.<rev>

To get setup

1. svn export http://svn.xinha.python-hosting.com/trunk wc; cd wc
...this exports a copy of Xinha at revision X.a

2. svn import <Y repos>
...import this into your repository at revsion Y.b

3. Make local changes in your version, after some time you are at rev Y.d

... in the meantime Xinha has progressed to X.e and you want to bring in those changes from us ...

4.  svn co -rY.b <Y repos> wc; cd wc
... this checks out a clean copy of the version of Xinha you imported, ready to be "upgraded"

5. svn merge -rX.a:X.e http://svn.xinha.python-hosting.com/trunk .
... this should merge the changes from X.a (the one you originally imported) to X.e (the latest one) in the Xinha svn into your Y.b revision working copy

6. svn update
... this will update the working copy (which is now X.e) with all the local changes you have made locally up to Y.d

7. resolve any conflicts that might have occurred

8. svn ci -m "Merging changes from Xinha, now at Xinha Rev:X.e"
... this checks in everything, you are now at Y.e

From this point on you just follow this procedure...

9. make more changes, say now you're at Y.g and Xinha is at X.h
10. svn co -rY.e <Y repos> wc; cd wc #get the revision where you synced at X.e previously
11. svn merge -rX.e:X.h http://svn.xinha.python-hosting.com/trunk . #bring in the X.h changes
12. svn update # bring in your local changes (in this case Y.f and Y.g)
13. resolve conflicts
14. svn ci -m "Merging changes from Xinha, now at Xinha Rev:X.h" # commit it


Of course I've shown all this using the command line client, you can do the same thing with Tortoise or whatever, just substitute mouse clicks for commands as appropriate wink

#746 Re: User Discussion & Help » EnterParagraphs dangling section conflict with HTMLArea.getHTMLWrapper » 2005-05-13 01:56:29

<p> </p> would be the traditional way of inserting a "blank line" I think, at least around these parts, pretty sure this is what DW produces if you hit enter a bunch of times.  I think that's what you are asking?

#747 Re: User Discussion & Help » new plugins submitted by gocher » 2005-05-11 21:35:58

imho we do not need hundreds of smilies in the subversion repository and in the nightly builds - just a few as example would be enough. of course somewhere a download link to all those is a must

I wouldn't worry about that too much, I expect that we'll have to make a "Core" package which includes only the core and a couple of important plugins (enterparagraphs, fullscreen) and a "Plugins" package anyway, and perhaps even a package for each plugin.  All automatically of course.

It would be nice though to know where the smileys came from, and what the status of copyright/licencing is on them.

#748 Re: User Discussion & Help » alert window for safari users? » 2005-05-11 21:26:39

Just put it in the <head> of your document, sniff the browser and display the alert if it's safari.  There are many, many browser sniffing scripts out there, google is your friend.

#749 Re: User Discussion & Help » Safari 2.0 -- will we be compatible? » 2005-05-11 21:23:57

will: almost certainly won't right now, Xinha is full of things to work around problems in both IE and Mozilla as while similar in implementation of contentEditable/designMode they are different - I expect Safari will be different again and require some specialised code.

It's a bit difficult for me to develop for safari, seeing as I don't actually have a mac.

#750 Re: User Discussion & Help » Xinha with IE » 2005-05-11 06:48:05

Did you click inside the editor first?  Using the imagemanager or the built in?  How can we fix problems if people don't say what they are!

Board footer

Powered by FluxBB