summernote / summernote

Super simple WYSIWYG editor
https://summernote.org
MIT License
11.58k stars 2.25k forks source link

summernote with VS2017 c# #3575

Closed BrinegarJ closed 3 years ago

BrinegarJ commented 4 years ago

First time looking at summernote for a WYSIWYG editor. Nothing could be found in the existing issues for the issue I am seeing. Hoping somebody out there has seen this.

I installed the DIST folder under my scripts directory in the project. I added the needed references and set the DIV to id="summernote". I added the the initialization script at the end of the body.

The UI starts to render, but I am receiving an error "Invalid or unexpected token" as line 13 in the summernote.css file.

Operating System: Windows 10 (64-bit)

Browser and Version: Chrome Version 79.0.3945.117 (Official Build) (64-bit)

Summernote Version (including which BS3, BS4, Lite or All): BS3

Here is what my screen renders image

Here is what Chrome is catching image

This is the line that appears to be causing the error in the CSS file image

Any help would be great!

DennisSuitters commented 4 years ago

Try changing the folder reference to the font files, they could be trying to access the font file from the wrong location due to your setup.

BrinegarJ commented 4 years ago

Thanks Dennis.

I found that if I point to a hosted cdn (below), my code works as expected. So obviously the issue is local to my setup.

<link href="http://cdnjs.cloudflare.com/ajax/libs/summernote/0.8.12/summernote.css" rel="stylesheet">
<script src="http://cdnjs.cloudflare.com/ajax/libs/summernote/0.8.12/summernote.js"></script>

Can anyone provide the proper file location/structure for hosting SummerNote locally?

DennisSuitters commented 4 years ago

Sorry for the delay in responding. Where you place the files and folders isn't all the important, as long as you change the references, mainly in the CSS files to where the fonts are located.

timelessz commented 1 year ago

Have you solved this problem? I also met

timelessz commented 1 year ago

57fecb20f8c01ec9ca7b647112b8a73