Topic on Extension talk:CodeEditor

JS errors in browser console (Chrome)

4
Kellewic (talkcontribs)

I have Syntax Highlighting working and Scribunto working, but this extension throws the following errors in the browser console (not sure why). Using MediaWiki 1.30.0. If I comment CodeEditor from LocalSettings.php the errors go away:

VM116:125 This page is using the deprecated ResourceLoader module "jquery.ui.widget".
VM116:165 This page is using the deprecated ResourceLoader module "jquery.ui.position".
This page is using the deprecated ResourceLoader module "jquery.ui.core".
Please use "mediawiki.ui.button" or "oojs-ui" instead.

jQuery.Deferred exception: $button.data(...) is not a function TypeError: $button.data(...) is not a function
    at Object.updateButtonIcon (<anonymous>:506:280)
    at Object.updateCodeEditorToolbarButton (<anonymous>:506:345)
    at Object.setupCodeEditorToolbar (<anonymous>:505:837)
    at Object.$.wikiEditor.extensions.codeEditor (<anonymous>:516:172)
    at jQuery.fn.init.$.fn.wikiEditor (<anonymous>:36:196)
    at HTMLDocument.<anonymous> (<anonymous>:516:2260)
    at mightThrow (URL/load.php?debug=false&lang=en&modules=jquery%2Cmediawiki&only=scripts&skin=vector&version=0ocu5xa:49:598)
    at process (URL/load.php?debug=false&lang=en&modules=jquery%2Cmediawiki&only=scripts&skin=vector&version=0ocu5xa:50:269) undefined

Do I need to update some JS somewhere? Thanks.

TheDJ (talkcontribs)

What releases of the extensions WikiEditor and CodeEditor are you using ? It might be that they are not the same, and honestly we are bad at keeping compatibility of extensions between the various releases.

Kellewic (talkcontribs)

WikiEditor - 0.5.1

CodeEditor - (229be94)13:40, May 9, 2018

2605:A601:C65:AF00:DBDE:7B53:66F:54FA (talkcontribs)

I ran into this issue too. I had to re-download WikiEditor from the extension page on this site and re-install it. The version that came with my copy of mediawiki claimed to be 0.5.1, but reinstalling the extension still fixed the issue.

Reply to "JS errors in browser console (Chrome)"