Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

acrolinx-sidebar-sdk

Package Overview
Dependencies
Maintainers
1
Versions
33
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

acrolinx-sidebar-sdk

Acrolinx Sidebar SDK for JavaScript

  • 0.4.25
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
15
decreased by-50%
Maintainers
1
Weekly downloads
 
Created
Source

Acrolinx Sidebar SDK JS

Build Status dependencies Status devDependencies Status

Library for integration of the Acrolinx sidebar into a web application. The library contains adapters to use in your web integration. These are ready to use for: Editable divs, input elements and rich text editors like CKEditor and TinyMCE.

See: Getting Started with Custom Integrations

Examples

https://github.com/acrolinx/acrolinx-sidebar-demo

Live Demo

Acrolinx Sidebar Live Demo

Installation

 npm i -S acrolinx-sidebar-sdk 

Instructions for Contributing Code

CONTRIBUTING.md

Table of Content

The Acrolinx Sidebar

Prerequisites

Getting started with your own integration

Sidebar API Documentation

License

The Acrolinx Sidebar

The Acrolinx sidebar is designed to show up beside the window where you edit your content. You use it for checking, reviewing, and correcting your content. To get an impression what the sidebar looks like in other integration check the Acrolinx Support Center.

Prerequisites

Please contact Acrolinx SDK support (sdk-support@acrolinx.com) for consulting and getting your integration certified. This sample works with a test license on an internal acrolinx server. This license is only meant for demonstration and developing purposes. Once you finished your integration you'll have to get a license for your integration from Acrolinx.

Please note that this an example for a integration into a web application only. Acrolinx offers different other SDKs for developing integrations.

Before you start developing your own integration, you might benefit from looking into the sidebar example.

Getting started with your own integration

The requirements to achieve this are:

  • a mechanism and a container that can display the Acrolinx sidebar (usually JavaScript plugin mechanism)
  • a mechanism that allows the sidebar to retrieve the text to be checked
  • a mechanism that will allow the sidebar to replace specific parts of the text

All of the above are required by the Acrolinx Sidebar API and need to be provided by your integration. However Acrolinx provides some reference integrations with TinyMCE and CKEditor.

Let's take a look at how the sidebar is loaded and the typical interactions with an integration.

Loading

  1. Load your host editor and your integration code.

  2. Register your integration as an Acrolinx Plugin (Check the API Documentation for the Acrolinx Plugin Interface.) You'll find the API Documentation here.

var acrolinxPlugin = {...}
  1. Load the sidebar and the referenced libraries code (usually sidebar.js, libs.js, sidebar.css).

Initializing

  1. Once the sidebar has finished loading it will request the integration to initialize by calling requestInit.

  2. The AcrolinxPlugin now must call init.

  3. Once the init process has finished, the plug-in will be notified onInitFinished.

  4. After initializing the sidebar will call configure and push the latest configuration to the plug-in.

Initializing plug-in and sidebar

You'll find the API Documentation here.

Checking

  1. If the user pushes the button "Check" (in the Acrolinx sidebar), requestGlobalCheck is called.

  2. The acrolinxPlugin must call checkGlobal to perform a check.

  3. When the check finished, onCheckResult is called and the sidebar displays cards for the issues.

Checking with plug-in and sidebar

Other actions

  • When the user clicks on a card the sidebar will invoke selectRanges on the plugin.
  • When the user clicks on a replacement the sidebar will call replaceRanges.

These are the most important interactions between the Acrolinx sidebar and your integration. Please check the sidebar plugin API for more information.

back to top

Sidebar API Documentation

Check our sidebar plugin API.

License

Copyright 2015-present Acrolinx GmbH

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

For more information visit: http://www.acrolinx.com

back to top

FAQs

Package last updated on 04 Sep 2018

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc