Try our conversational search powered by Generative AI!

Edit mode "Remove Format" button be added to XHTML property?


Hi All

on Edit mode on a property XHTML (string >255) is it possible to add a "Remove Format" button ?

Mar 13, 2011 13:52

You can remove format by selecting it in the dropdown menu, and you can do it by right clicking in the editor. Do you want to do more than the default behaviour?

Mar 14, 2011 10:13

there's a misunderstanding there. The user wants to clear the format inside the text editor with a single button. I couldn't find that button. All I need is the button that you see in the menu of this editor (top right) that says "Remove formatting"; but I don't know how to add it.


Mar 15, 2011 18:04

This page talks about the difference between EPiServer 5 and 6:

About EPiServer 6, it says "Removing formatting can be done by applying the "Paragraph" element to the selected text. In EPiServer CMS 5 there was an "Remove formatting" option in the style selection drop-down list. The "Remove formatting" option can be made available from Admin mode as a button."

Mar 15, 2011 22:43

Go to the page type in admin mode, click the xhtml property, then the "custom settings" tab. The "Remove formatting" button is listed under "Miscellaneous". Drag that element to where you want it.

Mar 15, 2011 22:47


I came across this thread because my CMS users also used the Remove Formatting option a lot on version 5. I've followed the instructions above to add it back in on an individual page but is there a simple way of adding this setting back in globally across my site?


Jul 27, 2011 11:23

I have not succeded with adding the remove format button by editing xhtml property it seems like a bug, i even added it in my tinyplugin and it still wont show up, have anybody succed with adding the remove format button (it is a default button in Tiny).

I am running 6 R2.


Feb 22, 2012 10:45

What do you mean by not able to add it? You are using the default button that is shipped with EPiServer? The button all the way to the right in the editor you are using to write a reply on this page?

Any error messages?

Feb 22, 2012 23:53

I mean that when adding the remove format in the gui under xhtml string property and saving wont produce the eraser in the Tinyeditor.

I have even tried adding it in the tinyplugin that I created.

 No script erros and in the markup the removeformat is not there.

I can mention that we are not running Alloy tech or other demosites rebranded as our site, we have created it from scratch.

Feb 23, 2012 8:22

I've tested by clicking my xhtml property (which is a tinymce editor, not the legacy xhtml editor) and customizing the settings by dragging the remove format button to one of the editor rows. Screenshot here:  If I go the editmode, the button is displayed correctly. That does not happen for you?  Your editor should look like this: and not the legacy editor which looks like this: 

When you added your own plugin, did you create it as described here? It is important that you have the same folder structure, and that your js file is named editor_plugin.js  If it doesn't show up, check your c# code to make sure the class attribute (TinyMCEPluginButton) is correct, and that your plugincode does not contain any errors. It will not be displayed if it does not produce valid HTML for example. (Or if the tinymce.create(' function in your javascript contains errors) Try adding a super-simple example and build on that.

Feb 23, 2012 9:00
* 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.