<?xml version="1.0" encoding="UTF-8"?>
<editor enabled="false" id="editor.etherpad" openable="true" iconClass="icon-comments-alt" order="10"
        text="etherpad.2" title="etherpad.3" icon="edit.png" className="EtherpadLauncher"
        mimes="txt,pad" formId="ether_box" label="CONF_MESSAGE[Etherpad]" description="CONF_MESSAGE[Collaborative edition of text files]"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="file:../core.ajaxplorer/ajxp_registry.xsd">
	<client_settings>
        <resources>
            <js file="plugins/editor.etherpad/class.EtherpadLauncher.js" className="EtherpadLauncher" autoload="true"/>
            <i18n path="plugins/editor.etherpad/i18n" namespace="etherpad"/>
        </resources>
	</client_settings>
    <server_settings>
        <global_param name="ETHERPAD_SERVER" type="string" label="Server Host" description="Etherpad server host"/>
        <global_param name="ETHERPAD_APIKEY" type="string" label="Api Key" description="Etherpad api key"/>
    </server_settings>
	<clientForm id="ether_box"><![CDATA[
		<div id="ether_box" action="editer" box_width="80%" box_height="90%" box_padding="0">
			<div class="action_bar">
				<a href="#" onclick="return false;" class="icon-save" id="saveButton" onclick="saveForm();return false;"><img src="AJXP_THEME_FOLDER/images/actions/22/filesave.png" width="22" height="22" alt="AJXP_MESSAGE[53]" border="0"><br><span message_id="53">AJXP_MESSAGE[53]</span></a>
				<a href="#" onclick="return false;" class="icon-download" id="downloadFileButton"><img width="22" height="22" src="AJXP_THEME_FOLDER/images/actions/22/download_manager.png" alt="AJXP_MESSAGE[88]" border="0"><br><span message_id="88">AJXP_MESSAGE[88]</span></a>
			</div>
			<iframe id="ether_box_frame" style="width:100%;border: none;" src=""></iframe>
		</div>
	]]></clientForm>
	<dependencies>
		<!-- Stream Wrapper Access -->
		<activePlugin pluginName="access.AJXP_STREAM_PROVIDER"/>
	</dependencies>
    <registry_contributions>
        <actions>
            <action name="etherpad_create">
                <gui src="" text="etherpad.1" title="etherpad.1b" iconClass="icon-comments-alt">
                    <context dir="true" recycle="true" selection="false" actionBarGroup="utils" ajxpWidgets="UserWidget::logging_string"/>
                </gui>
                <processing>
                    <clientCallback prepareModal="true" dialogOkButtonOnly="true" dialogOpenForm="etherpad_container">
                        <dialogOnOpen><![CDATA[
                            EtherpadLauncher.prototype.initEmptyPadPane(modal.getForm());
                        ]]></dialogOnOpen>
                        <dialogOnComplete><![CDATA[
                            $("etherpad_container").down("#ether_frame").remove();
                            hideLightBox();
                        ]]></dialogOnComplete>
                        <dialogOnCancel><![CDATA[]]></dialogOnCancel>
                    </clientCallback>
                    <clientForm id="etherpad_container"><![CDATA[
                            <div id="etherpad_container" box_width="80%" box_height="80%" box_resize="true" box_padding="0">
                                <div class="action_bar" style="padding-left: 10px;border-bottom: 1px solid #ccc;padding-bottom: 5px;">
                                    AJXP_MESSAGE[etherpad.4]<select name="pad_list"></select> <input type="text" name="new_pad_name" placeholder="AJXP_MESSAGE[etherpad.8]" style="display:none;">
                                    <a id="join_pad" style="float:none;" class="icon-comments-alt" href="#" title="Join" style=""><span message_id="235" class="actionbar_button_label">AJXP_MESSAGE[etherpad.7]</span></a>
                                </div>
                                <iframe id="ether_frame" style="width:100%;border: none;" src=""></iframe>
                            </div>
                    ]]></clientForm>
                    <serverCallback methodName="switchAction"/>
                </processing>
            </action>
            <action name="etherpad_save">
                <processing>
                    <serverCallback methodName="switchAction"/>
                </processing>
            </action>
            <action name="etherpad_close">
                <processing>
                    <serverCallback methodName="switchAction"/>
                </processing>
            </action>
            <action name="etherpad_proxy_api">
                <processing>
                    <serverCallback methodName="switchAction"/>
                </processing>
            </action>
        </actions>
    </registry_contributions>
    <class_definition classname="EtherpadClient" filename="plugins/editor.etherpad/class.EtherpadClient.php"/>
</editor>