ep_subscript_and_superscript 0.2.33 → 0.2.37

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,9 @@
1
+ {
2
+ "@metadata": {
3
+ "authors": [
4
+ "Andibecker"
5
+ ]
6
+ },
7
+ "ep_subscript_and_superscript.subscript": "စာလုံးသေး",
8
+ "ep_subscript_and_superscript.superscript": "လုံးကြီးတင်"
9
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "@metadata": {
3
+ "authors": [
4
+ "Andibecker"
5
+ ]
6
+ },
7
+ "ep_subscript_and_superscript.subscript": "Hati ndogo",
8
+ "ep_subscript_and_superscript.superscript": "Hati kuu"
9
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "@metadata": {
3
+ "authors": [
4
+ "Andibecker"
5
+ ]
6
+ },
7
+ "ep_subscript_and_superscript.subscript": "สมัครสมาชิก",
8
+ "ep_subscript_and_superscript.superscript": "ตัวยก"
9
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "@metadata": {
3
+ "authors": [
4
+ "列维劳德"
5
+ ]
6
+ },
7
+ "ep_subscript_and_superscript.subscript": "下标",
8
+ "ep_subscript_and_superscript.superscript": "上标"
9
+ }
package/package.json CHANGED
@@ -20,7 +20,7 @@
20
20
  "type": "git",
21
21
  "url": "git+https://github.com/ether/ep_subscript_and_superscript.git"
22
22
  },
23
- "version": "0.2.33",
23
+ "version": "0.2.37",
24
24
  "funding": {
25
25
  "type": "individual",
26
26
  "url": "http://etherpad.org/"
@@ -22,22 +22,22 @@ exports.postAceInit = (hook, context) => {
22
22
  });
23
23
  };
24
24
 
25
- exports.aceEditEvent = (hook, call, info, rep, attr) => {
25
+ exports.aceEditEvent = (hookName, {callstack, editorInfo}) => {
26
26
  // If it's not a click or a key event and the text hasn't changed then do nothing
27
- if (!(call.callstack.type === 'handleClick') &&
28
- !(call.callstack.type === 'handleKeyEvent') &&
29
- !(call.callstack.docTextChanged)) {
27
+ if (!(callstack.type === 'handleClick') &&
28
+ !(callstack.type === 'handleKeyEvent') &&
29
+ !(callstack.docTextChanged)) {
30
30
  return false;
31
31
  }
32
32
  setTimeout(() => { // avoid race condition..
33
33
  // the caret is in a new position.. Let's do some funky shit
34
- if (call.editorInfo.ace_getAttributeOnSelection('sub')) {
34
+ if (editorInfo.ace_getAttributeOnSelection('sub')) {
35
35
  // show the button as being depressed.. Not sad, but active.. You know the drill bitches.
36
36
  $('.subscript > a').addClass('activeButton');
37
37
  } else {
38
38
  $('.subscript > a').removeClass('activeButton');
39
39
  }
40
- if (call.editorInfo.ace_getAttributeOnSelection('sup')) {
40
+ if (editorInfo.ace_getAttributeOnSelection('sup')) {
41
41
  // show the button as being depressed.. Not sad, but active.. You know the drill bitches.
42
42
  $('.superscript > a').addClass('activeButton');
43
43
  } else {