Ability to customise the editor

parent 84160c26
......@@ -102,3 +102,7 @@
});
</script>
@stop
@if ($editor->getEditorJsPartial() !== null)
@include($editor->getEditorJsPartial())
@endif
......@@ -109,3 +109,7 @@
});
</script>
@stop
@if ($editor->getEditorJsPartial() !== null)
@include($editor->getEditorJsPartial())
@endif
......@@ -12,7 +12,7 @@
</div>
<div class='{{ $errors->has("{$lang}.body") ? ' has-error' : '' }}'>
{!! Form::label("{$lang}[body]", trans('page::pages.form.body')) !!}
<textarea class="ckeditor" name="{{$lang}}[body]" rows="10" cols="80">{{ old("{$lang}.body") }}</textarea>
<textarea class="{{ $editor->getEditorClass() }}" name="{{$lang}}[body]" rows="10" cols="80">{{ old("{$lang}.body") }}</textarea>
{!! $errors->first("{$lang}.body", '<span class="help-block">:message</span>') !!}
</div>
<?php if (config('asgard.page.config.partials.translatable.create') !== []): ?>
......
......@@ -15,9 +15,7 @@
<div class='{{ $errors->has("{$lang}.body") ? ' has-error' : '' }}'>
{!! Form::label("{$lang}[body]", trans('page::pages.form.body')) !!}
<?php $old = $page->hasTranslation($lang) ? $page->translate($lang)->body : '' ?>
<textarea class="ckeditor" name="{{$lang}}[body]" rows="10" cols="80">
{!! old("$lang.body", $old) !!}
</textarea>
<textarea class="{{ $editor->getEditorClass() }}" name="{{$lang}}[body]" rows="10" cols="80">{!! old("$lang.body", $old) !!}</textarea>
{!! $errors->first("{$lang}.body", '<span class="help-block">:message</span>') !!}
</div>
<?php if (config('asgard.page.config.partials.translatable.edit') !== []): ?>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment