TF-3671 Fix all composer interaction are blocked without network (#3682)
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
|
||||
import 'package:core/utils/app_logger.dart';
|
||||
import 'package:html_editor_enhanced/utils/html_editor_constants.dart';
|
||||
import 'package:html_editor_enhanced/utils/html_editor_utils.dart';
|
||||
|
||||
class AssetPreloader {
|
||||
const AssetPreloader._();
|
||||
|
||||
static Future<void> preloadHtmlEditorAssets() async {
|
||||
try {
|
||||
await Future.wait([
|
||||
HtmlEditorUtils.loadAsset(HtmlEditorConstants.summernoteHtmlAssetPath),
|
||||
HtmlEditorUtils.loadAsset(HtmlEditorConstants.jqueryAssetPath),
|
||||
HtmlEditorUtils.loadAsset(HtmlEditorConstants.summernoteCSSAssetPath),
|
||||
HtmlEditorUtils.loadAsset(HtmlEditorConstants.summernoteJSAssetPath),
|
||||
HtmlEditorUtils.loadAsset(HtmlEditorConstants.summernoteFontEOTAssetPath),
|
||||
HtmlEditorUtils.loadAsset(HtmlEditorConstants.summernoteFontTTFAssetPath),
|
||||
]);
|
||||
} catch (e) {
|
||||
logError('AssetPreloader::preloadHtmlEditorAssets:Exception = $e');
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user