Last modified: 2011-03-13 18:06:13 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T27972, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 25972 - WikiEditor crashes on Pasting
WikiEditor crashes on Pasting
Status: RESOLVED WONTFIX
Product: MediaWiki extensions
Classification: Unclassified
WikiEditor (Other open bugs)
unspecified
All All
: Lowest normal (vote)
: ---
Assigned To: Trevor Parscal
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2010-11-17 10:11 UTC by admin
Modified: 2011-03-13 18:06 UTC (History)
5 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description admin 2010-11-17 10:11:32 UTC
When trying to paste text (from notepad++) into a file, WikiEditor crashes, no matter if it is from a normal text file (.txt) oder formatted css (.css). Makes the whole browser inaccessible, so you have to close it.

Running MW1.16, WikiEditor 0.2.0, Firefox3.6.12.

By the way: When copying/pasting text from one article to another, WikiEditor somehow adds lots of white-spaces to the text. That remains annoying, although it is not regarded because of css's formatting.

Not sure how (and if) to recommend to reproduce this. You could go here http://k6.juniorwiki.org and try it, but you would have to be logged in to edit. Please remember that your browser will maybe crash, so mind your other work.
Comment 1 Trevor Parscal 2011-01-10 21:54:16 UTC
This sounds like you had the iframe version enabled. Can you confirm if you had the navigable table of contents, template editing or syntax highlighting turned on?
Comment 2 admin 2011-01-11 09:28:39 UTC
(In reply to comment #1)
> This sounds like you had the iframe version enabled. Can you confirm if you had
> the navigable table of contents, template editing or syntax highlighting turned
> on?

In LocalSettings I have indeed:
$wgWikiEditorModules['toolbar']['global'] = true;
$wgWikiEditorModules['toc']['global'] = true;

So, your hint is to turn table of contents off, since that somehow enables the iframe version?
Comment 3 Trevor Parscal 2011-01-11 18:24:25 UTC
Yes, the iframe is unfortunately quite unstable at this time, and may never get the love it will need to become stable. We spent a rediculous amount of time on nailing down all the edge cases to make it work across all modern browsers and were met with a myriad of problems that eventually led us to accept that we either did not have smart enough people working on the problem (I was one of them :P), did not have enough people working on the problem (there were about 4 of us) or don't care enough about the problem to continue working on it.
Comment 4 admin 2011-01-12 09:03:20 UTC
I understand: there were four loving people who were not too keen on caring about their work? Do I get that right?

Honestly, thanks for pointing me to the right direction, although the problem is not to be solved. And sad to hear that the work spent on stabilizing still leads to some problems, at least for some users. I turned the toc off, now the browser doesn't crash anymore. I'm lowering priority to normal.

But two problems still exist. The first is that when pasting the editor adds lots of white-spaces, about 2 per line. And the second is that all the breaks within the pasted text get lost, no matter what origin it comes from (notepad++, wiki). When pasted into the WikiEditor, there will be only one (huge) section.

If you had another useful hint to get along with that, I would be grateful.
Comment 5 Trevor Parscal 2011-01-12 17:30:06 UTC
Where are you copying the content from? We built a copy-paste matrix at one point, identifying the behavior of copying from various sources on various platforms to various browsers. There were lots of issues around copying from rich text editors like Wordpad, Microsoft Word, etc. and into some but not all browsers. I don't recall firefox being the most stubborn of these, but you may have hit on a problem combination. Also, pasting is much more reliable with the Navigable Table of Contents module turned off (with the textarea rather than iframe implementation).
Comment 6 Mark A. Hershberger 2011-02-08 20:53:55 UTC
Trevor was looking at this for you, but you didn't respond.  I'm closing it, but if you're still interested, please reopen this.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links