Edit button is not active when visualeditor is on (View button is active instead)
Closed, ResolvedPublic

Description

Edit button is not active when visualeditor is on (View button is active instead)

ruphy created this task.Jul 17 2016, 5:23 PM

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.

It should be fixed by this commit

ruphy moved this task from Backlog to Skin on the WikiToLearn (1.0) board.Sep 7 2016, 12:30 PM
ruphy raised the priority of this task from High to Needs Triage.
grigoletti closed this task as Resolved.Oct 6 2016, 8:23 AM