Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

formSelector and inputSelector doen't work #42

Open
matcruzmx opened this issue Apr 18, 2020 · 2 comments
Open

formSelector and inputSelector doen't work #42

matcruzmx opened this issue Apr 18, 2020 · 2 comments

Comments

@matcruzmx
Copy link

Hi, i tryed to get the Json string in a form with the formSelector and inputSelector, but doesn´t work, is there any error in this snippet code?

Thank you, great work!!

$(function () {
  $("#editor").brickyeditor({
    formSelector: 'frm_1',
    inputSelector: 'fld_1',
    ignoreHtml: true,
    blocksUrl: 'data.json',
    templatesUrl: 'templates.html',
  });
});
@yakovlevga
Copy link
Owner

Hi! It looks like you forget to add # to your id selectors, try to use formSelector: '#frm_1' or inputSelector: '#fld_1'

@matcruzmx
Copy link
Author

Hi, yakovlevga... thanks for your support.

I tryed with # and whitout it, but doesn't work, I dowloaded the demo and only put a test form inside with only single field, it's like it doesn't catch the submit event

formSelector: '#frm_1',
inputSelector: '#fld_1',

Thank you!!

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

No branches or pull requests

2 participants