User talk:Equazcion/UniversalTransclusionPreviews.js
Interface-protected edit request on 19 January 2019[edit]
This edit request has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
Please change:
if ((wgAction == "edit") || (wgAction == "submit")){
var hidden = '';
to
if ((wgAction == "edit") || (wgAction == "submit")){
var hidden = '';
$("#templatesandbox-editform").remove();
This will remove an element with the same id as the form used in te script, which causes the script to not be able to open the preview. I have tested this with all skins. Danski454 (talk) 11:39, 19 January 2019 (UTC)
- Danski454, not that this fix shouldn't be made, but I'd say you should use User:Jackmcbarn/advancedtemplatesandbox.js instead - does what this script does and also has another nice feature in being able to preview a page as another template. (e.g, preview Template:Foo/sandbox as if it were Template:Foo ) Galobtter (pingó mió) 20:28, 30 January 2019 (UTC)
- Done — Martin (MSGJ · talk) 21:51, 8 February 2019 (UTC)
Incompatible with Visual editor[edit]
This script is most probably incompatible with Visual editor, and someone more knowledgeable may want to update the documentation page noting this fact. Thanks! ---CX Zoom(he/him) (let's talk|contribs) 20:49, 14 February 2022 (UTC)