Wopi iframe editor to scroll the page by page - For both edit mode and view mode

Dear Developers,

I need some help setting up the scrollbar with Page Up and Page Down arrows. Additionally, I want the editor to scroll one page at a time by default, rather than jumping multiple pages.

Below is our .cshtml file content, which has inline CSS as well.

@{
ViewBag.Title = “Collabora Online”;
Layout = “~/Views/Shared/_LayoutWopiHost.cshtml”;
}
@if (ViewData[“lockedInDesktopWordBy”] != null)
{






This document is exclusively locked for editing via EDIT IN WORD by @ViewData[“LockedInDesktopWordBy”]







}

#collabora_frameholder { height: 100%; width: 100%; }
body, html {
    height: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
    overflow-y: hidden;
}

#collabora_frame {
    border: 0;
    width: 100%;
    height: 100%;
}

.bannerWrapper {
    margin-top: -0.1em;
    margin-bottom: 0.25em;
}

.bannerContents {
    padding: 3px;
    height: 1.75em;
}

.bannerBody {
    height: 100%;
    width: 80%;
    float: left;
    padding-left: 2em;
    text-align: left;
    z-index: 2;
    position: relative;
    background-color: rgba(255,152,0,0.1);
    border: 2px solid #ff9800;
    border-left: none;
    border-right: none;
    margin-left: -1em;
}

.textParent {
    height: 100%;
    display: table;
}

.textChild {
    height: 100%;
    display: table-cell;
    vertical-align: middle;
    color: #263238;
    font-family: Arial;
    font-size: 13px;
}

.bannerRight {
    height: 100%;
    overflow: hidden;
    z-index: 1;
    position: relative;
    background-color: rgba(255,152,0,0.1);
    border: 2px solid #ff9800;
    border-left: none;
}

Thanks

Jeevi

Hi Jeevi

The editor answers with Action_GoToPage_Resp, which also gives the PageCount, so you know when you reached the last page. This needs version 26.04.2.4 or newer.

By the way, I see you have asked about quite a few things here since September, from the first WOPI setup and the host allowlist to fonts, watermarks and screen readers. I am curious: what product are you building Collabora Online into, and who uses it? A little about your setup (the version you run, and what your users mainly do with documents) would help us give answers that fit better.

Thanks
Darshan