SnippetMaster Support Forums
Return to main website
 
April 26, 2011, 10:05:40 AM
* Show unread posts since last visit.
* Show new replies to your posts.
Welcome, Guest. Please login or register.
Did you miss your activation email?
April 26, 2011, 10:05:40 AM

Login with username, password and session length
Search:  
Advanced search
* Home Help Search Login Register
SnippetMaster Support Forums  |  General  |  General Discussion & Support  |  Topic: one suggestion, one tip « previous next »
Pages: [1] Print
Author Topic: one suggestion, one tip  (Read 985 times)
irmdogg

Posts: 2


[-] one suggestion, one tip
« on: May 25, 2004, 09:04:29 AM »

First for the suggestion:
There are a couple of questions on the board here that seem to be very common one of them being (1) Default text [i.e. the user doesn't know that style sheets are not recognized until preview] and another is about (2) the "red x".  Since they are so common, maybe it would be reasonable to create a faq just for these types of reoccuring questions (and answers).  Needless to say, these two questions are only a couple of the many examples we could place here.

The tip is this:
It seems to me (as a web desinger) that there are some functions of the toolbar in the editor that you DON'T want your clients to have access to.  It takes a fair bit of understanding to modify the existing code to disable these buttons without producing javascript errors in IE.  There is however a simple way to accomplish such a  thing.

Since IE 6.0 is required for the use of this editor anyway one might use the "visibility" property of CSS. (only IE 4.0 is required for this property)

For instance, a website i have designed is stylistically controlled by external style sheets, therefore, I do not wish for my clients to be able to change font size, color, or face.  I would make the following change to /ieeditor/ieeditor.php, by adding the text:

FROM
Code:

<div class="tbToolbar" ID="FormatToolbar">
  <select ID="ParagraphStyle" class="tbGeneral" style="width:90;" .......
  </select>
  <select ID="FontName" class="tbGeneral" style="width:140;" .............
  </select>
  <select ID="FontSize" class="tbGeneral" style="width:40;..............
  </select>


TO
Code:

<div class="tbToolbar" ID="FormatToolbar">
  <select ID="ParagraphStyle" class="tbGeneral" style="width:90;visibility:hidden;" .......
  </select>
  <select ID="FontName" class="tbGeneral" style="width:140;visibility:hidden;" .............
  </select>
  <select ID="FontSize" class="tbGeneral" style="width:40;visibility:hidden;"..............
  </select>


I wish I could highlight that better, but it seems you can't use the [ color ] tags inside the [ code ] tags on this message board.  But anyway, you get the point.  


It may not be the most technical method of disabling these buttons, but it works well enough.  I've never had any problems with it anyway.[/code]
Report to moderator   Logged
Pages: [1] Print 
SnippetMaster Support Forums  |  General  |  General Discussion & Support  |  Topic: one suggestion, one tip « previous next »
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.12 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!