Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Visual Editor button does not appear #18

Open
conathan opened this issue Sep 22, 2021 · 1 comment
Open

Visual Editor button does not appear #18

conathan opened this issue Sep 22, 2021 · 1 comment

Comments

@conathan
Copy link

conathan commented Sep 22, 2021

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

@conathan
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant