Esempio n. 1
0
        public EditorToolFactory Snippets(Action <EditorSnippetBuilder> configurator)
        {
            var items = new List <DropDownListItem>();

            var builder = new EditorSnippetBuilder(items, DI.Current.Resolve <IVirtualPathProvider>());

            configurator(builder);

            return(SelectBox("insertHtml", items));
        }
        public EditorToolFactory Snippets(Action<EditorSnippetBuilder> configurator)
        {
            var items = new List<DropDownListItem>();

            var builder = new EditorSnippetBuilder(items, DI.Current.Resolve<IVirtualPathProvider>());

            configurator(builder);

            return SelectBox("insertHtml", items);
        }