我正在尝试使用CKeditor插件作为HTML文本编辑器。但问题是,如果我有一个input type="file"
,那么当我提交ckeditor插件时,不会发布我在其中写的文本。但是,如果我从表单中删除input type="file"
,那么它可以正常工作。
我需要以我的形式。你能告诉我如何使两者都正常工作吗?
由于
<script language="JavaScript" src="<?php echo base_url();?>support_admin/plugins/ckeditor/ckeditor.js" type="text/javascript"></script>
<form action="something">
<label>Details</label>
<textarea class="ckeditor" name="article" ><?php echo $articles; ?></textarea><br>
<label>Image 1</label>
<input type="file" name="imagefile1" /><br>
<button class="button" style="margin-left: 200px;">Submit</button>
</form>