- by Lee2sman
- Updated 2017-09-18
#!/usr/bin/env bash
for portability, or less good,#!/bin/bash
# Pencil Project Shortcuts | |
## General Shortcuts | |
+ New Document: Ctrl + n | |
+ Open: Ctrl + o | |
+ Save: Ctrl + s | |
+ Save as: Ctrl + Shift + s | |
+ Export: Ctrl + Shift + e | |
+ Print: Ctrl + p |
In order to add custom attributes to an HTML element that is generated by GrapesJS, one can simply make use of traits. For example, if you wish to produce an HTML element which contains the tag data-noout
, a trait with the name data-noout
can be added to a custom component.
var domComps = editor.DomComponents;
var dType = domComps.getType('default');
var dModel = dType.model;
wget https://gist.githubusercontent.com/senorihl/637430191235b5362a27a8c785f9623c/raw/03c206bb0c8cecaff50325dfd170d913d1d97f6e/clean-staging-branch.sh -O $HOME/.clean-staging-branch.sh
chmod a+x $HOME/.clean-staging-branch.sh
git config --global alias.clean-staging '!bash $HOME/.clean-staging-branch.sh'