2017 © Pedro Peláez
 

library sceditor

A lightweight BBCode and XHTML WYSIWYG editor

image

sceditor/sceditor

A lightweight BBCode and XHTML WYSIWYG editor

  • Tuesday, December 19, 2017
  • by samclarke
  • Repository
  • 1 Watchers
  • 0 Stars
  • 14 Installations
  • JavaScript
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 6 Versions
  • 0 % Grown

The README.md

SCEditor v2.1.2

Build Status Dependency Status SemVer License, (*1)

A lightweight WYSIWYG BBCode and XHTML editor., (*2)

SCEditor demo, (*3)

For more information visit sceditor.com, (*4)

Usage

Include the SCEditor JavaScript:, (*5)

<link rel="stylesheet" href="minified/themes/default.min.css" />
<script src="minified/sceditor.min.js"></script>
<script src="minified/plugins/bbcode.js"></script>
<script src="minified/plugins/xhtml.js"></script>

Then to convert a textarea into SCEditor, simply do:, (*6)

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:, (*7)

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

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

Options

For a full list of options, see the options documentation., (*8)

Building and testing

You will need Grunt installed to run the build/tests. To install Grunt run:, (*9)

npm install -g grunt-cli

Next, to install the SCEditor dev dependencies run:, (*10)

npm install

That's it! You can now build and test SCEditor with the following commands:, (*11)

# 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:, (*12)

npm run dev

and then going to http://localhost:9000/tests/, (*13)

Contribute

Any contributions and/or pull requests would be welcome., (*14)

Themes, translations, bug reports, bug fixes and donations are greatly appreciated., (*15)

If you would like to make a donation you can via PayPal or via Flattr, (*16)

License

SCEditor is licensed under the MIT license:, (*17)

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

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:, (*19)

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

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., (*21)

Credits

Nomicons: The Full Monty Emoticons by: Oscar Gruno, aka Nominell v. 2.0 -> oscargruno@mac.com Andy Fedosjeenko, aka Nightwolf -> bobo@animevanguard.com, (*22)

Icons by: Mark James (http://www.famfamfam.com/lab/icons/silk/) Licensed under the Creative Commons CC-BY license., (*23)

The Versions

19/12 2017

dev-master

9999999-dev http://www.sceditor.com/

A lightweight BBCode and XHTML WYSIWYG editor

  Sources   Download

MIT

The Requires

 

by Sam Clarke

19/12 2017

v2.1.2

2.1.2.0 http://www.sceditor.com/

A lightweight BBCode and XHTML WYSIWYG editor

  Sources   Download

MIT

The Requires

 

by Sam Clarke

28/11 2017

v2.1.1

2.1.1.0 http://www.sceditor.com/

A lightweight BBCode and XHTML WYSIWYG editor

  Sources   Download

MIT

The Requires

 

by Sam Clarke

20/11 2017

v2.1.0

2.1.0.0 http://www.sceditor.com/

A lightweight BBCode and XHTML WYSIWYG editor

  Sources   Download

MIT

The Requires

 

by Sam Clarke

06/12 2016

v1.5.2

1.5.2.0 http://www.sceditor.com/

A lightweight BBCode and XHTML WYSIWYG editor

  Sources   Download

MIT

The Requires

 

by Sam Clarke

06/11 2016

v1.5.1

1.5.1.0 http://www.sceditor.com/

A lightweight BBCode and XHTML WYSIWYG editor

  Sources   Download

MIT

The Requires

 

by Sam Clarke