Keyless standalone issue

Keyless standalone issue

nessinitsnessinits Posts: 86Questions: 27Answers: 0

Hi,

I'm trying to use a standalone editor. I'm getting a system error, based on the fact that I don't know how to add the key data to the POST. In the curl I see data%5Bkeyless%5D.

What I'm trying to do:

                $('*[data-editor-field]').on( 'click', function () {
                    console.log(this);
                    wl_personseditor.inline(this, {
                        onBlur: 'submit',
                        submit: 'all'
                    })
                    .edit(1);
                } );

I've also tried '1' and 'row_1'. All lead to the same POST and similar response (system error).

Does anyone know what I might be missing?

Kind regards,
nessinits

This question has an accepted answers - jump to answer

Answers

  • allanallan Posts: 63,471Questions: 1Answers: 10,467 Site admin
    Answer ✓

    Hi,

    keyless is used by Editor if it can't find a parent element which has a data-editor-id attribute assigned to it. If you add that, the issue should be resolved.

    The documentation for this contains an example.

    Allan

This discussion has been closed.