Commit d1191f37 authored by Micheal Mand's avatar Micheal Mand Committed by Nicolas Widart

Add missing `id` attribute to editor's textarea (#359)

* Add missing `id` attribute to editor's textarea

Without this, it is impossible to add custom config to a single CKEditor
 instance since `CKEDITOR.replace()` uses the `id` of the field, not the
 name.
Signed-off-by: 's avatarMicheal Mand <micheal@kmdwebdesigns.com>

* Fix `id` attribute for i18n editor
Signed-off-by: 's avatarMicheal Mand <micheal@kmdwebdesigns.com>
parent 13a433f2
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
<div class='{{ $errors->has("{$lang}.{$fieldName}") ? ' has-error' : '' }}'> <div class='{{ $errors->has("{$lang}.{$fieldName}") ? ' has-error' : '' }}'>
{!! Form::label("{$lang}[{$fieldName}]", $labelName) !!} {!! Form::label("{$lang}[{$fieldName}]", $labelName) !!}
<textarea class="{{ $editor->getEditorClass() }}" name="{{$lang}}[{{$fieldName}}]" rows="10" cols="80">{{ $slot }}</textarea> <textarea class="{{ $editor->getEditorClass() }}" name="{{$lang}}[{{$fieldName}}]" id="{{$lang}}[{{$fieldName}}]" rows="10" cols="80">{{ $slot }}</textarea>
{!! $errors->first("{$lang}.{$fieldName}", '<span class="help-block">:message</span>') !!} {!! $errors->first("{$lang}.{$fieldName}", '<span class="help-block">:message</span>') !!}
</div> </div>
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
<div class='{{ $errors->has($fieldName) ? ' has-error' : '' }}'> <div class='{{ $errors->has($fieldName) ? ' has-error' : '' }}'>
{!! Form::label($fieldName, $labelName) !!} {!! Form::label($fieldName, $labelName) !!}
<textarea class="{{ $editor->getEditorClass() }}" name="{{ $fieldName }}" rows="10" cols="80">{{ $slot }}</textarea> <textarea class="{{ $editor->getEditorClass() }}" name="{{ $fieldName }}" id="{{ $fieldName }}" rows="10" cols="80">{{ $slot }}</textarea>
{!! $errors->first($fieldName, '<span class="help-block">:message</span>') !!} {!! $errors->first($fieldName, '<span class="help-block">:message</span>') !!}
</div> </div>
......
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