Skip to content

Text连续多个空格时,在编辑态默认只显示一个 #905

Description

@lanrenbulan
// #图形编辑器 [editable]
import { App, Rect,Text } from 'leafer-ui'
import '@leafer-in/editor' // 导入图形编辑器插件  
import '@leafer-in/viewport' // 导入视口插件 (可选)

const app = new App({ view: window, editor: {} })

const rect1 = Text.one({ editable: true, fill: '#FEB027', text:'abc     dsds' }, 100, 100) 
const rect2 = Rect.one({ editable: true, fill: '#FFE04B', cornerRadius: [0, 20, 20, 0] }, 300, 100)

app.tree.add(rect1)
app.tree.add(rect2)

编辑前:
Image

Image

编辑中:
Image
编辑后:
Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions