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

Editor icons are not loading

Open geekdeb opened this issue 2 years ago • 16 comments

I am trying on Angular-14 and angular-editor-2.2.0-beta.0. The Editor icons are not loading. Screenshot from 2022-07-12 01-53-24

Also, I could see these errors in the console. And I guess this is due to the removal of the CDN link in the latest merge. image

Kindly let me know the workaround if any.

geekdeb avatar Jul 11 '22 20:07 geekdeb

Yes, please use the new v3.0.0-beta.0 version and include the following in the assets section in the angular.json:

{
  "glob": "**/*",
  "input": "./node_modules/@kolkov/angular-editor/assets/",
  "output": "./assets/fonts/"
}

pietzschke avatar Jul 12 '22 08:07 pietzschke

hi i tried this approach but its still not working, i have no console errors but the icons are not showing, i can see them in the devtools but the button is empty image image

thx

alex-goods avatar Sep 13 '22 13:09 alex-goods

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

worked for me

anandjaisy avatar Sep 24 '22 01:09 anandjaisy

Have the same issue.

image

T4toh avatar Nov 08 '22 16:11 T4toh

There are 2 assets. build and test in angular.json

Make sure you included it into build assets like this

image

ArturGudiev avatar Nov 09 '22 17:11 ArturGudiev

There are 2 assets. build and test in angular.json

Make sure you included it into build assets

I fix the issue installing awesome fonts or something like that. I couldn't find the dependency in the documentation, but the dev of the package talk about it in an issue like this one.

T4toh avatar Nov 09 '22 21:11 T4toh

anandjaisy

this worked for me too, thx:>

alex-goods avatar Nov 10 '22 08:11 alex-goods

If the above solutions don't work for you, you can try what I did.

  1. Copy the entire content of "node_modules@kolkov\angular-editor\assets"
  2. Create a folder called "fonts" in your app assets folder so you will have "src\assets\fonts"
  3. Paste the copied contents (font awesome files).

that's all.

philecom avatar Dec 08 '22 19:12 philecom

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

worked for me

this also worked for me.

youquijano avatar Dec 13 '22 16:12 youquijano

i run this cli ng build --c=production --base-href /mysite/

but still the icons are not showing. what am i missing?

youquijano avatar Dec 13 '22 16:12 youquijano

I moved object with { glob, input, output } above. It take first position below all strings. This works for me.

image

dmitrikovalevski avatar Apr 28 '23 13:04 dmitrikovalevski

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

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 temporary solution worked for me, thanks

Pimpollo30 avatar Aug 23 '23 06:08 Pimpollo30

This might be obvious but also check that your font was not set to a white color by accident by some framework - in that case the fonts are actually loaded but you might be fooled into thinking they are not present.

ZenulAbidin avatar Jan 05 '24 10:01 ZenulAbidin