అక్షర పరిమాణం
ఎంచుకున్న వచనాన్ని ఒక పరిమాణ దశకు మార్చండి. పరిధి ఎంచుకుని ఉంటే ఆ పరిధికి వర్తిస్తుంది; కర్సర్ మాత్రమే ఉంటే ప్రస్తుత పేరా వచన పరిమాణం మారుతుంది. నిల్వ డేటా px వంటి ఏకపక్ష విలువలను కాకుండా అనుమతించిన దశలనేం ఉంచుతుంది.
వింగ్స్
ప్రాథమిక అక్షరరూపంఆఫ్సెట్
HTMLఎడిటర్ లోడ్ అవుతోంది…
JSONnabi-treeఎడిటర్ లోడ్ అవుతోంది…
ఇన్స్టాల్
npm install nabi-noteకోడ్
import {
createNabiWith, mountSurface, mountToolbar, mountContextToolbar,
mountHints, watchSettle, boldWing, italicWing, underlineWing,
strikeWing, typefaceWing, fontSizeWing, clearFormatWing,
mountViewTools,
} from 'nabi-note'
const selected = [
boldWing,
italicWing,
underlineWing,
strikeWing,
typefaceWing,
fontSizeWing,
clearFormatWing,
]
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('fs', {
values: ['sm', 'lg', 'xl'],
}).build()valuesను వదిలేస్తే xs, sm, lg, xl దశలు వాడతారు. జాబితాను కుదిస్తే పాత పత్రాల్లో ఉన్న ఇతర దశలు లోడ్ చేసినప్పుడు తొలగిపోతాయి.
CSS శైలులు
.nabi-content [data-nabi-size="xs"] వంటి నిల్వ-దశ సెలెక్టర్లతో పరిమాణాలు మార్చవచ్చు. పత్రంలో లేని ఏకపక్ష దశలను సృష్టించవద్దు; నమోదైన valuesలోనే CSSను సర్దండి.
css
.article-body [data-nabi-size="xs"] { font-size: .78em; }
.article-body [data-nabi-size="sm"] { font-size: .9em; }
.article-body [data-nabi-size="lg"] { font-size: 1.3em; }
.article-body [data-nabi-size="xl"] { font-size: 1.65em; }దశల మధ్య పరిమాణ వ్యత్యాసాన్ని స్థిరంగా ఉంచితే, పత్రం ప్రచురించినప్పుడు రచయిత ఎడిటర్లో ఎంచుకున్న అర్థం నిలుస్తుంది.