如何在html网页中获得Ckeditor输出


<body>

<textarea id="content"></textarea>
<input id="data" type="text"/>
<input id="insert" type="button" value="Insert at Cursor"/>
<div class="container mt-3">
<script src="https://code.jquery.com/jquery-3.4.1.min.js" crossorigin="anonymous"></script>
<script src="https://cdn.ckeditor.com/4.5.7/standard/ckeditor.js"></script>
<script>
CKEDITOR.replace('content');

</script>
</body>
</html>

如何在没有数据库的情况下获得任何形式的输出是新的,请提供帮助,如果你能附上源代码,这将是一个很大的帮助。

Ckeditor有自己的功能,

CKEDITOR.instances['SELECTOR-HERE'].getData();

最新更新