https://github.com/grapesjs/touch
Enable touch support in GrapesJS
https://github.com/grapesjs/touch
Last synced: 11 months ago
JSON representation
Enable touch support in GrapesJS
- Host: GitHub
- URL: https://github.com/grapesjs/touch
- Owner: GrapesJS
- License: bsd-3-clause
- Created: 2018-09-02T14:41:33.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2020-10-07T18:31:44.000Z (over 5 years ago)
- Last Synced: 2025-04-12T04:51:55.066Z (about 1 year ago)
- Language: JavaScript
- Size: 93.8 KB
- Stars: 21
- Watchers: 2
- Forks: 15
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# GrapesJS Touch
This plugin enables touch support for the GrapesJS editor [Demo](https://grapesjs.com/demo.html)
> Requires GrapesJS v0.14.29 or higher
## Summary
* Plugin name: `grapesjs-touch`
## Options
This plugin has no options
## Download
* CDN
* `https://unpkg.com/grapesjs-touch`
* NPM
* `npm i grapesjs-touch`
* GIT
* `git clone https://github.com/artf/grapesjs-touch.git`
## Usage
Browser
```html
var editor = grapesjs.init({
container : '#gjs',
// ...
plugins: ['grapesjs-touch']
});
```
Modern javascript
```js
import grapesjs from 'grapesjs';
import grapesjsTouch from 'grapesjs-touch';
const editor = grapesjs.init({
container : '#gjs',
// ...
plugins: [ grapesjsTouch ]
});
```
## Development
Clone the repository
```sh
$ git clone https://github.com/artf/grapesjs-touch.git
$ cd grapesjs-touch
```
Install dependencies
```sh
$ npm i
```
Start the dev server
```sh
$ npm start
```
## License
BSD 3-Clause