Ace API Reference
    Preparing search index...

    Function trimTrailingSpace

    • Removes trailing whitespace from all lines in the session.

      Parameters

      • session: EditSession
      • options: { keepCursorPosition?: boolean; trimEmpty?: boolean }
        • OptionalkeepCursorPosition?: boolean

          do not trim whitespace before the cursor

        • OptionaltrimEmpty?: boolean

          trim empty lines too

      Returns void