Tags:
create new tag
view all tags

Question

I just installed TWiki this past Monday, the 23rd, as a test system. I was able to install it and get it running without any issues. I downloaded the WYSIWYG plugin on January 24, 2006 at approximately 04:25pm EST. I'm not sure what version that is, but hopefully this information helps. The next day, I installed the plugin. To do this, I launched Cygwin and successfully unzipped the WysiwygPlugin.zip file. I attempted to run WysiwygPlugin_installer.pl, but couldn't figure out how so I just launched CPAN from Cygwin and did a cpan> install HTML::Parser and then cpan> install HTML::Entities. After that I verified they were installed and up to date; they were. Next, I opened the view.pattern.tmpl file (Set SKIN = pattern is what's configured in my TWiki.TWikiPreferences) and inserted a:


<a href="%SCRIPTURLPATH%/edit%SCRIPTSUFFIX%/%WEB%/%TOPIC%?skin=kupu">WYSIWYG</a>

line directly below the:


Edit

line and directly above the:


<a href="%SCRIPTURLPATH%/attach%SCRIPTSUFFIX%/%WEB%/%TOPIC%">Attach</a>

line.

I saved the changes to the file and closed it. I refreshed IE and my "WYSIWYG" link appeared at the top of TWiki, sandwiched between the standard "Edit" and "Attach" links, just as I wanted. Now, if I click the "WYSIWYG" link for a given topic, it appears to work just fine. In fact, it even allows me to edit the topic using the Kupu UI without any problem. My issue arises when I click the save (disk) button that is part of Kupu. When I do this, TWiki returns to the "view" state of that topic (as it should), but the entire content of the topic is deleted and replaced with "undefinedundefined".

Any input is greatly appreciated. (Please be specific in your response - I have a non-technical background, but am comfortable editing files if I know exactly which ones to edit and what edits to make.) Thanks!

Environment

TWiki version: TWiki Release 04-Sep-2004
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS: Windows XP Professional, SP1
Web server: Apache 1.3.34
Perl version: 5.8.7-5
Client OS: Windows XP Professional, SP2
Web Browser: Internet Explorer 6.0
Categories: Fatal error, Plugins

-- JasonVensel - 27 Jan 2006

Answer

ALERT! If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.

I'm wondering if I need to modify the save perl script in /twiki/bin somehow so it recognizes the Kupu editor? Specifically, I'm looking at that file right now and see that there's a use TWiki::UI::Save; line. Maybe there needs to be a use Kupu::UI::Save; line (or something with a similar syntax) in there too (or in place of)?

-- JasonVensel - 27 Jan 2006

This happens to me too! I was all excited that kupu was in TWiki Dakar and working in Firefox, then I remembered I have to support IE too and when I tried it the same thing happened. I used the WYSIWYG builtin to the latest rc1 Dakar release.

-- MikeMoretti - 27 Jan 2006

I think I may have fixed the problem. I'm not sure if this problem only happens with IE in the Kupu integrated in TWiki or with IE in kupu in general (in other apps too). However, I've uploaded a patch that should solve the problem, at least it did for me. This works with Dakar RC1's Wysiwyg plugin. I've also uploaded the actual file itself in case anyone has trouble applying the patch.

-- MikeMoretti - 29 Jan 2006

See related Bugs:Item1529 - WYSIWYG plugin totally broken in IE - deletes entire topic

-- PeterThoeny - 30 Jan 2006

I also made a patch: exclude-comments-pre.patch: adds 2 new values to WYSIWYG_EXCLUDE: pre and comments

This patches the WYSIWYG plugin's WysiwygPlugin.pm file to add 2 more keywords to the WYSIWYG_EXCLUDE variable (on top of calls, variables, html)

  • comments will revert to text editing when trying to kupu-edit topic with any HTML comment in it
  • pre will revert to text editing when trying to kupu-edit topic with any <pre ...> tag in it, as they are not supported curerntly by the plugin.
This is definitely a temporary stopgap measure, waiting for a proper solution, feel free not to apply it.

-- ColasNahaboo - 30 Jan 2006

Folks, thanks for the prompt responses! Since this is a test system for us, I'll try some of your suggestions. I'll also look into the Dakar release for our eventual "live" system. By the way, I'm really impressed with TWiki's feature set and documentation/support. Keep up the good work!

-- JasonVensel - 30 Jan 2006

The attached sarissa.js file worked! I renamed /pub/TWiki/WysiwygPlugin/_kupu/common/sarissa.js to /pub/TWiki/WysiwygPlugin/_kupu/common/sarissa.js.OLD and then copied in the sarissa.js that you folks provided. I then edited a topic using the built-in kupu editor (TWiki Cairo version), edited a topic, clicked the save (disk) button, held my breath, and...it saved successfully! I'm going to take a look at the exclude comments and pre patch now. Thanks again to everyone for their input.

-- JasonVensel - 30 Jan 2006

Topic attachments
I Attachment History Action Size Date Who Comment
Unknown file formatpatch exclude-comments-pre.patch r1 manage 1.2 K 2006-01-30 - 12:00 UnknownUser adds 2 new values to WYSIWYG_EXCLUDE: pre and comments
JavaScriptjs sarissa.js r1 manage 24.7 K 2006-01-29 - 01:19 UnknownUser Fixed file
Unknown file formatpatch sarissa.js.patch r1 manage 1.7 K 2006-01-29 - 01:15 UnknownUser Bug fix to kupu for IE
Edit | Attach | Watch | Print version | History: r8 < r7 < r6 < r5 < r4 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r8 - 2006-01-30 - JasonVensel
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.