Super-simple editing blocks

Permalink 1 user found helpful
Hello! My first post on this great community and CMS.

I often like to limit my clients as much as possible so things like <blink>WELCOME</blink> doesn't happen. That leads me to the idea of extremely simple editing blocks. Just a single text field for example, so it's near impossible to mess something up. Is there something like this available already, or can you give me some hints how to get started?

Best regards,
Andreas

 
Panupat replied on at Permalink Reply
I don't think you can really stop your client to pick the type of blocks they want. The best way probably is to restrict certain blocks from being edited via the advanced permission options.
jordanlev replied on at Permalink Reply
jordanlev
In general, I don't think most clients are going to be editing HTML directly -- instead they'll use the TinyMCE editor, which doesn't have a button for a "blink" tag by default (and you can edit the toolbar buttons to restrict it even further).

If you really want a bulletproof solution to preventing certain html tags, you will probably have to hack the content block and filter its output -- but this is probably more trouble than it's worth.
olliephillips replied on at Permalink Reply
olliephillips
It'd be very easy to make such a block, with just a textarea field for input, the problem being you'd deny your client all the basic formating options as well.

Generally, rather than control input to this degree, I make sure all the styles they need are available in the theme's typography.css, make sure they know how to use them in the TinyMCE editor and leave it there.

If the site ends up with blink, smileys and other garbage that's their choice, and down to them.
ciscoheat replied on at Permalink Reply
Hi guys, thanks for the responses. I was exaggerating with the blink tag of course. ;) But I don't want to give them a wysiwyg editor in some cases. Lets say I want nice headers in an area of the page, with no chance for the client to put h2 instead of h1. Then I set up default blocks for the area, where the first is a simple one and the second is a content block. Then I prevent them from adding more through permissions. It should work, right?

Ollie, I understand your argument that it's up to the client if their site looks like garbage. I'm just trying to save them from themselves, maybe because I'm too nice when they call and the site is broken because of their excessive editing. :)
Doki replied on at Permalink Reply
Doki
Quick note:

If you go into the dashboard and go under the Sitewide Settings option in the left menu, on the bottom right there's a field called "Rich Text Editor". This is an easy place to edit your TinyMCE settings.

The best way to add stuff is to select the "custom" option. From here, you can see how your bars are set up and what options are available in those bars. For example, mine has:

theme : "concrete", 
plugins: "inlinepopups,spellchecker,safari,advlink,table,advhr,xhtmlxtras,emotions,insertdatetime,paste,visualchars,nonbreaking,pagebreak,style",
editor_selector : "advancedEditor",
spellchecker_languages : "+English=en",   
theme_concrete_buttons1 : "bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,|,hr,|,bullist,numlist,|,outdent,indent,|,styleselect,formatselect,fontsizeselect",
theme_concrete_buttons2 : "undo,redo,|,link,unlink,anchor,image,cleanup,help,code,forecolor,|,tablecontrols,|,pasteword",
theme_concrete_blockformats : "p,address,pre,h1,h2,h3,div,blockquote,cite",
theme_concrete_toolbar_align : "left",
theme_concrete_fonts : "Andale Mono=andale mono,times;Arial=arial,helvetica,sans-serif;Arial Black=arial black,avant garde;Book Antiqua=book antiqua,palatino;Comic Sans MS=comic sans ms,sans-serif;Courier New=courier new,courier;Georgia=georgia,palatino;Helvetica=helvetica;Impact=impact,chicago;Symbol=symbol;Tahoma=tahoma,arial,helvetica,sans-serif;Terminal=terminal,monaco;Times New Roman=times new roman,times;Trebuchet MS=trebuchet ms,geneva;Verdana=verdana,geneva;Webdings=webdings;Wingdings=wingdings,zapf dingbats",
theme_concrete_font_sizes : "1,2,3,4,5,6,7",
theme_concrete_styles: "Note=ccm-note",
spellchecker_languages : "+English=en"


Because my users use alot of tables in their pages, we added table controls to the second bar in TinyMCE. As well, we discovered a problem early where people would use cut and paste to bring items from word docs to the page, and a whole bunch of meta-garbage would come along with the copy, which would screw up the final product. To fix this, we added the pasteword button to allow people to still cut-and-paste while stripping the pasted item of the hidden Word junk. Other stuff has been moved around so that we could keep everything in a two-bar format as well as keep items in a logical order while being aestetically pleasing.

So back to the original question about "blink". I took a quick spin through the google world and only saw one TinyMCE plugin advertising a blink capability -- unfortunately, this library is being sold rather than given away. Don't know price, etc. There may be free ones out there, but I didnt see one in the ten seconds or so I looked over my Google search....

...in case you don't find one available, you can always write your own plugin with a blink button. This starts leaving my field of experience however, so if you go down that road, let me know how it goes :)
jordanlev replied on at Permalink Reply
jordanlev
Doki,
Thanks for the info about configuring the tinymce toolbar (I know it's possible but often have trouble setting it up right).

BTW, the OP was trying to PREVENT the <blink> tag, not allow it (thankfully)!
Doki replied on at Permalink Reply
Doki
Ha! Reading comprehension ftw.

Just take everything I said and add the following in front of the sentence: "Do the opposite of this:"

Problem solved :)

D
ScottC replied on at Permalink Reply
ScottC
had someone ask me about paste from word months ago, thanks for the info on that.