Gossamer Forum
Home : Products : Gossamer Forum : Discussion :

Disable Advanced Editor

Quote Reply
Disable Advanced Editor
Heya all,

What woulkd be the most effective way to disable the advanced editor so users have no choice but to use the basic editor only?

Safe swoops
Sangiro
Quote Reply
Re: [sangiro] Disable Advanced Editor In reply to
Take a look in post_write.html, post_reply_write.html, and post_edit.html. There are some tags in all three that look like this:

Code:
<%if advanced_editor and is_ie and ie_version >= 5.5%>
<%include include_post_html_common_write.html%>
<%elsif current_user_advanced_editor and not basic_editor and is_ie and ie_version >= 5.5%>
<%include include_post_html_common_write.html%>
<%else%>
<%include include_post_common_write.html%>
<%endif%>
Throw a <%-- at the beginning, and a --%> just after the else, and do the same around the endif, like this:



Code:


<%--
<%if advanced_editor and is_ie and ie_version >= 5.5%>
<%include include_post_html_common_write.html%>
<%elsif current_user_advanced_editor and not basic_editor and is_ie and ie_version >= 5.5%>
<%include include_post_html_common_write.html%>
<%else%>
--%>
<%include include_post_common_write.html%>
<%--<%endif%>--%>


That'll make it only use the basic editor. You'll probably also want to remove the "Switch to Advanced Editor" button.

You'll have to also make similar changes in the message_write and message_reply_write.html templates - the code should look almost the same, except that it includes include_message_... instead of include_post_...

Jason Rhinelander
Gossamer Threads
jason@gossamer-threads.com
Quote Reply
Re: [Jagerman] Disable Advanced Editor In reply to
Thanks Jason,

That's actually pretty similar to the solution I came up with. You may want to consider making this something the admin can set in V2.

Safe swoops
Sangiro
Quote Reply
Re: [sangiro] Disable Advanced Editor In reply to
Hi Sangiro,

I'm curious - why did you want to disable the advanced editor?

Jason Rhinelander
Gossamer Threads
jason@gossamer-threads.com
Quote Reply
Re: [Jagerman] Disable Advanced Editor In reply to
Jason,

Because with the discipline my crowd has shown

I have no doubt in my mind that it will take exactly

45 seconds



before half the posts look something like

THIS!

Smile

The problem with simply disabling the ability to change font size and alignment and custom colors is that those buttons still appear on the advanced editor, people try to use it and it shows up as un-parsed tags in the final post.

I would like to keep the appearance of posts in my forums to be simple (I don't mind some Markup) and consistent.

Safe swoops
Sangiro

Last edited by:

sangiro: Nov 4, 2002, 3:46 AM