mirror of
https://github.com/basecamp/once-campfire.git
synced 2026-08-28 17:42:50 +09:00
20 lines
630 B
JavaScript
20 lines
630 B
JavaScript
import * as Lexxy from "lexxy"
|
|
import CampfireRichTextExtension from "lib/rich_text/campfire_extension"
|
|
|
|
Lexxy.configure({
|
|
global: {
|
|
// Keep the content type of mention attachments (application/vnd.campfire.mention)
|
|
// that Campfire has used since its Trix days
|
|
attachmentContentTypeNamespace: "campfire",
|
|
extensions: [ CampfireRichTextExtension ]
|
|
},
|
|
default: {
|
|
// Campfire sends files as separate messages via the composer's own
|
|
// attach button, never through the editor
|
|
toolbar: { attachments: false },
|
|
|
|
// Trix offered a single heading level, rendered as h1
|
|
headings: [ "h1" ]
|
|
}
|
|
})
|