Loading...
Loading...
ランタイム依存ゼロの、モジュール型WYSIWYG HTMLエディタ。
すべて入っています。必要なものだけ有効に。
NPM経由でインストールするか、CDNを使用してください。
SunEditorは主要なフレームワークと統合されています。
<!-- 1. Include CSS -->
<link href="https://cdn.jsdelivr.net/npm/suneditor@3.4.3/dist/suneditor.min.css" rel="stylesheet">
<!-- 2. Include JS -->
<script src="https://cdn.jsdelivr.net/npm/suneditor@3.4.3/dist/suneditor.min.js"></script>
<!-- 3. Create Textarea -->
<textarea id="my-editor"></textarea>
<!-- 4. Create Editor -->
<script>
const editor = SUNEDITOR.create("#my-editor", {
plugins: SUNEDITOR.plugins,
value: "<p>Hello SunEditor</p>",
buttonList: [
["undo", "redo"],
"|",
["bold", "italic", "underline"],
"|",
["list", "link", "image"]
]
});
</script>エディタを選ぶ前に開発者がよく抱く疑問に、簡潔にお答えします。
2K
GitHubスター
356
GitHubフォーク
79.4K
NPM週間ダウンロード数
3M
NPM年間ダウンロード数
185.2K
デイリーCDNヒット