compact (NotesRichTextItem - JavaScript™) Compacts a rich text item to use minimum space. Defined inNotesRichTextItem Syntax compact() : void UsageIn rare cases, editing a rich text item may introduce extraneous space. This method eliminates any extraneous space. This method invalidates the positions of navigators and is best used at the end of editing.