Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ImageFeature = &ImageFeatureBlock{ BaseFeature: features.BaseFeature{ Type: "image", JSConstructor: "Image", JSFiles: []string{ "editorjs/js/deps/tools/image.js", }, Build: func(fb *features.FeatureBlock) *features.FeatureBlock { fb.GetString = func(d editor.BlockData) string { return fmt.Sprintf("[%s](%s)", d.Data["caption"], d.Data["url"]) } return fb }, Register: func(m django.Mux) { m.Post( "/upload-image", mux.NewHandler(uploadImage), "upload-image", ) }, }, RenderFunc: renderImage, }
Functions ¶
This section is empty.
Types ¶
type ImageFeatureBlock ¶
Click to show internal directories.
Click to hide internal directories.