fix errors for anonymous users in the wiki
parent
8fd60856f9
commit
69c9f03b90
|
@ -238,6 +238,7 @@ EditableWikiContentDirective = ($window, $document, $repo, $confirm, $loading, $
|
|||
$el.on "mouseup", ".view-wiki-content", (event) ->
|
||||
target = angular.element(event.target)
|
||||
return if getSelectedText()
|
||||
return if not isEditable()
|
||||
return if target.is('a')
|
||||
return if target.is('pre')
|
||||
|
||||
|
|
|
@ -24,10 +24,6 @@
|
|||
position: relative;
|
||||
.view-wiki-content {
|
||||
&:hover {
|
||||
.wysiwyg {
|
||||
background: $whitish;
|
||||
cursor: pointer;
|
||||
}
|
||||
.edit {
|
||||
opacity: 1;
|
||||
top: -1.5rem;
|
||||
|
@ -67,4 +63,12 @@
|
|||
top: .4rem;
|
||||
}
|
||||
}
|
||||
&.editable {
|
||||
&:hover {
|
||||
.wysiwyg {
|
||||
background: $whitish;
|
||||
cursor: pointer;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue