gal-s
10/29/2018 - 11:00 AM

CKEditor 5 configuration

<script src="ckeditor.js"></script>
<script src="translations/he.js"></script>

<script>

    ClassicEditor
        .create(document.querySelector('#editor'), {
                language: 'he',
                toolbar: ['heading', '|', 'bold', 'italic', 'link', 'bulletedList', 'numberedList', 'blockQuote', '|', 'BidiLtr', 'BidiRtl', 'Language']
                // , '|' , 'BidiLtr', 'BidiRtl','Language'

            }
        )

        .catch(error => {
            console.error(error);
        });


</script>

<textarea name="content" id="editor">this is the text</textarea>