Scrivito JS SDK 1.25.0 Released – Featuring TypeScript Support

BETA

Introducing TypeScript definitions

Under the hood, Scrivito has been using TypeScript for quite a while now, and it’s time to let Scrivito application developers benefit from TypeScript as well. Developing Scrivito apps is now much faster and less error prone than ever.

This Scrivito SDK release is the first to include types. See Getting Started with TypeScript for details. – Note that we’re reserving the right to rename or adjust the definitions during the beta phase.

We would highly appreciate your feedback on what you would like to see improved, extended, or altered.

Editing interface improvements

  • Copypasting including subpages

    Like “Paste as subpage”, this new menu command places a copy of the page on the clipboard underneath the current page. However, subpages are included, meaning that any site section (i.e. partial page hierarchy) can be duplicated, provided that the user’s permissions are sufficient for this.

  • Displaying thumbnails in the Content Browser

    To enable editors to better distinguish the various page, image, etc., types of content in the Content Browser, developers can now assign thumbnails to them. For this, a new callback, thumbnailForContent, was made available in the editing configuration of object classes.

  • For your convenience, Scrivito now automatically converts email addresses to links by adding the “mailto” prefix to them.

  • Linked-by counter

    Editors can now determine the number of pages that link to or reference a specific page or image without having to open the “Linked by” tab in the page properties or the Content Browser. For this, the “Linked by” tab label now includes this number.

  • Disabling HTML markup editing

    To prevent editors from viewing or changing the markup of an html attribute, you can now hide the corresponding “HTML” tab from the page or widget properties by setting its showHtmlSource flag to false in the editing configuration.

  • Validation notifications are limited to the changes sidebar

    On most sidebar panels, indicating validations by means of colored borders turned out to be counterproductive so we removed them from all panels except “Changes”.

  • Customizable preview sizes

    To be able to offer a customized set of preview sizes to editors, you can now replace the default options on the corresponding sidebar with your own ones. For this, the Scrivito.configurePreviewSizes method has been provided.

Further improvements

  • Customizing widgets on creation

    Next to pages (and all other kinds of CMS content), now also widgets that are created using Scrivito’s editing interface can be initialized (e.g. by setting their attributes depending on their context) via the initialize callback in the editing configuration for their respective class.

  • API for checking if the editor may change a page

    For preventing unauthorized changes in a working copy through custom editing components or custom dialogs, an API method for checking the editor’s permission to alter a specific piece of content, e.g. a page, Scrivito.canEdit has been added. In contrast to Scrivito.canWrite, the new method also takes account of the workflow this content is subject to.

  • Fixed bugs

    • A bug, which prevented the Scrivito.LinkTag component from properly navigating inside the editing interface with _top as the target, has been fixed.
    • The Scrivito.currentEditor API method resulted in an error if the current editor didn’t have permission to manage users. It now works as intended for all editors.

More great blog posts from Andreas Viebke

  • Scrivito Enterprise CMS - Product Illustration

    Scrivito JS SDK 1.49.1 Released

    Bugfix Release Editing interface issue with ImageTag An issue where using ImageTag with the loading="lazy" attribute could prevent image selection has been resolved. Adding an image widget without a preselected image now displays the clickable placeholder again. We apologize for any inconvenience...

  • Scrivito Enterprise CMS - Product Illustration

    Scrivito JS SDK 1.49.0 Released

    Interface Builder improvements Layout editing mode This new editing mode separates content editing from layout adjustments. In content editing mode, layout elements can only be viewed. To modify them, simply switch to layout editing mode. This clear distinction between content and layout...

  • Introducing Sophisticated Page Access Control

    Latest updates to edit.scrivito.com

    Tailoring page visibility to teams and visitor groups With Scrivito Web Interface Builder, editors have visibility categories available to restrict who can access which pages. As an editor who has been granted permission to manage custom visibility categories, you can now create such categories...

  • Scrivito Enterprise CMS - Product Illustration

    Scrivito JS SDK 1.48.1 Released

    This is a bugfix release. Fixed bugs Binary upload API is less strict again Regarding undefined option values, the Binary.upload API method now works as it did prior to version 1.48.0 of the JS SDK. Such undefined values no longer produce an error. We apologize for any inconvenience this may have...

  • Scrivito Enterprise CMS - Product Illustration

    Scrivito JS SDK 1.48.0 Released

    Interface Builder improvements Retrieving data classes by their name A new API method, Scrivito.getDataClass , has been added as a native method for retrieving data classes by their name, obviating the need for custom lookup code. This method complements Scrivito.getClass for accessing object and...

  • Scrivito Enterprise CMS - Product Illustration

    Scrivito JS SDK 1.47.0 Released

    Interface Builder improvements Filtering dates and numbers The filtering options of the data editor have been extended. You can now filter dates and numbers using the following operators: gt (greater than), lt (less than), gte (greater than or equal to), and lte (less than or equal to). These new...

  • Scrivito Enterprise CMS - Product Illustration

    Scrivito JS SDK 1.46.0 Released

    Interface Builder improvements Using attributes of the current page context Attributes of the current page and its ancestors are now available to editors as placeholders and as a data source (datalocator). Note that only attributes of the string type that are also included as attributes in the...

  • Scrivito Enterprise CMS - Product Illustration

    Scrivito JS SDK 1.45.0 Released

    Interface Builder Supports Further Attribute Types for Filtering

    Interface Builder improvements Filtering data by enum, boolean, date, and number attributes The Interface Builder’s data editor now also lets you filter data by attributes of the enum , boolean , date , and number types. This makes it much more convenient and intuitive to select and present data...

  • Scrivito Enterprise CMS - Product Illustration

    Scrivito JS SDK 1.44.2 Released

    Bugfix Release An issue with Scrivito.useDataLocator has been fixed. It prevented filters with reference data attributes from being evaluated properly. We apologize for any inconvenience this issue may have caused! Thanks again for using Scrivito!

  • Scrivito Enterprise CMS - Product Illustration

    Scrivito JS SDK 1.44.1 Released

    Maintenance release This is a maintenance release with minor improvements. As always, we will keep you posted if there is anything interesting to report. Stay tuned! Thanks again for using Scrivito!