Edit button is not active when visualeditor is on (View button is active instead)
Description
Description
Status | Assigned | Task | ||
---|---|---|---|---|
Resolved | tomaluca | T2880 Upgrade to MW 1.27 and add restbase | ||
Resolved | tomaluca | T1305 Integrate VisualEditor | ||
Invalid | tomaluca | T2895 Check visualeditor bugs | ||
Resolved | grigoletti | T3260 Edit button is not active when visualeditor is on (View button is active instead) | ||
Resolved | ruphy | T3057 Fix templates for Visual Editor | ||
Resolved | ruphy | T3060 Decide an implementation between the template refactor proposals. | ||
Resolved | ruphy | T3061 Adjust the Environment/Theorem/Definition templates | ||
Resolved | davidev | T3062 Create a bot to change existing templates |
Comment Actions
My findings :
The green background to the button is acheived through the class "btn-succes"
https://github.com/WikiToLearn/Neverland/blob/aae7e6d58219097343033e56ade4c9d81d46b7f3/Neverland.php#L716
This is acheived when the $link['attribute'] has a class selected. Now , when I print this $link['attribute'] , it shows a id and class . If the class contains selected , then it the button is activated.
The thing it gets interesting is , if we inspect element the button , this id and class are not visible. Even on , finding element by document.getElementById , the element is not found.