Try our conversational search powered by Generative AI!

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

Vote:
 

Hi All

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

#49309
Mar 13, 2011 13:52
Vote:
 

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?

#49335
Mar 14, 2011 10:13
Vote:
 

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.

Thanks

#49375
Mar 15, 2011 18:04
Vote:
 

This page talks about the difference between EPiServer 5 and 6:
http://world.episerver.com/Documentation/Items/Tech-Notes/EPiServer-CMS-6/EPiServer-CMS-60/XHTML-Editor---Comparing-XHTML-Editors1/

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."

#49380
Mar 15, 2011 22:43
Vote:
 

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.

#49381
Mar 15, 2011 22:47
Vote:
 

Hi,

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?

Thanks.

#52455
Jul 27, 2011 11:23
Vote:
 

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.

 

#57033
Feb 22, 2012 10:45
Vote:
 

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?

#57052
Feb 22, 2012 23:53
Vote:
 

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.

#57055
Feb 23, 2012 8:22
Vote:
 

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: http://screencast.com/t/6kiY7ZKxgk1  If I go the editmode, the button is displayed correctly. That does not happen for you?  Your editor should look like this: http://screencast.com/t/JGrujATne and not the legacy editor which looks like this: http://screencast.com/t/qxGp2aXKTwJ 

When you added your own plugin, did you create it as described here? http://world.episerver.com/Documentation/Items/Tech-Notes/EPiServer-CMS-6/EPiServer-CMS-6-R2/TinyMCE-Developers-Guide/ 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.

#57056
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.