Skip to content

Commit a59355b

Browse files
fix(core): Merge pull request #170 from mindfiredigital/dev
Dev
2 parents 07083f1 + b988a53 commit a59355b

24 files changed

+916
-866
lines changed

.changeset/config.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"$schema": "https://unpkg.com/@changesets/config@2.3.1/schema.json",
33
"changelog": [
44
"@changesets/changelog-github",
5-
{ "repo": "mindfiredigital/textigniterjs" }
5+
{ "repo": "mindfiredigital/textigniter" }
66
],
77
"commit": false,
88
"fixed": [],

.github/changeset-autogenerate.mjs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@ if (packageName) {
4444

4545
const formattedPackageName =
4646
packageName === 'core'
47-
? '@mindfiredigital/textigniterjs'
48-
: `@mindfiredigital/textigniterjs-${packageName}`;
47+
? '@mindfiredigital/textigniter'
48+
: `@mindfiredigital/textigniter-${packageName}`;
4949

5050
// Generate changeset content
5151
const changesetContent = `---
@@ -57,7 +57,7 @@ ${description}
5757
// Write to a changeset file
5858
fs.writeFileSync(`.changeset/auto-${Date.now()}.md`, changesetContent);
5959
console.log(
60-
`✅ Changeset file created for package: textigniterjs-${packageName}`
60+
`✅ Changeset file created for package: textigniter-${packageName}`
6161
);
6262
} else {
6363
console.log(

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88

99
jobs:
1010
build:
11-
name: '@mindfiredigital/textigniterjs'
11+
name: '@mindfiredigital/textigniter'
1212
runs-on: ubuntu-latest
1313
permissions:
1414
contents: write

README.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
<h1 align="center">TextIgniterJS</h1><br><br>
1+
<h1 align="center">TextIgniter JS</h1><br><br>
22
<p align="center">
3-
<a href="https://www.npmjs.com/package/@mindfiredigital/textigniterjs"><img src="https://img.shields.io/npm/v/@mindfiredigital/textigniterjs.svg?sanitize=true" alt="Version"></a>
4-
<a href="https://www.npmjs.com/package/@mindfiredigital/textigniterjs"><img src="https://img.shields.io/badge/PRs-welcome-brightgreen.svg" alt="PRs"></a>
3+
<a href="https://www.npmjs.com/package/@mindfiredigital/textigniter"><img src="https://img.shields.io/npm/v/@mindfiredigital/textigniter.svg?sanitize=true" alt="Version"></a>
4+
<a href="https://www.npmjs.com/package/@mindfiredigital/textigniter"><img src="https://img.shields.io/badge/PRs-welcome-brightgreen.svg" alt="PRs"></a>
55
</p>
66

77
<br>
88

99
<p align="center"> Experience a Lightweight , powerful and intuitive HTML Editor built with Core Typescript. </p>
1010

11-
The `@mindfiredigital/textigniterjs` is a tool that allows developers to integrate TextIgniter.
11+
The `@mindfiredigital/textigniter` is a tool that allows developers to integrate TextIgniter.
1212
<br>
1313

1414
<p align="center">
@@ -58,10 +58,10 @@ Click the button below to open the project on StackBlitz.
5858

5959
## Installation
6060

61-
To install the `@mindfiredigital/textigniterjs` npm package in your project, use the following command:
61+
To install the `@mindfiredigital/textigniter` npm package in your project, use the following command:
6262

6363
```bash
64-
npm install @mindfiredigital/textigniterjs
64+
npm install @mindfiredigital/textigniter
6565
```
6666

6767
<br>
@@ -76,12 +76,12 @@ npm install @mindfiredigital/textigniterjs
7676
<head>
7777
<meta charset="UTF-8" />
7878
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
79-
<title>TextIgniterJS</title>
79+
<title>TextIgniter JS</title>
8080
</head>
8181
<body>
8282
<div id="editor"></div>
8383

84-
<script src="node_modules/@mindfiredigital/textigniterjs/dist/index.js"></script>
84+
<script src="node_modules/@mindfiredigital/textigniter/dist/index.js"></script>
8585

8686
<script>
8787
// Initialize the RichTextEditor with specific features
@@ -128,7 +128,7 @@ npm install @mindfiredigital/textigniterjs
128128

129129
## Contributing
130130

131-
We welcome contributions from the community. If you'd like to contribute to the `textigniterjs` npm package, please follow our [Contributing Guidelines](CONTRIBUTING.md).
131+
We welcome contributions from the community. If you'd like to contribute to the `textigniter` npm package, please follow our [Contributing Guidelines](CONTRIBUTING.md).
132132
<br>
133133

134134
## License

docs/README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
# TextIgniterJS
1+
# TextIgniter JS
22

3-
🚀 **TextIgniterJS** is a powerful, lightweight, and customizable rich-text editor for modern web applications.
3+
🚀 **TextIgniter JS** is a powerful, lightweight, and customizable rich-text editor for modern web applications.
44

55
## 📌 Features
66

@@ -20,13 +20,13 @@
2020
### For Core Module
2121

2222
```sh
23-
pnpm add @mindfiredigital/textigniterjs
23+
pnpm add @mindfiredigital/textigniter
2424
```
2525

2626
### For Web Component
2727

2828
```sh
29-
pnpm add @mindfiredigital/textigniterjs-web-component
29+
pnpm add @mindfiredigital/textigniter-web-component
3030
```
3131

3232
---
@@ -36,7 +36,7 @@ pnpm add @mindfiredigital/textigniterjs-web-component
3636
### Using Core Module in JavaScript
3737

3838
```js
39-
import { TextIgniter } from '@mindfiredigital/textigniterjs';
39+
import { TextIgniter } from '@mindfiredigital/textigniter';
4040

4141
const editor = new TextIgniter('#editor', {
4242
showToolbar: true,
@@ -64,7 +64,7 @@ const editor = new TextIgniter('#editor', {
6464

6565
```html
6666
<script type="module">
67-
import '@mindfiredigital/textigniterjs-web-component';
67+
import '@mindfiredigital/textigniter-web-component';
6868
</script>
6969

7070
<text-igniter

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"private": true,
3-
"name": "textigniterjs",
3+
"name": "textigniter-pkg",
44
"workspaces": [
55
"packages/*"
66
],

packages/core/CHANGELOG.md

Lines changed: 2 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,6 @@
1-
# @mindfiredigital/textigniterjs
1+
# @mindfiredigital/textigniter
22

3-
## 1.2.10
4-
5-
### Patch Changes
6-
7-
- Merge branch 'dev' of https://github.com/mindfiredigital/TextIgniterJS
8-
9-
## 1.2.9
10-
11-
### Patch Changes
12-
13-
- Merge pull request #164 from mindfiredigital/dev
14-
15-
## 1.2.8
16-
17-
### Patch Changes
18-
19-
- Merge pull request #155 from mindfiredigital/dev
20-
21-
## 1.2.7
3+
## 1.0.0
224

235
### Patch Changes
246

packages/core/README.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
<h1 align="center">TextIgniterJS</h1><br><br>
1+
<h1 align="center">TextIgniter JS</h1><br><br>
22
<p align="center">
3-
<a href="https://www.npmjs.com/package/@mindfiredigital/textigniterjs"><img src="https://img.shields.io/npm/v/@mindfiredigital/textigniterjs.svg?sanitize=true" alt="Version"></a>
4-
<a href="https://www.npmjs.com/package/@mindfiredigital/textigniterjs"><img src="https://img.shields.io/badge/PRs-welcome-brightgreen.svg" alt="PRs"></a>
3+
<a href="https://www.npmjs.com/package/@mindfiredigital/textigniter"><img src="https://img.shields.io/npm/v/@mindfiredigital/textigniter.svg?sanitize=true" alt="Version"></a>
4+
<a href="https://www.npmjs.com/package/@mindfiredigital/textigniter"><img src="https://img.shields.io/badge/PRs-welcome-brightgreen.svg" alt="PRs"></a>
55
</p>
66

77
<br>
88

99
<p align="center"> Experience a Lightweight , powerful and intuitive HTML Editor built with Core Typescript. </p>
1010

11-
The `@mindfiredigital/textigniterjs` is a tool that allows developers to integrate TextIgniter.
11+
The `@mindfiredigital/textigniter` is a tool that allows developers to integrate TextIgniter.
1212
<br>
1313

1414
<p align="center">
@@ -58,10 +58,10 @@ Click the button below to open the project on StackBlitz.
5858

5959
## Installation
6060

61-
To install the `@mindfiredigital/textigniterjs` npm package in your project, use the following command:
61+
To install the `@mindfiredigital/textigniter` npm package in your project, use the following command:
6262

6363
```bash
64-
npm install @mindfiredigital/textigniterjs
64+
npm install @mindfiredigital/textigniter
6565
```
6666

6767
<br>
@@ -76,12 +76,12 @@ npm install @mindfiredigital/textigniterjs
7676
<head>
7777
<meta charset="UTF-8" />
7878
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
79-
<title>TextIgniterJS</title>
79+
<title>TextIgniter JS</title>
8080
</head>
8181
<body>
8282
<div id="editor"></div>
8383

84-
<script src="node_modules/@mindfiredigital/textigniterjs/dist/index.js"></script>
84+
<script src="node_modules/@mindfiredigital/textigniter/dist/index.js"></script>
8585

8686
<script>
8787
// Initialize the RichTextEditor with specific features
@@ -128,7 +128,7 @@ npm install @mindfiredigital/textigniterjs
128128

129129
## Contributing
130130

131-
We welcome contributions from the community. If you'd like to contribute to the `textigniterjs` npm package, please follow our [Contributing Guidelines](CONTRIBUTING.md).
131+
We welcome contributions from the community. If you'd like to contribute to the `textigniter` npm package, please follow our [Contributing Guidelines](CONTRIBUTING.md).
132132
<br>
133133

134134
## License

packages/core/dist/TextIgniter.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ class TextIgniter {
6363
});
6464
document.addEventListener('mouseup', () => {
6565
this.syncCurrentAttributesWithCursor();
66+
const dataId = this.document.getAllSelectedDataIds();
6667
});
6768
(_a = document.getElementById('fontColor')) === null || _a === void 0
6869
? void 0
@@ -255,20 +256,23 @@ class TextIgniter {
255256
(_g = document.getElementById('alignLeft')) === null || _g === void 0
256257
? void 0
257258
: _g.addEventListener('click', () => {
259+
console.log('alignment alignLeft', this.document.dataIds);
258260
this.document.dataIds.forEach(obj =>
259261
this.document.setAlignment('left', obj)
260262
);
261263
});
262264
(_h = document.getElementById('alignCenter')) === null || _h === void 0
263265
? void 0
264266
: _h.addEventListener('click', () => {
267+
console.log('alignment alignCenter', this.document.dataIds);
265268
this.document.dataIds.forEach(obj =>
266269
this.document.setAlignment('center', obj)
267270
);
268271
});
269272
(_j = document.getElementById('alignRight')) === null || _j === void 0
270273
? void 0
271274
: _j.addEventListener('click', () => {
275+
console.log('alignment alignRight', this.document.dataIds);
272276
this.document.dataIds.forEach(obj =>
273277
this.document.setAlignment('right', obj)
274278
);

packages/core/dist/index.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)