Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The following example configures an editor with two rows of buttons:

Code Block
html
html

<script type="text/javascript">
<!--
tinyMCE.init({
        mode : "textareas",
        editor_selector : "mceEditor",
        theme : "advanced",
        theme_advanced_buttons1 : "bold,italic,underline,blockquote,separator,indent,fontselect,fontsizeselect,charmap",
        theme_advanced_buttons2 : "image,anchor,separator,bullist,numlist,undo,redo,link,unlink,indent,code",
        theme_advanced_buttons3 : "",
        theme_advanced_toolbar_location : "top",
        theme_advanced_toolbar_align : "left",
        extended_valid_elements : "a[name|href|target|title|onclick],span[class|align|style]"
});
//-->
</script>

...

While this mode allows an administrator to enter any HTML content, TinyMCE is configured with rules that enforce valid HTML and limit the set of allowed HTML elements and attributes. In particular, administrators may find that the "class" attribute is not generally permitted by the editor. To configure the list of allowed elements and attributes, edit the extended_valid_elements property, adding elements and attributes as desired. For example, to allow administrators to add a class attribute to links, edit the line

Code Block
html
html

        extended_valid_elements : "a[name|href|target|title|onclick],span[class|align|style]"

to

Code Block
html
html

        extended_valid_elements : "a[name|href|target|title|onclick|class],span[class|align|style]"

More information about this configuration option, as well as documentation on the default configuration, is available in TinyMCE's FAQ.

 

Changing Announcement list sort order

The order that announcements are displayed in both the normal user view as well as the admin view can be adjusted via Portlet Preference settings. For the normal user Announcement view list you will want to adjust the AnnouncementsViewController.AnnouncementSortStrategy preference and for the admin view you will want to adjust the AdminTopicController.AnnouncementSortStrategy preference. The possible values for either of these preferences is:

  • CREATE_DATE_ASCENDING - Sort by the announcement creation date in ascending order
  • CREATE_DATE_DESCENDING - Sort by the announcement creation date in descending order
  • START_DISPLAY_DATE_ASCENDING - Sort by the announcement "Start Display" date in ascending order
  • START_DISPLAY_DATE_DESCENDING - Sort by the announcement "Start Display" date in descending order
  • END_DISPLAY_DATE_ASCENDING - Sort by the announcement "End Display" date in ascending order
  • END_DISPLAY_DATE_DESCENDING - Sort by the announcement "End Display" date in descending order