name === trans('entities.pages_initial_name'))
option:page-editor:has-default-title="true"
@endif
option:page-editor:editor-type="{{ $editor }}"
option:page-editor:page-id="{{ $model->id ?? '0' }}"
option:page-editor:page-new-draft="{{ $isDraft ? 'true' : 'false' }}"
option:page-editor:draft-text="{{ ($isDraft || $isDraftRevision) ? trans('entities.pages_editing_draft') : trans('entities.pages_editing_page') }}"
option:page-editor:autosave-fail-text="{{ trans('errors.page_draft_autosave_fail') }}"
option:page-editor:editing-page-text="{{ trans('entities.pages_editing_page') }}"
option:page-editor:draft-discarded-text="{{ trans('entities.pages_draft_discarded') }}"
option:page-editor:draft-delete-text="{{ trans('entities.pages_draft_deleted') }}"
option:page-editor:draft-delete-fail-text="{{ trans('errors.page_draft_delete_fail') }}"
option:page-editor:set-changelog-text="{{ trans('entities.pages_edit_set_changelog') }}">
{{--Header Toolbar--}}
@include('pages.parts.editor-toolbar', ['model' => $model, 'editor' => $editor, 'isDraft' => $isDraft, 'draftsEnabled' => $draftsEnabled])
{{--Title input--}}
@include('form.text', ['name' => 'name', 'model' => $model, 'placeholder' => trans('entities.pages_title')])
{{--Editors--}}
@if($editor === \BookStack\Entities\Tools\PageEditorType::WysiwygLexical)
@include('pages.parts.wysiwyg-editor', ['model' => $model])
@endif
{{--WYSIWYG Editor (TinyMCE - Deprecated)--}}
@if($editor === \BookStack\Entities\Tools\PageEditorType::WysiwygTinymce)
@include('pages.parts.wysiwyg-editor-tinymce', ['model' => $model])
@endif
{{--Markdown Editor--}}
@if($editor === \BookStack\Entities\Tools\PageEditorType::Markdown)
@include('pages.parts.markdown-editor', ['model' => $model])
@endif
@include('pages.parts.editor-toolbox')
{{--Mobile Save Button--}}
{{--Editor Change Dialog--}}
@component('common.confirm-dialog', ['title' => trans('entities.pages_editor_switch_title'), 'ref' => 'page-editor@switch-dialog'])
{{ trans('entities.pages_editor_switch_are_you_sure') }}
{{ trans('entities.pages_editor_switch_consider_following') }}
- {{ trans('entities.pages_editor_switch_consideration_a') }}
- {{ trans('entities.pages_editor_switch_consideration_b') }}
- {{ trans('entities.pages_editor_switch_consideration_c') }}
@endcomponent
{{--Delete Draft Dialog--}}
@component('common.confirm-dialog', ['title' => trans('entities.pages_edit_delete_draft'), 'ref' => 'page-editor@delete-draft-dialog'])
{{ trans('entities.pages_edit_delete_draft_confirm') }}
@endcomponent
{{--Saved Drawing--}}
@component('common.confirm-dialog', ['title' => trans('entities.pages_drawing_unsaved'), 'id' => 'unsaved-drawing-dialog'])
{{ trans('entities.pages_drawing_unsaved_confirm') }}
@endcomponent