Browse Source

Update newsletter preset

pull/2301/head
Artur Arseniev 10 years ago
parent
commit
e41b286d6b
  1. 7
      demo-newsletter-editor.html
  2. 1
      demo.html
  3. 6
      js/grapes.min.js
  4. 18
      js/grapesjs-preset-newsletter.min.js
  5. 14
      stylesheets/grapesjs-preset-newsletter.css

7
demo-newsletter-editor.html

@ -7,11 +7,11 @@
<link rel="stylesheet" href="./stylesheets/material.css"> <link rel="stylesheet" href="./stylesheets/material.css">
<link rel="stylesheet" href="./stylesheets/tooltip.css"> <link rel="stylesheet" href="./stylesheets/tooltip.css">
<link rel="stylesheet" href="./stylesheets/toastr.min.css"> <link rel="stylesheet" href="./stylesheets/toastr.min.css">
<link rel="stylesheet" href="./stylesheets/grapesjs-preset-newsletter.css"> <link rel="stylesheet" href="./stylesheets/grapesjs-preset-newsletter.css?v=0.2.3">
<script src="./js/jquery.js"></script> <script src="./js/jquery.js"></script>
<script src="./js/grapes.min.js"></script> <script src="./js/grapes.min.js?v=0.5.3"></script>
<script src="./js/grapesjs-preset-newsletter.min.js"></script> <script src="./js/grapesjs-preset-newsletter.min.js?v=0.2.3"></script>
<script src="./js/toastr.min.js"></script> <script src="./js/toastr.min.js"></script>
<script src="./js/ajaxable.min.js"></script> <script src="./js/ajaxable.min.js"></script>
</head> </head>
@ -550,6 +550,7 @@
// Set up GrapesJS editor with the Newsletter plugin // Set up GrapesJS editor with the Newsletter plugin
var editor = grapesjs.init({ var editor = grapesjs.init({
clearOnRender: true,
height: '100%', height: '100%',
storageManager:{ storageManager:{
id: 'gjs-nl-', id: 'gjs-nl-',

1
demo.html

@ -925,6 +925,7 @@
var editor = grapesjs.init({ var editor = grapesjs.init({
clearOnRender: true,
height: '100%', height: '100%',
container : '#gjs', container : '#gjs',
fromElement: 1, fromElement: 1,

6
js/grapes.min.js

File diff suppressed because one or more lines are too long

18
js/grapesjs-preset-newsletter.min.js

File diff suppressed because one or more lines are too long

14
stylesheets/grapesjs-preset-newsletter.css

@ -54,14 +54,13 @@
.gjs-nv-item .gjs-nv-title-c, .gjs-nv-item .gjs-nv-title-c,
.gjs-off-prv, .gjs-off-prv,
.gjs-pn-panel, .gjs-pn-panel,
.gjs-block,
.gjs-select option, .gjs-select option,
.gjs-sm-sector .gjs-sm-colorp-c, .gjs-sm-sector .gjs-sm-colorp-c,
.gjs-sm-select option, .gjs-sm-select option,
.gjs-sm-unit option, .gjs-sm-unit option,
.sp-container, .sp-container {
.gjs-block { background-color: #373d49; }
background-color: #373d49;
}
.gjs-import-label, .gjs-import-label,
.gjs-export-label { .gjs-export-label {
@ -79,18 +78,15 @@
font-size: 12px; } font-size: 12px; }
/* Extra */ /* Extra */
.gjs-block { .gjs-block {
border: 1px solid rgba(0, 0, 0, 0.2); border: 1px solid rgba(0, 0, 0, 0.2);
border-radius: 3px; border-radius: 3px;
margin: 10px 2.5% 5px; margin: 10px 2.5% 5px;
box-shadow: 0 1px 0 0 rgba(0, 0, 0, 0.15); box-shadow: 0 1px 0 0 rgba(0, 0, 0, 0.15);
transition: box-shadow 0.2s ease 0s; transition: box-shadow, color 0.2s ease 0s; }
}
.gjs-block:hover { .gjs-block:hover {
box-shadow: 0 3px 4px 0 rgba(0, 0, 0, 0.15); box-shadow: 0 3px 4px 0 rgba(0, 0, 0, 0.15); }
}
#gjs-pn-views-container.gjs-pn-panel { #gjs-pn-views-container.gjs-pn-panel {
padding: 39px 0 0; } padding: 39px 0 0; }

Loading…
Cancel
Save