Question

Photo of Jan Brandsma

0

Html "cleaner" available for the WYSIWYG editor?

While experimenting with Rock and trying to explain how to add for example a new blog item, people prefer the WYSIWYG editor because it is much more user friendly. Is it possible to "clean"or "beautify"the html which was created before it is published to the website? By clean I mean remove all 'unwanted' formatting like fonts and fontsizes which are added if you copy paste texts? I believe this was one of the main reasons for having the code editor as the "default" editor.

By using this cleaner it would be possible to keep the styling more uniform without going through each entry manually.

Thanks,

Jan

 

  • Photo of Bronson Witting

    0

    Hey Jan, we run into this too. The issue is the WYSIWYG editor (CKEditor) will always try to take the styles you're pasting.  Our workaround right now (and it's messy) is to have staff paste their content into Notepad first to remove formatting, and then re-copy from notepad and paste into Rock.

    Also, there is a CKEditor addon that will let you paste as plain text (http://ckeditor.com/addon/pastetext), but I haven't looked into it yet and I'm not sure of the feasibility of using it in Rock.

  • Photo of Jan Brandsma

    0

    Hi Bronson,

    Thanks for the reply! The thing is that we would like many (unskilled) users to use the editor for various tekst, and your workaround would we a little dificult for most of them :-) Removing the formatting completely would also be a little hars, but f.i. just removing fontname and height information.I am no expert on CMS but I heard that at least some of them have this functionality which would make the task for the administrators a little easier!

  • Photo of Ed Long

    0

    We are seeing similar behavior, I've looked through a couple of options, and it appears like the best route would be to update CKEditor (the wysiwyg used by rock) to the latest version.  This will then allow us to set the field to remove inline styles.  One workaround for right now that you can use is to click on the 'Paste from Word' icon on the toolbar, next to the link icon, and paste in content using that.  This removes styles, and is a good workaround for the time being.