Skip to content

Commit

Permalink
BUGFIX 🐛 Allow multiple rte editors on screen
Browse files Browse the repository at this point in the history
  • Loading branch information
ndeblauw committed Jan 6, 2025
1 parent 4c7364f commit d901e56
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions resources/views/components/formelements/textarea.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ class="{{ $rte ? $name.'_rte' : '' }} max-w-lg block w-full shadow-sm focus:ring
<script src="https://cdnjs.cloudflare.com/ajax/libs/tinymce/5.7.1/tinymce.min.js" integrity="sha512-RnlQJaTEHoOCt5dUTV0Oi0vOBMI9PjCU7m+VHoJ4xmhuUNcwnB5Iox1es+skLril1C3gHTLbeRepHs1RpSCLoQ==" crossorigin="anonymous"></script>

<script>
var editor_config = {
var editor_config_{{$name}} = {
relative_urls : false,
path_absolute: "{{ URL::to('/') }}/",
selector: '.{{$name}}_rte',
Expand All @@ -66,7 +66,7 @@ class="{{ $rte ? $name.'_rte' : '' }} max-w-lg block w-full shadow-sm focus:ring
],
toolbar: ' undo redo | @if($h2h3) h2 h3 | @endif bold italic | link | alignleft aligncenter alignright alignjustify | numlist bullist | outdent indent | removeformat | code | help',
}
tinymce.init(editor_config);
tinymce.init(editor_config_{{$name}});
</script>

@endif
Expand Down

0 comments on commit d901e56

Please sign in to comment.