yakovlevga / brickyeditor

WYSIWYG block editor jQuery plugin.
MIT License
115 stars 20 forks source link

formSelector and inputSelector doen't work #42

Open matcruzmx opened 4 years ago

matcruzmx commented 4 years ago

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 commented 4 years ago

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

matcruzmx commented 4 years ago

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!!