BootstrapMediaWiki icon indicating copy to clipboard operation
BootstrapMediaWiki copied to clipboard

Support for VisualEditor

Open codeThatThinks opened this issue 11 years ago • 5 comments

Please add support for the VisualEditor extension.

codeThatThinks avatar Oct 30 '14 20:10 codeThatThinks

...Word...

Love your skin and the flexibility. But absolutely need the support for VisualEditor! Thanks for your work.

s1rd4v3 avatar Jan 15 '15 22:01 s1rd4v3

Need VisualEditor support too. Thanks!

Reasno avatar Feb 08 '15 14:02 Reasno

Same here ! Visual Editor Please!

CrispyCrafter avatar Oct 02 '17 12:10 CrispyCrafter

I have managed to hack my way into getting visual editor working. Will update once all functionality is sorted out.

CrispyCrafter avatar Oct 02 '17 15:10 CrispyCrafter

The solution was achieved by implementing the following changes:

  1. LocalSettings.php Add the following code to the end of LocaSettings.php
$wgVisualEditorSupportedSkins = [
                        "vector",
                        "apex",
                        "monobook",
                        "minerva",
                        "blueprint",
                        "bootstrapmediawiki"
                ];
  1. BootstrapMediaWiki.skin.php Replace line 230 with the following:
 <div class="body" >
as 
 <div class="body" id="content">

Replace line 444 with the following:

case 'Edit': $icon = 'pencil'; break; 
as 
case 'Edit': $icon = 'pencil'; $id='ca-ve-edit'; break;

replace line 453 with the following:

$link['title'] = '<i class="fa fa-' . $icon .'" ></i> ' . $link['title'];
as
$link['title'] = '<i class="fa fa-' . $icon .'" id="' . $id .'" ></i> ' . $link['title'];

I know it's rough, hope this helps though

CrispyCrafter avatar Oct 02 '17 16:10 CrispyCrafter