Browse Source

Update README

pull/487/head
Artur Arseniev 8 years ago
parent
commit
769246e3bf
  1. 50
      README.md
  2. 4
      dist/grapes.min.js
  3. 2
      package-lock.json
  4. 2
      package.json
  5. 6
      src/style_manager/view/PropertyView.js

50
README.md

@ -32,8 +32,8 @@ Newsletter Demo - http://grapesjs.com/demo-newsletter-editor.html
* [Features](#features)
* [Download](#download)
* [Development](#development)
* [Usage](#usage)
* [Development](#development)
* [Documentation](#documentation)
* [API](#api)
* [Testing](#testing)
@ -90,30 +90,6 @@ For the development purpose you should follow instructions below.
## Development
GrapesJS uses [Webpack](https://github.com/webpack/webpack) as a module bundler and [Babel](https://github.com/babel/babel) as a compiler.
Clone the repository and install all the necessary dependencies
```sh
$ git clone https://github.com/artf/grapesjs.git
$ cd grapesjs
$ npm i
```
Start the dev server
```sh
$ npm start
```
Once the development server is started you should be able to reach the demo page (eg. `http://localhost:8080`)
## Usage
```html
@ -153,6 +129,30 @@ For more practical example I suggest to look up the code inside this demo: http:
## Development
GrapesJS uses [Webpack](https://github.com/webpack/webpack) as a module bundler and [Babel](https://github.com/babel/babel) as a compiler.
Clone the repository and install all the necessary dependencies
```sh
$ git clone https://github.com/artf/grapesjs.git
$ cd grapesjs
$ npm i
```
Start the dev server
```sh
$ npm start
```
Once the development server is started you should be able to reach the demo page (eg. `http://localhost:8080`)
## Documentation
Check the getting started guide here: [wiki]

4
dist/grapes.min.js

File diff suppressed because one or more lines are too long

2
package-lock.json

@ -1,6 +1,6 @@
{
"name": "grapesjs",
"version": "0.12.22",
"version": "0.12.23",
"lockfileVersion": 1,
"requires": true,
"dependencies": {

2
package.json

@ -1,7 +1,7 @@
{
"name": "grapesjs",
"description": "Free and Open Source Web Builder Framework",
"version": "0.12.22",
"version": "0.12.23",
"author": "Artur Arseniev",
"license": "BSD-3-Clause",
"homepage": "http://grapesjs.com",

6
src/style_manager/view/PropertyView.js

@ -284,9 +284,9 @@ module.exports = Backbone.View.extend({
*/
getComputedValue() {
const target = this.propTarget;
const computed = target.computed;
const computedDef = target.computedDefault;
const avoid = this.config.avoidComputed;
const computed = target.computed || {};
const computedDef = target.computedDefault || {};
const avoid = this.config.avoidComputed || [];
const property = this.model.get('property');
const notToSkip = avoid.indexOf(property) < 0;
const value = computed[property];

Loading…
Cancel
Save