Try our conversational search powered by Generative AI!

Nicklas Israelsson
Jun 18, 2018
  4503
(7 votes)

Episerver Image Tools in TinyMCE

EPiServer.CMS.TinyMce versions 2.3.0 and 2.4.0 bring two Image Tools features inside the XHTML editor.

Go to media (version 2.3.0)

Image gotomedia.PNG

This new button will make it easier for the editors to locate and navigate to the image that is included in the HTML property.

Additionally, after hovering it will show a tooltip with a full path to the image.

Drag & Drop from local disk (version 2.4.0)

It is possible to drag and drop an image from a local disk directly onto the editor.

An image preview will be shown immediately upon dropping while the image is being uploaded to the server.

All dropped images are automatically placed in the "For this page" or "For this block" folder. 

Please note that although it is technically possible to drag & drop multiple images at the same time, it does not work deterministically.

There is a bug reported in TinyMCE #4055 that EPiServer has already submitted a bugfix  to. The bug is still pending review.

 

The Image Tools are enabled by the default configuration, but they can be disabled.

To disable or re-enable the features, you should use the EnableImageTools/DisableImageTools methods available when you are configuring your properties:

context.Services.Configure<TinyMceConfiguration>(config =>
{
    ...
    // Disable the image tools
    config.For<ArticlePage>(t => t.MainBody)
        .DisableImageTools()
    ...
    // Enable the image tools for a property (if the property does not have it already)
    config.For<ArticlePage>(t => t.MainBody)
        .EnableImageTools();
     ...
}

The information about enabling and disabling the features is included in the SDK - Episerver Plugins.

Jun 18, 2018

Comments

Kristian
Kristian Aug 22, 2018 12:53 PM

@Nicklas Israelsson 

The epi-image-tools plugin (only for version 2.3.0 and higher) for "go to media" is a nice new feature for image content in the Xhtml property. 

Any chance that you will implement a plugin for similar behaviour on block content so you can navigate to the block by clicking it?

Aug 22, 2018 02:05 PM

@Kristian Willumsen

There is no immediate plan for it but we're always interested in feedback. When you say block content, do you mean when you've drag and dropped a block into your Xhtml property?

Kristian
Kristian Aug 22, 2018 05:45 PM

@Nicklas Israelsson 

OK. Yes exactly. Similar to "Go to media". Just for blocks in Xhtml property. 

Please login to comment.
Latest blogs
Optimizely and the never-ending story of the missing globe!

I've worked with Optimizely CMS for 14 years, and there are two things I'm obsessed with: Link validation and the globe that keeps disappearing on...

Tomas Hensrud Gulla | Apr 18, 2024 | Syndicated blog

Visitor Groups Usage Report For Optimizely CMS 12

This add-on offers detailed information on how visitor groups are used and how effective they are within Optimizely CMS. Editors can monitor and...

Adnan Zameer | Apr 18, 2024 | Syndicated blog

Azure AI Language – Abstractive Summarisation in Optimizely CMS

In this article, I show how the abstraction summarisation feature provided by the Azure AI Language platform, can be used within Optimizely CMS to...

Anil Patel | Apr 18, 2024 | Syndicated blog

Fix your Search & Navigation (Find) indexing job, please

Once upon a time, a colleague asked me to look into a customer database with weird spikes in database log usage. (You might start to wonder why I a...

Quan Mai | Apr 17, 2024 | Syndicated blog

The A/A Test: What You Need to Know

Sure, we all know what an A/B test can do. But what is an A/A test? How is it different? With an A/B test, we know that we can take a webpage (our...

Lindsey Rogers | Apr 15, 2024

.Net Core Timezone ID's Windows vs Linux

Hey all, First post here and I would like to talk about Timezone ID's and How Windows and Linux systems use different IDs. We currently run a .NET...

sheider | Apr 15, 2024