Describe the bug or issue here…
When I set height or max-height for trix-editor, the border box got the height.
But the content elements are flown down continue to outside the border box.
I figured out that I can set with overflow-y: auto
Hi, i was unsuccessfully trying to add overflow-y:auto to trix.css on trix-editor and content, can you point me in the right direction?
@ajrmzcs In case you still trying to solve this...
I added the "overflow-y:auto" in the style property of the element. Like this:
<trix-editor angular-trix ng-model="your model" class="trix-content" style="overflow-y:auto"></trix-editor>
@ajrmzcs , if you're still unsuccessful, just set in your CSS like so:
.trix-content {
max-height: 800px !important; #set whatever height you want
overflow-y: auto;
}
In case anyone else has the same issue, I solved it with:
<style>
trix-editor {
height: 150px !important;
max-height: 150px !important;
overflow-y: auto !important;
}
</style>
Most helpful comment
I figured out that I can set with overflow-y: auto