From stuart.rutter@bizarrecreations.com Mon Sep 04 08:57:58 2006 Received: from cluster-f.mailcontrol.com ([85.119.2.190]) by shale.socialtext.net with esmtp (Exim 4.52) id 1GKGpi-0006YK-0L for wikiwyg-dev@wikiwyg.net; Mon, 04 Sep 2006 08:57:58 -0700 Received: from bizex01.bizarre2.local (mail.bizarrecreations.com [195.188.17.251]) by rly21f.srv.mailcontrol.com (MailControl) with ESMTP id k84FvZP6031360 for ; Mon, 4 Sep 2006 16:57:49 +0100 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C6D03A.D686A7F3" Date: Mon, 4 Sep 2006 16:57:02 +0100 Message-ID: <1D24D0150FD4154482414DE15DAFDB7F0176B316@bizex01.bizarre2.local> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Wikiwyg at the end of page loading Thread-Index: AcbQOsLs07MMHdm2R0qvsYPRpvRC+g== From: "Stuart Rutter" To: X-Scanned-By: MailControl A-07-04-01 (www.mailcontrol.com) on 10.70.0.131 Subject: [Wikiwyg-dev] Wikiwyg at the end of page loading 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, 04 Sep 2006 15:57:58 -0000 This is a multi-part message in MIME format. ------_=_NextPart_001_01C6D03A.D686A7F3 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Having read the open thread on this mailing list a solution seems to have not been resolved. =20 I need to load the Wikiwyg editor in edit mode (currently activated through the 'edit' link button). =20 - Does anybody have a solution for this? =20 Appreciate any help, =20 Stu =A9 Bizarre Creations Ltd 2006. All rights reserved. This document is confidential and may not be used, forwarded, copied or dis= tributed without the prior written consent of Bizarre Creations Ltd. ------_=_NextPart_001_01C6D03A.D686A7F3 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Having read the open thread on this mailing list a solut= ion seems to have not been resolved.

 

I need to load the Wikiwyg editor in edit mode (currently activated through the ‘edit’ link button).

 

- Does anybody have a solution for this?

 

Appreciate any help,

 

Stu



Copyright Bizarre Creations Ltd 2006. All rights reserved.

This document is confidential and may not be used, forwarded, copied or = distributed without the prior written consent of Bizarre Creations Ltd.

------_=_NextPart_001_01C6D03A.D686A7F3-- From robmry@googlemail.com Tue Sep 26 14:16:23 2006 Received: from nf-out-0910.google.com ([64.233.182.186]) by shale.socialtext.net with esmtp (Exim 4.52) id 1GSKHv-0006a3-1G for wikiwyg-dev@wikiwyg.net; Tue, 26 Sep 2006 14:16:23 -0700 Received: by nf-out-0910.google.com with SMTP id n29so315437nfc for ; Tue, 26 Sep 2006 14:16:21 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=googlemail.com; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=eU468/oF0ieBjyE2ywDND4gvm+/OKdlJLWTf9rxrJ6hP5pS/WCuPISlevoy5ZvfP8qfxLn7OUHmXM1CJbjUrRuqHuQZPtHhu3dVy2y67cRYRT9aUfY+FFPUH3pExd4YJdmBOv/9qgOawvE0biSve2jdr1KnqCC7o7Qx3DXjApL0= Received: by 10.48.210.20 with SMTP id i20mr1524916nfg; Tue, 26 Sep 2006 14:16:21 -0700 (PDT) Received: by 10.49.33.20 with HTTP; Tue, 26 Sep 2006 14:16:21 -0700 (PDT) Message-ID: <8f7516d40609261416x33042fa7xda8814607145a18b@mail.gmail.com> Date: Tue, 26 Sep 2006 22:16:21 +0100 From: "Rob Murray" To: wikiwyg-dev@wikiwyg.net MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Subject: [Wikiwyg-dev] wikitext - drops lines with 'start_lines' formatting? 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: Tue, 26 Sep 2006 21:16:23 -0000 Hi all, First of all, thanks for all the hard work that's gone into Wikiwyg. It's good stuff and I'm close to putting it into service on the modified "UseModWiki" my company uses on its intranet. The main reason for my mail though - the conversion from HTML to wikitext seems to drop parts of 'pre' blocks where the dom has objects inside the block. This can be reproduced in the standalone demo on the wikiwyg.net website by: - type something in a Wysiwyg view - mark it as 'pre' - put a newline in the middle of the new 'pre' text - switch to Wikitext view ... only the 1st 'pre' line will appear. I guess the newline in the html view becomes a '
' in the dom of the 'pre', so to get both lines I think handle_start_lines() now needs to walk the children of the pre rather than just acting on the first. The version below works better for me - not sure it's quite there yet though. The insert_new_line() to replace what I guess was, in this case, a
seems particularly iffy... proto.handle_start_lines = function (element, markup) { if (!element) return; this.assert_blank_line(); for (var part = element.firstChild; part; part = part.nextSibling) { if (part.nodeType == 1) { this.dispatch_formatter(part); } else if (part.nodeType == 3) { this.appendOutput(part.nodeValue.replace(/^/mg, markup[1])); this.insert_new_line(); } } this.assert_blank_line(); } Cheers, Rob.