Saya mencoba untuk menambah text editor dengan summernote, mengapa tidak bisa tampil? Didalam file index .php saya tambahan sbb :<head>..... <link rel ="stylesheet" href ="assets/dist/css/AdminLTE.min.css"> <!-- iCheck --> <link rel ="stylesheet" href ="assets/plugins/iCheck/square/blue.css"> <!-- Tambahan Tejos: summernote --> <link rel ="stylesheet" href ="assets/dist/css/summernote.css"> </head> Lalu pada body: <body> .... <!-- Bootstrap 3.3.5 --> <script src="assets/bootstrap/js/bootstrap.min.js"></script> <!-- Summernote --> <script src="assets/dist/js/summernote.js"></script> <script> $(document).ready(function () { $('.konten').summernote({ height: 150, // set editor height minHeight: null, // set minimum height of editor maxHeight: null, // set maximum height of editor focus: true, // set focus to editable area after initializing summernote toolbar: [ ['style', ['style']], ['font', ['bold', 'italic', 'underline', 'clear']], ['fontname', ['fontname']], ['color', ['color']], ['para', ['ul', 'ol', 'paragraph']], ['height', ['height']], ['table', ['table']], ['insert', ['link', 'hr']], ['view', ['fullscreen', 'codeview']] ], onPaste: function (e) { var bufferText = ((e.originalEvent || e).clipboardData || window.clipboardData).getData('Text'); e.preventDefault(); setTimeout(function () { document.execCommand('insertText', false, bufferText); }, 10); } }); }); </script> <!-- iCheck --> </body> Lalu pada file input maupun edit , didalam textarea saya buat seperti ini : <tr><th width='120px' scope='row'>Nama</th> <td> <textarea class='form-control konten' name='b' ></textarea> </td> </tr> Apanya yang salah ya... Mengapa tidak bisa tampil? Terima kasih
|