fckeditor Reduced Options

Discussion in 'Article Script / Article Directory Script' started by seemybiz, May 23, 2009.

  1. seemybiz

    seemybiz New Member

    I was able to scale down the editor in eSyndicat, but now I am going to Subrion ver 1.1 with the publishing package and I need to remove all of the extras from the user editor. I want the Admins to be the only ones to have advanced controls, all other users will see just the very basic editor with no html or other advanced options.

    Any help here?

    As a idea for a future version, I think this would be a good option in the admin panel, under Configuration> Publishing.

    Thanks!
  2. seemybiz

    seemybiz New Member

    I worked it out. If any needs to know how please see the following:

    To add a basic editor for users and still keep all the editing options for the admin.

    1. Go to the Subrion install folder: Example: public_html/sbr/js/fckeditor. Make a copy of fckeditor.js and name it “admin_fckeditor.js”

    2. In the same folder go to the file "fckeditor.js" and find this line:
    Code (Text):
    ToolbarSet      = toolbarSet    || 'User' ;”
    and change to:
    Code (Text):
    ToolbarSet      = toolbarSet    || 'Basic' ;”
    3. Go to: public_html/sbr/packages/publishing/admin. Open file "article_submit.php" and find line:
    Code (Text):
    <script type="text/javascript" src="../js/fckeditor/fckeditor.js"></script>
    Change to:
    Code (Text):
    <script type="text/javascript" src="../js/fckeditor/admin_fckeditor.js"></script>
    That's it. If there is a better way please let me know.
    Last edited: May 24, 2009
  3. dstemper

    dstemper Member

    Nice one indeed. This is great.

Share This Page