Kupu: uncaught exception
Hi! Sorry for post this question on this list but I ask at kupu list (last wednesday) without success (glups!) Context: Zope 2.7.8-final Plone 2.0.5 Kupu 1.3.9 (the last tested version on 2.0.5) This is the exact error (copied from firebug) uncaught exception: [Exception... "Component returned failure code: 0x80070057 (NS_ERROR_ILLEGAL_VALUE) [nsISelection.getRangeAt]" nsresult: "0x80070057 (NS_ERROR_ILLEGAL_VALUE)" location: "JS frame :: http://192.168.1.38:8110/esadir/kupuhelpers.js :: anonymous :: line 443" data: no] Line 0 When is the error raised: I try to add a button that opens a popup box with some phonetics symbols (you could see some buttons with this symbols and an edit box) When you finish with the popup and push the ok button the error is raised (when kupu try to add the text to the editor) This error is only raised by Firefox (tested on 3.0.1 version on ubuntu and windows) On IE if you selected text all is ok but if there are no text selected the phonetics text is inserted at the begining of the block (<p> or similar) not at cursor position This is the command I use to make this addition: this.createFonetica = function(texte) { var fonetica = this.editor.getInnerDocument().createElement('span'); fonetica.appendChild(this.editor.getInnerDocument().createTextNode(texte)); fonetica.className = 'transcripcioFonetica'; fonetica = this.editor.insertNodeAtSelection(fonetica, 1); this.editor.logMessage(_('Fonetica inserted')); this.editor.updateState(); return fonetica; }; The problems seems to be the insertNodeAtSelection but no help at google (at least I don't find no one) Could someone point me to the correct solution? Need more information? Thank you so much! -- Mis Cosas http://blogs.sistes.net/Garito Zope Smart Manager http://blogs.sistes.net/Garito/670
On Wed, Sep 3, 2008 at 9:07 AM, Garito <garito@sistes.net> wrote:
Hi! Sorry for post this question on this list but I ask at kupu list (last wednesday) without success (glups!)
This is a Javascript/Kupu issue with Gecko, not a Zope one. Did you ask your question in any JavaScript forums/lists as I already suggested to you?
Context: Zope 2.7.8-final Plone 2.0.5 Kupu 1.3.9 (the last tested version on 2.0.5)
I suggest trying Kupu 1.4.x anyways despite it isn't tested with plone-2.0.5.
[...snip...]
The problems seems to be the insertNodeAtSelection but no help at google (at least I don't find no one)
Could someone point me to the correct solution?
I've googled myself and I've found a few interesting results: http://dev.fckeditor.net/ticket/321 http://tinymce.moxiecode.com/punbb/viewtopic.php?id=5124 -- Israel Saeta Pérez http://dukebody.com
Hi Israel! Thanks for your quick response Did you read the information in the links you send? The 0x80070057 exception is, I think, a very generic one I don't have any display style on this page Anyone knows if a more recent version of kupu works ok in Plone 2.0.5? (perhaps changing the kupu version solves the problem but 1.3.9 is the last tested version) Sorry and thanks! ;) 2008/9/3 Israel Saeta Pérez <dukebody@gmail.com>
On Wed, Sep 3, 2008 at 9:07 AM, Garito <garito@sistes.net> wrote:
Hi! Sorry for post this question on this list but I ask at kupu list (last wednesday) without success (glups!)
This is a Javascript/Kupu issue with Gecko, not a Zope one. Did you ask your question in any JavaScript forums/lists as I already suggested to you?
Context: Zope 2.7.8-final Plone 2.0.5 Kupu 1.3.9 (the last tested version on 2.0.5)
I suggest trying Kupu 1.4.x anyways despite it isn't tested with plone-2.0.5.
[...snip...]
The problems seems to be the insertNodeAtSelection but no help at google (at least I don't find no one)
Could someone point me to the correct solution?
I've googled myself and I've found a few interesting results: http://dev.fckeditor.net/ticket/321 http://tinymce.moxiecode.com/punbb/viewtopic.php?id=5124
-- Israel Saeta Pérez http://dukebody.com _______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
-- Mis Cosas http://blogs.sistes.net/Garito Zope Smart Manager http://blogs.sistes.net/Garito/670
participants (2)
-
Garito -
Israel Saeta Pérez