Try our conversational search powered by Generative AI!

Removing properties from the visual editor


Hi all,

I've been looking into ways of removing a specific blue, clickable box from the visual editor on a standard page and can't seem to find a way of doing using any method.

Does anyone have any ideas if this is possible?

Thanks in advance!

May 15, 2014 11:50

Not sure if your talking about the blue border around properties or the tinymce editor.

If it's the first one you should be able to use the @Html.DisplayFor instead of @Html.PropertyFor method if you do not wish to get the blue border for a specific prop.

If it's the later you could change what buttions to show by going to admin - config tab - Edit Property Types - scroll down to XHTML string (>255)  and then drag and drop what options to use.

May 15, 2014 12:04

Do you want to disable DOPE (direct on page edit) functionality?

Intead of using

@Html.PropertyFor(x => x.CurrentPage.SomeProperty)

you can use

@Html.DisplayFor(x => x.CurrentPage.SomeProperty)

edit: Wrote at the same time as Petter, sorry :)

Edited, May 15, 2014 12:04

Hi guys, thanks for the quick response.

I'm after the ability to remove the blue border around a specific prop, that's right. Sorry about the confusion!

Unfortunatly, we're using Web Forms, not MVC. Is there a way of achieving this using web forms?

May 19, 2014 11:54

If you can control this on the model class it's just to add the ScaffoldColumn attribute to your property:

public string Whatever { get; set; }

There is actually a bug fix that's been done recently that still creates an overlay (the blue border) even though the property has been marked as non-editable but this should be released within a week or two.

May 19, 2014 13:03

Thank you so much Linus, that worked a treat :)

May 19, 2014 13:14

Since we've updated our site to 7.1.4, the [ScaffoldColumn(false)] has stopped working?

Is this a known issue?

Thanks in advance!

Jul 30, 2014 12:46
This thread is locked and should be used for reference only. Please use the Episerver CMS 7 and earlier versions forum to open new discussions.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.