tneotia / html-editor-enhanced

A Flutter package that provides a WYSIWYG editor backed by flutter_inappwebview and the Summernote library.
https://pub.dev/packages/html_editor_enhanced
MIT License
269 stars 318 forks source link

[QUESTION] Summernote at Mention how to send object list instead of String list. #476

Open manikandansyncfusion opened 7 months ago

manikandansyncfusion commented 7 months ago

Type question here. Summernote at Mention how to send object list instead of String list.

getSuggestionsMobile: (String value) {
        User('a', 'a@email.com'),
                        User('b', 'b@email.com'),
                        User('c', 'c@email.com'),
        return mentions
            .where((element) => element.name.contains(value))

I want to show name and email id for at-mention suggestion but when i check the plugin it allow string list only. Even i tried to override with object list but it not work for me. When i send the object / json string into JS file it auto converted and not work as expected. I thought they split the string values using comma separator but i can't find where they write this logic to override.

Can you please suggest any one how i can able to display username and email address in suggestion list after entering @

Thanks, Manikandan Selvaraj.

Rishab-ms commented 7 months ago

I had the same issue for a long time