如何在ckeditor小部件中添加HTML textarea标签?

时间:2018-10-24 02:57:34

标签: laravel ckeditor

我有HTML文本区域。我想将此HTML标签添加到ckeditor textarea中。 如何将textarea标签添加到ckeditor小部件中?

1 个答案:

答案 0 :(得分:0)

您的问题不是完全可以理解的。根据我的理解,我想您正在尝试将文本区域设置为CKEDITOR。

您可以以不同的方式使用CKEDITOR。检查链接以获取其JS实施 它。

只需使用以下代码即可在CKEDITOR中创建文本区域。

//how you r calling your ckeditor js depends on you. here i am using their cdn.
//and yeah height is optional.
<script src="https://cdn.ckeditor.com/4.10.1/standard/ckeditor.js"></script>
<script type="text/javascript">
    CKEDITOR.replace('id_of_textarea', {height: 150});
</script>
相关问题