Skip to content

Commit eec56f4

Browse files
Merge pull request #16 from mindfiredigital/feature/modify-package-example
Feature/modify package example
2 parents ad7f9a2 + de8f48e commit eec56f4

File tree

3 files changed

+16
-4
lines changed

3 files changed

+16
-4
lines changed

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
Please add an informative description that covers that changes made by the pull request and link all relevant issues.
44

5-
# All React Document Editor Contribution checklist:
5+
# All React Text Igniter Contribution checklist:
66

77
- [ ] **The pull request does not introduce [breaking changes].**
88
- [ ] **I have read the [contribution guidelines](../CONTRIBUTING.md).**

README.md

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,18 +85,25 @@ export const App = () => {
8585
const editorRef = useRef();
8686
features: ['heading' ,'bold', 'italic', 'underline',"orderedList",'unorderedList','justifyLeft','justifyCenter','justifyRight','createLink','insertImage','superscript','subscript','table','layout'],
8787

88-
const handleGetContent = () => {
88+
// get HTML content
89+
const handleGetHtmlContent = () => {
8990
console.log('HTML:', editorRef.current.getHtml());
91+
};
92+
93+
// get JSON content
94+
const handleGetJsonContent = () => {
9095
console.log('JSON:', editorRef.current.getJson());
9196
};
97+
9298
return (
9399
<>
94100
<HtmlEditor
95101
ref={editoRef}
96102
features={features}
97103
height={"400px"}
98104
/>
99-
<button onClick={handleGetContent}>check html/json</button>
105+
<button onClick={handleGetHtmlContent}>check html</button>
106+
<button onClick={handleGetJsonContent}>check Json</button>
100107
</>
101108
);
102109
};

package.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,12 @@
8383
"release": {
8484
"repositoryUrl": "https://github.com/mindfiredigital/react-text-igniter.git",
8585
"branches": [
86-
"master"
86+
"master",
87+
"next",
88+
{
89+
"name": "beta",
90+
"prerelease": true
91+
}
8792
]
8893
}
8994
}

0 commit comments

Comments
 (0)