upload_file

package module
v1.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 12, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

README

upload file plugin

This plugin is used to extend the toolbar of the markdown editor of the answer project.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Build embed.FS
View Source
var Info embed.FS

Functions

This section is empty.

Types

type Embed

type Embed struct {
	Config *EmbedConfig
}

func (*Embed) ConfigFields

func (e *Embed) ConfigFields() []plugin.ConfigField

func (*Embed) ConfigReceiver

func (e *Embed) ConfigReceiver(config []byte) error

func (*Embed) GetEmbedConfigs

func (e *Embed) GetEmbedConfigs(ctx *gin.Context) (embedConfigs []*plugin.EmbedConfig, err error)

GetEmbedConfigs get embed configs

func (*Embed) Info

func (e *Embed) Info() plugin.Info

type EmbedConfig

type EmbedConfig struct {
	Codepen    bool `json:"codepen"`
	Dropbox    bool `json:"dropbox"`
	Excalidraw bool `json:"excalidraw"`
	Figma      bool `json:"figma"`
	Githubgist bool `json:"githubgist"`
	Jsfiddle   bool `json:"jsfiddle"`
	Loom       bool `json:"loom"`
	Twitter    bool `json:"twitter"`
	Youtube    bool `json:"youtube"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL