Skip to content

Commit

Permalink
Merge pull request #398 from MaRDI4NFDI/edit-code
Browse files Browse the repository at this point in the history
Enable extensions to edito code
  • Loading branch information
Mazztok45 authored Sep 27, 2023
2 parents 24c7fe3 + 9e05b0b commit 885b378
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions mediawiki/LocalSettings.d/CodeEditingExtension.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<?php
wfLoadExtension( 'JsonConfig' );
wfLoadExtension( 'CodeEditor' );
$wgDefaultUserOptions['usebetatoolbar'] = 1; // user option provided by WikiEditor extension
wfLoadExtension( 'CodeMirror' );
// Enables use of CodeMirror by default but still allow users to disable it
$wgDefaultUserOptions['usecodemirror'] = 1;

0 comments on commit 885b378

Please sign in to comment.