1
0
Fork 0
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:
Taly 2019-01-25 05:08:21 +03:00
parent d872e78339
commit e8d4a8cfde
No known key found for this signature in database
GPG key ID: F8569511A387BDFB
5 changed files with 32 additions and 8 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -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;

View file

@ -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;
}

View file

@ -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">