ok
Direktori : /home2/selectio/public_html/tnpsctestbatch.com/admin/ |
Current File : /home2/selectio/public_html/tnpsctestbatch.com/admin/advanced.php |
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <script src="https://cdn.ckeditor.com/4.8.0/full-all/ckeditor.js"></script> <title>Multiple CKEditor Instances with Class</title> </head> <body> <textarea class="editor" name="editor3"></textarea> <script> // Get all elements with the class 'editor' var editorElements = document.querySelectorAll('.editor'); // Iterate over each element and initialize CKEditor editorElements.forEach(function (element) { CKEDITOR.replace(element, { skin: 'moono', enterMode: CKEDITOR.ENTER_BR, shiftEnterMode: CKEDITOR.ENTER_P, toolbar: [ { name: 'basicstyles', groups: ['basicstyles'], items: ['Bold', 'Italic', 'Underline', "-", 'TextColor', 'BGColor'] }, { name: 'styles', items: ['Format', 'Font', 'FontSize'] }, { name: 'scripts', items: ['Subscript', 'Superscript'] }, { name: 'justify', groups: ['blocks', 'align'], items: ['JustifyLeft', 'JustifyCenter', 'JustifyRight', 'JustifyBlock'] }, { name: 'paragraph', groups: ['list', 'indent'], items: ['NumberedList', 'BulletedList', '-', 'Outdent', 'Indent'] }, { name: 'links', items: ['Link', 'Unlink'] }, { name: 'insert', items: ['Image'] }, { name: 'spell', items: ['jQuerySpellChecker'] }, { name: 'table', items: ['Table'] } ], }); }); </script> </body> </html>