ckeditor没有显示在JavaScript insertRow()表中

时间:2017-04-07 02:46:42

标签: javascript html ckeditor

这是我的表中insertRow()的JavaScript函数:

  <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>

当我点击该按钮时,它已添加到我的表格中,但ckeditor课程没有显示。

0 个答案:

没有答案