<alfresco-config>
   <config>
   		<forms>
      	    <dependencies>
        		<js src="/treeview/assets/js/convertword.js" />
        		<js src="/treeview/assets/js/sharefilebrowser.js" />
       		</dependencies>
       	</forms>
   </config>
   <!-- Repository Library config section -->
   <config evaluator="string-compare" condition="RepositoryLibrary" replace="true">
      <!--
         Whether the link to the Repository Library appears in the header component or not.
      -->
      <visible>true</visible>
   </config>

   <config evaluator="string-compare" condition="Remote">
      <remote>
         <endpoint>
            <id>alfresco-noauth</id>
            <name>Alfresco - unauthenticated access</name>
            <description>Access to Alfresco Repository WebScripts that do not require authentication</description>
            <connector-id>alfresco</connector-id>
            <endpoint-url>http://localhost:8080/alfresco/s</endpoint-url>
            <identity>none</identity>
         </endpoint>

         <endpoint>
            <id>alfresco</id>
            <name>Alfresco - user access</name>
            <description>Access to Alfresco Repository WebScripts that require user authentication</description>
            <connector-id>alfresco</connector-id>
            <endpoint-url>http://localhost:8080/alfresco/s</endpoint-url>
            <identity>user</identity>
         </endpoint>

         <endpoint>
            <id>alfresco-feed</id>
            <name>Alfresco Feed</name>
            <description>Alfresco Feed - supports basic HTTP authentication via the EndPointProxyServlet</description>
            <connector-id>http</connector-id>
            <endpoint-url>http://localhost:8080/alfresco/s</endpoint-url>
            <basic-auth>true</basic-auth>
            <identity>user</identity>
         </endpoint>
      </remote>
   </config>
   <config evaluator="node-type" condition="cm:content">
      <forms>
		   <form id="doclib-inline-edit">
           <field-visibility>
               <show id="cm:title" />
               <show id="cm:name" />
               <show id="cm:description"/>
               <show id="cm:content" />
            </field-visibility>
            <appearance> 
		    	<field id="cm:content">
                  <control template="/org/alfresco/components/form/controls/content.ftl">
                     <control-param name="forceEditor">true</control-param>
                     <control-param name="editorHeight">400</control-param>
                     <control-param name="editorWidth">700</control-param>
                     <control-param name="richMimeTypes">text/html,text/xhtml,text/plain</control-param>
                     <control-param name="editorAppearance">custom</control-param>
                     <control-param name="editorParameters">
                        plugins: "fullscreen,paste",
                        file_browser_callback :
                        'shareFileBrowser',
                        paste_create_paragraphs : false,
                        paste_create_linebreaks : false,
                        paste_use_dialog : true,
                        paste_auto_cleanup_on_paste : true,
                        paste_convert_middot_lists : false,
                        paste_unindented_list_class : "unindentedList",
                        paste_convert_headers_to_strong : true,
                        paste_insert_word_content_callback : "convertWord",
                        theme_advanced_buttons1: "bold,italic,separator,formatselect,separator,justifyleft,justifycenter,justifyright,justifyfull,separator,bullist,numlist,separator,link,unlink,separator,image,separator,undo,redo,separator,cut,copy,paste,pastetext,pasteword,image,help,code,fullscreen",
                        theme_advanced_buttons2: "",
                        theme_advanced_buttons3: "",
                        theme_advanced_resizing: true
                     </control-param>
                  </control>
               </field>
             </appearance>
           </form>
         <!-- Default form configuration for the ws:article type -->
         <form>
           <field-visibility>
               <show id="cm:title" force="true" />
               <show id="cm:name" />
               <show id="cm:description" force="true" />
               <show id="cm:content" />
            </field-visibility>
            <appearance> 
		    	<field id="cm:content">
                  <control template="/org/alfresco/components/form/controls/content.ftl">
                     <control-param name="forceEditor">true</control-param>
                     <control-param name="editorHeight">400</control-param>
                     <control-param name="editorWidth">700</control-param>
                     <control-param name="richMimeTypes">text/html,text/xhtml,text/plain</control-param>
                     <control-param name="editorAppearance">custom</control-param>
                     <control-param name="editorParameters">
                        plugins: "fullscreen,paste",
                        file_browser_callback :
                        'shareFileBrowser',
                        paste_create_paragraphs : false,
                        paste_create_linebreaks : false,
                        paste_use_dialog : true,
                        paste_auto_cleanup_on_paste : true,
                        paste_convert_middot_lists : false,
                        paste_unindented_list_class : "unindentedList",
                        paste_convert_headers_to_strong : true,
                        paste_insert_word_content_callback : "convertWord",
                        theme_advanced_buttons1: "bold,italic,separator,formatselect,separator,justifyleft,justifycenter,justifyright,justifyfull,separator,bullist,numlist,separator,link,unlink,separator,image,separator,undo,redo,separator,cut,copy,paste,pastetext,pasteword,image,help,code,fullscreen",
                        theme_advanced_buttons2: "",
                        theme_advanced_buttons3: "",
                        theme_advanced_resizing: true
                     </control-param>
                  </control>
               </field>
             </appearance>
           </form>
       </forms>
    </config>
	<config evaluator="model-type" condition="cm:content">
      <forms>
		   <form id="doclib-inline-edit">
           <field-visibility>
               <show id="cm:title" />
               <show id="cm:name" />
               <show id="cm:description" />
            </field-visibility>
            <appearance> 
		    	<field id="cm:content">
                  <control template="/org/alfresco/components/form/controls/content.ftl">
                     <control-param name="forceEditor">true</control-param>
                     <control-param name="editorHeight">400</control-param>
                     <control-param name="editorWidth">700</control-param>
                     <control-param name="richMimeTypes">text/html,text/xhtml,text/plain</control-param>
                     <control-param name="editorAppearance">custom</control-param>
                     <control-param name="editorParameters">
                        plugins: "fullscreen,paste",
                        file_browser_callback :
                        'shareFileBrowser',
                        paste_create_paragraphs : false,
                        paste_create_linebreaks : false,
                        paste_use_dialog : true,
                        paste_auto_cleanup_on_paste : true,
                        paste_convert_middot_lists : false,
                        paste_unindented_list_class : "unindentedList",
                        paste_convert_headers_to_strong : true,
                        paste_insert_word_content_callback : "convertWord",
                        theme_advanced_buttons1: "bold,italic,separator,formatselect,separator,justifyleft,justifycenter,justifyright,justifyfull,separator,bullist,numlist,separator,link,unlink,separator,image,separator,undo,redo,separator,cut,copy,paste,pastetext,pasteword,image,help,code,fullscreen",
                        theme_advanced_buttons2: "",
                        theme_advanced_buttons3: "",
                        theme_advanced_resizing: true
                     </control-param>
                  </control>
               </field>
             </appearance>
           </form>
         <!-- Default form configuration for the ws:article type -->
         <form>
           <field-visibility>
               <show id="cm:title" />
               <show id="cm:name" />
               <show id="cm:description" />
            </field-visibility>
            <appearance> 
		    	<field id="cm:content">
                  <control template="/org/alfresco/components/form/controls/content.ftl">
                     <control-param name="forceEditor">true</control-param>
                     <control-param name="editorHeight">400</control-param>
                     <control-param name="editorWidth">700</control-param>
                     <control-param name="richMimeTypes">text/html,text/xhtml,text/plain</control-param>
                     <control-param name="editorAppearance">custom</control-param>
                     <control-param name="editorParameters">
                        plugins: "fullscreen,paste",
                        file_browser_callback :
                        'shareFileBrowser',
                        paste_create_paragraphs : false,
                        paste_create_linebreaks : false,
                        paste_use_dialog : true,
                        paste_auto_cleanup_on_paste : true,
                        paste_convert_middot_lists : false,
                        paste_unindented_list_class : "unindentedList",
                        paste_convert_headers_to_strong : true,
                        paste_insert_word_content_callback : "convertWord",
                        theme_advanced_buttons1: "bold,italic,separator,formatselect,separator,justifyleft,justifycenter,justifyright,justifyfull,separator,bullist,numlist,separator,link,unlink,separator,image,separator,undo,redo,separator,cut,copy,paste,pastetext,pasteword,image,help,code,fullscreen",
                        theme_advanced_buttons2: "",
                        theme_advanced_buttons3: "",
                        theme_advanced_resizing: true
                     </control-param>
                  </control>
               </field>
             </appearance>
           </form>
       </forms>
    </config>
</alfresco-config>
