Closed zhangzq71 closed 4 years ago
We will need more information :) For example, pull down this project and run the sample at: https://github.com/Blazored/TextEditor/tree/master/samples/BlazorServerSide Doers that work for you?
I was using the BlazorServerSide samle clone from git, it is 'commit a5700191a9269c98e27f98ee48e8577869dd0491'
I just pulled the latest version of the project down, opened it up in Visual Studio 2019 that was updated to the latest SDK and it ran fine.
Can you try another web browser?
My SDK is Version: 3.1.101, Commit: b377529961, visual studio is 'Version 16.4.4'. I also tried https://github.com/ADefWebserver/Blazor-Blogs, got the same error.
In the project, it is trying to pull the Quill JavaScript from https://cdn.quilljs.com/1.3.6/quill.js - Can you get to the address?
Another thing to try is to run: https://github.com/oqtane/oqtane.framework That project has the quill.js inside the project. If that works, then the problem is you are unable to reach the quill.js file.
Oh, you are right, there is sometimes it can't access https://cdn.quilljs.com/1.3.6/quill.js, I downloaded that js file and that css files from quilljs.com, it runs well, thank you very much!
[2020-02-04T03:02:25.615Z] Error: Microsoft.JSInterop.JSException: 'Quill' is not defined ReferenceError: 'Quill' is not defined at window.QuillFunctions.createQuill (https://localhost:44327/_content/Blazored.TextEditor/Blazored-BlazorQuill.js:7:13) at Anonymous function (https://localhost:44327/_framework/blazor.server.js:8:31414) at Promise (native code) at e.jsCallDispatcher.beginInvokeJSFromDotNet (https://localhost:44327/_framework/blazor.server.js:8:31384) at Anonymous function (https://localhost:44327/_framework/blazor.server.js:1:19193) at Array.prototype.forEach (native code) at e.prototype.invokeClientMethod (https://localhost:44327/_framework/blazor.server.js:1:19171) at e.prototype.processIncomingData (https://localhost:44327/_framework/blazor.server.js:1:17160) at connection.onreceive (https://localhost:44327/_framework/blazor.server.js:1:10267) at i.onmessage (https://localhost:44327/_framework/blazor.server.js:1:37967)
at Microsoft.JSInterop.JSRuntime.InvokeWithDefaultCancellation[T](String identifier, Object[] args)
at Blazored.TextEditor.BlazoredTextEditor.OnAfterRenderAsync(Boolean firstRender) in D:\projects\WebApp\demo\TextEditor\src\Blazored.TextEditor\BlazoredTextEditor.razor:line 41
at Microsoft.AspNetCore.Components.RenderTree.Renderer.GetErrorHandledTask(Task taskToHandle)