@stratusjs/angular 0.8.1 → 0.8.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/angular.bundle.js +15 -5
- package/dist/angular.bundle.min.js +1 -1
- package/package.json +1 -1
- package/src/editor/editor.component.js +0 -1
- package/src/editor/editor.component.js.map +1 -1
- package/src/editor/editor.component.min.js +1 -1
- package/src/editor/editor.component.ts +2 -1
- package/src/froala/plugins/linkManager.js +12 -4
- package/src/froala/plugins/linkManager.js.map +1 -1
- package/src/froala/plugins/linkManager.min.js +1 -1
- package/src/froala/plugins/linkManager.ts +8 -2
- package/src/tree/tree.component.js +1 -2
- package/src/tree/tree.component.js.map +1 -1
- package/src/tree/tree.component.min.js +1 -1
- package/src/tree/tree.component.ts +3 -3
package/dist/angular.bundle.js
CHANGED
|
@@ -81057,7 +81057,8 @@ System.register(['@stratusjs/runtime/stratus', 'lodash', '@stratusjs/core/enviro
|
|
|
81057
81057
|
});
|
|
81058
81058
|
FroalaEditor.PLUGINS.linkManager = function linkManager(editor) {
|
|
81059
81059
|
let inputButton;
|
|
81060
|
-
const
|
|
81060
|
+
const debugCookie = cookie('debug-link-manager');
|
|
81061
|
+
const debug = !!(isJSON(debugCookie) ? JSON.parse(debugCookie) : false);
|
|
81061
81062
|
function _init() {
|
|
81062
81063
|
this.uid = uniqueId$3(`froala_link_manager_`);
|
|
81063
81064
|
Stratus.Instances[this.uid] = this;
|
|
@@ -81081,6 +81082,13 @@ System.register(['@stratusjs/runtime/stratus', 'lodash', '@stratusjs/core/enviro
|
|
|
81081
81082
|
});
|
|
81082
81083
|
this.inputButton = inputButton;
|
|
81083
81084
|
this.editor = editor;
|
|
81085
|
+
if (debug) {
|
|
81086
|
+
console.log('initialized:', {
|
|
81087
|
+
options: editor.opts.endpoint,
|
|
81088
|
+
instance: this,
|
|
81089
|
+
inputButton: inputButton.uid,
|
|
81090
|
+
});
|
|
81091
|
+
}
|
|
81084
81092
|
}
|
|
81085
81093
|
function onClick(el, data) {
|
|
81086
81094
|
if (!editor.el) {
|
|
@@ -81088,6 +81096,9 @@ System.register(['@stratusjs/runtime/stratus', 'lodash', '@stratusjs/core/enviro
|
|
|
81088
81096
|
return;
|
|
81089
81097
|
}
|
|
81090
81098
|
const link = editor.link.get();
|
|
81099
|
+
if (debug) {
|
|
81100
|
+
console.log('[linkManager.onClick()]:', link);
|
|
81101
|
+
}
|
|
81091
81102
|
inputButton.onClick(editor.el, link);
|
|
81092
81103
|
}
|
|
81093
81104
|
return {
|
|
@@ -81124,7 +81135,8 @@ System.register(['@stratusjs/runtime/stratus', 'lodash', '@stratusjs/core/enviro
|
|
|
81124
81135
|
icon: 'linkManager',
|
|
81125
81136
|
title: 'Insert from Link Library',
|
|
81126
81137
|
callback: function linkManagerCallback() {
|
|
81127
|
-
const
|
|
81138
|
+
const debugCookie = cookie('debug-link-manager-quick-insert');
|
|
81139
|
+
const debug = !!(isJSON(debugCookie) ? JSON.parse(debugCookie) : false);
|
|
81128
81140
|
const inputButton = new InputButtonPlugin({
|
|
81129
81141
|
name: 'Link Manager',
|
|
81130
81142
|
eventName: 'link-library',
|
|
@@ -85037,7 +85049,6 @@ System.register(['@stratusjs/runtime/stratus', 'lodash', '@stratusjs/core/enviro
|
|
|
85037
85049
|
imageManagerLoadURL: '/Api/Media?payload-only=true',
|
|
85038
85050
|
linkEditButtons: [
|
|
85039
85051
|
'linkOpen',
|
|
85040
|
-
'linkManagerEdit',
|
|
85041
85052
|
'linkRemove',
|
|
85042
85053
|
],
|
|
85043
85054
|
linkInsertButtons: [
|
|
@@ -124118,8 +124129,7 @@ System.register(['@stratusjs/runtime/stratus', 'lodash', '@stratusjs/core/enviro
|
|
|
124118
124129
|
}
|
|
124119
124130
|
yield targetNode.model.save();
|
|
124120
124131
|
this.unsettled = false;
|
|
124121
|
-
this.
|
|
124122
|
-
this.ref.detectChanges();
|
|
124132
|
+
this.collection.throttleTrigger('change');
|
|
124123
124133
|
});
|
|
124124
124134
|
}
|
|
124125
124135
|
onDragMove(event) {
|