From jean-nicolas.gereone@st.com Mon Jun 05 04:15:44 2006 Received: from fra-del-04.spheriq.net ([195.46.51.100]) by shale.socialtext.net with esmtp (Exim 4.52) id 1FnD3f-0005Ii-QR for wikiwyg-dev@wikiwyg.net; Mon, 05 Jun 2006 04:15:44 -0700 Received: from fra-out-02.spheriq.net (fra-out-02.spheriq.net [195.46.51.130]) by fra-del-04.spheriq.net with ESMTP id k55BEhpZ032343 for ; Mon, 5 Jun 2006 11:14:43 GMT Received: from fra-cus-02.spheriq.net (fra-cus-02.spheriq.net [195.46.51.38]) by fra-out-02.spheriq.net with ESMTP id k55BEdd1018522 for ; Mon, 5 Jun 2006 11:14:40 GMT Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by fra-cus-02.spheriq.net with ESMTP id k55BEZhI001395 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=OK) for ; Mon, 5 Jun 2006 11:14:37 GMT Received: from zeta.dmz-eu.st.com (ns2.st.com [164.129.230.9]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 16B9FDA42 for ; Mon, 5 Jun 2006 11:14:31 +0000 (GMT) Received: from mail3.cro.st.com (mail3.cro.st.com [164.129.40.133]) by zeta.dmz-eu.st.com (STMicroelectronics) with ESMTP id E0AD54741E for ; Mon, 5 Jun 2006 11:14:30 +0000 (GMT) Received: from [164.129.45.60] (crx760.cro.st.com [164.129.45.60]) by mail3.cro.st.com (MOS 3.5.8-GR) with ESMTP id CGH07323 (AUTH "jean gereone"); Mon, 5 Jun 2006 13:14:29 +0200 (CEST) Message-ID: <44841215.5020004@st.com> Date: Mon, 05 Jun 2006 13:14:29 +0200 From: Jean-Nicolas GEREONE User-Agent: Thunderbird 1.5.0.2 (X11/20060427) MIME-Version: 1.0 To: wikiwyg-dev@wikiwyg.net Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-O-Spoofed: Not Scanned X-O-General-Status: No X-O-Spam1-Status: Not Scanned X-O-Spam2-Status: Not Scanned X-O-URL-Status: Not Scanned X-O-Virus1-Status: No X-O-Virus2-Status: Not Scanned X-O-Virus3-Status: No X-O-Virus4-Status: No X-O-Virus5-Status: Not Scanned X-O-Image-Status: Not Scanned X-O-Attach-Status: Not Scanned X-SpheriQ-Ver: 4.2.01 Subject: [Wikiwyg-dev] Changed : do_table function in wysiwyg mode X-BeenThere: wikiwyg-dev@wikiwyg.net X-Mailman-Version: 2.1.5 Precedence: list List-Id: wikiwyg-dev.wikiwyg.net List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 Jun 2006 11:15:44 -0000 Hi, I have changed "proto.do_table" function in Wysiwyg.js in order to allow the user to enter a number of rows and cols. It works on Wikiwyg 0.12 with IE and firefox. If it can help, here is the function : ------------------------------------------------- proto.do_table = function() { var rows = prompt("Number of rows"); var cols = prompt("Number of columns"); // Test if variables are valid numbers if( isNaN(rows) == true || isNaN(cols) == true ||(rows = parseInt(rows).toFixed(0)) <= 0 ||(cols = parseInt(cols).toFixed(0)) <= 0) { alert("Please enter positive numbers"); return false; } var html = ''; for(i=0; i"; for(var j=0;j "; } html = html + ""; } html = html + "
"; if (! Wikiwyg.is_ie) this.get_edit_window().focus(); this.insert_table(html); } ------------------------------------------------- Cheers. Jean-Nicolas. From jean-nicolas.gereone@st.com Thu Jun 22 06:11:58 2006 Received: from lon-del-04.spheriq.net ([195.46.50.101]) by shale.socialtext.net with esmtp (Exim 4.52) id 1FtOyU-00031F-DI for wikiwyg-dev@wikiwyg.net; Thu, 22 Jun 2006 06:11:58 -0700 Received: from lon-out-03.spheriq.net ([195.46.50.131]) by lon-del-04.spheriq.net with ESMTP id k5MDBiZB023499 for ; Thu, 22 Jun 2006 13:11:45 GMT Received: from lon-cus-01.spheriq.net (lon-cus-01.spheriq.net [195.46.50.37]) by lon-out-03.spheriq.net with ESMTP id k5MDBiJv002286 for ; Thu, 22 Jun 2006 13:11:44 GMT Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by lon-cus-01.spheriq.net with ESMTP id k5MDBdTY021023 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=OK) for ; Thu, 22 Jun 2006 13:11:43 GMT Received: from zeta.dmz-eu.st.com (ns2.st.com [164.129.230.9]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 28BE5DA43 for ; Thu, 22 Jun 2006 13:11:31 +0000 (GMT) Received: from mail3.cro.st.com (mail3.cro.st.com [164.129.40.133]) by zeta.dmz-eu.st.com (STMicroelectronics) with ESMTP id CD794474B6 for ; Thu, 22 Jun 2006 13:11:30 +0000 (GMT) Received: from [164.129.45.60] (crx760.cro.st.com [164.129.45.60]) by mail3.cro.st.com (MOS 3.5.8-GR) with ESMTP id CGJ79208 (AUTH "jean gereone"); Thu, 22 Jun 2006 15:11:29 +0200 (CEST) Message-ID: <449A9701.5070000@st.com> Date: Thu, 22 Jun 2006 15:11:29 +0200 From: Jean-Nicolas GEREONE User-Agent: Thunderbird 1.5.0.2 (X11/20060427) MIME-Version: 1.0 To: wikiwyg-dev@wikiwyg.net, Jean-Nicolas GEREONE Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-O-Spoofed: Not Scanned X-O-General-Status: No X-O-Spam1-Status: Not Scanned X-O-Spam2-Status: Not Scanned X-O-URL-Status: Not Scanned X-O-Virus1-Status: No X-O-Virus2-Status: Not Scanned X-O-Virus3-Status: No X-O-Virus4-Status: No X-O-Virus5-Status: Not Scanned X-O-Image-Status: Not Scanned X-O-Attach-Status: Not Scanned X-SpheriQ-Ver: 4.2.01 Subject: [Wikiwyg-dev] Insert table in wysiwyg mode on internet explorer X-BeenThere: wikiwyg-dev@wikiwyg.net X-Mailman-Version: 2.1.5 Precedence: list List-Id: wikiwyg-dev.wikiwyg.net List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Jun 2006 13:11:58 -0000 Hi all, I have installed wikiwyg on phpwiki and I have an issue with IE. It seems that when you are in wysiwyg mode and you click on the table button without clicking in the iframe area or if you have clicked out of the iframe area before, IE add the table in your html document. Have someone ever seen this bug ? Maybe is it fixed ? Thanks in advance. Cheers. Jean-Nicolas. From jean-nicolas.gereone@st.com Thu Jun 22 07:42:29 2006 Received: from fra-del-03.spheriq.net ([195.46.51.99]) by shale.socialtext.net with esmtp (Exim 4.52) id 1FtQO5-0003To-0J for wikiwyg-dev@wikiwyg.net; Thu, 22 Jun 2006 07:42:29 -0700 Received: from fra-out-03.spheriq.net (fra-out-03.spheriq.net [195.46.51.131]) by fra-del-03.spheriq.net with ESMTP id k5MEg0wn003421 for ; Thu, 22 Jun 2006 14:42:10 GMT Received: from fra-cus-01.spheriq.net (fra-cus-01.spheriq.net [195.46.51.37]) by fra-out-03.spheriq.net with ESMTP id k5MEfxK9000545 for ; Thu, 22 Jun 2006 14:42:00 GMT Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by fra-cus-01.spheriq.net with ESMTP id k5MEfwCh001584 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=OK) for ; Thu, 22 Jun 2006 14:41:59 GMT Received: from zeta.dmz-eu.st.com (ns2.st.com [164.129.230.9]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id E4C84DB76 for ; Thu, 22 Jun 2006 14:36:00 +0000 (GMT) Received: from mail3.cro.st.com (mail3.cro.st.com [164.129.40.133]) by zeta.dmz-eu.st.com (STMicroelectronics) with ESMTP id A4C2A47516 for ; Thu, 22 Jun 2006 14:36:00 +0000 (GMT) Received: from [164.129.45.60] (crx760.cro.st.com [164.129.45.60]) by mail3.cro.st.com (MOS 3.5.8-GR) with ESMTP id CGJ80890 (AUTH "jean gereone"); Thu, 22 Jun 2006 16:35:59 +0200 (CEST) Message-ID: <449AAACF.4070904@st.com> Date: Thu, 22 Jun 2006 16:35:59 +0200 From: Jean-Nicolas GEREONE User-Agent: Thunderbird 1.5.0.2 (X11/20060427) MIME-Version: 1.0 To: wikiwyg-dev@wikiwyg.net References: <449A9701.5070000@st.com> In-Reply-To: <449A9701.5070000@st.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-O-Spoofed: Not Scanned X-O-General-Status: No X-O-Spam1-Status: Not Scanned X-O-Spam2-Status: Not Scanned X-O-URL-Status: Not Scanned X-O-Virus1-Status: No X-O-Virus2-Status: Not Scanned X-O-Virus3-Status: No X-O-Virus4-Status: No X-O-Virus5-Status: Not Scanned X-O-Image-Status: Not Scanned X-O-Attach-Status: Not Scanned X-SpheriQ-Ver: 4.2.01 Subject: [Wikiwyg-dev] Re: Insert table in wysiwyg mode on internet explorer X-BeenThere: wikiwyg-dev@wikiwyg.net X-Mailman-Version: 2.1.5 Precedence: list List-Id: wikiwyg-dev.wikiwyg.net List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Jun 2006 14:42:29 -0000 Ok, I found it :) Have to replace at the end of the "wysiwyg.js" script the function bellow : proto.insert_table = function(html) { var doc = this.get_edit_document(); var range = this.get_edit_document().selection.createRange(); if(range.parentElement().isContentEditable == false){ alert("Please click where you want to insert the table"); return; } if (range.boundingTop == 2 && range.boundingLeft == 2) return; range.pasteHTML(html); range.collapse(false); range.select(); } Cheers. Jean-Nicolas. Jean-Nicolas GEREONE wrote: > Hi all, > > I have installed wikiwyg on phpwiki and I have an issue with IE. > > It seems that when you are in wysiwyg mode and you click on the table > button without clicking in the iframe area or if you have clicked out > of the iframe area before, IE add the table in your html document. > > Have someone ever seen this bug ? > > Maybe is it fixed ? > > Thanks in advance. > > Cheers. > Jean-Nicolas.