ఆకృతీకరణ తొలగించు

ఎంచుకున్న పరిధి నుంచి వచన ఆకృతీకరణను ఒకేసారి తొలగిస్తుంది. బోల్డ్, రంగు, అక్షరరూపం వంటి నమోదైన డిఫాల్ట్ గుర్తులతోపాటు శీర్షిక, సమలేఖనం, పెద్ద తొలి అక్షరం వంటి పేరా లక్షణాలు కూడా ఉంటాయి. Escని వేగంగా రెండుసార్లు నొక్కినా ఇదే జరుగుతుంది.

జాబితాలు, పట్టికలు, ఉల్లేఖనాలు, చిత్రాలు వంటి పత్ర నిర్మాణాలను ఇది సాధారణ వచనంగా మార్చదు. చిత్రాలు, వీడియోల బయటి సమలేఖనం, అప్‌లోడ్‌లు సృష్టించిన జోడింపు లింక్‌లు అలాగే ఉంటాయి.

వింగ్స్
ప్రాథమిక అక్షరరూపంఆఫ్‌సెట్
HTMLఎడిటర్ లోడ్ అవుతోంది…
JSONnabi-treeఎడిటర్ లోడ్ అవుతోంది…
ఇన్‌స్టాల్
npm install nabi-note
కోడ్
import {
  createNabiWith, mountSurface, mountToolbar, mountContextToolbar,
  mountHints, watchSettle, boldWing, italicWing, underlineWing,
  strikeWing, fontSizeWing, linkWing, imageWing, uploadWing,
  clearFormatWing, mountUpload, mountUploadView, mountViewTools,
} from 'nabi-note'

const selected = [
  boldWing,
  italicWing,
  underlineWing,
  strikeWing,
  fontSizeWing,
  linkWing,
  imageWing,
  uploadWing,
  clearFormatWing,
]
const { nabi, registry } = createNabiWith(selected)

const root = document.querySelector('.nabi')!
const content = document.querySelector('.nabi-content')!

const view = mountUploadView({ nabi, surface: content })
const upload = mountUpload({
  nabi, root: content,
  // your upload goes here — report progress with task.onProgress(0–100)
  uploader: async (task) => ({ uri: 'https://cdn.example/uploaded' }),
  extensions: ['png', 'jpg', 'pdf'], maxFileSize: 10 * 1024 * 1024,
  onStart: (tasks) => view.start(tasks),
  onProgress: (id, percent) => view.progress(id, percent),
  onSettle: () => view.settle(),
  onDone: () => view.done(),
})

// The locale also sets the direction — Arabic and Urdu run right to left
mountSurface({ nabi, registry, root: content, locale: 'te', fileSink: upload.take })

const settle = watchSettle(document, { surface: content })
const shared = { nabi, registry, surface: content, settle, locale: 'te' }
const toolbar = mountToolbar({ ...shared, root: document.querySelector('#toolbar')!, onFiles: upload.take })
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('b')
  .use('i')
  .use('clearFormat')
  .build()

తొలగించాలనుకున్న ఆకృతీకరణ వింగ్స్‌ను కూడా ఎంచుకోవాలి; లేకపోతే వాటి ఆకృతీకరణ తొలగదు.