Skip to content

Instantly share code, notes, and snippets.

import "../editors/editors.scss";
import { DraggableProvidedDragHandleProps } from "@hello-pangea/dnd";
import classnames from "classnames";
import { useEffect, useRef } from "react";
import DraggableIcon from "../common/libraries/drag-and-drop/DraggableIcon.tsx";
import { useComposerDataContext } from "../contexts/composer-data-context.tsx";
import { useComposerPreviewContext } from "../contexts/composer-preview-context.tsx";
import { useComposerSettingsContext } from "../contexts/composer-settings-context.tsx";
@barteksekula
barteksekula / PublishingValidatation.cs
Created February 2, 2024 15:46
validate if IContent does not have unpublished depencies
using System.Globalization;
using System.Web;
using EPiServer.Approvals;
using EPiServer.Approvals.ContentApprovals;
using EPiServer.Cms.Shell;
using EPiServer.Cms.Shell.Service.Internal;
using EPiServer.Cms.Shell.UI.Rest.Models;
using EPiServer.Cms.Shell.UI.Rest.Models.Internal;
using EPiServer.Core;
using EPiServer.Core.Internal;
@barteksekula
barteksekula / initializer.js
Created August 1, 2019 09:10
Prevent executing the same command twice
define([
"dojo/_base/declare",
"epi/_Module",
"dojo/when",
"epi-cms/contentediting/command/Publish"
], function (
declare,
_Module,
when,
PublishCommand