پانویس
توضیحات تکمیلی را با شمارههای درون متن و فهرستی در پایان سند پیوند دهید.
با دکمهٔ پانویس در نوار ابزار، متن را وارد کنید تا پانویس در جای مکاننما درج شود. اگر متنی انتخاب شده باشد، پانویس در انتهای انتخاب و بدون جایگزینی متن درج میشود. شمارهها ذخیره نمیشوند و بهطور خودکار از ترتیب سند پیروی میکنند.
برای ویرایش محتوا در ردیف ویژگیها، روی شمارهٔ متن کلیک کنید. از ابزار حذف استفاده کنید یا کنار پانویس دو بار Backspace یا Delete بزنید تا ابتدا انتخاب و سپس حذف شود. فهرست پایین فقط خواندنی است و وقتی پانویسی نباشد ناپدید میشود.
در پیشنمایش و صفحات منتشرشده با viewer متصل، با بردن نشانگر روی شماره، کلیک یا لمس آن میتوانید محتوا را بخوانید. محتوا فقط یک خط متن ساده است و با قلم بدون سریف در اندازهٔ ۰٫۸۷۵ برابر اندازهٔ پایهٔ متن نمایش داده میشود. HTML عیناً بهصورت متن نمایش داده میشود.
npm install nabi-noteimport {
createLocale, createNabiWith, mountSurface, mountToolbar,
mountContextToolbar, mountHints, watchSettle, highlightWing, linkWing,
footnoteWing, mountViewTools,
} from 'nabi-note'
const selected = [
highlightWing,
linkWing,
footnoteWing,
]
const locale = createLocale('fa')
const { nabi, registry } = createNabiWith(selected, { locale })
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 })
const settle = watchSettle(document, { surface: content })
const shared = { nabi, registry, surface: content, settle, locale }
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()))
// Call from your language selector. Content and editing history stay intact.
// locale.setLocale('ko')const selected = wings().use('fn').build()