Ability to customise the editor

parent 84160c26
...@@ -102,3 +102,7 @@ ...@@ -102,3 +102,7 @@
}); });
</script> </script>
@stop @stop
@if ($editor->getEditorJsPartial() !== null)
@include($editor->getEditorJsPartial())
@endif
...@@ -109,3 +109,7 @@ ...@@ -109,3 +109,7 @@
}); });
</script> </script>
@stop @stop
@if ($editor->getEditorJsPartial() !== null)
@include($editor->getEditorJsPartial())
@endif
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
</div> </div>
<div class='{{ $errors->has("{$lang}.body") ? ' has-error' : '' }}'> <div class='{{ $errors->has("{$lang}.body") ? ' has-error' : '' }}'>
{!! Form::label("{$lang}[body]", trans('page::pages.form.body')) !!} {!! 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>') !!} {!! $errors->first("{$lang}.body", '<span class="help-block">:message</span>') !!}
</div> </div>
<?php if (config('asgard.page.config.partials.translatable.create') !== []): ?> <?php if (config('asgard.page.config.partials.translatable.create') !== []): ?>
......
...@@ -15,9 +15,7 @@ ...@@ -15,9 +15,7 @@
<div class='{{ $errors->has("{$lang}.body") ? ' has-error' : '' }}'> <div class='{{ $errors->has("{$lang}.body") ? ' has-error' : '' }}'>
{!! Form::label("{$lang}[body]", trans('page::pages.form.body')) !!} {!! Form::label("{$lang}[body]", trans('page::pages.form.body')) !!}
<?php $old = $page->hasTranslation($lang) ? $page->translate($lang)->body : '' ?> <?php $old = $page->hasTranslation($lang) ? $page->translate($lang)->body : '' ?>
<textarea class="ckeditor" name="{{$lang}}[body]" rows="10" cols="80"> <textarea class="{{ $editor->getEditorClass() }}" name="{{$lang}}[body]" rows="10" cols="80">{!! old("$lang.body", $old) !!}</textarea>
{!! old("$lang.body", $old) !!}
</textarea>
{!! $errors->first("{$lang}.body", '<span class="help-block">:message</span>') !!} {!! $errors->first("{$lang}.body", '<span class="help-block">:message</span>') !!}
</div> </div>
<?php if (config('asgard.page.config.partials.translatable.edit') !== []): ?> <?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