-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor editor structure and add unit tests
- Loading branch information
Showing
27 changed files
with
1,581 additions
and
738 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,165 @@ | ||
{ | ||
"spans": [ | ||
{ | ||
"insert": "RichEditor", | ||
"attributes": { | ||
"bold": true, | ||
"header": 1 | ||
} | ||
}, | ||
{ | ||
"insert": "\nAndroid ", | ||
"attributes": {} | ||
}, | ||
{ | ||
"insert": "WYSIWYG ", | ||
"attributes": { | ||
"bold": true, | ||
"italic": true | ||
} | ||
}, | ||
{ | ||
"insert": "Rich editor for ", | ||
"attributes": {} | ||
}, | ||
{ | ||
"insert": "Jetpack compose.\n\n", | ||
"attributes": { | ||
"bold": true, | ||
"underline": true | ||
} | ||
}, | ||
{ | ||
"insert": "Features", | ||
"attributes": { | ||
"bold": true, | ||
"header": 3 | ||
} | ||
}, | ||
{ | ||
"insert": "\nThe editor offers the following ", | ||
"attributes": {} | ||
}, | ||
{ | ||
"insert": "options:\n", | ||
"attributes": { | ||
"bold": true, | ||
"italic": true, | ||
"underline": true | ||
} | ||
}, | ||
{ | ||
"insert": "\n", | ||
"attributes": {} | ||
}, | ||
{ | ||
"insert": "Bold\n", | ||
"attributes": { | ||
"bold": true | ||
} | ||
}, | ||
{ | ||
"insert": "Italic\n", | ||
"attributes": { | ||
"italic": true | ||
} | ||
}, | ||
{ | ||
"insert": "Underline\n", | ||
"attributes": { | ||
"underline": true | ||
} | ||
}, | ||
{ | ||
"insert": "Different ", | ||
"attributes": {} | ||
}, | ||
{ | ||
"insert": "Headings\n\n", | ||
"attributes": { | ||
"bold": true, | ||
"italic": true, | ||
"underline": true | ||
} | ||
}, | ||
{ | ||
"insert": "Bullet List:\n", | ||
"attributes": { | ||
"bold": true | ||
} | ||
}, | ||
{ | ||
"insert": "Item 1\n", | ||
"attributes": { | ||
"list": "bullet" | ||
} | ||
}, | ||
{ | ||
"insert": "Item 2\n", | ||
"attributes": { | ||
"list": "bullet" | ||
} | ||
}, | ||
{ | ||
"insert": "Item 3\n", | ||
"attributes": { | ||
"list": "bullet" | ||
} | ||
}, | ||
{ | ||
"insert": "Item 4\n", | ||
"attributes": { | ||
"list": "bullet" | ||
} | ||
}, | ||
{ | ||
"insert": "Item 5\n", | ||
"attributes": { | ||
"list": "bullet" | ||
} | ||
}, | ||
{ | ||
"insert": "Item 6\n", | ||
"attributes": { | ||
"list": "bullet" | ||
} | ||
}, | ||
{ | ||
"insert": "\n", | ||
"attributes": {} | ||
}, | ||
{ | ||
"insert": "Credits", | ||
"attributes": { | ||
"bold": true, | ||
"header": 3 | ||
} | ||
}, | ||
{ | ||
"insert": "\n\n", | ||
"attributes": {} | ||
}, | ||
{ | ||
"insert": "RichEditor ", | ||
"attributes": { | ||
"bold": true | ||
} | ||
}, | ||
{ | ||
"insert": "for compose is developed and maintained by the ", | ||
"attributes": {} | ||
}, | ||
{ | ||
"insert": "canopas team.\n\n", | ||
"attributes": { | ||
"bold": true, | ||
"italic": true, | ||
"underline": true | ||
} | ||
}, | ||
{ | ||
"insert": "Thank You! 😊\n\n", | ||
"attributes": {} | ||
} | ||
] | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 0 additions & 23 deletions
23
app/src/main/java/com/example/texteditor/parser/JsonEditorParser.kt
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.