Skip to content

Commit 448dc11

Browse files
committed
Add gif to readme
1 parent 9088486 commit 448dc11

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,13 @@
22

33
⚠️ This package is under active development
44

5-
<!--[![Latest Stable Version](https://poser.pugx.org/idf/nova-unlayer-field/v/stable)](https://packagist.org/packages/idf/nova-unlayer-field)-->
6-
<!--[![Total Downloads](https://poser.pugx.org/idf/nova-unlayer-field/downloads)](https://packagist.org/packages/idf/nova-unlayer-field)-->
5+
[![Latest Stable Version](https://poser.pugx.org/idf/nova-unlayer-field/v/stable)](https://packagist.org/packages/idf/nova-unlayer-field)
6+
[![Total Downloads](https://poser.pugx.org/idf/nova-unlayer-field/downloads)](https://packagist.org/packages/idf/nova-unlayer-field)
77

88
Adds a Laravel Nova field for Unlayer to compose emails and landing pages.
99

10+
![image](https://p9.f1.n0.cdn.getcloudapp.com/items/04ugg6gN/Screen+Recording+2019-12-12+at+21.02.gif?v=f87d79deb34d097fbd890e933823a2f5)
11+
1012
## Installation
1113

1214
You can install the package in to a Laravel app that uses [Nova](https://nova.laravel.com) via composer:

resources/js/components/FormField.vue

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161
: toggleButton.innerText = this.fullscreenButtonText.on;
6262
},
6363
64-
/*
64+
/**
6565
* Set the initial, internal value for the field.
6666
*/
6767
setInitialValue() {
@@ -93,6 +93,10 @@
9393
unlayerScript.onload = onLoadCallback;
9494
document.head.appendChild(unlayerScript);
9595
},
96+
97+
/**
98+
* Init unlayer editor and add event listeners
99+
*/
96100
initEditor() {
97101
const unlayerConfig = this.field.config;
98102
unlayerConfig.id = this.containerId;

0 commit comments

Comments
 (0)