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

两个问题请教 #21

Open
roybill opened this issue Jul 15, 2020 · 3 comments
Open

两个问题请教 #21

roybill opened this issue Jul 15, 2020 · 3 comments

Comments

@roybill
Copy link

roybill commented Jul 15, 2020

1.怎么设置输入提示呢?类似安卓EditText的hint,现在打开默认是空白的,用户要点击RichEditor左上角才会获取焦点
2.字体大小怎么设置都无效, setFontSize和setEditorFontSize也不行, 直接设置 mEditor.setHtml("<p style="font-size:20px">");也不行

@RexSuper
Copy link
Owner

public void setHint(String placeholder) {
setPlaceholder(placeholder);
} 已经提供了hint方法

@RexSuper
Copy link
Owner

1.怎么设置输入提示呢?类似安卓EditText的hint,现在打开默认是空白的,用户要点击RichEditor左上角才会获取焦点
2.字体大小怎么设置都无效, setFontSize和setEditorFontSize也不行, 直接设置 mEditor.setHtml("

");也不行

问题2个是个大坑
暂时不能很好解决因为 font-size !=font size

@roybill
Copy link
Author

roybill commented Dec 2, 2020

@RexSuper
请问一下,设置hint,想要hint内容自动换行,加上 \n符号后,变成空白了该怎么解决呢?比如:
"1、需求内容:\n 2、服务商要求:\n 3、验收标准:\n 4、注意事项: 平台将对发布信息进行审核,严禁发布虚假、非法、广告等性质的内容。"

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