PHPackages                             sceditor/sceditor - 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. sceditor/sceditor

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

sceditor/sceditor
=================

A lightweight BBCode and XHTML WYSIWYG editor

v2.1.2(8y ago)0204MITJavaScript

Since Nov 6Pushed 8y ago1 watchersCompare

[ Source](https://github.com/samclarke/SCEditor-bower)[ Packagist](https://packagist.org/packages/sceditor/sceditor)[ Docs](http://www.sceditor.com/)[ RSS](/packages/sceditor-sceditor/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependencies (1)Versions (6)Used By (0)

[SCEditor](http://www.sceditor.com/) v2.1.2
===========================================

[](#sceditor-v212)

[![Build Status](https://camo.githubusercontent.com/3bdb35b267a7ebf0afee62e46e8b4592e8d221cd8be1b3f8f1d4ac2ff04043bf/687474703a2f2f696d672e736869656c64732e696f2f7472617669732f73616d636c61726b652f5343456469746f722f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/samclarke/SCEditor)[![Dependency Status](https://camo.githubusercontent.com/3cd5f0f98190c914631f70a4f6ecaeaead2e83e0eb8497cfe73474c38127b711/687474703a2f2f696d672e736869656c64732e696f2f67656d6e617369756d2f73616d636c61726b652f5343456469746f722e7376673f7374796c653d666c61742d737175617265)](https://gemnasium.com/samclarke/SCEditor)[![SemVer](https://camo.githubusercontent.com/f6eb709303450140bf81954c2510c233bded8f3389f8682bb35d51f9641eac8d/687474703a2f2f696d672e736869656c64732e696f2f3a73656d7665722d2545322539432539332d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](http://semver.org)[![License](https://camo.githubusercontent.com/0cc7b32a824cfdb094e718717fc159a8c422570f8d261ba8c1ccdd7647cc1dd7/687474703a2f2f696d672e736869656c64732e696f2f6e706d2f6c2f7363656469746f722e7376673f7374796c653d666c61742d737175617265)](https://github.com/samclarke/SCEditor/blob/master/LICENSE.md)

A lightweight WYSIWYG BBCode and XHTML editor.

[![SCEditor demo](/demo.gif)](/demo.gif)

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, {
	plugins: '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, {
	plugins: 'bbcode',
	style: 'minified/themes/content/default.min.css'
});
```

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

29

—

LowBetter than 57% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity67

Established project with proven stability

 Bus Factor1

Top contributor holds 100% 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.

###  Release Activity

Cadence

Every ~102 days

Total

5

Last Release

3115d ago

Major Versions

v1.5.2 → v2.1.02017-11-20

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/490870?v=4)[Sam](/maintainers/samclarke)[@samclarke](https://github.com/samclarke)

---

Top Contributors

[![samclarke](https://avatars.githubusercontent.com/u/490870?v=4)](https://github.com/samclarke "samclarke (11 commits)")

### Embed Badge

![Health badge](/badges/sceditor-sceditor/health.svg)

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

###  Alternatives

[fullcalendar/fullcalendar

Full-sized drag &amp; drop event calendar

20.5k374.8k4](/packages/fullcalendar-fullcalendar)[eternicode/bootstrap-datepicker

A datepicker for Bootstrap

12.7k548.1k6](/packages/eternicode-bootstrap-datepicker)[vakata/jstree

jsTree is jquery plugin, that provides interactive trees.

5.2k1.8M11](/packages/vakata-jstree)[eonasdan/bootstrap-datetimepicker

Date/time picker widget based on twitter bootstrap

7.2k496.2k9](/packages/eonasdan-bootstrap-datetimepicker)[nicolaskruchten/pivottable

Javascript Pivot Table (aka Pivot Grid, Pivot Chart, Cross-Tab) implementation with drag'n'drop.

4.4k219.4k1](/packages/nicolaskruchten-pivottable)[rmm5t/jquery-timeago

jQuery plugin that makes it easy to support automatically updating fuzzy timestamps (e.g. "4 minutes ago" or "about 1 day ago").

3.8k179.9k2](/packages/rmm5t-jquery-timeago)

PHPackages © 2026

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