Removed the space in 'Mark Text' (#2763) (#2782)

* Removed the space in 'Mark Text' (#2763)

Literally just replaced all occurances of 'Mark Text' with 'MarkText' using sed.

This is directly related to #2763.

* Revert changes to .github directory

Reverted changelog etc.

* Added `cs` alias for `csharp` in code blocks (Fixes #2760)

* Added error handler in the renderer process (should fix #2758)

The `src/muya/lib/contentState/clickCtrl.js` file will now return if
`document.querySelector` fails to find an element.
This commit is contained in:
bolshoytoster 2021-12-25 13:05:58 +00:00 committed by GitHub
parent 14d9c83b0e
commit 2ed5a85012
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
74 changed files with 372 additions and 365 deletions

View File

@ -12,6 +12,9 @@ const clickCtrl = ContentState => {
const lastBlock = this.getLastBlock()
const archor = this.findOutMostBlock(lastBlock)
const archorParagraph = document.querySelector(`#${archor.key}`)
if (archorParagraph === null) {
return
}
const rect = archorParagraph.getBoundingClientRect()
// If click below the last paragraph
// and the last paragraph is not empty, create a new empty paragraph

View File

@ -166,6 +166,10 @@ const languages = [{
name: 'csharp',
mode: 'clike',
mime: 'text/x-csharp'
}, {
name: 'cs',
mode: 'clike',
mime: 'text/x-csharp'
}, {
name: 'rust',
mode: 'rust',