ant-design-blazor / ueditor-blazor

A wysiwyg rich text web editor based on UEditor and Blazor.
https://ant-design-blazor.github.io/ueditor-blazor/
Apache License 2.0
48 stars 10 forks source link

Can't use #8

Closed patrykgz closed 3 years ago

patrykgz commented 3 years ago

Shows on Load Uncaught TypeError: Cannot read property 'width' of undefined at UE.Editor.b (neditor.all.min.js:18) at UE.Editor.fireEvent (neditor.all.min.js:5) at c (neditor.all.min.js:6) at neditor.all.min.js:6 at HTMLScriptElement.i.onload.i.onreadystatechange (neditor.all.min.js:5)

shashikantx commented 3 years ago

@ElderJames

I am getting the same error, as mentioned above by @MutatePat

am trying it on .net core 6 preview 5 blazor wasm

ElderJames commented 3 years ago

Please put the uditor js files on top of the webassembly.js:

+   <script src="_content/UEditorBlazor/neditor.config.js"></script>
+   <script src="_content/UEditorBlazor/neditor.all.min.js" defer></script>
+   <script src="_content/UEditorBlazor/ueditor-blazor.js"></script>

    <script src="_framework/blazor.webassembly.js"></script>
shashikantx commented 3 years ago

@ElderJames

I just did that

image

I still get the same error image

ElderJames commented 3 years ago

@shashikantx @MutatePat Sorry, it's my mistake, I have fixed it.