jodit-pro
Version:
PRO Version of Jodit Editor
2 lines (1 loc) • 880 B
JavaScript
const e="applyFormat",t="Apply or remove inline formatting to the current selection (bold, italic, underline, etc.) or to a specific block",r=[{name:"element",type:"string",description:'HTML element to wrap selection (e.g., "strong", "em", "u", "span")',required:!1},{name:"attributes",type:"object",description:'Attributes to apply (e.g., {"className": "highlight"}, {"style": {"color": "red"}})',required:!1},{name:"remove",type:"boolean",description:"If true, remove the formatting instead of applying it",required:!1,default:!1},{name:"blockIndex",type:"number",description:"Zero-based index of the block to format (if not using current selection)",required:!1},{name:"selector",type:"string",description:"CSS selector to find the block to format (if not using current selection)",required:!1}],o=!0;export{t as description,e as name,r as parameters,o as requiresPermission};