aboutsummaryrefslogtreecommitdiff
path: root/app/view
diff options
context:
space:
mode:
authorVincent Peugnet <33429034+vincent-peugnet@users.noreply.github.com>2019-10-21 23:52:50 +0200
committerGitHub <noreply@github.com>2019-10-21 23:52:50 +0200
commit26c93a796eceb3de136695548ab80e5455bd932a (patch)
treefa1f36802cdae44625a7a87960c5347e127f326d /app/view
parentba671a7c0880f8154a7b86d4cb172b0171e84021 (diff)
parent016dc180d41c28c8fb0883b09a55b69cb060a0c1 (diff)
downloadwcms-26c93a796eceb3de136695548ab80e5455bd932a.tar.gz
wcms-26c93a796eceb3de136695548ab80e5455bd932a.zip
Merge pull request #13 from n-peugnet/add-code-mirror
Include CodeMirror in edit page
Diffstat (limited to 'app/view')
-rw-r--r--app/view/templates/edit.php2
-rw-r--r--app/view/templates/edittabs.php4
-rw-r--r--app/view/templates/edittopbar.php2
-rw-r--r--app/view/templates/layout.php5
4 files changed, 4 insertions, 9 deletions
diff --git a/app/view/templates/edit.php b/app/view/templates/edit.php
index 4c7fc61..28e245f 100644
--- a/app/view/templates/edit.php
+++ b/app/view/templates/edit.php
@@ -30,7 +30,7 @@
<script>
const pageid = '<?= $page->id() ?>';
</script>
-<script src="<?= Model::jspath() ?>edit.js"></script>
+<script src="<?= Model::jspath() ?>edit.bundle.js"></script>
</body>
<?php $this->stop('page') ?> \ No newline at end of file
diff --git a/app/view/templates/edittabs.php b/app/view/templates/edittabs.php
index 0829c48..c890677 100644
--- a/app/view/templates/edittabs.php
+++ b/app/view/templates/edittabs.php
@@ -13,9 +13,9 @@ foreach ($tablist as $key => $value) {
echo '<div class="content">';
if ($key == $opentab) {
- echo '<textarea name="' . $key . '" id="' . $key . '" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false" autofocus >' . $value . '</textarea>';
+ echo '<textarea name="' . $key . '" id="edit' . $key . '" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false" autofocus >' . $value . '</textarea>';
} else {
- echo '<textarea name="' . $key . '" id="' . $key . '" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false">' . $value . '</textarea>';
+ echo '<textarea name="' . $key . '" id="edit' . $key . '" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false">' . $value . '</textarea>';
}
echo '</div>';
echo '</div>';
diff --git a/app/view/templates/edittopbar.php b/app/view/templates/edittopbar.php
index ec1a875..13cef96 100644
--- a/app/view/templates/edittopbar.php
+++ b/app/view/templates/edittopbar.php
@@ -27,7 +27,7 @@
<span id="fontsize" class="hidephone">
<label for="fontsize">Font-size</label>
- <input type="number" name="fontsize" value="<?= Config::fontsize() ?>" id="fontsize" min="5" max="99">
+ <input type="number" name="fontsize" value="<?= Config::fontsize() ?>" id="editfontsize" min="5" max="99">
</span>
<span id="download" class="hidephone">
diff --git a/app/view/templates/layout.php b/app/view/templates/layout.php
index 3c38be4..91ae378 100644
--- a/app/view/templates/layout.php
+++ b/app/view/templates/layout.php
@@ -18,11 +18,6 @@
echo '<link rel="stylesheet" href="' . Model::csspath() . Config::interfacecss() . '">';
}
?>
- <script>
- // global js vars
- const basepath = '/<?= Config::basepath() ?>/';
- const jspath = '<?= Model::jspath() ?>';
- </script>
</head>