MCPcopy Create free account
hub / github.com/editablejs/editable / getStyle

Function getStyle

packages/plugins/heading/src/options.ts:60–66  ·  view source on GitHub ↗
(
  editor: Editor,
  type: HeadingType,
)

Source from the content-addressed store, hash-verified

58}
59
60export const getStyle = (
61 editor: Editor,
62 type: HeadingType,
63): Record<HeadingFontStyleName, string> => {
64 const { style = defaultStyle } = getOptions(editor)
65 return style[type] ?? defaultStyle[type]
66}
67
68const defaultTextMark: HeadingTextMark = {
69 fontSize: 'fontSize',

Calls 1

getOptionsFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…