This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<configuration xmlns:patch="http://www.sitecore.net/xmlconfig/"> | |
<sitecore> | |
<pipelines> | |
<mvc.renderRendering> | |
<processor type="EditorEnhancementToolkit.Foundation.ContentEditor.Pipelines.RenderRenderer.InjectExperiencEditorAssets,EditorEnhancementToolkit.Foundation.ContentEditor"> | |
<styles hint="list:addStyleResource"> | |
<resource>/sitecore modules/Shell/Editor Enhancement Toolkit/Resources/EditorEnhancementToolkit.css</resource> | |
</styles> | |
</processor> | |
<processor type="Sitecore.Mvc.ExperienceEditor.Pipelines.Response.RenderRendering.AddWrapper, Sitecore.Mvc.ExperienceEditor" patch:before="processor[@type='Sitecore.Mvc.Pipelines.Response.RenderRendering.ExecuteRenderer, Sitecore.Mvc']"/> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Collections.Generic; | |
using System.IO; | |
using Sitecore.Mvc.Pipelines.Response.RenderRendering; | |
namespace EditorEnhancementToolkit.Foundation.ContentEditor.Pipelines.RenderRenderer | |
{ | |
public class InjectExperiencEditorAssets : RenderRenderingProcessor | |
{ | |
private const string CssLinkPattern = @"<link href=""{0}"" rel=""stylesheet"" />"; | |
private readonly IList<string> StyleSheetList = new List<string>(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<configuration xmlns:patch="http://www.sitecore.net/xmlconfig/"> | |
<sitecore> | |
<pipelines> | |
<processor type="EditorEnhancementToolkit.Foundation.ContentEditor.Pipelines.RenderRenderer.InjectExperiencEditorAssets,EditorEnhancementToolkit.Foundation.ContentEditor"> | |
<styles hint="list:addStyleResource"> | |
<resource>/sitecore modules/Shell/Editor Enhancement Toolkit/Resources/EditorEnhancementToolkit.css</resource> | |
</styles> | |
</processor> | |
</pipelines> | |
</sitecore> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using EditorEnhancementToolkit.Foundation.ContentEditor.Enum; | |
using EditorEnhancementToolkit.Foundation.ContentEditor.ItemMapping; | |
using Sitecore.Rules.Actions; | |
namespace EditorEnhancementToolkit.Foundation.ContentEditor.Rules.Actions | |
{ | |
public class SetAdditionalFieldInformation<T> : RuleAction<T> where T : ContentEditorRuleContext | |
{ | |
public string FieldName { get; set; } | |
public string Text { get; set; } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Linq; | |
using System.Text; | |
using EditorEnhancementToolkit.Foundation.ContentEditor.Enum; | |
using EditorEnhancementToolkit.Foundation.ContentEditor.Rules; | |
using Sitecore.Configuration; | |
using Sitecore.Pipelines.RenderField; | |
namespace EditorEnhancementToolkit.Foundation.ContentEditor.Pipelines.RenderField | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<span class="scChromeData">{"commands":[{"click":"chrome:field:editcontrol({command:\"webedit:edithtml\"})","header":"Edit Text","icon":"/temp/iconcache/office/16x16/pencil.png","disabledIcon":"/temp/pencil_disabled16x16.png","isDivider":false,"tooltip":"Edit the text","type":null},{"click":"chrome:field:execute({command:\"bold\", userInterface:true, value:true})","header":"","icon":"/temp/iconcache/office/16x16/font_style_bold.png","disabledIcon":"/temp/font_style_bold_disabled16x16.png","isDivider":false,"tooltip":"Bold","type":null},{"click":"chrome:field:execute({command:\"Italic\", userInterface:true, value:true})","header":"","icon":"/temp/iconcache/office/16x16/font_style_italics.png","disabledIcon":"/temp/font_style_italics_disabled16x16.png","isDivider":false,"tooltip":"Italic","type":null},{"click":"chrome:field:execute({command:\"Underline\", userInterface:true, value:true})","header":"","icon":"/temp/iconcache/office/16x16/font_style_underline.png","disabledIcon":"/temp/font_style_underline_disabl |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<p> | |
<span class="scChromeData">{"commands":[{"click":"chrome:field:editcontrol({command:\"webedit:edithtml\"})","header":"Edit Text","icon":"/temp/iconcache/office/16x16/pencil.png","disabledIcon":"/temp/pencil_disabled16x16.png","isDivider":false,"tooltip":"Edit the text","type":null},{"click":"chrome:field:execute({command:\"bold\", userInterface:true, value:true})","header":"","icon":"/temp/iconcache/office/16x16/font_style_bold.png","disabledIcon":"/temp/font_style_bold_disabled16x16.png","isDivider":false,"tooltip":"Bold","type":null},{"click":"chrome:field:execute({command:\"Italic\", userInterface:true, value:true})","header":"","icon":"/temp/iconcache/office/16x16/font_style_italics.png","disabledIcon":"/temp/font_style_italics_disabled16x16.png","isDivider":false,"tooltip":"Italic","type":null},{"click":"chrome:field:execute({command:\"Underline\", userInterface:true, value:true})","header":"","icon":"/temp/iconcache/office/16x16/font_style_underline.png","disabledIcon":"/temp/font_style_underline_ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using Paragon.Foundation.LivePhoto.Data.Fields; | |
using Sitecore; | |
using Sitecore.Data.Items; | |
using Sitecore.Exceptions; | |
using Sitecore.Globalization; | |
using Sitecore.Shell.Applications.ContentEditor; | |
using Sitecore.Shell.Applications.Dialogs.MediaBrowser; | |
using Sitecore.Shell.Applications.WebEdit.Commands; | |
using Sitecore.Shell.Framework.Commands; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Html.LivePhoto().RenderLivePhoto(Model.LivePhoto, x=>x.Photo, true, HtmlTextWriterTag.Span) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Web.Mvc; | |
using Glass.Mapper.Sc; | |
using Glass.Mapper.Sc.IoC; | |
using Paragon.Foundation.LivePhoto.Mvc; | |
namespace Paragon.Foundation.LivePhoto | |
{ | |
public static class HtmlHelperExtensions | |
{ | |
public static LivePhotoMvc<T> LivePhoto<T>(this HtmlHelper<T> htmlHelper) |