శీర్షిక
పేరాను శీర్షికగా మార్చి దాని స్థాయిని కూడా నిర్ణయిస్తుంది. టూల్బార్లో శీర్షికను ఎంచుకుని H1 నుంచి H6 వరకు ఒకదాన్ని ఎంచుకోండి లేదా ఖాళీ పేరాలో # నుంచి ###### వరకు టైప్ చేసిన తర్వాత స్పేస్ కీ నొక్కండి.
శీర్షిక ప్రత్యేక బ్లాక్ రకం కాదు; అది పేరాలో భద్రపరచబడే లక్షణం. శీర్షికను మళ్లీ నొక్కితే సాధారణ పేరాకు తిరిగి వస్తుంది; కాబట్టి వచన నిర్మాణాన్ని అలాగే ఉంచి స్థాయిని మాత్రమే మార్చవచ్చు.
వింగ్స్
ప్రాథమిక అక్షరరూపంఆఫ్సెట్
HTMLఎడిటర్ లోడ్ అవుతోంది…
JSONnabi-treeఎడిటర్ లోడ్ అవుతోంది…
ఇన్స్టాల్
npm install nabi-noteకోడ్
import {
createNabiWith, mountSurface, mountToolbar, mountContextToolbar,
mountHints, watchSettle, headingWing, bulletListWing, mountViewTools,
} from 'nabi-note'
const selected = [
headingWing,
bulletListWing,
]
const { nabi, registry } = createNabiWith(selected)
const root = document.querySelector('.nabi')!
const content = document.querySelector('.nabi-content')!
// The locale also sets the direction — Arabic and Urdu run right to left
mountSurface({ nabi, registry, root: content, locale: 'te' })
const settle = watchSettle(document, { surface: content })
const shared = { nabi, registry, surface: content, settle, locale: 'te' }
const toolbar = mountToolbar({ ...shared, root: document.querySelector('#toolbar')! })
const context = mountContextToolbar({ ...shared, root: document.querySelector('#context')! })
mountHints({ toolbar, context, root, surface: content })
// The preview and fullscreen buttons — they stand their own box at the end of the row
mountViewTools({ ...shared, root, container: document.querySelector('#toolbar')! })
// on every change — hook up your own code here
// nabi.onChange(() => user_callback(nabi.getHtml()))ts
const selected = wings().use('h').build()