popline ============ Popline is a non-intrusive WYSIWYG editor that shows up only after selecting a piece of text on the page, inspired by popclip. ## Usage Load jQuery and popline: ```html ``` Or Load the popline plugins which you want: ```html ... ``` Load font-awesome and popline theme: ```html ``` Add a editable div to page: ```html
``` Initialize you popline for you editor: ```js $(".editor").popline(); ``` ## View Mode Popline also support `View Mode`, you can send a twitter, a facebook message, pin an image to pinterest, search with google in `View Mode` ```js $(".editor").popline({mode: 'view'}); ``` ## Popup Position Popline can popup at top of the paragraph which you selected (like Medium) or popup on the mouse pointer position. ```js $(".editor").popline({position: 'fixed'}); $(".editor").popline({position: 'relative'}); ``` The default option is 'fixed'. ## Enable / Disable / Reorder plugins You can enable/disable/reorder plugins when popline initialize. ```js $(".editor").popline({enable: ["link", ["justify", ["justifyCenter", "indent"]] , "orderedList", "unOrderedList"]}); $(".editor").popline({disable: ["link", "blockquote"]}); ``` ## Extension Todo ## Theme customize #### default  #### popclip  Hack the theme css and create yours. ## Example