html - ckeditor not showing in JavaScript insertRow() table -


this javascript function insertrow() in table:

  <script>    function myfunction() {      var table = document.getelementbyid("mytable");     var row = table.insertrow(0);     var cell1 = row.insertcell(0);     var cell2 = row.insertcell(1);     var cell3 = row.insertcell(2);     var cell4 = row.insertcell(3);      cell1.innerhtml = '{{ form::text('title_detail[]', '', array('class' => 'form-control','placeholder' => 'detail title','required' => 'required')) }}';     cell2.innerhtml = '{{  form::textarea('description_detail[]', '', array('class' => 'form-control ckeditor','placeholder' => 'detail deskripsi','required' => 'required')) }}';     cell3.innerhtml = '{{  form::number('sort_order_detail[]', '', array('class' => 'form-control','placeholder' => 'detail sort order','required' => 'required')) }}';     cell4.innerhtml = '<button type="button" onclick="deleterow(this)" class="btn btn-danger btn-sm"><span class="glyphicon glyphicon-remove"></span></button>';    } </script> 

when click button, it's added table, ckeditor class not showing up.


Comments

Popular posts from this blog

Command prompt result in label. Python 2.7 -

javascript - How do I use URL parameters to change link href on page? -

amazon web services - AWS Route53 Trying To Get Site To Resolve To www -