embed_basic

package module
v1.1.5 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2025 License: Apache-2.0 Imports: 6 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

embed 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