Nick O'Leary
27ed81614b
Remove default ctrl-enter keybinding from monaco editor
...
Fixes #3093
2021-07-30 11:50:21 +01:00
Nick O'Leary
56df8d8bd3
Merge pull request #3031 from Steve-Mcl/monaco0252
...
Update Monaco Editor to V0.25.2 (latest)
2021-06-28 15:28:09 +01:00
Steve-Mcl
04d91d1422
prevent promise rejection when loading editor
2021-06-24 11:28:39 +01:00
Steve-Mcl
db90e1f801
remove unnecessary global uncaught promise handler
...
- monaco issue https://github.com/microsoft/monaco-editor/issues/2382
2021-06-24 11:27:24 +01:00
Steve-Mcl
0a8f7085f3
allow static private field to have initializer
2021-06-17 08:44:44 +01:00
Steve-Mcl
c908502644
add 2 ace compatible functions
...
- clearSelection - blocky node
- selectAll - obvious addition
2021-06-16 22:36:00 +01:00
Steve-Mcl
1a73a27102
add diagnosticCodesToIgnore 2345
...
- handles issue with Intl.DateTimeFormat when `options` is a variable
2021-06-15 23:15:54 +01:00
Steve-Mcl
a9cf34ab56
prevent IE script error
...
- even though monaco does not work in EI, scripts must not fail to load
2021-06-15 21:02:30 +01:00
Steve-Mcl
46d17c3314
update code comments
2021-06-15 21:01:33 +01:00
Steve-Mcl
7d24e5b279
node.status snippet enums for fill and shape
2021-06-11 08:01:38 +01:00
Steve-Mcl
12253e23b5
Add setReadOnly support
2021-06-10 21:18:29 +01:00
Steve-Mcl
db676ec223
add snippet for env.get
2021-06-05 12:34:47 +01:00
Steve-Mcl
1acb073737
add support for explicit calls to ace.setFontSize
...
- found node-red-contrib-ui-svg explicitly calling ace function
2021-05-04 10:34:29 +01:00
Steve-Mcl
251dda3652
missing editor destroy() calls
2021-05-04 09:04:13 +01:00
Steve-Mcl
22db24509d
Ensure monaco exists before attempting cleanup
2021-05-04 09:03:35 +01:00
Steve-Mcl
ffbd140a97
bug fix orphaned models and graphical tray glitch
...
- ensure models are disposed correctly
- clean up any orphaned models left after editor:close
- improve concurrent multiple instances javascript models
- fix graphical glitch
2021-05-03 16:19:01 +01:00
Steve-Mcl
dedf5c52d9
better support for multiple editors
...
- as the javascript model is singleton, need to disable
syntax checking when editor not focused
(support multiple instances of js editor (function node))
2021-05-02 23:11:29 +01:00
Steve-Mcl
10465c5d68
treat appcache files as shell (uibuilder support)
2021-05-02 23:00:35 +01:00
Steve-Mcl
a72bdfdacc
Handle known bug (monaco-editor issue No 2382)
...
- handles "Uncaught (in promise) Canceled: Canceled"
2021-05-01 11:40:43 +01:00
Steve-Mcl
dc3e04456c
remove temporary debugging window variable
2021-05-01 11:01:04 +01:00
Steve-Mcl
df7aa3339b
dont tokenise JSONata
...
- monaco has jsonata tokeniser
2021-04-29 18:11:47 +01:00
Steve-Mcl
58da87898e
integrate monaco
...
- refactors createEditor out to own code files
- moves ace editor to own code file
- adds monaco editor to own code file
- add monaco bootstrap
- update mst to include monaco asset
- update grunt to include new files and integrate
2021-04-29 17:58:41 +01:00
Nick O'Leary
5d81cec00c
Merge branch 'pr_2498' into dev
2020-05-22 15:22:12 +01:00
Nick O'Leary
9512450d7c
Reduce duplicated code in Function node html
2020-05-22 14:57:28 +01:00
Nick O'Leary
9f29149d87
[help-sidebar] Add help sidebar
2020-05-06 16:15:12 +01:00
Nick O'Leary
78c86880e4
[outline] Update information section of info sidebar
2020-05-01 17:39:54 +01:00
Nick O'Leary
3f86fd7176
Upgrade to latest marked and dompurify libs
2020-02-24 11:22:47 +00:00
Nick O'Leary
797da3bc8e
Fix duplicating array item in visual json editor
2020-02-07 10:46:04 +00:00
Nick O'Leary
9d4238e5cc
Re-enable jshint on editor and fixup issues
2020-01-22 11:53:41 +00:00
Kazuhito Yokoi
7805974736
Add icons and support i18n in typedInput of JSON editor
2019-11-25 16:40:42 +09:00
Hiroyasu Nishiyama
21635aadfe
use type name from common.type
2019-11-13 22:50:44 +09:00
Hiroyasu Nishiyama
d5234888b3
Merge branch 'master' into i18n-json-editor
2019-11-13 22:42:53 +09:00
Hiroyasu Nishiyama
8c1aa83d12
update support of i18n of JSON editor
2019-10-31 12:26:04 +09:00
Hiroyasu Nishiyama
07061928df
make JSONata help initially shown
2019-10-29 10:24:15 +09:00
Kazuhito Yokoi
a0026e66ce
Fix element to collapse items in visual JSON editor
2019-10-07 16:13:04 +09:00
Kazuhito Yokoi
901e2527d8
Maximize the size of markdown editor
2019-09-13 14:41:10 +09:00
Nick O'Leary
e3e0378857
Add visual json editor
2019-06-11 14:44:44 +01:00
Nick O'Leary
5f5feaed5f
Add expand editor button to Template node
2019-05-19 22:34:04 +01:00
Nick O'Leary
98a001a8ca
Deprecate editor-button css class
2019-05-17 10:42:43 +01:00
Nick O'Leary
0d75ff336d
Found some more ids and classes to namespace
2019-05-16 22:32:28 +01:00
Nick O'Leary
031362a633
Move all colours to sass variables
2019-05-15 13:54:29 +01:00
Nick O'Leary
b98e85016a
Namespace type editors CSS
2019-05-07 16:48:05 +01:00
Nick O'Leary
67f8ec7f87
Append node configs to div rather than body
2019-05-03 21:32:12 +01:00
Nick O'Leary
8dc1ad8168
Namespace workspace/view css
2019-05-01 22:41:20 +01:00
Nick O'Leary
b5da6f9c74
Upgrade to jq 3.3.1 / jq-ui 1.12.1
...
Uses jquery-migrate-3.0.1.min.js to keep things working.
2019-04-29 11:50:15 +01:00
Nick O'Leary
057127f4de
Hitting enter in Comment node name field clicks markdown button
...
When Enter is pressed in a form, the browser will find the first
submittable element and trigger it. By default <button> elements
have type set to 'submit' which causes them to be targetted by
this behaviour.
Adding `type="button"` prevents this behaviour. This change
targets some main offenders - in particular the markdown toolbar.
There are of lots of other `<button>` elements without this attribute
set, so they need tidying up. Not currently aware of any others that
exist in a <Form> so may be immune from this behaviour.
2019-02-13 20:41:34 +00:00
Hiroyasu Nishiyama
2f884ec778
i18 support for markdown editor tooltip
2018-12-11 22:33:11 +09:00
Nick O'Leary
ea4d65ceee
Add RED.editor.registerTypeEditor for custom type editors
2018-12-10 22:21:21 +00:00
Nick O'Leary
6201247875
Tidy up markdown toolbar handling across all editors
...
Any editor for the markdown mode will now automatically get
the markdown toolbar added.
The comment node has been updated to handle this properly and
to not add two copies of its content to the sidebar.
2018-12-10 15:24:27 +00:00
Nick O'Leary
fc8c4063f2
Add markdown toolbar to flow description editor
2018-10-16 11:36:24 +01:00