mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-11-27 10:00:41 +00:00
use editor.md for editing online
This commit is contained in:
parent
6b40e9103a
commit
5cf859becf
|
|
@ -831,7 +831,10 @@ $(document).ready( function() {
|
|||
$items = array();
|
||||
if ($file_exists){
|
||||
if($islatest && $accessobject->mayEditVersion()) {
|
||||
$items[] = array('link'=>$this->html_url('EditOnline', array('documentid'=>$latestContent->getDocument()->getId(), 'version'=>$latestContent->getVersion())), 'icon'=>'edit', 'label'=>'edit_version');
|
||||
if($this->theme == 'bootstrap4')
|
||||
$items[] = array('link'=>$this->html_url('EditMarkdown', array('documentid'=>$latestContent->getDocument()->getId(), 'version'=>$latestContent->getVersion())), 'icon'=>'edit', 'label'=>'edit_version');
|
||||
else
|
||||
$items[] = array('link'=>$this->html_url('EditOnline', array('documentid'=>$latestContent->getDocument()->getId(), 'version'=>$latestContent->getVersion())), 'icon'=>'edit', 'label'=>'edit_version');
|
||||
}
|
||||
}
|
||||
/* Only admin has the right to remove version in any case or a regular
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user