Skip to content

saintclair/Pibble.js

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Pibble.js

This is a work in progress. The plugin isn't completely finished yet. Use at your own risk.

Pibble.js transforms near enough any element in to a content editable region. It makes use of HTML5's contenteditable attribute.

At the moment this is built as a jQuery plugin, but I'll be porting it over to 'vanilla' JS soon - therefore there will be no dependencies. (It's okay, there will still be a jQuery plugin wrapper for optional use).

Examples

Use like so:

$('#element').Pibble();

If you'd like to retrieve the content of the element, either formatted as HTML or Markdown, you can use either:

$('#element').data('Pibble').HTML()

or

$('#element').data('Pibble').markdown()

The HTML to Markdown parsing is thanks to reMarked.js, all credit to Leon Sorokin for that.

Isn't Pibble a stupid name?

Yeah, it's pretty stupid. I'm terrible at naming things, so Pibble is the result of the vowels of Scribble and Penman being merged (both being words to do with writing).

About

A content editing jQuery plugin

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 90.3%
  • CSS 9.7%