Jump to content

User talk:Cobaltcigs/IllWill.js

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia

Support syntax highlighting

[edit]

@Cobaltcigs Piotrus recently pointed out that this script doesn't work in the WikiEditor when syntax highlighting is enabled to fix that:

  1. Replace the textbox variable with var $textbox = $( '#wpTextbox1' );
  2. Replace lines 63-64 with
    	if(!$textbox.length) { alert("can't find the textbox"); return; }
    	var wl = $textbox.textSelection('getContents').match(/\[\[[^\[\]\n]+\]\]/g);
    
    and other instances of textbox.value similarly
  3. Except for line 163 textbox.value = t;, which should be replaced with $textbox.textSelection('setContents', t);

Aaron Liu (talk) 03:37, 2 February 2025 (UTC)[reply]

 Not done as to the interface administrator edit request, this user is active and may of course decide to update their script if they choose, and has already been notified above. — xaosflux Talk 15:31, 6 February 2025 (UTC)[reply]