GithubHelp home page GithubHelp logo

Comments (4)

arpowers avatar arpowers commented on August 17, 2024

After a closer reading of the doc, looks like we're supposed to use the 'hasFormat' or 'getPath' stuff..

So my suggestion is to provide an example of this, or something specifically directed at this issue in the doc (so its easier /faster to find)

from squire.

mkoryak avatar mkoryak commented on August 17, 2024

I did this in an angular wrapper here: http://hourlynerd.github.io/angular-squire/dist/

the code for it is here:
https://github.com/HourlyNerd/angular-squire/blob/master/app/modules/angular-squire/angular-squire.coffee#L156

it works by updating the menubar's class to contain the current selection's path, from there i can set the button styles to be active via css.

from squire.

arpowers avatar arpowers commented on August 17, 2024

interesting idea! I got it working earlier after scouring for the right function...

from squire.

neilj avatar neilj commented on August 17, 2024

I agree this should be added to the docs (pull request anyone? :D). As a reference, you might also find useful the source code for the integration we use at FastMail: https://github.com/fastmail/overture/blob/master/source/Overture/views/controls/RichTextView.js

from squire.

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.