Skip to content
This repository has been archived by the owner on Nov 16, 2021. It is now read-only.

Options with $ on field declaration #43

Closed
muckypuddle-nick opened this issue Nov 1, 2019 · 1 comment
Closed

Options with $ on field declaration #43

muckypuddle-nick opened this issue Nov 1, 2019 · 1 comment

Comments

@muckypuddle-nick
Copy link

Hi,

I am trying to change the enter key behaviour on my Field in nova,
On the documentation it is stated that we should use:

'enter'=> '$.FroalaEditor.ENTER_DIV',

on the options of the field, which in my case doesn't work and messes up my inputs with tags.

What is the right way to use options like that?

@muckypuddle-nick muckypuddle-nick changed the title Options with $ on docus Options with $ on field declaration Nov 1, 2019
@slavarazum
Copy link
Collaborator

Looks like currently it's not possible, because $.FroalaEditor.ENTER_DIV is JavaScript expression, other options is just scalar types. We can't set javascript expressions in php configs.
I think you can send a suggestion to https://github.com/froala/wysiwyg-editor repository with a suggestion to improve it.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants