- Enh: Added max-height for post/comment/edit richtext
This commit is contained in:
buddh4 2018-07-17 19:31:23 +02:00
parent fc0b9d7ae0
commit c3392a16a9
7 changed files with 14 additions and 4 deletions

View File

@ -50,7 +50,7 @@
"bower-asset/imagesloaded": "*",
"bower-asset/jquery-timeentry": "^2.0",
"bower-asset/caret.js": "0.2.2",
"npm-asset/humhub-prosemirror-richtext": "1.0.3",
"npm-asset/humhub-prosemirror-richtext": "1.0.4",
"npm-asset/at.js": "^1.5.1",
"yiisoft/yii2-queue": "~2.0.0",
"yiisoft/yii2-redis": "~2.0.0",

View File

@ -36,7 +36,9 @@ HumHub Change Log
- Fix: Wrong permission check on force invite check
- Fix: Space homepage doesn't allow custom pages on first position
- Enh: Added integrity check for notification originator
- Enh: Use of new richtext version 1.0.4 see https://github.com/humhub/humhub-prosemirror/blob/master/docs/CHANGELOG.md
- Enh: Added max-height for post/comment/edit richtext
- Enh: Richtext style enhancements (dashed selection)
1.3.0-beta.1 (July 4, 2018)
----------------------------

View File

@ -23,6 +23,7 @@ $submitUrl = Url::to(['/comment/comment/post']);
<div class="comment-create-input-group">
<?= RichTextField::widget([
'id' => 'newCommentForm_' . $id,
'pluginOptions' => ['maxHeight' => '300px'],
'placeholder' => Yii::t('CommentModule.widgets_views_form', 'Write a new comment...'),
'name' => 'message'
]); ?>

View File

@ -19,6 +19,7 @@ $submitUrl = $post->content->container->createUrl('/post/post/edit', ['id' => $p
<div class="post-richtext-input-group">
<?= $form->field($post, 'message')->widget(RichTextField::class, [
'id' => 'post_input_'. $post->id,
'pluginOptions' => ['maxHeight' => '300px'],
'placeholder' => Yii::t('PostModule.views_edit', 'Edit your post...')
])->label(false) ?>

View File

@ -6,6 +6,7 @@ use humhub\modules\content\widgets\richtext\RichTextField;
<?= RichTextField::widget([
'id' => 'contentForm_message',
'pluginOptions' => ['maxHeight' => '300px'],
'placeholder' => Yii::t("PostModule.widgets_views_postForm", "What's on your mind?"),
'name' => 'message',
'disabled' => (property_exists(Yii::$app->controller, 'contentContainer') && Yii::$app->controller->contentContainer->isArchived()),

View File

@ -10,6 +10,10 @@
height:100%;
}
.humhub-ui-richtext {
max-height:none !important;
}
.ProseMirror {
position:static;
overflow:auto;
@ -296,7 +300,7 @@
}
.ProseMirror-selectednode {
outline: 2px solid #8cf;
outline: 2px dashed #8cf;
}
/* Make sure li selections wrap around markers */
@ -388,6 +392,7 @@
.ProseMirror p {
margin-top: 1em;
padding:2px;
}
// Prevent first paragraph to stetch the input

File diff suppressed because one or more lines are too long