Giter Site home page Giter Site logo

Comments (13)

stevermeister avatar stevermeister commented on July 18, 2024

no icons appear

you can style them as you want. by default they are using material design icons.

Also, the example "Set buttons"

this one is strange we will look into it

from ngx-wig.

CarlosTorrecillas avatar CarlosTorrecillas commented on July 18, 2024

Thanks for that. I’ve been looking at PRs and the code to see how to pass the icons theme but couldn’t find anywhere where you define the icon theme. Would you mind giving an example of how to use for example Font awesome for them? I would really appreciate it

from ngx-wig.

CarlosTorrecillas avatar CarlosTorrecillas commented on July 18, 2024

Found the issue. I think in the example it is missing the single quotes within the double quotes and that way it works. The formats option does not exist though. Available: list1,list2,bold,italic,link last but not least there is one extra icon right at the end which I don't know what it does. Could you explain that? Would it be possible to hide it via configuration?

Thanks,
Carlos.

from ngx-wig.

stevermeister avatar stevermeister commented on July 18, 2024

I'll create example for you

and you are more than welcome to make PR with all suggested changes! :)

is one extra icon right at the end

you mean "source"? - to output HTML source

from ngx-wig.

stevermeister avatar stevermeister commented on July 18, 2024

here you are
https://stackblitz.com/edit/angular-kybmfp?file=styles.css

from ngx-wig.

stevermeister avatar stevermeister commented on July 18, 2024

@CarlosTorrecillas thank you for you feedback and research I've updated readme with examples and also fixed the bug with custom buttons

from ngx-wig.

CarlosTorrecillas avatar CarlosTorrecillas commented on July 18, 2024

It's weird because I want to use the basic example with the [content] being a two-way binding field and it doesn't work. I only get it work if I have the contentChange and assign it on that method. Unfortunately I can't get it to work either with pre-existing content. So for example if I add new content using the editor and I load the screen with that content, it wouldn't show up in the screen.

from ngx-wig.

ilDon avatar ilDon commented on July 18, 2024

I was having the same issue for the icons. Icons were not showing after completing all installation steps, so I've added @import "https://cdn.materialdesignicons.com/2.1.19/css/materialdesignicons.min.css"; to my style.css file.

I was confused by the fact that I was importing this: @import "https://fonts.googleapis.com/icon?family=Material+Icons";, since I'm using Angular Material 2.

So perhaps it would be worth adding to the Readme that the material icons imported with Angular Material 2 won't work out of the box.

from ngx-wig.

stevermeister avatar stevermeister commented on July 18, 2024

yes, we updated all the examples
here the one with two-way binding

you should use ngModel here.

It was an outdated example in docs.
Thank you one more time for your feedback!

from ngx-wig.

kover avatar kover commented on July 18, 2024

It's weird I have material-design-icons installed and configured and can use that icons in Angular Material directives, but the editor show squares instead of icons.

Update:
It is looks like because I use Google's Material Design Icons.

from ngx-wig.

stevermeister avatar stevermeister commented on July 18, 2024

thank you all for your feedback, I've added some documentation

from ngx-wig.

phil123456 avatar phil123456 commented on July 18, 2024

why are these icons not part of the dist ?
what if that cdn goes away, then no more icons ???

and this does not work :

@import "https://cdn.materialdesignicons.com/2.1.19/css/materialdesignicons.min.css";

from ngx-wig.

stevermeister avatar stevermeister commented on July 18, 2024

you can use any icons, and you are also welcome to make PR

from ngx-wig.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.