Socket
Socket
Sign inDemoInstall

@grammarly/editor-sdk-vue

Package Overview
Dependencies
22
Maintainers
8
Versions
120
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @grammarly/editor-sdk-vue

Grammarly's writing SDK for Vue


Version published
Weekly downloads
438
decreased by-10.06%
Maintainers
8
Created
Weekly downloads
 

Readme

Source

Grammarly Text Editor SDK for Vue

Add Grammarly's real-time writing support to your app with just a few lines of code.

A code snippet shows how to add the Grammarly Text Editor Plugin to a textarea. Then an animation of a user accepting a Grammarly suggestion in a chat app appears.

This package is designed for Vue apps. Visit @grammarly/editor-sdk for our package for vanilla JavaScript apps and @grammarly/editor-sdk-react for our package for React apps.

Getting started

Here's how to get started:

  1. Create a new Grammarly for Developers app

  2. Install the Grammarly Text Editor SDK:

    npm install @grammarly/editor-sdk-vue
    
  3. Add the Grammarly Text Editor Plugin to your text editors by wrapping them with the GrammarlyEditorPlugin component:

    Vue 3

    <script setup>
    import { GrammarlyEditorPlugin } from "@grammarly/editor-sdk-vue";
    </script>
    
    <template>
      <GrammarlyEditorPlugin clientId="YOUR_CLIENT_ID">
        <textarea></textarea>
      </GrammarlyEditorPlugin>
    </template>
    

    Vue 2

    <script>
    import { GrammarlyEditorPlugin } from "@grammarly/editor-sdk-vue/v2";
    
    export default {
      components: { GrammarlyEditorPlugin },
    };
    </script>
    
    <template>
      <GrammarlyEditorPlugin clientId="YOUR_CLIENT_ID">
        <textarea></textarea>
      </GrammarlyEditorPlugin>
    </template>
    

Learn more

If you'd like to learn more about what you can do with the SDK and how you can customize the plugin for your app, visit:

Ask a question

If you want to ask a question, share a suggestion, or chat about how you're using the Grammarly Text Editor SDK in your app, join us in the Grammarly for Developers community on GitHub.

Keywords

FAQs

Last updated on 20 Oct 2023

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc