fix: editor gutters 样式

This commit is contained in:
xiaozzzi 2024-01-19 03:59:22 +08:00
parent 53cd182615
commit 742ff035c1

View File

@ -53,7 +53,10 @@ export const cwTheme: any = {
backgroundColor: 'var(--bl-editor-gutters-bg-color)',
borderColor: 'var(--bl-editor-gutters-border-color)',
color: 'var(--bl-editor-gutters-color)',
fontSize: '12px'
fontSize: '12px',
width: '50px',
minWidth: '50px',
maxWidth: '50px'
},
'.cm-activeLineGutter': {
backgroundColor: 'var(--bl-editor-gutters-bg-color)',
@ -364,7 +367,7 @@ export class CmWrapper {
return editor.state.doc.toString()
}
/**
*
*
* @param editor
* @returns
*/
@ -442,6 +445,9 @@ export class CmWrapper {
getDocLength = (): number => {
return CmWrapper.getDocLength(this._editor)
}
getTotalLine = () => {
return this.editor.state.doc.lines
}
getSelectionRangesText = (): string => {
return CmWrapper.getSelectionRangesText(this._editor)
}