{"id":13500787,"url":"https://github.com/samclarke/SCEditor","last_synced_at":"2025-03-29T07:31:45.414Z","repository":{"id":413567,"uuid":"2067414","full_name":"samclarke/SCEditor","owner":"samclarke","description":"A lightweight HTML and BBCode WYSIWYG editor","archived":false,"fork":false,"pushed_at":"2024-07-26T21:27:10.000Z","size":9108,"stargazers_count":659,"open_issues_count":188,"forks_count":188,"subscribers_count":35,"default_branch":"master","last_synced_at":"2024-10-02T00:06:18.863Z","etag":null,"topics":["bbcode","bbcode-editor","contenteditable","editor","html-editor","javascript","sceditor","wysiwyg","wysiwyg-editor","wysiwyg-html-editor"],"latest_commit_sha":null,"homepage":"http://www.sceditor.com/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/samclarke.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.txt","contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2011-07-18T16:46:44.000Z","updated_at":"2024-09-28T17:16:41.000Z","dependencies_parsed_at":"2024-01-15T17:25:07.218Z","dependency_job_id":"a37bbb2e-a84c-4077-8a9e-2f18a806716a","html_url":"https://github.com/samclarke/SCEditor","commit_stats":{"total_commits":1185,"total_committers":60,"mean_commits":19.75,"dds":0.1544303797468355,"last_synced_commit":"0ee103397c5ed12a5a2cac8f397773a264226466"},"previous_names":[],"tags_count":39,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samclarke%2FSCEditor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samclarke%2FSCEditor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samclarke%2FSCEditor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samclarke%2FSCEditor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/samclarke","download_url":"https://codeload.github.com/samclarke/SCEditor/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":222474688,"owners_count":16990427,"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":["bbcode","bbcode-editor","contenteditable","editor","html-editor","javascript","sceditor","wysiwyg","wysiwyg-editor","wysiwyg-html-editor"],"created_at":"2024-07-31T22:01:14.125Z","updated_at":"2024-10-31T19:31:44.480Z","avatar_url":"https://github.com/samclarke.png","language":"JavaScript","readme":"# [SCEditor](http://www.sceditor.com/)\n\n[![Build Status](https://github.com/samclarke/SCEditor/workflows/Node.js%20CI/badge.svg)](https://travis-ci.org/samclarke/SCEditor)\n[![SemVer](http://img.shields.io/:semver-✓-brightgreen.svg)](http://semver.org)\n[![License](http://img.shields.io/npm/l/sceditor.svg)](https://github.com/samclarke/SCEditor/blob/master/LICENSE.md)\n\nA lightweight WYSIWYG BBCode and XHTML editor.\n\n[![SCEditor preview](https://cdn.rawgit.com/samclarke/SCEditor/49c696b8/preview.svg)](https://www.sceditor.com/)\n\nFor more information visit [sceditor.com](http://www.sceditor.com/)\n\n\n## Usage\n\nInclude the SCEditor JavaScript:\n\n```html\n\u003clink rel=\"stylesheet\" href=\"minified/themes/default.min.css\" /\u003e\n\u003cscript src=\"minified/sceditor.min.js\"\u003e\u003c/script\u003e\n\u003cscript src=\"minified/formats/bbcode.js\"\u003e\u003c/script\u003e\n\u003cscript src=\"minified/formats/xhtml.js\"\u003e\u003c/script\u003e\n```\n\nThen to convert a textarea into SCEditor, simply do:\n\n```js\nvar textarea = document.getElementById('id-of-textarea');\n\nsceditor.create(textarea, {\n\tformat: 'xhtml',\n\tstyle: 'minified/themes/content/default.min.css'\n});\n```\n\nor for a BBCode WYSIWYG editor do:\n\n```js\nvar textarea = document.getElementById('id-of-textarea');\n\nsceditor.create(textarea, {\n\tformat: 'bbcode',\n\tstyle: 'minified/themes/content/default.min.css'\n});\n```\n\nFinally, to get the contents of the editor:\n\n```js\nvar textarea = document.getElementById(\"id-of-textarea\");\n\nsceditor.instance(textarea).val();\n```\n\n\n## Options\n\nFor a full list of options, see the [options documentation](http://www.sceditor.com/documentation/options/).\n\n\n\n## Building and testing\n\nYou will need [Grunt](http://gruntjs.com/) installed to run the build/tests. To install Grunt run:\n\n```bash\nnpm install -g grunt-cli\n```\n\nNext, to install the SCEditor dev dependencies run:\n\n```bash\nnpm install\n```\n\nThat's it! You can now build and test SCEditor with the following commands:\n\n```bash\n# Minify the JS and convert the LESS to CSS\ngrunt build\n\n# Run the linter, unit tests and coverage\ngrunt test\n\n# Creates the final distributable ZIP file\ngrunt release\n```\n\nYou can also run the dev server to test changes without having to do a full\nbuild by running:\n\n```bash\nnpm run dev\n```\n\nand then going to http://localhost:9000/tests/\n\n\n## Contribute\n\nAny contributions and/or pull requests would be welcome.\n\nThemes, translations, bug reports, bug fixes and donations are greatly appreciated.\n\n\n\n## Donate\n\nIf you would like to make a donation you can via\n[PayPal](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick\u0026hosted_button_id=AVJSF5NEETYYG)\nor via [Flattr](http://flattr.com/thing/400345/SCEditor)\n\n\n\n## License\n\nSCEditor is licensed under the [MIT](/LICENSE.md) license:\n\n\nCopyright (C) 2011 - 2017 Sam Clarke and contributors – sceditor.com\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n\n\n## Credits\n\n**Nomicons: The Full Monty Emoticons by:**\nOscar Gruno, aka Nominell v. 2.0 -\u003e oscargruno@mac.com\nAndy Fedosjeenko, aka Nightwolf -\u003e bobo@animevanguard.com\n\n**Icons by:**\nMark James (http://www.famfamfam.com/lab/icons/silk/)\nLicensed under the [Creative Commons CC-BY license](http://creativecommons.org/licenses/by/3.0/).\n","funding_links":["https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick\u0026hosted_button_id=AVJSF5NEETYYG"],"categories":["JavaScript"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamclarke%2FSCEditor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsamclarke%2FSCEditor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamclarke%2FSCEditor/lists"}