You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add vitest
Split presets/global into separate configs, use preset for global api, merge all config constructor args into tree
Run tests during local ci and github actions
Move javascript tests to into first level test/ folder
// finally, some options can only be configured globally
170
+
Lexxy.configure({
171
+
global: {
172
+
attachmentTagName:"bc-attachment"
173
+
}
174
+
})
175
+
```
176
+
145
177
## Options
146
178
147
-
The `<lexxy-editor>` element supports these options:
179
+
Editors support the following options, configurable using presets and element attributes:
180
+
181
+
-`toolbar`: Pass `false` to disable the toolbar entirely, or pass the ID of a `<lexxy-toolbar>` element to use as an external toolbar. By default, the toolbar is bootstrapped and displayed above the editor.
182
+
-`attachments`: Pass `false` to disable attachments completely. By default, attachments are supported, including paste and Drag & Drop support.
183
+
-`markdown`: Pass `false` to disable Markdown support.
184
+
-`multiLine`: Pass `false` to force single line editing.
185
+
-`richText`: Pass `false` to disable rich text editing.
186
+
187
+
In addition, the `<lexxy-editor>` element supports these attributes:
148
188
149
189
-`placeholder`: Text displayed when the editor is empty.
150
-
-`toolbar`: Pass `"false"` to disable the toolbar entirely, or pass an element ID to render the toolbar in an external element. By default, the toolbar is bootstrapped and displayed above the editor.
151
-
-`attachments`: Pass `"false"` to disable attachments completely. By default, attachments are supported, including paste and Drag & Drop support.
190
+
- Lexxy uses the `ElementInternals` API to participate in HTML forms as any standard control. This means that you can use standard HTML attributes like `name`, `value`, `required`, `disabled`, etc.
191
+
192
+
Finally, the following can only be configured using `Lexxy.configure({ global: ... })`:
152
193
153
-
Lexxy uses the `ElementInternals` API to participate in HTML forms as any standard control. This means that you can use standard HTML attributes like `name`, `value`, `required`, `disabled`, etc.
194
+
-`attachmentTagName`: The tag name used for [Action Text custom attachments](https://guides.rubyonrails.org/action_text_overview.html#signed-globalid). By default, they will be rendered as `action-text-attachment` tags.
0 commit comments