tinymce

package module
v0.0.0-...-b469ef8 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2022 License: MIT Imports: 13 Imported by: 1

README

go-htmleditor

TinyMCE based HTML Editor using Go to host.

This tool will be geared toward simple, familiar, WYSIWIG editing of the I2P site which is built into I2P.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Content embed.FS
View Source
var MinHtmlDoc = `` /* 167-byte string literal not displayed */

Functions

func ContentType

func ContentType(path string, bytes []byte) string

func LoadFileOnDisk

func LoadFileOnDisk(file string) ([]byte, error)

func SaveFileOnDisk

func SaveFileOnDisk(file string, body []byte) error

func Serve

func Serve(host, dir, file string, port int) error

Types

type EditorView

type EditorView struct {
	Hostname string
	Port     int
	WorkDir  string
	File     string
}

func (EditorView) Origin

func (e EditorView) Origin() string

func (EditorView) ServeHTTP

func (e EditorView) ServeHTTP(w http.ResponseWriter, r *http.Request)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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