RepositoryJavaScriptUSUnited States
jessegreathouse

jessegreathouse/TinyEditor

JavaScript WYSIWYG Editor (deprecated)

106stars
41forks
0issues
1views

TinyEditor

by: Michael Leigeber

official website

TinyEditor is a simple JavaScript WYSIWYG editor that is both lightweight (8KB) and standalone. It can easily be customized to integrate with any website through CSS and the multitude of parameters. It handles most of the basic formatting needs and has some functionality built in to help keep the rendered markup as clean as possible. The icons are courtesy of famfamfam and have been combined into a sprite so there are only a few HTTP requests for the editor. I plan on adding some updates in the future to support font color, a full-screen mode, and a paste from Word option.

Forked and brought to Github by Jesse Greathouse

I've used this simple editor for some time and I love it. It's lightweight and it gets the job done. As I use it more, I've come to find out that I need to hack it and thus I've got a need to fork it. Unfortunately this does not appear to be a part of any official github repository so I may be the first one to bring this to github. I've linked the official portal for this code, however I infer that the original developer, Michael Leigeber, doesn't have time or desire to maintain this or build on the codebase. Michael if you read this, I'd love to collaborate or share any hacks I've done on this please get in touch. My intention is to make this a more transitive submodule that can be added as a component to any project with git.

JavaScript WYSIWYG Editor

new TINY.editor.edit('editor',{
    id:'input', // (required) ID of the textarea
    width:584, // (optional) width of the editor
    height:175, // (optional) heightof the editor
    cssclass:'te', // (optional) CSS class of the editor
    controlclass:'tecontrol', // (optional) CSS class of the buttons
    rowclass:'teheader', // (optional) CSS class of the button rows
    dividerclass:'tedivider', // (optional) CSS class of the button diviers
    controls:['bold', 'italic', 'underline', 'strikethrough', '|', 'subscript', 'superscript', '|', 'orderedlist', 'unorderedlist', '|' ,'outdent' ,'indent', '|', 'leftalign', 'centeralign', 'rightalign', 'blockjustify', '|', 'unformat', '|', 'undo', 'redo', 'n', 'font', 'size', 'style', '|', 'image', 'hr', 'link', 'unlink', '|', 'cut', 'copy', 'paste', 'print'], // (required) options you want available, a '|' represents a divider and an 'n' represents a new row
    footer:true, // (optional) show the footer
    fonts:['Verdana','Arial','Georgia','Trebuchet MS'],  // (optional) array of fonts to display
    xhtml:true, // (optional) generate XHTML vs HTML
    cssfile:'style.css', // (optional) attach an external CSS file to the editor
    content:'starting content', // (optional) set the starting content else it will default to the textarea content
    css:'body{background-color:#ccc}', // (optional) attach CSS to the editor
    bodyid:'editor', // (optional) attach an ID to the editor body
    footerclass:'tefooter', // (optional) CSS class of the footer
    toggle:{text:'source',activetext:'wysiwyg',cssclass:'toggle'}, // (optional) toggle to markup view options
    resize:{cssclass:'resize'} // (optional) display options for the editor resize
});

The first parameter taken by TINY.editor.edit is the variable name used for the object instance. Keep in mind that before posting you will need to call the instance.post() function to ensure that the latest changes in the WYSIWYG translate into the text area. This script has been tested in all major browsers and is available free of charge for both personal or commercial projects under the creative commons license. Community support is available here. Paid support is also available, contact me for details.

Click here for the demo.

[Click here to download the source code](Click here to download the source code.)

1/8/2010 – Resolved a couple IE and Chrome issues and added some cleanup for Safari/Chrome. Thanks for the reports.

1/12/2010 – Resolved issue with conversion to lower case and the header row class.

Similar Projects

Discover other similar projects and AI models.

RepositoryTypeScript
Virtual-Protocol/openclaw-acp

[DEPRECATED] Use @virtuals-protocol/acp-cli instead

167
Jun 1, 2026
RepositoryJavaScript
sampotts/plyr

Deprecated in favour of Video.js 10; security updates only. Simple HTML5, YouTube and Vimeo player.

30.0k
Oct 21, 2026
RepositoryJavaScript
phantombuster/nickjs

Web scraping library made by the Phantombuster team. Modern, simple & works on all websites. (Deprecated)

495
Jun 19, 2020
RepositoryJavaScript
yordan-kanchelov/pixi-typescript-boilerplate

[DEPRECATED] Template for PixiJS using TypeScript and Webpack. Use pixijs/create-pixi instead.

190
Apr 19, 2026
RepositoryJavaScript
getify/let-er

DEPRECATED: Transpile non-ES6 let-blocks into ES6 (or ES3)

187
Oct 28, 2014
RepositoryJavaScript
Kitware/paraviewweb

Web framework for building interactive visualization relying on VTK or ParaView to produce visualization data

180
Apr 17, 2023
RepositoryJavaScript
markitondemand/DEPRECATED-DataApis

Markit On Demand - Market Data APIs

176
May 17, 2017
RepositoryJavaScript
airbrake/node-airbrake

node-airbrake is no longer maintained. Please visit https://airbrake.io/docs/performance-monitoring/updating-from-deprecated-libraries-for-node/

176
Apr 23, 2020
RepositoryJavaScript
GabrielBB/xvfb-action

Run your tests headlessly ❌🖥️

146
May 15, 2025