Skip to content

Commit 85716c0

Browse files
authored
Merge pull request #48 from t-hamano/local-monaco-loader
v3.0.0
2 parents 73e5668 + 621105b commit 85716c0

File tree

103 files changed

+795
-729
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

103 files changed

+795
-729
lines changed

.eslintrc.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ module.exports = {
1111
'import/no-extraneous-dependencies': 'off',
1212
'import/no-unresolved': 'off',
1313
'no-nested-ternary': 'off',
14+
'no-unused-expressions': 'off',
1415
'@wordpress/no-unsafe-wp-apis': 'off',
1516
'jsdoc/require-param-type': 0,
1617
'prettier/prettier': [

README.md

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,6 @@ You can change all kinds of settings to create your ideal editor in advanced mod
2929

3030
Supports the classic editor, the theme/plugin editor, import/export editor settings, and change indentation.
3131

32-
## Note
33-
34-
The code editor is disabled in the full site editor, mobile / tablet device preview, and block template editor.
35-
3632
## Add custom fonts
3733

3834
You can use your own favorite fonts in addition to the default fonts.
@@ -159,10 +155,6 @@ $ npm run build
159155

160156
## Resources
161157

162-
### @monaco-editor/react
163-
* License: MIT License
164-
* Source: https://github.com/suren-atoyan/monaco-react
165-
166158
### emmet-monaco-es
167159
* License: MIT License
168160
* Source: https://github.com/troy351/emmet-monaco-es

package-lock.json

Lines changed: 3 additions & 23 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@
2727
"stylelint-order": "^5.0.0"
2828
},
2929
"dependencies": {
30-
"@monaco-editor/react": "^4.3.1",
3130
"@wordpress/icons": "^6.1.1",
3231
"emmet-monaco-es": "^4.6.2",
3332
"react-notifications-component": "^3.1.0",

readme.txt

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,6 @@ This plugin features Emmet that expand shortcut input into complete code. This r
1818
You can change all kinds of settings to create your ideal editor in advanced mode.
1919
And supports the classic editor, the theme/plugin editor, import/export editor settings, and change indentation.
2020

21-
###Note
22-
The code editor is disabled in the full site editor, mobile / tablet device preview, and block template editor.
23-
2421
== Installation ==
2522
1. Upload the `custom-html-block-extension` folder to the `/wp-content/plugins/` directory.
2623
2. Activate the plugin through the \'Plugins\' menu in WordPress.
@@ -34,10 +31,6 @@ The code editor is disabled in the full site editor, mobile / tablet device prev
3431

3532
== Resources ==
3633

37-
= @monaco-editor/react =
38-
License: MIT License
39-
Source: https://github.com/suren-atoyan/monaco-react
40-
4134
= emmet-monaco-es =
4235
License: MIT License
4336
Source: https://github.com/troy351/emmet-monaco-es

src/admin/common/example-code.js

Lines changed: 0 additions & 22 deletions
This file was deleted.

src/admin/common/helper.js

Lines changed: 0 additions & 33 deletions
This file was deleted.

src/admin/common/loading.jsx

Lines changed: 0 additions & 14 deletions
This file was deleted.

src/admin/editor-config/editor-options/auto-indent.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ const AutoIndent = () => {
5151
isPrimary={ 'none' === editorOptions.autoIndent }
5252
isTertiary={ 'none' !== editorOptions.autoIndent }
5353
onClick={ () => {
54-
handleChange( 'always' );
54+
handleChange( 'none' );
5555
setIsModalOpen( false );
5656
} }
5757
>

src/admin/editor-config/editor-options/cursor-surrounding-lines.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* Internal dependencies
33
*/
44
import { AdminContext } from 'admin';
5-
import { toNumber } from 'common/helper';
5+
import { toNumber } from 'lib/helper';
66

77
/**
88
* WordPress dependencies

0 commit comments

Comments
 (0)