Uploaded image for project: 'CMS'
  1. CMS
  2. CMS-5182

Do not use the default styles (bulleted list, links, img with frame) and use that proposed by the skin

XMLWordPrintable

    • 2 - Long term
    • 3 - Complex

      Currently, the solution is to redefine the button style in a plugin

                  <extension id="org.ametys.cms.edition.character.UnorderedList2"
      point="org.ametys.cms.workspace.ribbon.RibbonControlsManager"
      class="org.ametys.cms.clientsideelement.styles.UnorderedListMenu">
                      <action class="org.ametys.cms.editor.basicstyles.ListMenu">
                          <param name="tagname">ul</param>
                          <param name="replaceTag">dl</param>
                          <param name="initialize">org.ametys.cms.editor.basicstyles.ListInitialize</param>
                          <param name="action">org.ametys.cms.editor.basicstyles.List</param>
                          <param name="selection-listener">org.ametys.cms.editor.basicstyles.ListListener</param>
                          <param name="defaultindex">1</param>
      
                          <param name="label" i18n="true">CONTENT_EDITION_CHARACTER_UNORDEREDLIST_LABEL</param>
                          <param name="default-description" i18n="true">CONTENT_EDITION_CHARACTER_UNORDEREDLIST_DESCRIPTION</param>
                          <param name="icon-small" file="true">img/content/edition/character/unorderedlist_16.gif</param>
                          <param name="icon-medium" file="true">img/content/edition/character/unorderedlist_32.png</param>
                          <param name="icon-large" file="true">img/content/edition/character/unorderedlist_48.png</param>
                      </action>
                      <gallery-item id="org.ametys.cms.edition.carater.unorderedlist.Style">
                          <gallery-group label="CONTENT_EDITION_CHARACTER_UNORDEREDLIST_STYLES_GROUP_STYLED">
                              <button id="org.ametys.cms.edition.character.unorderedlist.style.No">
                                  <param name="action">org.ametys.cms.editor.basicstyles.RemoveList</param>
                                  <param name="display-listener">org.ametys.cms.editor.basicstyles.RemoveListListener</param>
                                  <param name="label" i18n="true">CONTENT_EDITION_CHARACTER_UNORDEREDLIST_STYLE_NO</param>
                                  <param name="description" i18n="true">CONTENT_EDITION_CHARACTER_UNORDEREDLIST_STYLE_NO_DESC</param>
                                  <param name="iconMedium" file="true">img/content/edition/list/no_32.png</param>
                                  <param name="toggle-group">ulstyle</param>
                              </button>
                              <auto action="org.ametys.cms.editor.basicstyles.ListApplyStyle"
      display-listener="org.ametys.cms.editor.basicstyles.ListStyleListener"
                                    toggle-group="ulstyle"/>
                          </gallery-group>
                      </gallery-item>
                      <scripts>
       <file>js/org/ametys/cms/ribbon/button/Menu.js</file>
       <file>js/org/ametys/cms/ribbon/button/EditorMenu.js</file>
       <file>js/org/ametys/cms/editor/BasicStyles.js</file>
                      </scripts>
                  </extension> 
      

      and replace the button in the ribbon

            Unassigned Unassigned
            lperier Laurence Perier
            Votes:
            5 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: