Skip to content

Commit

Permalink
New editor. (#1034)
Browse files Browse the repository at this point in the history
* New editor.

* Fix tests
  • Loading branch information
SebastianStehle authored Oct 20, 2023
1 parent 43c207b commit 0909a21
Show file tree
Hide file tree
Showing 37 changed files with 5,340 additions and 1,278 deletions.
1 change: 1 addition & 0 deletions backend/src/Squidex/wwwroot/editor/squidex-editor.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5,000 changes: 5,000 additions & 0 deletions backend/src/Squidex/wwwroot/editor/squidex-editor.js

Large diffs are not rendered by default.

13 changes: 12 additions & 1 deletion backend/src/Squidex/wwwroot/scripts/editor-combined.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,21 @@

<!-- Load the editor sdk from the local folder or https://cloud.squidex.io/scripts/editor-sdk.js -->
<script src="editor-sdk.js"></script>

<link rel="stylesheet" type="text/css" href="https://cloud.squidex.io/styles.css">
<style>
body {
background-color: white;
}

textarea {
height: 300px;
}
</style>
</head>

<body>
<textarea style="width: 100%; box-sizing: border-box; height: 40px;" name="content" id="editor"></textarea>
<textarea class="form-control" id="editor"></textarea>

<script>
var element = document.getElementById('editor');
Expand Down
13 changes: 7 additions & 6 deletions backend/src/Squidex/wwwroot/scripts/editor-context.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,14 @@
<!-- Load the editor sdk from the local folder or https://cloud.squidex.io/scripts/editor-sdk.js -->
<script src="editor-sdk.js"></script>

<link rel="stylesheet" type="text/css" href="https://cloud.squidex.io/styles.css">
<style>
body {
background-color: white;
}

textarea {
box-sizing: border-box;
resize: none;
overflow-x: hidden;
overflow-y: hidden;
width: 100%;
height: 300px;
}
</style>
</head>
Expand All @@ -26,7 +27,7 @@
}
</script>

<textarea oninput="grow(this)" name="content" id="editor"></textarea>
<textarea oninput="grow(this)" class="form-control" name="content" id="editor"></textarea>

<script>
var element = document.getElementById('editor');
Expand Down
15 changes: 11 additions & 4 deletions backend/src/Squidex/wwwroot/scripts/editor-dialogs.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,22 +6,29 @@

<!-- Load the editor sdk from the local folder or https://cloud.squidex.io/scripts/editor-sdk.js -->
<script src="editor-sdk.js"></script>

<link rel="stylesheet" type="text/css" href="https://cloud.squidex.io/styles.css">
<style>
body {
background-color: white;
}
</style>
</head>

<body>
<button id="alert">
<button class="btn btn-outline-secondary" id="alert">
ALERT
</button>

<button id="info">
<button class="btn btn-outline-secondary" id="info">
INFO
</button>

<button id="confirm">
<button class="btn btn-outline-secondary" id="confirm">
CONFIRM
</button>

<button id="pickAssets">
<button class="btn btn-outline-secondary" id="pickAssets">
PICK ASSETS
</button>

Expand Down
68 changes: 0 additions & 68 deletions backend/src/Squidex/wwwroot/scripts/editor-editorjs.html

This file was deleted.

88 changes: 0 additions & 88 deletions backend/src/Squidex/wwwroot/scripts/editor-json-schema.html

This file was deleted.

20 changes: 12 additions & 8 deletions backend/src/Squidex/wwwroot/scripts/editor-log.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,22 +7,26 @@
<!-- Load the editor sdk from the local folder or https://cloud.squidex.io/scripts/editor-sdk.js -->
<script src="editor-sdk.js"></script>

<link rel="stylesheet" type="text/css" href="https://cloud.squidex.io/styles.css">
<style>
#textarea {
box-sizing: border-box;
min-width: 100%;
min-height: 200px;
margin-top: 10px;
body {
background-color: white;
}

textarea {
height: 300px;
font-family: monospace;
font-size: 12px;
}
</style>
</head>

<body>
<div>
<button id="button">Generate New Value</button>
<div class="mb-2">
<button class="btn btn-outline-secondary" id="button">Generate New Value</button>
</div>

<textarea readonly id="textarea"></textarea>
<textarea class="form-control" readonly id="textarea"></textarea>

<script>
var numberGenerator = 1;
Expand Down
77 changes: 0 additions & 77 deletions backend/src/Squidex/wwwroot/scripts/editor-monaco.html

This file was deleted.

Loading

0 comments on commit 0909a21

Please sign in to comment.