- added link option

- styling
This commit is contained in:
ma0048
2023-09-14 11:56:26 +02:00
parent 25313a8f52
commit 91f3197c24
8 changed files with 35 additions and 7 deletions
@@ -68,7 +68,7 @@
<?php echo ucfirst($this->p->t('global', 'nachricht')); ?>:
</label>
<textarea id="bodyTextArea" name="body">
<textarea id="bodyTextArea" class="bodyTextArea" name="body">
<?php echo $body; ?>
@@ -180,7 +180,7 @@
</div>
</div>
<br>
<textarea id="tinymcePreview"></textarea>
<textarea id="tinymcePreview" class="tinymcePreview"></textarea>
</div>
<?php echo $recipients_ids; ?>
+1
View File
@@ -15,6 +15,7 @@ var MessageList = {
statusbar: false,
plugins: "autoresize",
autoresize_bottom_margin: 10,
max_height:495,
autoresize_min_height: 140,
autoresize_max_height: 495,
//callback to avoid conflict with ajax (for getting body of first message)
+15 -1
View File
@@ -47,7 +47,21 @@ $(document).ready(function ()
tinymce.init({
theme : "advanced",
mode : "textareas"
mode : "specific_textareas",
editor_selector: "bodyTextArea",
theme_advanced_buttons2: "undo, redo, outdent, indent, bullist, numlist, link",
theme_advanced_buttons3: "",
theme_advanced_buttons4: "",
theme_advanced_toolbar_location: "top",
height: "400px",
});
tinymce.init({
theme : "advanced",
mode : "specific_textareas",
editor_selector: "tinymcePreview",
height: 400,
readonly: 1,
});
if ($("#variables"))
+6 -1
View File
@@ -46,7 +46,10 @@ $(document).ready(function () {
tinymce.init({
selector: "#bodyTextArea",
plugins: "autoresize",
plugins: "link",
toolbar: "undo redo | presentation | bold italic | link | alignleft aligncenter alignright alignjustify | outdent indent",
min_height: 400,
max_height: 700,
autoresize_on_init: false,
autoresize_min_height: 400,
autoresize_max_height: 400,
@@ -61,6 +64,8 @@ $(document).ready(function () {
toolbar: false,
statusbar: false,
readonly: 1,
min_height: 400,
max_height: 700,
autoresize_on_init: false,
autoresize_min_height: 400,
autoresize_max_height: 700,
+3 -1
View File
@@ -6,7 +6,9 @@ $(document).ready(function ()
{
tinymce.init({
selector: "#bodyTextArea",
plugins: "autoresize",
plugins: "autoresize, link",
toolbar: "undo redo | presentation | bold italic | link | alignleft aligncenter alignright alignjustify | outdent indent",
max_height: 600,
autoresize_min_height: 150,
autoresize_max_height: 600,
autoresize_bottom_margin: 10,
+1
View File
@@ -220,6 +220,7 @@ $(document).ready(function () {
statusbar: false,
readonly: 1,
autoresize_min_height: 300,
max_height: 600,
autoresize_bottom_margin: 0
});
+4 -1
View File
@@ -62,7 +62,10 @@ $(document).ready(function () {
//
tinymce.init({
selector: "#body",
plugins: "autoresize",
plugins: "autoresize, link",
toolbar: "undo redo | presentation | bold italic | link | alignleft aligncenter alignright alignjustify | outdent indent",
min_height: 300,
max_height: 600,
autoresize_min_height: 300,
autoresize_max_height: 600,
autoresize_bottom_margin: 10
+3 -1
View File
@@ -37,7 +37,9 @@ $(document).ready(function () {
//
tinymce.init({
selector: "#body",
plugins: "autoresize",
plugins: "autoresize, link",
toolbar: "undo redo | presentation | bold italic | link | alignleft aligncenter alignright alignjustify | outdent indent",
max_height: 600,
autoresize_min_height: 150,
autoresize_max_height: 600,
autoresize_bottom_margin: 10