Skip to content

Instantly share code, notes, and snippets.

@moo2u2
Created May 4, 2016 04:48
Show Gist options
  • Save moo2u2/929eece3735ec497f687c5dd0c8bd68d to your computer and use it in GitHub Desktop.
Save moo2u2/929eece3735ec497f687c5dd0c8bd68d to your computer and use it in GitHub Desktop.
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="CustomEditor.aspx.cs" Inherits="Sitecore.Common.Website.Editors.Components" %>
<%@ Register TagPrefix="sitecore" Namespace="Sitecore.Web.UI.HtmlControls" Assembly="Sitecore.Kernel" %>
<!-- Custom editor based on the Sitecore preview editor -->
<div id="ContentEditor" style="width: 100%; height: 100%;">
<sitecore:Border runat="server" ID="DisabledNotice" Visible="false">
<br />
<sitecore:Literal ID="AlertMessage" runat="server"></sitecore:Literal>
</sitecore:Border>
<div id="Page" style="width: 100%; height: 100%">
<div id="Shadow">
<sitecore:Frame runat="server" ID="Editor" AllowTransparency="false" />
</div>
</div>
</div>
<script>
function renderingClicked(datasourceId) {
parent.scForm.postEvent("", "", "item:load(id=" + datasourceId + ",language=en)");
}
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment