Visual Editor button does not appear
conathan opened this issue · comments
Nathan Coulson commented
Using MediaWiki 1.35.x, but found that the Visual Editor Edit button does not appear.
(which I manage to add using the following)
$this->renderNavigation(array('VE-EDIT'));
(...)
case 'VE-EDIT':
if (!array_key_exists('ve-edit', $this->data['content_actions'])) {
break;
}
$navTemp = $this->data['content_actions']['ve-edit'];
if ($navTemp) {
?>
<ul class="nav navbar-nav">
<li>
<a id="b-vedit" href="<?php echo $navTemp['href']; ?>" class="btn btn-default">
<i class="fa fa-edit"></i> <strong><?php echo $navTemp['text']; ?></strong>
</a>
</li>
</ul>
<?php
}
break;
Although once the button was available, clicking it did not do anything noticeable
Nathan Coulson commented
And manage to get it to render now, I had to use id="ca-edit" and not id="b-vedit" on the edit button. As per https://www.mediawiki.org/wiki/Extension:VisualEditor/Skin_requirements