Aug 4, 2022
0
Level 1
CKeditor javascript bug ?
hi everyone , i want to replace the basic textarea with ckeditor in my case am using 2 ckeditor with a js file that unfortunately only applies to one of them Check the image : https://ibb.co/DzGk9VC Here is part of the blade file concerning the textarea :
<div class="row"> {{-- start 8th row --}}
<div class="col-md-6">
<div class="form-group">
<h5>Long Description English<span class="text-danger">*</span></h5>
<div class="controls">
<textarea id="editor1" name="long_descp_en" rows="10" cols="80" required="">
Long Description English
</textarea>
</div>
</div>
</div> {{--end col md 6 --}}
<div class="col-md-6">
<div class="form-group">
<h5>Long Description French<span class="text-danger">*</span></h5>
<div class="controls">
<textarea id="editor2" name="long_descp_fr" rows="10" cols="80" required="">
Long Description French
</textarea>
</div>
</div>
</div> {{--end col md 6 --}}
</div> {{--end 8th row --}}
js code :
//Primary use: Used only for the wysihtml5 Editor
//Add text editor
$(function () {
"use strict";
// Replace the <textarea id="editor1"> with a CKEditor
// instance, using default configuration.
CKEDITOR.replace('editor1')
//bootstrap WYSIHTML5 - text editor
$('.textarea').wysihtml5();
});
$(function () {
"use strict";
// Replace the <textarea id="editor1"> with a CKEditor
// instance, using default configuration.
CKEDITOR.replace('editor2')
//bootstrap WYSIHTML5 - text editor
$('.textarea').wysihtml5();
});
Please or to participate in this conversation.