Giter Club home page Giter Club logo

paperbits-demo's Introduction

PaperBits Demo

This repository shows an example how developers can use PaperBits library to build their own web app with a nice online content editing capability.

You can see and play online with content editing capability on paperbits.io. Just follow tutorial steps.

For your convenience you can use and extend PaperBits library built on top of your favorite javascript framework Knockout, Angular or Aurelia.

Please check out detailed documentation page, getting started guides and repo with samples.

Basic functionality overview

If you have a website and need quickly extend it with web content edit functionality. You can easily add PaperBits library and get on your website flexible and light tools to create and edit all kinds of web content.

Add script and styles on your page

<script src="https://cdn.paperbits.io/everything.min.js" type="text/javascript"></script>
<link href="https://cdn.paperbits.io/everything.min.css" rel="stylesheet" type="text/css">

We support several web components with content editing capability. You can see component borders when you hover a mouse over it. You can change a selection for an active component. To switch to content edit mode just double click on a component and escape key for exit. In edit mode, you can change properties for selected component. You can drag selected component editor and place it in any position. To delete an item from the page, select it and press the delete key.

switch_edit.gif

Text edit

<paper-textblock></paper-textblock>

Textblock component support standard set of text styling features.

Picture edit

<paper-picture src="https://paperbits.io/images/pen-fight.svg" layout="noframe"></paper-picture>

You can add a picture element on a page by drag it from file explorer and drop it on a page. After the drop, you will see a notification popup to upload the picture to the media library. (Also, you can upload pictures directly to the media library) As soon as picture file will be uploaded, it will be accessible through the media library for drag and drop on a page.

switch_edit.gif

Another approach adding a picture on a page is drag and drop picture widget from the widget library and upload a picture file through the picture editor.

switch_edit.gif

Installation

PaperBits requires Node.js v5+ and TypeScript to run.

You need TypeScript, Bower and Gulp installed globally:

$ npm install -g typescript
$ npm install -g typings 
$ npm install -g bower 
$ npm install -g gulp

Clone PaperBits demo repo from GitHub

$ git clone [git-repo-url] paperbits-demo

Install required packages

$ cd paperbits-demo
$ npm install
$ bower install

Install required typings

$ cd src
$ typings install

License

GNU GPL 3

paperbits-demo's People

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.