Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
taufik-nurrohman committed Mar 11, 2024
1 parent 459435d commit 5fecced
Show file tree
Hide file tree
Showing 7 changed files with 32 additions and 22 deletions.
9 changes: 7 additions & 2 deletions .factory/index.html.pug
Original file line number Diff line number Diff line change
Expand Up @@ -299,11 +299,16 @@ block content
| this.b = function () {};
| return this;
| }
|
| Object.defineProperty(Extension, 'name', {
| value: 'Extension'
| });
p Extension as an object:
pre: code
| const Extension = {
| attach: function (self, state = {}) {}
| detach: function (self, state = {}) {}
| attach: function (self, state = {}) {},
| detach: function (self, state = {}) {},
| name: 'Extension'
| };
h3 Usage of an Extension
p As a core extension:
Expand Down
8 changes: 4 additions & 4 deletions .factory/index.js.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,10 @@ TextEditor.version = '%(version)';

TextEditor.x = x;

Object.defineProperty(TextEditor, 'name', {
value: 'TextEditor'
});

let theValuePrevious;

function theEvent(e) {
Expand Down Expand Up @@ -405,8 +409,4 @@ Object.defineProperty($$, 'value', {
}
});

Object.defineProperty($$.constructor, 'name', {
value: 'TextEditor'
});

export default TextEditor;
15 changes: 10 additions & 5 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@
<meta content="#000" name="theme-color">
<meta content="width=device-width" name="viewport">
<meta content="A text selection range API written in pure JavaScript, for modern browsers." name="description">
<title>Text Editor 4.1.0</title>
<title>Text Editor 4.1.1</title>
<link href="../layout/index.min.css" rel="stylesheet">
</head>
<body>
<p role="alert">Do you like this project? Please support my <a href="https://github.com/mecha-cms">Mecha CMS</a> project too. Thank you!</p>
<header>
<h1>Text Editor 4.1.0</h1>
<h1>Text Editor 4.1.1</h1>
<p>Text Editor is a simple JavaScript application that aims to provide accessibility enhancements to the native HTML <code>&lt;textarea&gt;</code> elements, allowing users to control and manipulate their data in the text editor as they wish. It contains very sufficient methods to manipulate the existing text selection range data without providing unnecessary features. This keeps the file size small and the learning curve low, so you can fully focus on the results.</p>
<hr>
</header>
Expand Down Expand Up @@ -245,11 +245,16 @@ <h3>Anatomy of an Extension</h3>
this.a = 1;
this.b = function () {};
return this;
}</code></pre>
}

Object.defineProperty(Extension, 'name', {
value: 'Extension'
});</code></pre>
<p>Extension as an object:</p>
<pre><code>const Extension = {
attach: function (self, state = {}) {}
detach: function (self, state = {}) {}
attach: function (self, state = {}) {},
detach: function (self, state = {}) {},
name: 'Extension'
};</code></pre>
<h3>Usage of an Extension</h3>
<p>As a core extension:</p>
Expand Down
8 changes: 4 additions & 4 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -253,8 +253,11 @@
return current;
};
};
TextEditor.version = '4.1.0';
TextEditor.version = '4.1.1';
TextEditor.x = x;
Object.defineProperty(TextEditor, 'name', {
value: 'TextEditor'
});
var theValuePrevious;

function theEvent(e) {
Expand Down Expand Up @@ -606,8 +609,5 @@
this.self.value = value;
}
});
Object.defineProperty($$.constructor, 'name', {
value: 'TextEditor'
});
return TextEditor;
}));
2 changes: 1 addition & 1 deletion index.min.js

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

10 changes: 5 additions & 5 deletions index.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -84,10 +84,14 @@ TextEditor.S = function (start, end, value) {
$.toString = () => current;
};

TextEditor.version = '4.1.0';
TextEditor.version = '4.1.1';

TextEditor.x = x;

Object.defineProperty(TextEditor, 'name', {
value: 'TextEditor'
});

let theValuePrevious;

function theEvent(e) {
Expand Down Expand Up @@ -405,8 +409,4 @@ Object.defineProperty($$, 'value', {
}
});

Object.defineProperty($$.constructor, 'name', {
value: 'TextEditor'
});

export default TextEditor;
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,5 +44,5 @@
"scripts": {
"pack": "pack --clean=false --from=.factory --js-format=umd --js-name=TextEditor --js-top='%(js.license)' --mjs=true --to=."
},
"version": "4.1.0"
"version": "4.1.1"
}

0 comments on commit 5fecced

Please sign in to comment.