mirror of https://github.com/abpframework/abp.git
3 changed files with 48 additions and 2 deletions
@ -0,0 +1,25 @@ |
|||
using System.Collections.Generic; |
|||
using Volo.Abp.AspNetCore.Mvc.UI.Bundling; |
|||
using Volo.Abp.AspNetCore.Mvc.UI.Packages.Codemirror; |
|||
using Volo.Abp.AspNetCore.Mvc.UI.Packages.HighlightJs; |
|||
using Volo.Abp.AspNetCore.Mvc.UI.Packages.MarkdownIt; |
|||
using Volo.Abp.Modularity; |
|||
|
|||
namespace Volo.Abp.AspNetCore.Mvc.UI.Packages.TuiEditor |
|||
{ |
|||
[DependsOn( |
|||
typeof(HighlightJsScriptContributor), |
|||
typeof(CodemirrorScriptContributor), |
|||
typeof(MarkdownItScriptContributor) |
|||
)] |
|||
public class TuiEditorScriptContributor : BundleContributor |
|||
{ |
|||
public override void ConfigureBundle(BundleConfigurationContext context) |
|||
{ |
|||
context.Files.AddIfNotContains("/libs/to-mark/to-mark.min.js"); |
|||
context.Files.AddIfNotContains("/libs/tui-code-snippet/tui-code-snippet.min.js"); |
|||
context.Files.AddIfNotContains("/libs/squire-rte/squire.js"); |
|||
context.Files.AddIfNotContains("/libs/tui-editor/tui-editor-Editor.min.js"); |
|||
} |
|||
} |
|||
} |
|||
@ -0,0 +1,21 @@ |
|||
using System.Collections.Generic; |
|||
using Volo.Abp.AspNetCore.Mvc.UI.Bundling; |
|||
using Volo.Abp.AspNetCore.Mvc.UI.Packages.Codemirror; |
|||
using Volo.Abp.AspNetCore.Mvc.UI.Packages.HighlightJs; |
|||
using Volo.Abp.Modularity; |
|||
|
|||
namespace Volo.Abp.AspNetCore.Mvc.UI.Packages.TuiEditor |
|||
{ |
|||
[DependsOn( |
|||
typeof(CodemirrorStyleContributor), |
|||
typeof(HighlightJsStyleContributor) |
|||
)] |
|||
public class TuiEditorStyleContributor : BundleContributor |
|||
{ |
|||
public override void ConfigureBundle(BundleConfigurationContext context) |
|||
{ |
|||
context.Files.AddIfNotContains("/libs/tui-editor/tui-editor.min.css"); |
|||
context.Files.AddIfNotContains("/libs/tui-editor/tui-editor-contents.min.css"); |
|||
} |
|||
} |
|||
} |
|||
Loading…
Reference in new issue