public
Description: A very simple rich text editor (RTE) in jQuery and Disco
Homepage:
Clone URL: git://github.com/coreyti/syncopate.git
name age message
file .gitignore Loading commit data...
file .gitmodules Thu May 21 21:32:51 -0700 2009 change submodule URLs from private to public gi... [Alex Chaffee]
file README.md Fri May 22 11:15:06 -0700 2009 minor style change for screw-unit runner. minor... [coreyti]
directory example/ Thu May 21 19:41:05 -0700 2009 initial commit [coreyti]
directory lib/
directory spec/ Fri Oct 09 15:53:54 -0700 2009 properly send parameters through from commands ... [zilkey]
directory vendor/ Thu May 21 19:41:05 -0700 2009 initial commit [coreyti]
README.md

syn·co·pate (sĭng'kə-pāt', sĭn'-)

tr.v., -pat·ed, -pat·ing, -pates.

  1. Grammar. To shorten (a word) by syncope.
  2. Music. To modify (rhythm) by syncopation.
  3. Web Development.
    • To synchronize a textarea with a basic "rich text editor", using very little code.
    • A response to my (i.e., Corey Innis) Pivotal Labs "blab"

[Late Latin syncopāre, syncopāt-, from syncopē, syncope. See syncope.]

(shake, shake, shake) shake your booty

Hey, you wanna get down tonight? Check out:

  • example/index.html; that's the way (i like it)
  • the screw unit spec suite in spec/suite.html; stayin' alive

you should be dancing

For your own site,

  • copy and reference:
    • lib/jquery.js
    • lib/disco.js
    • lib/sycopate.js
  • get your groove on:

    $('textarea.syncopate').syncopate({
      // 'commands' is an array of arrays, grouping editor commands.
      // check out https://developer.mozilla.org/En/Rich-Text_Editing_in_Mozilla
      commands : [
        ['bold', 'italic', 'underline'],
        ['indent', 'outdent']
      ]
    });
    

reach out (i'll be there)

Found an issue? Let us know (in GitHub's issue tracker)!