Categorygithub.com/cj123/summernote-image-upload
modulepackage
1.0.2
Repository: https://github.com/cj123/summernote-image-upload.git
Documentation: pkg.go.dev

# README

summernote image upload

A typescript and golang package for handling summernote image upload to disk.

# Functions

DeInlineImages takes inHTML and looks at all <img> tags, reading all base64 inlined images and writing them to disk, replacing the source attributes in the process.
InlineImages takes inHTML and looks at all <img> tags, replacing their src attributes with a base64 encoded variant.
MigrateBase64ImageToDisk takes a base64 encoded image and writes it out to the directory specified, using a uuid.UUID as its filename.
MigrateDiskImageToBase64 reads an image from path and returns it as a base64 encoded image.
NewImageUploadHandler creates a new image upload handler with a given upload directory and URL prefix.

# Structs

No description provided by the author