mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-23 03:27:05 -04:00
Refactor video-util.ts and rename markdown-preview (#233)
* Refactor video-util.ts * Rename markdown-preview to markdown-renderer and refactor some methods Signed-off-by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de>
This commit is contained in:
parent
5f4cc63eb4
commit
7e9a828d44
25 changed files with 51 additions and 39 deletions
|
@ -6,7 +6,7 @@ import { setEditorModeConfig } from '../../redux/editor/methods'
|
|||
import { Splitter } from '../common/splitter/splitter'
|
||||
import { InfoBanner } from '../landing/layout/info-banner'
|
||||
import { EditorWindow } from './editor-window/editor-window'
|
||||
import { MarkdownPreview } from './markdown-preview/markdown-preview'
|
||||
import { MarkdownRenderer } from './markdown-renderer/markdown-renderer'
|
||||
import { EditorMode } from './task-bar/editor-view-mode'
|
||||
import { TaskBar } from './task-bar/task-bar'
|
||||
|
||||
|
@ -50,7 +50,7 @@ https://vimeo.com/23237102
|
|||
showLeft={editorMode === EditorMode.EDITOR || editorMode === EditorMode.BOTH}
|
||||
left={<EditorWindow onContentChange={content => setMarkdownContent(content)} content={markdownContent}/>}
|
||||
showRight={editorMode === EditorMode.PREVIEW || (editorMode === EditorMode.BOTH)}
|
||||
right={<MarkdownPreview content={markdownContent}/>}
|
||||
right={<MarkdownRenderer content={markdownContent}/>}
|
||||
containerClassName={'overflow-hidden'}/>
|
||||
</div>
|
||||
</Fragment>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue