Browse Source

Merge branch 'dev' into up-style-manager

up-style-manager
Artur Arseniev 4 years ago
parent
commit
8cee4f193c
  1. 2
      dist/css/grapes.min.css
  2. 4
      docs/README.md
  3. 2
      src/block_manager/view/BlockView.js
  4. 2
      src/styles/scss/_gjs_blocks.scss

2
dist/css/grapes.min.css

File diff suppressed because one or more lines are too long

4
docs/README.md

@ -3,7 +3,7 @@
[[toc]]
## What is GrapesJS?
At first glance might think this is just another page/HTML builder, but it's something more. GrapesJS is a multi-purpose, Web Builder Framework, which means it allows you to easily create a drag & drop enabled builder of "things". By "things" we mean anything with HTML-like structure, which entails much more than web pages. We use HTML-like structure basically everywhere: Newsletters (eg. [MJML](https://mjml.io/)), Native Mobile Applications (eg. [React Native](https://github.com/facebook/react-native)), Native Desktop Applications (eg. [Vuido](https://vuido.mimec.org)), PDFs (eg. [React PDF](https://github.com/diegomura/react-pdf)), etc. So, for everything you can imagine as a set of elements like `<tag some="attribute">... other nested elements ...</tag>` you can create easily a GrapesJS builder around it and then use it independently your applications.
At first glance one might think this is just another page/HTML builder, but it's something more. GrapesJS is a multi-purpose, Web Builder Framework, which means it allows you to easily create a drag & drop enabled builder of "things". By "things" we mean anything with HTML-like structure, which entails much more than web pages. We use HTML-like structure basically everywhere: Newsletters (eg. [MJML](https://mjml.io/)), Native Mobile Applications (eg. [React Native](https://github.com/facebook/react-native)), Native Desktop Applications (eg. [Vuido](https://vuido.mimec.org)), PDFs (eg. [React PDF](https://github.com/diegomura/react-pdf)), etc. So, for everything you can imagine as a set of elements like `<tag some="attribute">... other nested elements ...</tag>` you can create easily a GrapesJS builder around it and then use it independently your applications.
GrapesJS ships with features and tools that enable you to craft easy to use builders. Which allows your users to create complex HTML-like templates without any knowledge of coding.
@ -11,7 +11,7 @@ GrapesJS ships with features and tools that enable you to craft easy to use buil
## Why GrapesJS?
GrapesJS was designed primarily for use inside Content Management Systems to speed up the creation of dynamic templates and replace common WYSIWYG editors. Which are good for content editing, but inappropriate for creating HTML structures. Instead of creating an application we decided to create an extensible framework that could be used by anyone for any purpose.
GrapesJS was designed primarily for use inside Content Management Systems to speed up the creation of dynamic templates and replace common WYSIWYG editors, which are good for content editing, but inappropriate for creating HTML structures. Instead of creating an application we decided to create an extensible framework that could be used by anyone for any purpose.

2
src/block_manager/view/BlockView.js

@ -128,7 +128,7 @@ export default Backbone.View.extend({
${media ? `<div class="${className}__media">${media}</div>` : ''}
<div class="${className}-label">${label}</div>
`;
el.title = el.textContent.trim();
el.title = attr.title || el.textContent.trim();
el.setAttribute('draggable', hasDnd(em) && !disable ? true : false);
const result = render && render({ el, model, className, prefix: ppfx });
if (result) el.innerHTML = result;

2
src/styles/scss/_gjs_blocks.scss

@ -57,6 +57,7 @@
&__media {
margin-bottom: 10px;
pointer-events: none;
}
}
@ -82,6 +83,7 @@
font-family: Helvetica, sans-serif;
overflow: hidden;
text-overflow: ellipsis;
pointer-events: none;
}
.#{$app-prefix}block.#{$app-prefix}bdrag {

Loading…
Cancel
Save