JSPM

ember-cli-materialnote

0.0.1
    • ESM via JSPM
    • ES Module Entrypoint
    • Export Map
    • Keywords
    • License
    • Repository URL
    • TypeScript Types
    • README
    • Created
    • Published
    • Downloads 5
    • Score
      100M100P100Q34666F
    • License MIT

    An Ember component for materialNote

    Package Exports

    • ember-cli-materialnote

    This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (ember-cli-materialnote) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

    Readme

    ember-cli-materialnote

    An Ember component for materialNote.

    Note that this is in alpha right now. Feedback is appreciated.

    Installation

    ember install ember-cli-materialnote

    How to Use

    {{ember-materialnote body=body}} // uses default options

    let airPopover = [['color', ['color']], ['font', ['bold', 'underline', 'clear']]]; {{ember-materialnote body=body airMode=true airPopover=airPopover}} // uses air mode

    let toolBar = [['fonts', ['fontsize', 'fontname']], ['color', ['color']]]; {{ember-materialnote body=body toolBar=toolBar}}

    These are the available options:

    | Option | default |

    | toolbar | | | height | 500 | | airMode | false | | airPopover | // only displays when airMode is true | | followingToolbar | true | | defaultBackColor | | | defaultTextColor | |

    See the materialNote demo for more information.

    Known Issues

    MaterialNote uses an older version of summernote, so some parts of the summernote API are unavailable. See this issue in materialNote's repo for more information.

    This uses ember-cli-materialize version 0.19.5. As of now, they're working on v1, but that's in alpha at the moment.

    Temporarily, you also need to add this to your ember-cli-build.js:

    var app = new EmberApp(defaults, {
      sassOptions: {
        includePaths: [
          'bower_components/materialize/sass'
        ]
      }
    });