tr.v., -pat·ed, -pat·ing, -pates.
- Grammar. To shorten (a word) by syncope.
- Music. To modify (rhythm) by syncopation.
- 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.]
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
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'] ] });
Found an issue? Let us know (in GitHub's issue tracker)!