javascript - How could I keep paragraph format using CKeditor4.4.4 in CodeIgniter? -
i'm using inline ckeditor 4.4.4 in codeiniter. how can maintain paragraph format when utilize ckeditor inserting info database , receive back?
here javascript code ckeditor plugin , configure:
<script> ckeditor.inline('skill', { toolbar: [ { name: 'document', groups: [ 'mode', 'document', 'doctools' ], items: [ 'source', '-', 'save','preview', 'print' ] }, { name: 'clipboard', groups: [ 'clipboard', 'undo' ], items: [ 'cut', 'copy', 'paste', 'pastetext', 'pastefromword', '-', 'undo', 'redo','image', 'flash', 'table', 'horizontalrule', 'smiley', 'specialchar', 'pagebreak','styles', 'format', 'font', 'fontsize' ] }, '/', { name: 'clipboard', groups: [ 'clipboard', 'undo' ], items: ['bold', 'italic', 'underline', 'strike', 'subscript', 'superscript', '-', 'removeformat','numberedlist', 'bulletedlist', '-', 'outdent', 'indent', '-', 'blockquote', 'creatediv', '-', 'justifyleft', 'justifycenter', 'justifyright', 'justifyblock', '-', 'bidiltr', 'bidirtl'] }, ] }); </script>
and here html form
<li> <span class="cvspan">description:</span><?php echo form_textarea('we_dis',set_value('skill',$property->skill));?> </li>
when submit text database , result without format , text show images 2
now work me when create css self below code if want create ckeditor on view should write own css create html tag
.cke_textarea_inline { padding:0px; min-height:100px; height: auto; overflow: auto; border: 1px solid gray; -webkit-appearance: textfield; } .cke_textarea_inline ol{ padding-left:2em; list-style-position:inside; list-style:decimal } .cke_textarea_inline ol li{ padding-left:0em; list-style-position:inside; list-style:decimal } .cke_textarea_inline ol li ol{ padding-left:2em; list-style-position:inside; list-style:decimal } .cke_textarea_inline ul{ padding-left:3.2em; list-style-position:inside; list-style:disc; } .cke_textarea_inline ul li{ padding-left:.8em; list-style-position:inside; list-style:disc; } .cke_textarea_inline ul li ul{ padding-left:1em; list-style-position:inside; list-style:disc; } .cke_textarea_inline ul li ul li{ padding-left:.6em; list-style-position:inside; list-style:disc; }
javascript html codeigniter ckeditor django-ckeditor
No comments:
Post a Comment