refactor: use structured rich text for Notes editing
This commit is contained in:
@@ -8,7 +8,7 @@ func vimNormalCursorIsWideButInsertAndDisabledCursorsStayThin() throws {
|
||||
let editor = NotesTextView(frame: NSRect(x: 0, y: 0, width: 100, height: 50))
|
||||
editor.font = NotesAppearance.font
|
||||
editor.drawsBackground = false
|
||||
editor.setMarkdownContents(NSAttributedString(string: "text"))
|
||||
editor.setDocumentContents(NSAttributedString(string: "text"))
|
||||
func paintedWidth() throws -> Int {
|
||||
let bitmap = try #require(NSBitmapImageRep(bitmapDataPlanes: nil, pixelsWide: 100, pixelsHigh: 50,
|
||||
bitsPerSample: 8, samplesPerPixel: 4, hasAlpha: true, isPlanar: false,
|
||||
|
||||
Reference in New Issue
Block a user