RichEditor for Android 是一款适用于 Android 的精美富文本所见即所得(WYSIWYG)编辑器。
RichEditor for Android 是一款适用于 Android 的精美富文本所见即所得(WYSIWYG)编辑器。
RichEditor for Android 是一个适用于 Android 的精美富文本 WYSIWYG 编辑器。
里程碑
repositories {
mavenCentral()
}
dependencies {
implementation 'jp.wasabeef:richeditor-android:2.0.0'
}高度
editor.setEditorHeight(200);字体
editor.setEditorFontSize(22);
editor.setEditorFontColor(Color.RED);背景
editor.setEditorBackgroundColor(Color.BLUE);
editor.setBackgroundColor(Color.BLUE);
editor.setBackgroundResource(R.drawable.bg);
editor.setBackground("https://raw.githubusercontent.com/wasabeef/art/master/chip.jpg");内边距
editor.setPadding(10, 10, 10, 10);占位符
editor.setPlaceholder("Insert text here...");其他
请参考示例了解用法。
有时在 Android 16 (API 级别 36) 中,库中会出现异常扩展
setOnDecorationChangeListener 不起作用
默认字体系列
手动调用以触发 setOnDecorationChangeListener
<p></p> 标签
按下 Bold 键,但当键盘隐藏时无法产生影响
检测是否启用样式
如何获取选中的文本
错误: 切换按钮不显示其状态,而且不总是发生变化
我如何获取 Cursor 的位置?