https://bugzilla.wikimedia.org/show_bug.cgi?id=47235

Brad Jorsch <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]
          Component|Scribunto                   |CodeEditor
            Summary|'Show changes' button on    |CodeEditor and the
                   |page editing interface      |experimental "live preview"
                   |always shows an empty diff  |preference are not
                   |for modules on zhwiki       |compatible.

--- Comment #3 from Brad Jorsch <[email protected]> ---
(In reply to comment #0)
> I have live (ajax) preview enabled.

This is the key. It refers to the "Use live preview (requires JavaScript)
(experimental)" preference in the Editing tab.

It appears that this has nothing to do with Scribunto. The problem is that
CodeEditor and the "Use live preview" preference are not compatible: "live
preview" reads out the content of the text box to find the text to diff, but
CodeEditor does not update the (hidden) text box until the form is submitted.
If the toggle button in CodeEditor's UI is used to display the text box, live
preview's diff button works fine.

I imagine that CodeEditor's javascript would need to listen for the
"LivePreviewPrepare" event sent by the live preview javascript (see
resources/mediawiki.action/mediawiki.action.edit.preview.js line 15) and update
the hidden text box so live preview is able to find the updated text.

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to