@one2x/medeo-rte 0.4.5 → 0.4.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/index.js +1279 -1261
- package/dist/index.js.map +1 -1
- package/dist/types/editor.d.ts +2 -2
- package/dist/types/editor.d.ts.map +1 -1
- package/dist/types/layout/engine.d.ts.map +1 -1
- package/dist/types/layout/types.d.ts +2 -0
- package/dist/types/layout/types.d.ts.map +1 -1
- package/dist/types/layout/wrap.d.ts.map +1 -1
- package/dist/types/model/types.d.ts +3 -1
- package/dist/types/model/types.d.ts.map +1 -1
- package/dist/types/paint/canvasPainter.d.ts +2 -2
- package/dist/types/paint/canvasPainter.d.ts.map +1 -1
- package/dist/types/paint/htmlPainter.d.ts +2 -2
- package/dist/types/paint/htmlPainter.d.ts.map +1 -1
- package/dist/types/paint/types.d.ts +4 -2
- package/dist/types/paint/types.d.ts.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -154,7 +154,7 @@ editor.insertVirtualBlock({
|
|
|
154
154
|
editor.insertVirtualBlock({ kind: 'mark', start: 0, end: 20, chrome: { background: '#fff3bf' } });
|
|
155
155
|
```
|
|
156
156
|
|
|
157
|
-
可配的 `chrome` 字段:`background`、`hoverBackground`(仅 mark)、`radius`、`borderColor` / `borderWidth`、`paddingX`(仅水平)、文字缺省(`color`、`fontSize`、`fontFamily`、`fontWeight`、`bold`、`italic`)、`placeholderColor`(mark
|
|
157
|
+
可配的 `chrome` 字段:`background`、`hoverBackground`(仅 mark)、`radius`、`borderColor` / `borderWidth`、`paddingX`(仅水平)、文字缺省(`color`、`fontSize`、`fontFamily`、`fontWeight`、`bold`、`italic`)、`placeholderColor`(mark 的灰字)、`hoverPlaceholderColor`(悬停时的灰字颜色,不进撤销)。
|
|
158
158
|
|
|
159
159
|
改皮 / 拆皮:`updateVirtualBlock(id, chrome)`、`removeVirtualBlock(id)`(只拆皮,字和胶囊留下)。
|
|
160
160
|
|