1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-03 07:55:36 +00:00

rich markdown save (#3276)

This commit is contained in:
Michael An
2019-04-13 21:47:01 +08:00
committed by Daniel Pan
parent fe67aa5bae
commit 4136bfda8c

View File

@@ -130,7 +130,7 @@ class MarkdownViewerToolbar extends React.Component {
<i className={'fa fa-spin fa-spinner'}/></button>
:
<IconButton text={gettext('Save')} id={'saveButton'} icon={'fa fa-save'} disabled={!contentChanged}
onMouseDown={window.seafileEditor && window.seafileEditor.onPlainEditorSave} isActive={contentChanged}/>
onMouseDown={window.seafileEditor && window.seafileEditor.onRichEditorSave} isActive={contentChanged}/>
}
</ButtonGroup>
<MoreMenu