{{-- Ckeditor snippet for being included in tag @target: HTML selector @attrs: attributes passed in the function call --}} CKEDITOR.replace('{{$target}}', { filebrowserUploadUrl : '{{asset("adaptor/upload")}}', height: '450px', language: 'zh-tw', @if(isset($attrs)) @foreach($attrs as $key => $val) {{$key}}: '{{$val}}', @endforeach @endif });