mirror of
https://github.com/codex-team/codex.docs.git
synced 2025-08-08 06:55:26 +02:00
Temp fix passing editor's data to editor
This commit is contained in:
parent
d872e78339
commit
e8d4a8cfde
5 changed files with 32 additions and 8 deletions
2
public/dist/main.bundle.js
vendored
2
public/dist/main.bundle.js
vendored
File diff suppressed because one or more lines are too long
2
public/dist/main.css
vendored
2
public/dist/main.css
vendored
File diff suppressed because one or more lines are too long
|
@ -47,9 +47,10 @@ export default class Writing {
|
|||
|
||||
moduleEl.appendChild(this.nodes.editorWrapper);
|
||||
|
||||
if (settings.page) {
|
||||
this.page = settings.page;
|
||||
}
|
||||
this.page = window.savedData;
|
||||
// if (settings.page) {
|
||||
// this.page = settings.page;
|
||||
// }
|
||||
|
||||
this.loadEditor().then((editor) => {
|
||||
this.editor = editor;
|
||||
|
|
|
@ -84,3 +84,25 @@
|
|||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Inline Code
|
||||
* =========================
|
||||
*/
|
||||
.inline-code {
|
||||
background: rgba(251,241,241,0.78);
|
||||
color: #C44545;
|
||||
padding: 4px 6px;
|
||||
border-radius: 2px;
|
||||
margin: 0 2px;
|
||||
font-family: Menlo, Monaco, Consolas, Courier New, monospace;
|
||||
font-size: 0.9em;
|
||||
}
|
||||
|
||||
/**
|
||||
* Marker
|
||||
* =========================
|
||||
*/
|
||||
.cdx-marker {
|
||||
background: rgba(245,235,111,0.29);
|
||||
padding: 3px 0;
|
||||
}
|
||||
|
|
|
@ -7,10 +7,11 @@
|
|||
}
|
||||
</style>
|
||||
<section data-module="writing">
|
||||
<script>
|
||||
window.savedData = {{ page | json_encode }};
|
||||
</script>
|
||||
<module-settings hidden>
|
||||
{
|
||||
"page": {{ page | json_encode }}
|
||||
}
|
||||
{}
|
||||
</module-settings>
|
||||
<header class="writing-header">
|
||||
<span class="writing-header__left">
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue