Skip to content

Commit

Permalink
Added dist to jsdelivr
Browse files Browse the repository at this point in the history
  • Loading branch information
Andre Marques authored and Andre Marques committed Sep 17, 2020
1 parent 108ca86 commit f3a619a
Show file tree
Hide file tree
Showing 27 changed files with 1,196 additions and 229 deletions.
24 changes: 22 additions & 2 deletions lib/demo/ts/Demo.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/demo/ts/Demo.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

53 changes: 43 additions & 10 deletions lib/main/ts/Plugin.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/main/ts/Plugin.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

79 changes: 79 additions & 0 deletions lib/main/ts/core/collaborative.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
import { Editor } from 'tinymce';
import { User } from '../interfaces/user.interfaces';
export declare class CollaborativeEditing {
/**
* TinyMCE default editor
*/
private editor;
/**
* Socket IO
*/
private io;
private ioClient;
/**
* Real time
*/
private myUser;
private cursors;
private selections;
private colors;
constructor(editor: Editor, user: User);
/**
* On Resize Event
* @param event Event
*/
onResize(): void;
/**
* Text editor content change event
* @param event Default TinyMCE Event
*/
updateContent(event: Event): void;
/**
* Sets a user in the tinymce editor
*/
setUser(user: User): void;
/**
* Listens all kinds of input in editor
* 1. Keyboard
* 2. Copy paste
* 3. Up/Down
*/
onListen(event: Event, user: User): void;
/**
* Finds the desired node in the editor where the content equals the given parameter.
* @param node Search node
* @param content Content of the node
*/
private findTextNode;
/**
* Removes user from TinyMCE Editor
*/
private removeUser;
/**
* Removes user cursor or selections
* @param user User
*/
private deleteUserInteractions;
/**
* Moves cursor to desired position
* @param range Range selection
* @param user User
*/
private moveCursor;
/**
* Moves selection to desired lines
* @param event Event
* @param range Range selection
* @param user User
*/
private moveSelection;
/**
* Basic hash function
* @param username User name
*/
private hash;
/**
* Generates random color when user enters the application
*/
private getRandomColor;
}
Loading

0 comments on commit f3a619a

Please sign in to comment.