{"id":15037072,"url":"https://github.com/jihong88/suneditor","last_synced_at":"2026-04-12T17:28:31.361Z","repository":{"id":37546117,"uuid":"88146394","full_name":"JiHong88/suneditor","owner":"JiHong88","description":"A lightweight and powerful WYSIWYG editor in vanilla JavaScript. No dependencies.","archived":false,"fork":false,"pushed_at":"2025-04-25T14:32:36.000Z","size":68255,"stargazers_count":1861,"open_issues_count":351,"forks_count":326,"subscribers_count":33,"default_branch":"master","last_synced_at":"2025-05-13T00:07:48.032Z","etag":null,"topics":["contenteditable","editor","html-editor","no-dependencies","rich-text-editor","suneditor","vanilla-javascript","web-editor"],"latest_commit_sha":null,"homepage":"http://suneditor.com","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/JiHong88.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":null,"patreon":null,"open_collective":"suneditor","ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":"https://paypal.me/jihong88"}},"created_at":"2017-04-13T09:07:41.000Z","updated_at":"2025-05-12T15:14:49.000Z","dependencies_parsed_at":"2023-12-09T01:06:30.484Z","dependency_job_id":"88fc3b23-786b-42b3-af3c-d626ce728ae8","html_url":"https://github.com/JiHong88/suneditor","commit_stats":{"total_commits":2565,"total_committers":64,"mean_commits":40.078125,"dds":"0.14619883040935677","last_synced_commit":"19d48a530efc182ceb64b8db561543c3dd3715bb"},"previous_names":[],"tags_count":139,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JiHong88%2Fsuneditor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JiHong88%2Fsuneditor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JiHong88%2Fsuneditor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JiHong88%2Fsuneditor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JiHong88","download_url":"https://codeload.github.com/JiHong88/suneditor/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253843215,"owners_count":21972873,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["contenteditable","editor","html-editor","no-dependencies","rich-text-editor","suneditor","vanilla-javascript","web-editor"],"created_at":"2024-09-24T20:33:16.891Z","updated_at":"2026-04-12T17:28:31.355Z","avatar_url":"https://github.com/JiHong88.png","language":"JavaScript","funding_links":["https://opencollective.com/suneditor","https://paypal.me/jihong88"],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://suneditor.com\" target=\"_blank\"\u003e\n    \u003cimg src=\"https://suneditor-files.s3.ap-northeast-2.amazonaws.com/docs/se3_logo_title_flat.svg?v=1\" alt=\"SunEditor\" width=\"280\" /\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\u003cem\u003eA lightweight and powerful WYSIWYG editor built with vanilla JavaScript\u003c/em\u003e\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n\t\u003ca href=\"https://github.com/JiHong88/SunEditor/blob/master/LICENSE.txt\" title=\"MIT License\"\u003e\u003cimg src=\"https://img.shields.io/github/license/jihong88/suneditor.svg?style=flat-square\" alt=\"GitHub License\"\u003e\u003c/a\u003e\n\t\u003ca href=\"https://www.npmjs.com/package/suneditor\" title=\"npm release\"\u003e\u003cimg src=\"https://img.shields.io/npm/v/suneditor.svg?style=flat-square\" alt=\"npm\"\u003e\u003c/a\u003e\n\t\u003ca href=\"https://www.npmjs.com/package/suneditor\" title=\"npm month downloads\"\u003e\u003cimg src=\"https://img.shields.io/npm/dm/suneditor.svg?logo=npm\u0026style=flat-square\" alt=\"npm weekly downloads\"\u003e\u003c/a\u003e\n\t\u003ca href=\"https://www.jsdelivr.com/package/npm/suneditor\" title=\"jsDelivr CDN month downloads\"\u003e\u003cimg src=\"https://img.shields.io/jsdelivr/npm/hm/suneditor?label=CDN\u0026style=flat-square\" alt=\"jsDelivr CDN\" /\u003e\u003c/a\u003e\n\t\u003ca href=\"https://codecov.io/gh/jihong88/suneditor\" title=\"Test coverage\"\u003e\u003cimg src=\"https://codecov.io/gh/jihong88/suneditor/branch/develop/graph/badge.svg\" alt=\"Test coverage\" /\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n#\n\nSunEditor supports all modern browsers without dependencies or polyfills.\n\n## 🌟 Why SunEditor?\n\nSunEditor is a lightweight, fast, and extensible WYSIWYG editor written in pure JavaScript.  \nIt's easy to integrate, highly customizable, and built for modern web applications.\n\n### ⚡ Key Features\n\n- **No dependencies** — Optimized for speed and simplicity\n- **Modular architecture** — Enable only the plugins you need\n- **Responsive UI** — Works smoothly on all modern devices\n- **Framework-friendly** — Easy to use with React, Vue, Svelte, etc.\n- **Feature-rich plugin ecosystem**, including:\n    - @Mentions with autocomplete\n    - Advanced table editing \u0026 custom layouts\n    - Math (LaTeX), drawing, and code block support (with language selector)\n    - Markdown view mode (GFM) — edit content as Markdown\n    - Built-in media galleries (image, video, audio, file)\n    - PDF export, templates, and embedded content (audio/video/iframe)\n\n### 📝 Content Editing Approach\n\nSunEditor is optimized for **structured content** (articles, documentation, emails) rather than arbitrary HTML editing. Content is validated and auto-corrected to maintain consistency.\n\n\u003e For raw HTML editing needs, see [`strictMode` configuration](./ARCHITECTURE.md#content-filtering-strictmode) in the Architecture Guide.\n\n🌤 **[Try all plugins in Playground](https://suneditor.com/playground)**\n\n⭐ **Contributions welcome!** Please refer to [Contribution Guidelines](/CONTRIBUTING.md) and check out our [open tasks](https://github.com/jihong88/suneditor/issues?q=is%3Aopen+is%3Aissue+label%3A%22help+wanted%22). ⭐\n\n---\n\n## 🌍 Browser Support\n\nSunEditor is built to take advantage of modern browser capabilities.  \nIt does not ship with polyfills by default, but you can add them if your project requires broader compatibility.\n\n\u003e Works correctly on the following versions or newer.\n\n| Browser                                                                                                                             | ≥ Version       |\n| ----------------------------------------------------------------------------------------------------------------------------------- | --------------- |\n| ![Chrome](https://img.shields.io/badge/-Chrome-4285F4?logo=GoogleChrome\u0026logoColor=white\u0026style=flat-square)                          | 119 (Oct 2023)  |\n| ![Edge](https://img.shields.io/badge/-Edge-0078D7?logo=MicrosoftEdge\u0026logoColor=white\u0026style=flat-square)                             | 119 (Nov 2023)  |\n| ![Firefox](https://img.shields.io/badge/-Firefox-FF7139?logo=FirefoxBrowser\u0026logoColor=white\u0026style=flat-square)                      | 121 (Dec 2023)  |\n| ![Safari (macOS, iOS)](https://img.shields.io/badge/-Safari-0D96F6?logo=Safari\u0026logoColor=white\u0026style=flat-square)                   | 17.2 (Dec 2023) |\n| ![Opera](https://img.shields.io/badge/-Opera-FF1B2D?logo=Opera\u0026logoColor=white\u0026style=flat-square)                                   | 105 (Nov 2023)  |\n| ![Android WebView](https://img.shields.io/badge/-Android%20WebView-3DDC84?logo=android\u0026logoColor=white\u0026style=flat-square)           | 119 (Oct 2023)  |\n| ![Samsung Internet](https://img.shields.io/badge/-Samsung%20Internet-1428A0?logo=samsunginternet\u0026logoColor=white\u0026style=flat-square) | 23.0 (Oct 2023) |\n| ![Firefox ESR](https://img.shields.io/badge/-FirefoxESR-FF7139?logo=FirefoxBrowser\u0026logoColor=white\u0026style=flat-square)               | 128 (Jul 2024)  |\n\n❌ Not Supported : IE, Legacy Edge\n\n### 📌 Why This Baseline? (Late 2023)\n\n- This is based on features commonly supported by modern browsers.\n- Most modern web APIs and CSS features are supported reliably in versions after this point.\n- Unless specific compatibility issues arise, you can use it out of the box without additional polyfills.\n- If you need support for older browsers, you can extend it by adding your own polyfills.\n\n---\n\n## 📦 Legacy Version (v2-legacy)\n\n\\* Supported IE11\n\n\u003e **SunEditor v3 is the latest version.**  \n\u003e This section refers to the **previous stable version, SunEditor v2**.\n\nThe `v2-legacy` branch is no longer actively maintained,  \nbut still available for compatibility with older projects.\n\n👉 [`v2-legacy` branch](https://github.com/JiHong88/SunEditor/tree/v2-legacy)\n\n---\n\n## 🚀 Install \u0026 Quick Start\n\n\u003e 💡 **Want to see it in action?**  \n\u003e Check out the 🌤 [**Live Demo**](https://suneditor.com) 🌤 with full options and examples.\n\n### NPM\n\n```bash\nnpm install suneditor --save\n```\n\n```js\nimport 'suneditor/css/editor'; // Editor UI\nimport 'suneditor/css/contents'; // For displaying HTML\nimport suneditor from 'suneditor';\n\n// HTML: \u003cdiv id=\"editor\"\u003e\u003c/div\u003e or \u003ctextarea id=\"editor\"\u003e\u003c/textarea\u003e\nsuneditor.create(document.querySelector('#editor'), {\n\t// options\n});\n```\n\n### CDN ([jsDelivr](https://www.jsdelivr.com/package/npm/suneditor))\n\n```html\n\u003cscript src=\"https://cdn.jsdelivr.net/npm/suneditor@latest/dist/suneditor.min.js\"\u003e\u003c/script\u003e\n\u003clink href=\"https://cdn.jsdelivr.net/npm/suneditor@latest/dist/suneditor.min.css\" rel=\"stylesheet\" /\u003e\n\u003c!-- Optional language (default is English): e.g., Korean (ko) --\u003e\n\u003c!-- \u003cscript src=\"https://cdn.jsdelivr.net/npm/suneditor@latest/src/langs/ko.js\"\u003e\u003c/script\u003e --\u003e\n\n\u003cdiv id=\"editor\"\u003e\u003c/div\u003e\n\u003c!-- or \u003ctextarea id=\"editor\"\u003e\u003c/textarea\u003e --\u003e\n\n\u003cscript\u003e\n\tSUNEDITOR.create(document.querySelector('#editor'), {\n\t\t// options\n\t});\n\u003c/script\u003e\n```\n\n---\n\n## 🔧 Framework Integration\n\nYou can use the official wrappers for easier integration:\n\nReact – [suneditor-react](https://github.com/JiHong88/suneditor-react)\\\nVue – [suneditor-vue](https://github.com/JiHong88/suneditor-vue)\n\n---\n\n## 📦 Plugins\n\nSunEditor supports a plugin-based architecture.\\\nYou can enable only the plugins you need or even create your own custom ones.\n\n```js\nsuneditor.create('#editor', {\n\tplugins: ['font', 'image', 'video'],\n\timage: {\n\t\tuploadUrl: 'https://upload.image',\n\t},\n});\n```\n\n📘 [Learn how to build your own plugin →](https://suneditor.com/plugin-guide)\n\n🤖 Want to build plugins? Get real-time help from [SunEditor Devs AI](https://chatgpt.com/g/g-JViNPCrkD-suneditor-devs).\\\nSee [Contribution Guide](./CONTRIBUTING.md#-ai-plugin-helper) for tips and examples.\n\n---\n\n## ✨ Contributors\n\n\u003ca href=\"https://github.com/jihong88/suneditor/graphs/contributors\"\u003e\n  \u003cimg src=\"https://contrib.rocks/image?repo=jihong88/suneditor\" alt=\"contributors\"/\u003e\n\u003c/a\u003e\n\n---\n\n## 💎 Sponsors\n\n### Backers\n\n[![Backers on Open Collective](https://opencollective.com/suneditor/backers.svg?width=890\u0026avatarHeight=64\u0026button=false)](https://opencollective.com/suneditor)\n\n### Sponsors\n\n[![Sponsors on Open Collective](https://opencollective.com/suneditor/sponsors.svg?width=890\u0026avatarHeight=64\u0026button=false)](https://opencollective.com/suneditor)\n\n---\n\n## 📄 License\n\nSunEditor is an open-source project available under the [MIT License](./LICENSE.txt).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjihong88%2Fsuneditor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjihong88%2Fsuneditor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjihong88%2Fsuneditor/lists"}