diff --git a/templates/page/editor.mako b/templates/page/editor.mako index 0876acc307a..b46346451bc 100644 --- a/templates/page/editor.mako +++ b/templates/page/editor.mako @@ -474,20 +474,39 @@ // Embedded item HTML; item class is embedded in div container classes; this is necessary because the editor strips // all non-standard attributes when it returns its content (e.g. it will not return an element attribute of the form // item_class='History'). + var item_elt_id = item_info.iclass + "-" + item_id; var item_embed_html = "\ -
\ + item_info.singular.toLowerCase() + " when it is displayed.] \ \ - "; + "; - // Insert embedded representation into document. - // TODO: maybe try replace() instead to handle indenting? + // Insert embedded item into document. wym.insert(item_embed_html); + + // TODO: can we fix this? + // Due to oddities of wym.insert() [likely due to inserting a