Skip to content
Permalink
Browse files

Forum wysiwyg customizations

  • Loading branch information...
stefanorigano authored and qsm-odoo committed Sep 4, 2019
1 parent 446d62e commit 974922549e6ca15848801419d1dcdee934433cb6
@@ -121,16 +121,20 @@ publicWidget.registry.websiteForum = publicWidget.Widget.extend({
['font', ['bold', 'italic', 'underline', 'clear']],
['para', ['ul', 'ol', 'paragraph']],
['table', ['table']],
['view', ['codeview']],
];
if (hasFullEdit) {
toolbar.push(['insert', ['linkPlugin', 'mediaPlugin']]);
}
toolbar.push(['history', ['undo', 'redo']]);

var options = {
height: 150,
height: 200,
minHeight: 80,
toolbar: toolbar,
styleWithSpan: false,
// Remove huge titles from the style list
styleTags: ['p', 'blockquote', 'pre', 'h4', 'h5', 'h6'],
recordInfo: {
context: self._getContext(),
res_model: 'forum.post',
@@ -31,21 +31,22 @@ $bronze: #eea91e;
}

// Single Post
.o_wforum_post, .note-editable.card-block {
.o_wforum_post, .note-editable.panel-body {
word-wrap: break-word;

pre {
padding: 1.5rem;
border-radius: 5px;
color: $white;
background-color: gray('700');
color: color-yiq(gray('100'));
border-radius: $border-radius;
padding: 1rem;
background-color: gray('100');
white-space: pre-wrap;
}

blockquote {
position: relative;
padding-left: 1em;
border-left: .25em solid gray('500');
color: gray('500');
color: gray('600');
}
}

@@ -65,10 +66,14 @@ $bronze: #eea91e;
height: 32px;
}

.note-editable {
@include border-bottom-radius($border-radius);
.note-editable, .note-statusbar {
border: 1px solid $border-color;
border-width: 0 1px 1px;
border-width: 0 1px;
}

.note-statusbar {
display: block;
border-bottom-width: 1px;
}
}

0 comments on commit 9749225

Please sign in to comment.
You can’t perform that action at this time.