|
@@ -434,15 +434,9 @@ func getEmbeddedBlock(trees map[string]*parse.Tree, sqlBlock *sql.Block, heading
|
|
luteEngine.RenderOptions.ProtyleContenteditable = false // 不可编辑
|
|
luteEngine.RenderOptions.ProtyleContenteditable = false // 不可编辑
|
|
dom := renderBlockDOMByNodes(nodes, luteEngine)
|
|
dom := renderBlockDOMByNodes(nodes, luteEngine)
|
|
block = &Block{Box: def.Box, Path: def.Path, HPath: b.HPath, ID: def.ID, Type: def.Type.String(), Content: dom}
|
|
block = &Block{Box: def.Box, Path: def.Path, HPath: b.HPath, ID: def.ID, Type: def.Type.String(), Content: dom}
|
|
- defBreadCrumb := def.IALAttr("breadcrumb")
|
|
|
|
- if "" != defBreadCrumb {
|
|
|
|
- if "true" == defBreadCrumb {
|
|
|
|
- blockPaths = buildBlockBreadcrumb(def)
|
|
|
|
- }
|
|
|
|
- } else {
|
|
|
|
- if Conf.Editor.EmbedBlockBreadcrumb {
|
|
|
|
- blockPaths = buildBlockBreadcrumb(def)
|
|
|
|
- }
|
|
|
|
|
|
+ if breadcrumb {
|
|
|
|
+ blockPaths = buildBlockBreadcrumb(def)
|
|
|
|
+
|
|
}
|
|
}
|
|
if 1 > len(blockPaths) {
|
|
if 1 > len(blockPaths) {
|
|
blockPaths = []*BlockPath{}
|
|
blockPaths = []*BlockPath{}
|