From d88ae645f57b1aa6fccb1e87f78207e86785d0f1 Mon Sep 17 00:00:00 2001 From: Igor Veremsky Date: Mon, 30 Jul 2018 23:39:59 +0300 Subject: [PATCH] add constants for enter pressed js action (#31) --- src/FroalaEditorAsset.php | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/FroalaEditorAsset.php b/src/FroalaEditorAsset.php index 6a75f18..6466696 100644 --- a/src/FroalaEditorAsset.php +++ b/src/FroalaEditorAsset.php @@ -11,7 +11,16 @@ */ class FroalaEditorAsset extends AssetBundle { - /** + /** + * Constants for enter pressed action + * + * @see https://www.froala.com/wysiwyg-editor/examples/enter + */ + const ENTER_P = 0; // default + const ENTER_DIV = 1; + const ENTER_BR = 2; + + /** * @var string */ public $sourcePath = '@vendor/froala/wysiwyg-editor';