Files
fizzy/app/helpers/rich_text_helper.rb
T
2025-06-20 10:44:42 +02:00

10 lines
354 B
Ruby

module RichTextHelper
def mentions_prompt(collection)
content_tag "lexical-prompt", "", trigger: "@", src: prompts_collection_users_path(collection), name: "mention"
end
def cards_prompt
content_tag "lexical-prompt", "", trigger: "#", src: prompts_cards_path, name: "card", "insert-editable-text": true, "remote-filtering": true
end
end