AudioSettings

23 Sep 20251 minute to read

Configures the audio settings of the RichTextEditor.

Properties

allowedTypes string[]

Specifies the allowed file types for audio selection.

Defaults to [‘.wav’, ‘.mp3’, ‘.m4a’, ‘.wma’]

layoutOption DisplayLayoutOptions

Specifies whether the audio is inserted inline or with a break.

Defaults to ‘Inline’

maxFileSize number

Specifies the maximum file size for audio uploads in bytes.

Defaults to ‘30000000’

path string

Specifies the path for storing and displaying audio files.

Defaults to null

removeUrl string

Specifies the URL for the remove action that handles audio removal on the server.

Defaults to null

saveFormat SaveFormat

Specifies whether the inserted audio is saved as a blob or base64.

Defaults to ‘Blob’

saveUrl string

Specifies the URL for the save action that handles uploaded audio files on the server.

Defaults to null