Problem/Motivation

Currently the build/mentionsIntegration.js relies on editor selection drop down to be present in the markup. It then iterates trough the select and attaches to the configured editors. This isn't the case in a situation when only 1 editor is selected on content type, since no dropdown for editor selection is present in the markup.

Steps to reproduce

Configure mention as normally, limit editor selection to 1 on the content type. Mentions won't trigger, no ajax calls will be triggered.

Proposed resolution

Use the data-editor-active-text-format on the textarea tag that is being updated in case an editor selection is changed or fallback to also checking for

Remaining tasks

User interface changes

API changes

Data model changes

Comments

janez zibelnik created an issue. See original summary.

edwardsay’s picture

sujan shrestha’s picture

Version: 1.1.0 » 2.0.x-dev
Status: Active » Fixed

Fixed in 2.0.x (commit f3512a1, release 2.0.1). The integration no longer depends on the format selector dropdown: each editor receives its own feed configuration, so it works when only one format is available. 1.1.x is no longer maintained; please update to 2.0.1.

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.