Loading
Join the newsletter
Loading

Basic content type without visual editor

Can we please have a content type that does not use the visual editor?

Occassionaly there are pages that need to have content that is not filtered by the visual editor. The HTML edit button is not always sufficient, as the visual editor will still filter text inputed directly into the HTML Source editor.

Please let me know if it would be helpful for me to demonstrate that.

Thanks!

Official response from Jim Gilliam started

We have a white list of what HTML will get stripped from the wysiwyg editor. It's been a challenge getting all the right stuff in there and still maintaining the security for web safeness, but if you can give me specific tags or attributes that you need to work, we can get those in.

And I know you already know this, but for others who may see this, the template is where you can put in any HTML, JavaScript, or embedding that you want. The wysiwyg editor is meant to be web safe as some page types (and eventually just about all of them) could be editable from your public site.

How would you tag this suggestion?
Do you like this suggestion?

Showing 3 reactions


Jerimee Richir commented 2011-12-05 14:43:46 -0800 · Flag
Sure.

I wanted the visual-editor-less page type for to use with my hack for storing custom field data.

I make a page called “Fav Color Data.” I then make a basic page as a child of “Fav Color Data” with title “Blair” and body “Blue,” and another child with title “Greg” and body “Green.”

Then I can do a loop on children of “Fav Color Data” to print

Blair – Blue
Greg – Green

So then I can give instructions to a page admin that anytime they want to add to the list of Favorite Colors just make another child of “Fav Color Data.”

But the basic page type unavoidably adds

tags to what is entered into the body. So I have to add code to strip that out. I want a page type where I don’t have to worry about the visual editor “helping.”

Clearly this is not a particularly compelling example of the need, and I suspect there are other use cases for having a page type that lacks a visual editor.
Jim Gilliam commented 2011-12-02 21:05:21 -0800 · Flag
Jerimee-

Somehow this slipped past me, but we have a white list of what HTML will get stripped from the wysiwyg editor. It’s been a challenge getting all the right stuff in there and still maintaining the security for web safeness, but if you can give me specific tags or attributes that you need to work, we can get those in.

And I know you already know this, but for others who may see this, the template is where you can put in any HTML, JavaScript, or embedding that you want. The wysiwyg editor is meant to be web safe as some page types (and eventually just about all of them) could be editable from your public site.