如何在 nodejs 应用程序中使用 ckeditor?

How to use ckeditor in nodejs application?

我正在使用 handlebars 模板引擎在 nodejs 中开发一个 crud 应用程序。现在我想在我的应用程序中添加像 ckeditor 这样的编辑器或任何类似的编辑器。

CKEditior 是一个 front-end plug-in 直接在浏览器中运行,您可以像使用任何其他 front-end js 插件一样使用它 这里是一个例子

  <div class="entry">
   <script src="https://cdn.ckeditor.com/4.9.1/standard/ckeditor.js"></script>
 <h1>{{title}}</h1>
 <div class="body">
  <textarea name="editor1"></textarea>
    <script>
        CKEDITOR.replace( 'editor1' );
    </script>
   {{body}}
 </div>
</div>

在json:

{
 title: "My New Post",
 body: "This is my first post!"
}

你可以在这里试试:tryhandlebar