updates on editor

Former-commit-id: 2928727a06a94c0ea87ed821a472ae662df803d1 [formerly 098bc4234803078aba013f6312d179158194fffb] [formerly d2bb681fe62ba87a29b9866e291fb975489cd3fc [formerly 3d25185a557dab1fa529499572c0e6d5bf187ca1]]
Former-commit-id: 288ccb95466fbd234d278886800e1d27c54fa8dd [formerly 78c473865b085e97cf435cb230e2afa85559aba0]
Former-commit-id: c5dc56f4d6198c9c306c01573e1a1af5f1827c3a
This commit is contained in:
Henrique Dias
2017-07-01 08:36:28 +01:00
parent 90ba8e18da
commit cc462c8bca
23 changed files with 246 additions and 137 deletions

View File

@@ -123,20 +123,20 @@ func Marshal(data interface{}, mark rune) ([]byte, error) {
// Content is the block content
type Content struct {
Other interface{}
Fields []*Block
Arrays []*Block
Objects []*Block
Other interface{} `json:"other"`
Fields []*Block `json:"fields"`
Arrays []*Block `json:"arrays"`
Objects []*Block `json:"objects"`
}
// Block is a block
type Block struct {
Name string
Title string
Type string
HTMLType string
Content *Content
Parent *Block `json:"-"`
Name string `json:"name"`
Title string `json:"title"`
Type string `json:"type"`
HTMLType string `json:"htmlType"`
Content *Content `json:"content"`
Parent *Block `json:"-"`
}
func rawToPretty(config interface{}, parent *Block) *Content {