angular-editor icon indicating copy to clipboard operation
angular-editor copied to clipboard

Icons not showing depending on application path

Open ArduinoManager opened this issue 2 years ago • 4 comments

I have configured the angolar.json as per requirements:

"assets": [ "src/favicon.ico", "src/assets", { "glob": "**/*/", "input": "./node_modules/@kolkov/angular-editor/assets/", "output": "./assets/fonts/" } ],

When I start the app with:

ng serve

the editor's icons show up and they are loaded from:

http://localhost:4200/assets/fonts/fontawesome-webfont.woff2?v=4.7.0

When I start the app with:

ng serve --serve-path /myapp

the icons are not loaded because the browser still trying to load them from:

http://localhost:4200/assets/fonts/fontawesome-webfont.woff2?v=4.7.0

instead of using:

http://localhost:4200/myapp/assets/fonts/fontawesome-webfont.woff2?v=4.7.0

Unfortunately, when I deploy the application to tomcat, I still have the same issue and the editor is not usable.

Any idea?

ArduinoManager avatar Oct 27 '22 11:10 ArduinoManager

Hi!

This is duplicated of Editor icons are not loading in sub directory

rosell avatar Nov 08 '22 13:11 rosell

I have the same issue; the duplicated of Editor icons link above does not working for me. the myapp route is still missing from the assets/fonts path after the angular build. Any more ideas?

Hui6101 avatar Nov 08 '22 15:11 Hui6101

I have the same problem; my app is in a subfolder of the root directory, if I copy assets/fonts folder in the root folder the icon is shown in the tool-bar otherwise not. I no idea to resolve this problem!

cefamax avatar Dec 16 '22 15:12 cefamax

Same issue, I use --base-href and the application is trying to look at parent path and fails Temporary workaround

In index.html file add this <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css"> 2. In your css file add this

::ng-deep angular-editor-toolbar button i {
  font-family: FontAwesome !important; 
  } 

veer05 avatar Jul 19 '23 23:07 veer05