Topic on Extension talk:CodeEditor

How to get the code editor on regular pages?

2
Summary by Kghbln

Works as expected: "Provides a syntax-highlighting code editor for site & user JS, CSS and Lua pages" // No code editor on regular wiki pages, i.e. wiki pages with the "wikitext" content model.

Kghbln (talkcontribs)

I have the following configuration:

wfLoadExtension( 'CodeEditor' );
wfLoadExtension( 'WikiEditor' );
$wgDefaultUserOptions['usebetatoolbar'] = 1;

I get the code editor on pages with a content model out of the box if it is e.g. "json", "css" etc. How do I get this code editor on pages with the content model "wikitext"?

From the very basic docu I understand that I should get some extra button for the wiki editor however I cannot find it.

Not sure what to do. A hint is appreciated. Thanks.

I am on MW 1.31.x

Kghbln (talkcontribs)

Ok, I guess I can self answer: "Provides a syntax-highlighting code editor for site & user JS, CSS and Lua pages".