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

logoots-texteditor-client

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

logoots-texteditor-client

# Installation ** In your client-side js folder** ``` npm install logoots-texteditor-client ``` If you don't have already install **browserify** ``` npm install -g browserify ``` Then: ``` grunt ```

  • 0.0.6
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

TODO: Présentation du module

Installation

** In your client-side js folder**

npm install logoots-texteditor-client

If you don't have already install browserify

npm install -g browserify

Then:

grunt

Don't forget to download Ace (http://ace.c9.io/#nav=about) and to extract it in your client-side folder as well as to install socket.io in your server-side folder.

Utilisation

In your HTML file:

<script src="path/js/logoots-texteditor-client/build/logoots-texteditor-client.js"></script>
<script src="path/js/ace/src-noconflict/ace.js"></script>
<script src="/socket.io/socket.io.js"></script>
<script>
	"use strict";
    var coordinator = new LogootS.Coordinator();
    console.log(coordinator);
    var editor = new LogootS.AceEditorAdapter('editor', coordinator);
    coordinator.setEditor(editor);
    var network = new LogootS.SocketIOAdapter(coordinator);
    coordinator.setNetwork(network);
</script>

Network

The network architecture provided consist in an central server communicating with clients using WebSockets, using socket.io, and broadcasting the modifications made by users to the others. You can easily implement your own network architecture, as long as you respect the name of the events and the data structure used to communicate between the coordinator and the network adapter.

Text Editor

This module implement an adapter to allow the coordinator to communicate with the code editor Ace. Like the network adapter, you can also implement your own to

See also

  • logoots-structs
  • logoots-texteditor-client
  • demo-logoots-texteditor

FAQs

Package last updated on 16 May 2014

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