1 <div v-pre id="markdown-editor" markdown-editor class="flex-fill flex code-fill">
3 'errors.image_upload_error',
6 <div class="markdown-editor-wrap active">
7 <div class="editor-toolbar">
8 <span class="float left editor-toolbar-label">{{ trans('entities.pages_md_editor') }}</span>
9 <div class="float right buttons">
10 @if(config('services.drawio'))
11 <button class="text-button" type="button" data-action="insertDrawing">@icon('drawing'){{ trans('entities.pages_md_insert_drawing') }}</button>
12 <span class="mx-xs text-muted">|</span>
14 <button class="text-button" type="button" data-action="insertImage">@icon('image'){{ trans('entities.pages_md_insert_image') }}</button>
15 <span class="mx-xs text-muted">|</span>
16 <button class="text-button" type="button" data-action="insertLink">@icon('link'){{ trans('entities.pages_md_insert_link') }}</button>
17 <span class="mx-xs text-muted">|</span>
18 <button class="text-button" type="button" data-action="fullscreen">@icon('fullscreen'){{ trans('common.fullscreen') }}</button>
22 <div markdown-input class="flex flex-fill">
23 <textarea id="markdown-editor-input"
24 @if($errors->has('markdown')) class="text-neg" @endif
26 rows="5">@if(isset($model) || old('markdown')){{ old('markdown') ?? ($model->markdown === '' ? $model->html : $model->markdown) }}@endif</textarea>
31 <div class="markdown-editor-wrap">
32 <div class="editor-toolbar">
33 <div class="editor-toolbar-label">{{ trans('entities.pages_md_preview') }}</div>
35 <iframe srcdoc="" class="markdown-display" sandbox="allow-same-origin"></iframe>
37 <input type="hidden" name="html"/>
43 @if($errors->has('markdown'))
44 <div class="text-neg text-small">{{ $errors->first('markdown') }}</div>