Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

文字输入,不能自动换行, #5

Closed
yixiyimeng opened this issue Dec 31, 2019 · 1 comment
Closed

文字输入,不能自动换行, #5

yixiyimeng opened this issue Dec 31, 2019 · 1 comment

Comments

@yixiyimeng
Copy link

我在文本中使用enter键换行,canvas画图后,enter,转换为空格,未能成功换行

@S-mohan
Copy link
Owner

S-mohan commented Jan 1, 2020

我在文本中使用enter键换行,canvas画图后,enter,转换为空格,未能成功换行

文字部分只处理了自动换行的,手动换行的没有处理,可以修改此处代码,https://github.com/S-mohan/canvasTools/blob/master/src/js/main.js#L581 , 针对\r\n做相关处理

@S-mohan S-mohan closed this as completed Jan 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants