Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
<Project Sdk="Microsoft.NET.Sdk.Razor">

<PropertyGroup>
<Version>10.0.1</Version>
</PropertyGroup>

<PropertyGroup>
<PackageTags>Bootstrap Blazor WebAssembly wasm UI Components Editor SummerNote</PackageTags>
<Description>Bootstrap UI components extensions of Editor</Description>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -145,13 +145,18 @@ export async function init(id, invoker, methodGetPluginAttrs, methodClickPluginI
const reloadCallbacks = (id, option) => {
const events = ['Blur', 'BlurCodeview', 'Change', 'ChangeCodeview', 'DialogShown', 'Enter', 'Focus', 'ImageUpload', 'ImageLinkInsert', 'ImageUploadError', 'Init', 'Keydown', 'Keyup', 'Mousedown', 'Mouseup', 'Paste', 'Scroll'];

events.forEach(event => {
option.callbacks[`on${event}`] = function () {
const callbacks = window.BootstrapBlazor?.SummerNote?.callbacks;
const cb = callbacks?.find(i => i.id === id);
cb?.[`on${event}`]?.apply(this, arguments);
};
});
const callbacks = window.BootstrapBlazor?.SummerNote?.callbacks;
const cb = callbacks?.find(i => i.id === id);
if (cb) {
events.forEach(event => {
const method = cb[`on${event}`];
if (method) {
option.callbacks[`on${event}`] = function () {
method.apply(this, arguments);
};
}
});
}
Comment thread
ArgoZhang marked this conversation as resolved.
}

export function update(id, val) {
Expand Down
Loading