PHPackages                             reloxx13/sc-editor - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. reloxx13/sc-editor

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

reloxx13/sc-editor
==================

A lightweight HTML and BBCode WYSIWYG editor.

00JavaScript

Since Jul 7Pushed 4y agoCompare

[ Source](https://github.com/reloxx13/SCEditor)[ Packagist](https://packagist.org/packages/reloxx13/sc-editor)[ RSS](/packages/reloxx13-sc-editor/feed)WikiDiscussions master Synced today

READMEChangelog (1)DependenciesVersions (1)Used By (0)

[SCEditor](http://www.sceditor.com/) v3.0.0
===========================================

[](#sceditor-v300)

[![Build Status](https://github.com/samclarke/SCEditor/workflows/Node.js%20CI/badge.svg)](https://travis-ci.org/samclarke/SCEditor)[![SemVer](https://camo.githubusercontent.com/9cd7b678c949859e13d157052b31c2f1ee060d447783fc7e481771128e7449b4/687474703a2f2f696d672e736869656c64732e696f2f3a73656d7665722d2545322539432539332d627269676874677265656e2e737667)](http://semver.org)[![License](https://camo.githubusercontent.com/bfe94abb88393360417a1c7d80737409973de9fbc6bb82a668f06e31f13e7547/687474703a2f2f696d672e736869656c64732e696f2f6e706d2f6c2f7363656469746f722e737667)](https://github.com/samclarke/SCEditor/blob/master/LICENSE.md)

A lightweight WYSIWYG BBCode and XHTML editor.

[![SCEditor preview](https://camo.githubusercontent.com/3843af9364693ba044a609639a17a2cc3712aedc1549616b4a86541357b6b3b2/68747470733a2f2f63646e2e7261776769742e636f6d2f73616d636c61726b652f5343456469746f722f34396336393662382f707265766965772e737667)](https://www.sceditor.com/)

For more information visit [sceditor.com](http://www.sceditor.com/)

Usage
-----

[](#usage)

Include the SCEditor JavaScript:

```

```

Then to convert a textarea into SCEditor, simply do:

```
var textarea = document.getElementById('id-of-textarea');

sceditor.create(textarea, {
	format: 'xhtml',
	style: 'minified/themes/content/default.min.css'
});
```

or for a BBCode WYSIWYG editor do:

```
var textarea = document.getElementById('id-of-textarea');

sceditor.create(textarea, {
	format: 'bbcode',
	style: 'minified/themes/content/default.min.css'
});
```

Finally, to get the contents of the editor:

```
var textarea = document.getElementById("id-of-textarea");

sceditor.instance(textarea).val();
```

Options
-------

[](#options)

For a full list of options, see the [options documentation](http://www.sceditor.com/documentation/options/).

Building and testing
--------------------

[](#building-and-testing)

You will need [Grunt](http://gruntjs.com/) installed to run the build/tests. To install Grunt run:

```
npm install -g grunt-cli
```

Next, to install the SCEditor dev dependencies run:

```
npm install
```

That's it! You can now build and test SCEditor with the following commands:

```
# Minify the JS and convert the LESS to CSS
grunt build

# Run the linter, unit tests and coverage
grunt test

# Creates the final distributable ZIP file
grunt release
```

You can also run the dev server to test changes without having to do a full build by running:

```
npm run dev
```

and then going to

Contribute
----------

[](#contribute)

Any contributions and/or pull requests would be welcome.

Themes, translations, bug reports, bug fixes and donations are greatly appreciated.

Donate
------

[](#donate)

If you would like to make a donation you can via [PayPal](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=AVJSF5NEETYYG)or via [Flattr](http://flattr.com/thing/400345/SCEditor)

License
-------

[](#license)

SCEditor is licensed under the [MIT](/LICENSE.md) license:

Copyright (C) 2011 - 2017 Sam Clarke and contributors – sceditor.com

Permission 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:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE 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.

Credits
-------

[](#credits)

**Nomicons: The Full Monty Emoticons by:**Oscar Gruno, aka Nominell v. 2.0 -&gt; Andy Fedosjeenko, aka Nightwolf -&gt;

**Icons by:**Mark James () Licensed under the [Creative Commons CC-BY license](http://creativecommons.org/licenses/by/3.0/).

###  Health Score

17

—

LowBetter than 6% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity0

Limited adoption so far

Community19

Small or concentrated contributor base

Maturity29

Early-stage or recently created project

 Bus Factor1

Top contributor holds 86.2% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/873b7139a8b92a62f75038dd8ef25566d3c304febaa2b4d89d51edde6356c4a7?d=identicon)[reloxx13](/maintainers/reloxx13)

---

Top Contributors

[![samclarke](https://avatars.githubusercontent.com/u/490870?v=4)](https://github.com/samclarke "samclarke (1039 commits)")[![brunoais](https://avatars.githubusercontent.com/u/639467?v=4)](https://github.com/brunoais "brunoais (50 commits)")[![jmocha](https://avatars.githubusercontent.com/u/8739963?v=4)](https://github.com/jmocha "jmocha (36 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (12 commits)")[![live627](https://avatars.githubusercontent.com/u/431799?v=4)](https://github.com/live627 "live627 (11 commits)")[![batumibiz](https://avatars.githubusercontent.com/u/10770779?v=4)](https://github.com/batumibiz "batumibiz (9 commits)")[![rbu](https://avatars.githubusercontent.com/u/65913?v=4)](https://github.com/rbu "rbu (5 commits)")[![reloxx13](https://avatars.githubusercontent.com/u/14855001?v=4)](https://github.com/reloxx13 "reloxx13 (4 commits)")[![4project-co-il](https://avatars.githubusercontent.com/u/33939600?v=4)](https://github.com/4project-co-il "4project-co-il (3 commits)")[![KaseiFR](https://avatars.githubusercontent.com/u/6408124?v=4)](https://github.com/KaseiFR "KaseiFR (3 commits)")[![maiiku](https://avatars.githubusercontent.com/u/1031355?v=4)](https://github.com/maiiku "maiiku (3 commits)")[![maxpowerid](https://avatars.githubusercontent.com/u/1818227?v=4)](https://github.com/maxpowerid "maxpowerid (3 commits)")[![Dr1ks](https://avatars.githubusercontent.com/u/4711966?v=4)](https://github.com/Dr1ks "Dr1ks (2 commits)")[![dclause](https://avatars.githubusercontent.com/u/812055?v=4)](https://github.com/dclause "dclause (2 commits)")[![tata81](https://avatars.githubusercontent.com/u/17158307?v=4)](https://github.com/tata81 "tata81 (2 commits)")[![KoryHodgson](https://avatars.githubusercontent.com/u/1634903?v=4)](https://github.com/KoryHodgson "KoryHodgson (2 commits)")[![Sesquipedalian](https://avatars.githubusercontent.com/u/191731?v=4)](https://github.com/Sesquipedalian "Sesquipedalian (2 commits)")[![gnysek](https://avatars.githubusercontent.com/u/524094?v=4)](https://github.com/gnysek "gnysek (2 commits)")[![seuros](https://avatars.githubusercontent.com/u/2394703?v=4)](https://github.com/seuros "seuros (2 commits)")[![MYaman34](https://avatars.githubusercontent.com/u/2865375?v=4)](https://github.com/MYaman34 "MYaman34 (2 commits)")

### Embed Badge

![Health badge](/badges/reloxx13-sc-editor/health.svg)

```
[![Health](https://phpackages.com/badges/reloxx13-sc-editor/health.svg)](https://phpackages.com/packages/reloxx13-sc-editor)
```

###  Alternatives

[beapi/wp-cli-site-duplicator-command

A WP-CLI command for duplicating a site (blog) on a WordPress mutisite network

171.5k](/packages/beapi-wp-cli-site-duplicator-command)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
