Browse Source
Merge pull request #7954 from abpframework/maliming/tui-editor-jquery-patch
Add tui-editor-jquery-patch.js.
pull/7958/head
maliming
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with
10 additions and
4 deletions
-
framework/src/Volo.Abp.AspNetCore.Mvc.UI.Packages/Volo/Abp/AspNetCore/Mvc/UI/Packages/TuiEditor/TuiEditorScriptContributor.cs
-
npm/packs/tui-editor/abp.resourcemapping.js
-
npm/packs/tui-editor/package.json
-
npm/packs/tui-editor/src/tui-editor-jquery-patch.js
|
|
|
@ -16,6 +16,7 @@ namespace Volo.Abp.AspNetCore.Mvc.UI.Packages.TuiEditor |
|
|
|
{ |
|
|
|
public override void ConfigureBundle(BundleConfigurationContext context) |
|
|
|
{ |
|
|
|
context.Files.AddIfNotContains("/libs/tui-editor/tui-editor-jquery-patch.js"); |
|
|
|
context.Files.AddIfNotContains("/libs/to-mark/to-mark.min.js"); |
|
|
|
|
|
|
|
if (context.FileProvider.GetFileInfo("/libs/tui-code-snippet/tui-code-snippet.min.js").Exists) |
|
|
|
|
|
|
|
@ -3,6 +3,7 @@ |
|
|
|
"@node_modules/to-mark/dist/to-mark.min.js": "@libs/to-mark/", |
|
|
|
"@node_modules/tui-code-snippet/dist/*.*": "@libs/tui-code-snippet/", |
|
|
|
"@node_modules/squire-rte/build/squire.js": "@libs/squire-rte/", |
|
|
|
"@node_modules/tui-editor/dist/*.*": "@libs/tui-editor/" |
|
|
|
"@node_modules/tui-editor/dist/*.*": "@libs/tui-editor/", |
|
|
|
"@node_modules/@abp/tui-editor/src/*.*": "@libs/tui-editor/" |
|
|
|
} |
|
|
|
} |
|
|
|
@ -12,8 +12,5 @@ |
|
|
|
"tui-editor": "^1.4.10", |
|
|
|
"tui-code-snippet": "^2.3.2" |
|
|
|
}, |
|
|
|
"resolutions": { |
|
|
|
"jquery": "3.4.1" |
|
|
|
}, |
|
|
|
"gitHead": "bb4ea17d5996f01889134c138d00b6c8f858a431" |
|
|
|
} |
|
|
|
|
|
|
|
@ -0,0 +1,7 @@ |
|
|
|
/* |
|
|
|
https://jquery.com/upgrade-guide/3.5/#jquery-htmlprefilter-changes
|
|
|
|
*/ |
|
|
|
var rxhtmlTag = /<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\/\0>\x20\t\r\n\f]*)[^>]*)\/>/gi; |
|
|
|
jQuery.htmlPrefilter = function( html ) { |
|
|
|
return html.replace( rxhtmlTag, "<$1></$2>" ); |
|
|
|
}; |