https://github.com/lukasbombach/old-type-js
type.js - a wysiwyg editing framework
https://github.com/lukasbombach/old-type-js
Last synced: 3 months ago
JSON representation
type.js - a wysiwyg editing framework
- Host: GitHub
- URL: https://github.com/lukasbombach/old-type-js
- Owner: LukasBombach
- License: mit
- Created: 2015-02-06T19:23:16.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2016-01-02T12:01:03.000Z (over 9 years ago)
- Last Synced: 2025-02-24T02:40:21.924Z (3 months ago)
- Language: TeX
- Size: 46.1 MB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
> # Update
> This project was part of my master's thesis and remains unaltered for the moment.
> I have made some big updates and major improvements to this library and I will continue to work
> on this project for the moment in this repository:
> [https://github.com/LukasBombach/Type.js](https://github.com/LukasBombach/Type.js)# Type js
Lets you implement your own wysiwyg editor.
Please check [https://github.com/LukasBombach/new-type-js](https://github.com/LukasBombach/new-type-js)
## Installation
Include `type.min.js` from the `dist.js` on your website.
## Basic usage:
// Instantiate Type and pass it an element that will be editable
var element = document.getElementById('editor-contents');
var editor = new Type(element);
/// Will format characters 10 to 20 as bold
editor.format('', 10, 20);## Building
1. Install node js
2. Install gulp `npm install gulp -g`
3. Run `gulp uglify` to build a minified file## License
Type is licenced under the MIT license.
See `LICENSE.txt` in this directory.