### In what scenarios do you need this feature? @Vanessa219 目前插件 API 的 setting 对象,在 addItem 的时候,如果是 textarea 就会自动独立成块。  这种独立成块的布局非常常用,不光是 textarea 有用,有时候需要进行复杂布局的时候也会用上。 ### Describe the optimal solution 增加标识,让开发者指定是否 actionElement 是否要按照和 textarea 一样的行为独立成块。几种方案: 1. 为 `addItem` 添加一个参数 2. 读取 actionElement 上特定的标识,例如特定的 className 等 ### Describe the candidate solution _No response_ ### Other information _No response_
Activity
[-]Development | 强化 `Setting.addItem` ,允许用户直接指定是否元素独行成块[/-][+]Development | `Setting.addItem` 允许用户直接指定是否元素独行成块[/+][-]Development | `Setting.addItem` 允许用户直接指定是否元素独行成块[/-][+]Add `direction` to plugin method `Setting.addItem`[/+]🎨 siyuan-note/siyuan#11183
🎨 siyuan-note/siyuan#11183
🎨 #11183
direction
且 tagName 为 TEXTAREA 时,默认设置为 row 模式 #11198item.direction
#11214🔖 release: v0.3.5 / 2024-04-30