Last modified: 2010-11-07 17:07:32 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 T26860, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 24860 - Experimental live preview incompatible with wikEd
Experimental live preview incompatible with wikEd
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
UsabilityInitiative (Other open bugs)
unspecified
All All
: Normal normal with 3 votes (vote)
: ---
Assigned To: Trevor Parscal
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2010-08-18 20:02 UTC by Cacycle
Modified: 2010-11-07 17:07 UTC (History)
5 users (show)

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


Attachments

Description Cacycle 2010-08-18 20:02:09 UTC
The experimental live preview interferes with the wikEd editor tool:

Under wikEd, pushing the preview or submit button triggers an event handler that converts and copies the rich text editing iframe in designmode into the standard textarea, which then gets submitted to the server.

The experimental live preview seems to have a handler that reads the textarea before it gets updated by the wikEd handler. Therefore, users have to push the preview button twice in order to see the current live preview. For a peaceful coexistence, the wikEd event must run *before* the live preview event.

Is there already some kind of mechanism, hook, or API to accomplish this? If not, please could you guys come up with a solution to handle such interferences with existing gadgets and userscripts?

Thanks in advance - Cacycle
Comment 1 Cacycle 2010-10-30 18:36:25 UTC
Users of wikEd are still complaining about this. Please could we find a way to fix this? Thanks, Cacycle
Comment 2 Derk-Jan Hartman 2010-10-30 19:28:28 UTC
The trunk http://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3/skins/common/preview.js?revision=72349&view=markup

has a 'LivePreviewPrepare' event that gets triggered before livePreview. Does that satisfy the needs of wikEd ? If so then it was fixed in r66721.

Use it like:
$j( mw ).bind( 'LivePreviewPrepare' , function( event, param1, param2 ){
   // stuff to do at eventName time
});
Comment 3 Cacycle 2010-11-01 22:21:16 UTC
That would be exactly what I need. However, I have just tested the hook on en and the test wiki and I could not get it to work. Is the fix already online somewhere?
Comment 4 Derk-Jan Hartman 2010-11-01 23:20:13 UTC
(In reply to comment #3)
> That would be exactly what I need. However, I have just tested the hook on en
> and the test wiki and I could not get it to work. Is the fix already online
> somewhere?

No, the code is not yet deployed.

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


Navigation
Links