diff --git a/config/alfresco/messages/office-addin_de.properties b/config/alfresco/messages/office-addin_de.properties index daf851b247..3fbb1ffa21 100644 --- a/config/alfresco/messages/office-addin_de.properties +++ b/config/alfresco/messages/office-addin_de.properties @@ -3,7 +3,7 @@ ## # Page Titles office.title.my_alfresco=Mein Alfresco -office.title.navigation=R\u00c3\u00a4ume und Dokumente durchsuchen +office.title.navigation=R\u00e4ume und Dokumente durchsuchen office.title.search=Alfresco durchsuchen office.title.document_details=Dokumentendetails office.title.my_tasks=Meine Aufgaben @@ -17,15 +17,15 @@ office.help.url=http://www.alfresco.com/help/{0}{1}/{2}/msaddin/ office.header.my_checked_out_documents=Meine ausgecheckten Dokumente office.header.my_tasks=Meine Aufgaben office.header.current_space=Aktueller Raum -office.header.spaces_in=R\u00c3\u00a4ume in {0} +office.header.spaces_in=R\u00e4ume in {0} office.header.documents_in=Dokumente in {0} office.header.document_actions=Dokumentenaktionen office.header.actions=Aktionen office.header.details=Details des aktuellen Dokuments office.header.document_tags=Dokumenten-Tags -office.header.document_tags.for=Dokumenten-Tags f\u00c3\u00bcr {0} +office.header.document_tags.for=Dokumenten-Tags f\u00fcr {0} office.header.version_history=Versionsverlauf -office.header.version_history.for=Versionsverlauf f\u00c3\u00bcr {0} +office.header.version_history.for=Versionsverlauf f\u00fcr {0} office.header.search=Suche office.header.task_details=Aufgabendetails office.header.tag_cloud=Tag Cloud @@ -35,10 +35,10 @@ office.header.tagged=Getaggde Dokumente office.status.locked=Gesperrt # Actions -office.action.add_tag=Tag hinzuf\u00c3\u00bcgen +office.action.add_tag=Tag hinzuf\u00fcgen office.action.remove_tag=Tag "{0}" entfernen office.action.download={0} downloaden -office.action.open={0} \u00c3\u00b6ffnen +office.action.open={0} \u00f6ffnen office.action.make_versionable=Versionierbar machen office.action.compare_current=Mit aktuellem vergleichen office.action.checkin=Einchecken @@ -46,14 +46,14 @@ office.action.checkin.description=Aktuelles Dokument einchecken. office.action.checkout=Auschecken office.action.checkout.description=Aktuelles Dokument als Arbeitskopie auschecken. office.action.start_workflow=Workflow beginnen -office.action.start_workflow.description=Erweiterten Workflow f\u00c3\u00bcr aktuelles Dokument starten. +office.action.start_workflow.description=Erweiterten Workflow f\u00fcr aktuelles Dokument starten. office.action.transform_pdf=In PDF umwandeln. office.action.transform_pdf.description=In Adobe PDF-Format umwandeln. -office.action.open_details=Alle Details \u00c3\u00b6ffnen -office.action.open_details.description=Dokumentendetails in Alfresco Explorer \u00c3\u00b6ffnen. +office.action.open_details=Alle Details \u00f6ffnen +office.action.open_details.description=Dokumentendetails in Alfresco Explorer \u00f6ffnen. office.action.save_to_alfresco=In Alfresco speichern -office.action.save_to_alfresco.description=L\u00c3\u00a4sst zu, dass Sie das aktuelle Dokument unter Alfresco Management ablegen. -office.action.insert=Datei in aktuelles Dokument einf\u00c3\u00bcgen +office.action.save_to_alfresco.description=L\u00e4sst zu, dass Sie das aktuelle Dokument unter Alfresco Management ablegen. +office.action.insert=Datei in aktuelles Dokument einf\u00fcgen office.action.create_collaboration_space=Collaboration-Arbeitsbereich erstellen office.action.create_collaboration_space.description=Einen neuen Collaborations-Arbeitsbereich im Alfresco Repository erstellen. office.action.launch_alfresco=Alfresco starten @@ -62,9 +62,9 @@ office.action.userhome=Zum Home Arbeitsbereich des Benutzers office.action.parent_space=Nach oben in den Eltern-Arbeitsbereich office.action.create_space=Neuen Arbeitsbereich erstellen office.action.create_collaboration_space=Neuen Collaborations-Arbeitsbereich erstellen -office.action.delete=L\u00c3\u00b6schen -office.action.return_search=Zur\u00c3\u00bcck zu Suchergebnissen -office.action.return_search.description=Zur\u00c3\u00bcck zum Such-Tab +office.action.delete=L\u00f6schen +office.action.return_search=Zur\u00fcck zu Suchergebnissen +office.action.return_search.description=Zur\u00fcck zum Such-Tab office.action.manage_task=Verwalten # Buttons @@ -78,15 +78,15 @@ office.message.unmanaged=Das aktuelle Dokument wird nicht von Alfresco verwaltet office.message.unversioned=Das aktuelle Dokument ist nicht versioniert. office.message.none=Keine office.message.no_documents=Keine Dokumente -office.message.no_due_date=Kein F\u00c3\u00a4lligkeitsdatum +office.message.no_due_date=Kein F\u00e4lligkeitsdatum office.message.no_tasks=Keine Aufgaben office.message.no_subspaces=Keine untergeordneten Arbeitsbereiche office.message.search_for=Suchen nach -office.message.results_max.before=Maximal anzeigen +office.message.results_max.before=Maximal anzeigen office.message.results_max.after=Elemente office.message.no_results=Keine Ergebnisse gefunden -office.message.confirm_delete=Wollen Sie dieses Dokument wirklich l\u00c3\u00b6schen? -office.message.enter_workflow_details=Neue Details f\u00c3\u00bcr den Workflow untenstehend eingeben +office.message.confirm_delete=Wollen Sie dieses Dokument wirklich l\u00f6schen? +office.message.enter_workflow_details=Neue Details f\u00fcr den Workflow untenstehend eingeben office.message.workflow_action_complete=Aktion ''{0}'' des Workflows abgeschlossen. # Properties @@ -95,34 +95,34 @@ office.property.description=Beschreibung office.property.creator=Ersteller office.property.created=Erstellt office.property.modifier=Bearbeiter -office.property.modified=Ge\u00c3\u00a4ndert -office.property.size=Gr\u00c3\u00b6\u00c3\u009fe +office.property.modified=Ge\u00e4ndert +office.property.size=Gr\u00f6\u00dfe office.property.categories=Kategorien office.property.author=Autor office.property.date=Datum -office.property.due_date=F\u00c3\u00a4lligkeitsdatum +office.property.due_date=F\u00e4lligkeitsdatum office.property.name=Name office.property.template=Mustervorlage office.property.filename=Dateiname des Dokuments office.property.workflow=Workflow office.property.assign_to=Zuweisen -office.property.due_on=F\u00c3\u00a4llig am +office.property.due_on=F\u00e4llig am office.property.status=Status -office.property.priority=Priorit\u00c3\u00a4t +office.property.priority=Priorit\u00e4t office.property.start_date=Anfangsdatum office.property.type=Typ -office.property.complete=Abschlie\u00c3\u009fen +office.property.complete=Abschlie\u00dfen #\u00c3\u0082\u00c2\u00a0Workflow -office.workflow.review=\u00c3\u009cberpr\u00c3\u00bcfen und zustimmen +office.workflow.review=\u00dcberpr\u00fcfen und zustimmen office.workflow.adhoc=Adhoc Aufgabe # Result messages office.result.failed=Aktion fehlgeschlagen office.result.convert.failed=Dokument konnte nicht konvertiert werden office.result.converted=Dokument konvertiert -office.result.delete.failed=Dokument konnte nicht gel\u00c3\u00b6scht werden -office.result.deleted=Dokument gel\u00c3\u00b6scht +office.result.delete.failed=Dokument konnte nicht gel\u00f6scht werden +office.result.deleted=Dokument gel\u00f6scht office.result.checkout.failed=Dokument konnte nicht ausgecheckt werden office.result.checked_out=Dokument ausgescheckt office.result.checkin.failed=Dokument konnte nicht eingecheckt werden @@ -133,14 +133,14 @@ office.result.workflow_started=Neuer Workflow gestartet office.result.unknown=Unbekannte Aktion office.result.exception=Aktion aufgrund einer Ausnahme fehlgeschlagen office.result.create_space.failed=Arbeitsbereich konnte nicht erstellt werden -office.result.create_space.missing_name=Arbeitsbereich muss \u00c3\u00bcber einen Namen verf\u00c3\u00bcgen +office.result.create_space.missing_name=Arbeitsbereich muss \u00fcber einen Namen verf\u00fcgen office.result.space_created=Neuer Arbeitsbereich erstellt office.result.user_not_found=Benutzer nicht gefunden # Miscellaneous office.unit.kb=KB office.version.notes=Notizen -office.task.overdue=\u00c3\u00bcberf\u00c3\u00a4llig -office.task.due_today=heute f\u00c3\u00a4llig +office.task.overdue=\u00dcberf\u00e4llig +office.task.due_today=heute f\u00e4llig office.tip.task_item=Aufgabenelement diff --git a/config/alfresco/messages/office-addin_es.properties b/config/alfresco/messages/office-addin_es.properties index 7ee08cecac..527a004b51 100755 --- a/config/alfresco/messages/office-addin_es.properties +++ b/config/alfresco/messages/office-addin_es.properties @@ -70,7 +70,7 @@ office.action.manage_task=Gestionar # Buttons office.button.submit=Enviar office.button.cancel=Cancelar -office.button.ok=Guardar +office.button.ok=Aceptar office.button.search=Buscar # Messages diff --git a/config/alfresco/messages/office-addin_fr.properties b/config/alfresco/messages/office-addin_fr.properties index 6330c7ef5f..b40df1ade8 100755 --- a/config/alfresco/messages/office-addin_fr.properties +++ b/config/alfresco/messages/office-addin_fr.properties @@ -5,8 +5,8 @@ office.title.my_alfresco=Mon Alfresco office.title.navigation=Parcourir les espaces et les documents office.title.search=Rechercher sur Alfresco -office.title.document_details=D\u00c3\u00a9tails du document -office.title.my_tasks=Mes t\u00c3\u00a2ches +office.title.document_details=D\u00e9tails du document +office.title.my_tasks=Mes t\u00e2ches office.title.document_tags=Tags du document # Help @@ -15,57 +15,57 @@ office.help.url=office.help.url=http://www.alfresco.com/help/{0}{1}/{2}/msaddin/ # Headers and Subheaders office.header.my_checked_out_documents=Mes copies de travail -office.header.my_tasks=Mes t\u00c3\u00a2ches +office.header.my_tasks=Mes t\u00e2ches office.header.current_space=Espace actuel office.header.spaces_in=Espaces dans {0} office.header.documents_in=Documents dans {0} office.header.document_actions=Actions sur le document office.header.actions=Actions -office.header.details=D\u00c3\u00a9tails du document actuel +office.header.details=D\u00e9tails du document actuel office.header.document_tags=Tags du document -office.header.document_tags.for=\u00c3\u0089tiquettes de document pour {0} +office.header.document_tags.for=Tags de document pour {0} office.header.version_history=Historique des versions office.header.version_history.for=Historique des versions pour {0} office.header.search=Rechercher -office.header.task_details=D\u00c3\u00a9tails de la t\u00c3\u00a2che -office.header.tag_cloud=Nuage d'\u00c3\u00a9tiquettes -office.header.tagged=Documents tagg\u00c3\u00a9s +office.header.task_details=D\u00e9tails de la t\u00e2che +office.header.tag_cloud=Nuage de tags +office.header.tagged=Documents tagg\u00e9s # Document Status -office.status.locked=Verrouill\u00c3\u00a9 +office.status.locked=Verrouill\u00e9 # Actions -office.action.add_tag=Ajouter une \u00c3\u00a9tiquette -office.action.remove_tag=Supprimer l'\u00c3\u00a9tiquette "{0}" -office.action.download=T\u00c3\u00a9l\u00c3\u00a9charger {0} +office.action.add_tag=Ajouter un tag +office.action.remove_tag=Supprimer le tag "{0}" +office.action.download=T\u00e9l\u00e9charger {0} office.action.open=Ouvrir {0} office.action.make_versionable=Rendre versionnable office.action.compare_current=Comparer avec le document actuel office.action.checkin=Archiver la copie de travail -office.action.checkin.description=Lib\u00c3\u00a9rer le document actuel. +office.action.checkin.description=Lib\u00e9rer le document actuel. office.action.checkout=Extraire une copie de travail -office.action.checkout.description=R\u00c3\u00a9server le document actuel vers une copie de travail. -office.action.start_workflow=D\u00c3\u00a9marrer un workflow -office.action.start_workflow.description=D\u00c3\u00a9marrer le flux de travail avanc\u00c3\u00a9 pour le document actuel. +office.action.checkout.description=R\u00e9server le document actuel vers une copie de travail. +office.action.start_workflow=D\u00e9marrer un workflow +office.action.start_workflow.description=D\u00e9marrer le workflow avanc\u00e9 pour le document actuel. office.action.transform_pdf=Transformer en PDF -office.action.transform_pdf.description=Transformer au format Adobe\u00c2\u00a0PDF. -office.action.open_details=Ouvrir tous les d\u00c3\u00a9tails -office.action.open_details.description=Ouvrir les d\u00c3\u00a9tails du document dans Alfresco Explorer. +office.action.transform_pdf.description=Transformer au format Adobe\u00a0PDF. +office.action.open_details=Ouvrir tous les d\u00e9tails +office.action.open_details.description=Ouvrir les d\u00e9tails du document dans Alfresco Explorer. office.action.save_to_alfresco=Enregistrer dans Alfresco office.action.save_to_alfresco.description=Vous permet de placer le document actuel sous la gestion Alfresco. -office.action.insert=Ins\u00c3\u00a9rer le fichier dans le document actuel -office.action.create_collaboration_space=Cr\u00c3\u00a9er un espace de collaboration -office.action.create_collaboration_space.description=Cr\u00c3\u00a9er un espace de collaboration dans le r\u00c3\u00a9f\u00c3\u00a9rentiel Alfresco. +office.action.insert=Ins\u00e9rer le fichier dans le document actuel +office.action.create_collaboration_space=Cr\u00e9er un espace de collaboration +office.action.create_collaboration_space.description=Cr\u00e9er un espace de collaboration dans le entrep\u00f4t Alfresco. office.action.launch_alfresco=Lancer Alfresco -office.action.launch_alfresco.description=D\u00c3\u00a9marrer le client Web Alfresco Explorer. +office.action.launch_alfresco.description=D\u00e9marrer le client Web Alfresco Explorer. office.action.userhome=Vers l'espace personnel de l'utilisateur office.action.parent_space=Vers l'espace parent -office.action.create_space=Cr\u00c3\u00a9er un espace -office.action.create_collaboration_space=Cr\u00c3\u00a9er un espace de collaboration +office.action.create_space=Cr\u00e9er un espace +office.action.create_collaboration_space=Cr\u00e9er un espace de collaboration office.action.delete=Supprimer -office.action.return_search=Revenir aux r\u00c3\u00a9sultats de la recherche -office.action.return_search.description=Revenir \u00c3\u00a0 l'onglet de recherche -office.action.manage_task=G\u00c3\u00a9rer +office.action.return_search=Retourner aux r\u00e9sultats de la recherche +office.action.return_search.description=Retourner \u00e0\u00a0 l'onglet de recherche +office.action.manage_task=G\u00e9rer # Buttons office.button.submit=Soumettre @@ -74,72 +74,72 @@ office.button.ok=OK office.button.search=Rechercher # Messages -office.message.unmanaged=Le document actuel n'est pas g\u00c3\u00a9r\u00c3\u00a9 par Alfresco. -office.message.unversioned=Le document actuel n'est pas versionn\u00c3\u00a9. +office.message.unmanaged=Le document actuel n'est pas g\u00e9r\u00e9 par Alfresco. +office.message.unversioned=Le document actuel n'est pas versionn\u00e9. office.message.none=Aucun office.message.no_documents=Aucun document -office.message.no_due_date=Pas de date pr\u00c3\u00a9vue -office.message.no_tasks=Aucune t\u00c3\u00a2che +office.message.no_due_date=Pas de date pr\u00e9vue +office.message.no_tasks=Aucune t\u00e2che office.message.no_subspaces=Aucun sous-espace office.message.search_for=RechercherRetourner office.message.results_max.before=Retourner un maximum office.message.results_max.after=d'articles -office.message.no_results=Pas de r\u00c3\u00a9sultat trouv\u00c3\u00a9 -office.message.confirm_delete=\u00c3\u008ates-vous s\u00c3\u00bbr de vouloir supprimer ce document\u00c2\u00a0? -office.message.enter_workflow_details=Saisir les d\u00c3\u00a9tails du nouveau flux de travail ci-dessous -office.message.workflow_action_complete=Action de flux de travail ''{0}'' termin\u00c3\u00a9e. +office.message.no_results=Pas de r\u00e9sultat trouv\u00e9 +office.message.confirm_delete=Etes-vous s\u00fbr de vouloir supprimer ce document\u00a0? +office.message.enter_workflow_details=Saisir les d\u00e9tails du nouveau workflow ci-dessous +office.message.workflow_action_complete=Action de workflow '{0}' termin\u00e9e. # Properties office.property.title=Titre office.property.description=Description -office.property.creator=Cr\u00c3\u00a9ateur -office.property.created=Cr\u00c3\u00a9e +office.property.creator=Cr\u00e9ateur +office.property.created=Cr\u00e9e office.property.modifier=Modificateur -office.property.modified=Modifi\u00c3\u00a9 +office.property.modified=Modifi\u00e9 office.property.size=Taille -office.property.categories=Cat\u00c3\u00a9gories +office.property.categories=Cat\u00e9gories office.property.author=Auteur office.property.date=Date office.property.due_date=Date limite office.property.name=Nom -office.property.template=Mod\u00c3\u00a8le +office.property.template=Mod\u00e8le office.property.filename=Nom de fichier du document -office.property.workflow=Flux de travail -office.property.assign_to=Assigner \u00c3\u00a0 -office.property.due_on=A \u00c3\u00a9ch\u00c3\u00a9ance le +office.property.workflow=Workflow +office.property.assign_to=Assigner \u00e0\u00a0 +office.property.due_on=A \u00e9ch\u00e9ance le office.property.status=Etat -office.property.priority=Priorit\u00c3\u00a9 -office.property.start_date=Date de D\u00c3\u00a9but +office.property.priority=Priorit\u00e9 +office.property.start_date=Date de D\u00e9but office.property.type=Type -office.property.complete=Achev\u00c3\u00a9 +office.property.complete=Achev\u00e9 # Workflow -office.workflow.review=R\u00c3\u00a9viser et approuver -office.workflow.adhoc=T\u00c3\u00a2che Adhoc +office.workflow.review=R\u00e9viser et approuver +office.workflow.adhoc=T\u00e2che Adhoc # Result messages -office.result.failed=\u00c3\u0089chec de l'action +office.result.failed=\u00c9chec de l'action office.result.convert.failed=Impossible de convertir le document office.result.converted=Document converti office.result.delete.failed=Impossible de supprimer le document -office.result.deleted=Document supprim\u00c3\u00a9 -office.result.checkout.failed=Impossible de r\u00c3\u00a9server le document -office.result.checked_out=Document r\u00c3\u00a9serv\u00c3\u00a9 -office.result.checkin.failed=Impossible de lib\u00c3\u00a9rer le document -office.result.checked_in=Document lib\u00c3\u00a9r\u00c3\u00a9 +office.result.deleted=Document supprim\u00e9 +office.result.checkout.failed=Impossible de r\u00e9server le document +office.result.checked_out=Document r\u00e9serv\u00e9 +office.result.checkin.failed=Impossible de lib\u00e9rer le document +office.result.checked_in=Document lib\u00e9r\u00e9 office.result.version.failed=Impossible de versionner le document -office.result.versioned=Document versionn\u00c3\u00a9 -office.result.workflow_started=Nouveau flux de travail d\u00c3\u00a9marr\u00c3\u00a9 +office.result.versioned=Document versionn\u00e9 +office.result.workflow_started=Nouveau workflow d\u00e9marr\u00e9 office.result.unknown=Action inconnue -office.result.exception=\u00c3\u0089chec de l'action en raison d'une exception -office.result.create_space.failed=Cr\u00c3\u00a9ation de l'espace impossible +office.result.exception=\u00c9chec de l'action en raison d'une exception +office.result.create_space.failed=Cr\u00e9ation de l'espace impossible office.result.create_space.missing_name=L'espace doit comporter un nom -office.result.space_created=Espace cr\u00c3\u00a9\u00c3\u00a9 +office.result.space_created=Espace cr\u00e9\u00e9 office.result.user_not_found=Utilisateur introuvable # Miscellaneous office.unit.kb=Ko office.version.notes=Notes office.task.overdue=En retard -office.task.due_today=\u00c3\u00a9ch\u00c3\u00a9ance \u00c3\u00a0 ce jour -office.tip.task_item=\u00c3\u0089l\u00c3\u00a9ment de t\u00c3\u00a2che +office.task.due_today=\u00e9ch\u00e9ance \u00e0\u00a0ce jour +office.tip.task_item=\u00c9l\u00e9ment de t\u00e2che diff --git a/config/alfresco/messages/office-addin_it.properties b/config/alfresco/messages/office-addin_it.properties index a5b21c45d2..6846267111 100755 --- a/config/alfresco/messages/office-addin_it.properties +++ b/config/alfresco/messages/office-addin_it.properties @@ -23,7 +23,7 @@ office.header.document_actions=Azioni documento office.header.actions=Azioni office.header.details=Dettagli documento attuale office.header.document_tags=Tag documento -office.header.document_tags.for=Tag documento per ''{0}'' +office.header.document_tags.for=Tag documento per {0} office.header.version_history=Cronologia versioni office.header.version_history.for=Cronologia delle versioni per {0} office.header.search=Cerca @@ -74,8 +74,8 @@ office.button.ok=OK office.button.search=Cerca # Messages -office.message.unmanaged=Il documento attuale non \u00c3\u00a8 gestito da Alfresco. -office.message.unversioned=Il documento attuale non \u00c3\u00a8 sottoposto alla gestione delle versioni. +office.message.unmanaged=Il documento attuale non \u00e8 gestito da Alfresco. +office.message.unversioned=Il documento attuale non \u00e8 sottoposto alla gestione delle versioni. office.message.none=Nessuno office.message.no_documents=Nessun documento office.message.no_due_date=Nessuna data di scadenza @@ -87,7 +87,7 @@ office.message.results_max.after=elementi office.message.no_results=Nessun risultato trovato office.message.confirm_delete=Eliminare questo documento? office.message.enter_workflow_details=Immettere i dettagli del nuovo workflow di seguito -office.message.workflow_action_complete=L'azione del workflow '{0}' \u00c3\u00a8 stata completata. +office.message.workflow_action_complete=L'azione del workflow '{0}' \u00e8 stata completata. # Properties office.property.title=Titolo @@ -108,7 +108,7 @@ office.property.workflow=Workflow office.property.assign_to=Assegna a office.property.due_on=Scade il office.property.status=Stato -office.property.priority=Priorit\u00c3\u00a0 +office.property.priority=Priorit\u00e0\u00a0 office.property.start_date=Data di inizio office.property.type=Tipo office.property.complete=Completato diff --git a/config/alfresco/messages/office-addin_ja.properties b/config/alfresco/messages/office-addin_ja.properties new file mode 100755 index 0000000000..49aa358fed --- /dev/null +++ b/config/alfresco/messages/office-addin_ja.properties @@ -0,0 +1,145 @@ +## +## Microsoft Office Add-In Messages +## +# Page Titles +office.title.my_alfresco=\u3042\u306a\u305f\u306eAlfresco +office.title.navigation=\u30b9\u30da\u30fc\u30b9\u3068\u6587\u66f8\u306e\u95b2\u89a7 +office.title.search=Alfresco\u306e\u691c\u7d22 +office.title.document_details=\u6587\u66f8\u306e\u8a73\u7d30 +office.title.my_tasks=\u3042\u306a\u305f\u306e\u30bf\u30b9\u30af +office.title.document_tags=\u6587\u66f8\u30bf\u30b0 + +# Help +office.help.title=\u30aa\u30f3\u30e9\u30a4\u30f3\u30fb\u30d8\u30eb\u30d7 +office.help.url=http://www.alfresco.com/help/34/{0}{1}/{2}/msaddin/ + +# Headers and Subheaders +office.header.my_checked_out_documents=\u3042\u306a\u305f\u306e\u30c1\u30a7\u30c3\u30af\u30a2\u30a6\u30c8\u6e08\u6587\u66f8 +office.header.my_tasks=\u3042\u306a\u305f\u306e\u30bf\u30b9\u30af +office.header.current_space=\u73fe\u5728\u306e\u30b9\u30da\u30fc\u30b9 +office.header.spaces_in={0}\u306e\u30b9\u30da\u30fc\u30b9 +office.header.documents_in={0}\u306e\u6587\u66f8 +office.header.document_actions=\u6587\u66f8\u30a2\u30af\u30b7\u30e7\u30f3 +office.header.actions=\u30a2\u30af\u30b7\u30e7\u30f3 +office.header.details=\u73fe\u5728\u306e\u6587\u66f8\u306e\u8a73\u7d30 +office.header.document_tags=\u6587\u66f8\u30bf\u30b0 +office.header.document_tags.for={0}\u306e\u6587\u66f8\u30bf\u30b0 +office.header.version_history=\u30d0\u30fc\u30b8\u30e7\u30f3\u5c65\u6b74 +office.header.version_history.for={0}\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u5c65\u6b74 +office.header.search=\u691c\u7d22 +office.header.task_details=\u30bf\u30b9\u30af\u306e\u8a73\u7d30 +office.header.tag_cloud=\u30bf\u30b0\u30fb\u30af\u30e9\u30a6\u30c9 +office.header.tagged=\u30bf\u30b0\u4ed8\u6587\u66f8 + +# Document Status +office.status.locked=\u30ed\u30c3\u30af\u6e08 + +# Actions +office.action.add_tag=\u30bf\u30b0\u3092\u8ffd\u52a0 +office.action.remove_tag="{0}"\u30bf\u30b0\u3092\u53d6\u9664\u304f +office.action.download={0}\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9 +office.action.open={0}\u3092\u958b\u304f +office.action.make_versionable=\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u7ba1\u7406\u53ef\u80fd\u306b\u3059\u308b +office.action.compare_current=\u73fe\u5728\u306e\u6587\u66f8\u3068\u6bd4\u8f03 +office.action.checkin=\u30c1\u30a7\u30c3\u30af\u30a4\u30f3 +office.action.checkin.description=\u73fe\u5728\u306e\u6587\u66f8\u3092\u30c1\u30a7\u30c3\u30af\u30a4\u30f3\u3057\u307e\u3059\u3002 +office.action.checkout=\u30c1\u30a7\u30c3\u30af\u30a2\u30a6\u30c8 +office.action.checkout.description=\u73fe\u5728\u306e\u6587\u66f8\u3092\u4f5c\u696d\u4e2d\u306e\u30b3\u30d4\u30fc\u306b\u30c1\u30a7\u30c3\u30af\u30a2\u30a6\u30c8\u3057\u307e\u3059\u3002 +office.action.start_workflow=\u30ef\u30fc\u30af\u30d5\u30ed\u30fc\u306e\u958b\u59cb +office.action.start_workflow.description=\u73fe\u5728\u306e\u6587\u66f8\u306e\u30a2\u30c9\u30d0\u30f3\u30b9\u30c9\u30fb\u30ef\u30fc\u30af\u30d5\u30ed\u30fc\u3092\u958b\u59cb\u3057\u307e\u3059\u3002 +office.action.transform_pdf=PDF\u306b\u5909\u63db +office.action.transform_pdf.description=Adobe PDF\u30d5\u30a9\u30fc\u30de\u30c3\u30c8\u306b\u5909\u63db\u3057\u307e\u3059\u3002 +office.action.open_details=\u3059\u3079\u3066\u306e\u8a73\u7d30\u3092\u958b\u304f +office.action.open_details.description=Alfresco Explorer\u306e\u6587\u66f8\u8a73\u7d30\u3092\u958b\u304d\u307e\u3059\u3002 +office.action.save_to_alfresco=Alfresco\u306b\u4fdd\u5b58 +office.action.save_to_alfresco.description=\u73fe\u5728\u306e\u6587\u66f8\u3092Alfresco\u306e\u7ba1\u7406\u4e0b\u306b\u7f6e\u304d\u307e\u3059\u3002 +office.action.insert=\u73fe\u5728\u306e\u6587\u66f8\u306b\u30d5\u30a1\u30a4\u30eb\u3092\u633f\u5165\u3057\u307e\u3059\u3002 +office.action.create_collaboration_space=\u30b3\u30e9\u30dc\u30ec\u30fc\u30b7\u30e7\u30f3\u30fb\u30b9\u30da\u30fc\u30b9\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002 +office.action.create_collaboration_space.description=Alfresco\u30ea\u30dd\u30b8\u30c8\u30ea\u5185\u306b\u65b0\u3057\u3044\u30b3\u30e9\u30dc\u30ec\u30fc\u30b7\u30e7\u30f3\u30b9\u30da\u30fc\u30b9\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002 +office.action.launch_alfresco=Alfresco\u306e\u8d77\u52d5 +office.action.launch_alfresco.description=Alfresco Explorer\u306eWeb\u30fb\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u3092\u8d77\u52d5\u3057\u307e\u3059\u3002 +office.action.userhome=\u30e6\u30fc\u30b6\u306e\u30db\u30fc\u30e0\u30b9\u30da\u30fc\u30b9\u3078 +office.action.parent_space=\u89aa\u30b9\u30da\u30fc\u30b9\u307e\u3067 +office.action.create_space=\u65b0\u898f\u30b9\u30da\u30fc\u30b9\u306e\u4f5c\u6210 +office.action.create_collaboration_space=\u65b0\u898f\u30b3\u30e9\u30dc\u30ec\u30fc\u30b7\u30e7\u30f3\u30fb\u30b9\u30da\u30fc\u30b9\u306e\u4f5c\u6210 +office.action.delete=\u524a\u9664 +office.action.return_search=\u691c\u7d22\u7d50\u679c\u306b\u623b\u308b +office.action.return_search.description=\u691c\u7d22\u30bf\u30d6\u306b\u623b\u308b +office.action.manage_task=\u7ba1\u7406 + +# Buttons +office.button.submit=\u9001\u4fe1 +office.button.cancel=\u30ad\u30e3\u30f3\u30bb\u30eb +office.button.ok=OK +office.button.search=\u691c\u7d22 + +# Messages +office.message.unmanaged=\u73fe\u5728\u306e\u6587\u66f8\u306fAlfresco\u306b\u3088\u3063\u3066\u7ba1\u7406\u3055\u308c\u3066\u3044\u307e\u305b\u3093\u3002 +office.message.unversioned=\u73fe\u5728\u306e\u6587\u66f8\u306f\u30d0\u30fc\u30b8\u30e7\u30f3\u7ba1\u7406\u3055\u308c\u3066\u3044\u307e\u305b\u3093\u3002 +office.message.none=\u306a\u3057 +office.message.no_documents=\u6587\u66f8\u304c\u3042\u308a\u307e\u305b\u3093\u3002 +office.message.no_due_date=\u7de0\u5207\u65e5\u304c\u3042\u308a\u307e\u305b\u3093\u3002 +office.message.no_tasks=\u30bf\u30b9\u30af\u306f\u3042\u308a\u307e\u305b\u3093\u3002 +office.message.no_subspaces=\u30b5\u30d6\u30b9\u30da\u30fc\u30b9\u304c\u3042\u308a\u307e\u305b\u3093\u3002 +office.message.search_for=\u691c\u7d22\u5bfe\u8c61 +office.message.results_max.before=\u6700\u5927\u5024\u306b\u623b\u308b +office.message.results_max.after=\u30a2\u30a4\u30c6\u30e0 +office.message.no_results=\u7d50\u679c\u304c\u898b\u3064\u304b\u308a\u307e\u305b\u3093\u3002 +office.message.confirm_delete=\u3053\u306e\u6587\u66f8\u3092\u524a\u9664\u3057\u307e\u3059\u304b? +office.message.enter_workflow_details=\u65b0\u3057\u3044\u30ef\u30fc\u30af\u30d5\u30ed\u30fc\u306e\u8a73\u7d30\u3092\u4ee5\u4e0b\u306b\u5165\u529b\u3057\u3066\u304f\u3060\u3055\u3044\u3002 +office.message.workflow_action_complete=\u30ef\u30fc\u30af\u30d5\u30ed\u30fc\u30fb\u30a2\u30af\u30b7\u30e7\u30f3'{0}'\u304c\u5b8c\u4e86\u3057\u307e\u3057\u305f\u3002 + +# Properties +office.property.title=\u30bf\u30a4\u30c8\u30eb +office.property.description=\u8aac\u660e +office.property.creator=\u4f5c\u6210\u8005 +office.property.created=\u4f5c\u6210\u6e08\u307f +office.property.modifier=\u4fee\u6b63\u8005 +office.property.modified=\u4fee\u6b63\u6e08 +office.property.size=\u30b5\u30a4\u30ba +office.property.categories=\u30ab\u30c6\u30b4\u30ea +office.property.author=\u4f5c\u6210\u8005 +office.property.date=\u65e5\u4ed8 +office.property.due_date=\u7de0\u5207\u65e5 +office.property.name=\u540d\u524d +office.property.template=\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8 +office.property.filename=\u6587\u66f8\u30d5\u30a1\u30a4\u30eb\u540d +office.property.workflow=\u30ef\u30fc\u30af\u30d5\u30ed\u30fc +office.property.assign_to=\u5272\u5f53\u3066\u5148 +office.property.due_on=\u671f\u9650 +office.property.status=\u30b9\u30c6\u30fc\u30bf\u30b9 +office.property.priority=\u512a\u5148 +office.property.start_date=\u958b\u59cb\u65e5 +office.property.type=\u30bf\u30a4\u30d7 +office.property.complete=\u5b8c\u4e86 + +# Workflow +office.workflow.review=\u30ec\u30d3\u30e5\u30fc\u3068\u627f\u8a8d +office.workflow.adhoc=\u30a2\u30c9\u30db\u30c3\u30af\u30fb\u30bf\u30b9\u30af + +# Result messages +office.result.failed=\u5931\u6557\u3057\u305f\u30a2\u30af\u30b7\u30e7\u30f3 +office.result.convert.failed=\u6587\u66f8\u3092\u5909\u63db\u3067\u304d\u307e\u305b\u3093\u3067\u3057\u305f\u3002 +office.result.converted=\u6587\u66f8\u304c\u5909\u63db\u3055\u308c\u307e\u3057\u305f\u3002 +office.result.delete.failed=\u6587\u66f8\u3092\u524a\u9664\u3067\u304d\u307e\u305b\u3093\u3067\u3057\u305f\u3002 +office.result.deleted=\u6587\u66f8\u304c\u524a\u9664\u3055\u308c\u307e\u3057\u305f\u3002 +office.result.checkout.failed=\u6587\u66f8\u3092\u30c1\u30a7\u30c3\u30af\u30a2\u30a6\u30c8\u3067\u304d\u307e\u305b\u3093\u3067\u3057\u305f\u3002 +office.result.checked_out=\u6587\u66f8\u304c\u30c1\u30a7\u30c3\u30af\u30a2\u30a6\u30c8\u3055\u308c\u307e\u3057\u305f\u3002 +office.result.checkin.failed=\u6587\u66f8\u3092\u30c1\u30a7\u30c3\u30af\u30a4\u30f3\u3067\u304d\u307e\u305b\u3093\u3067\u3057\u305f\u3002 +office.result.checked_in=\u6587\u66f8\u304c\u30c1\u30a7\u30c3\u30af\u30a4\u30f3\u3055\u308c\u307e\u3057\u305f +office.result.version.failed=\u6587\u66f8\u3092\u30d0\u30fc\u30b8\u30e7\u30f3\u7ba1\u7406\u3067\u304d\u307e\u305b\u3093\u3067\u3057\u305f\u3002 +office.result.versioned=\u6587\u66f8\u3092\u30d0\u30fc\u30b8\u30e7\u30f3\u7ba1\u7406\u3057\u307e\u3057\u305f\u3002 +office.result.workflow_started=\u65b0\u898f\u306e\u30ef\u30fc\u30af\u30d5\u30ed\u30fc\u3092\u958b\u59cb\u3057\u307e\u3057\u305f\u3002 +office.result.unknown=\u4e0d\u660e\u306a\u30a2\u30af\u30b7\u30e7\u30f3 +office.result.exception=\u4f8b\u5916\u306e\u305f\u3081\u30a2\u30af\u30b7\u30e7\u30f3\u304c\u5931\u6557\u3057\u307e\u3057\u305f\u3002 +office.result.create_space.failed=\u30b9\u30da\u30fc\u30b9\u3092\u4f5c\u6210\u3067\u304d\u307e\u305b\u3093\u3067\u3057\u305f\u3002 +office.result.create_space.missing_name=\u30b9\u30da\u30fc\u30b9\u306b\u306f\u540d\u524d\u3092\u3064\u3051\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002 +office.result.space_created=\u65b0\u898f\u30b9\u30da\u30fc\u30b9\u304c\u4f5c\u6210\u3055\u308c\u307e\u3057\u305f\u3002 +office.result.user_not_found=\u30e6\u30fc\u30b6\u304c\u898b\u3064\u304b\u308a\u307e\u305b\u3093\u3002 + +# Miscellaneous +office.unit.kb=KB +office.version.notes=\u30e1\u30e2 +office.task.overdue=\u671f\u9650\u5207\u308c +office.task.due_today=\u672c\u65e5\u671f\u9650 +office.tip.task_item=\u30bf\u30b9\u30af\u30fb\u30a2\u30a4\u30c6\u30e0 diff --git a/config/alfresco/messages/portlets_fr.properties b/config/alfresco/messages/portlets_fr.properties index 8c67779827..feaa3404c2 100755 --- a/config/alfresco/messages/portlets_fr.properties +++ b/config/alfresco/messages/portlets_fr.properties @@ -24,7 +24,7 @@ portlets.panel.size=Taille portlets.panel.kb=Ko portlets.myspaces.create_space=Cr\u00e9er un Espace -portlets.myspaces.create_space.title=Cr\u00e9er un espace +portlets.myspaces.create_space.title=Cr\u00e9er un Espace portlets.myspaces.upload=Importer dans l'entrep\u00f4t portlets.myspaces.upload.title=Ajouter un nouveau document portlets.myspaces.name=Nom @@ -61,7 +61,7 @@ portlets.mytaskspanel.priority=Priorit\u00e9 portlets.mytaskspanel.start_date=Date de D\u00e9but portlets.mytaskspanel.complete=Achev\u00e9 portlets.mytaskspanel.manage_task=G\u00e9rer la t\u00e2che -portlets.mytaskspanel.workflow_action=Action de flux de travail +portlets.mytaskspanel.workflow_action=Action de workflow portlets.mytaskspanel.workflow_complited=achev\u00e9 portlets.checkin.item_working_copy_of_name_has_been_checked_in=L'\u00e9l\u00e9ment \\\"Copie de travail de {0}\\\" a \u00e9t\u00e9 lib\u00e9r\u00e9. diff --git a/config/alfresco/messages/portlets_ja.properties b/config/alfresco/messages/portlets_ja.properties new file mode 100755 index 0000000000..78efb2f93c --- /dev/null +++ b/config/alfresco/messages/portlets_ja.properties @@ -0,0 +1,83 @@ +portlets.refresh=\u518d\u8aad\u307f\u8fbc\u307f +portlets.button.ok=OK +portlets.button.cancel=\u30ad\u30e3\u30f3\u30bb\u30eb + +portlets.error.data_currently_unavailable=\u7533\u3057\u8a33\u3042\u308a\u307e\u305b\u3093\u3001\u30c7\u30fc\u30bf\u306f\u73fe\u5728\u5229\u7528\u3067\u304d\u307e\u305b\u3093\u3002 +portlets.preview_currently_unavailable=\u7533\u3057\u8a33\u3042\u308a\u307e\u305b\u3093\u3001\u30d7\u30ec\u30d3\u30e5\u30fc\u306f\u73fe\u5728\u5229\u7528\u3067\u304d\u307e\u305b\u3093\u3002 + +portlets.message.showing=\u8868\u793a\u4e2d +portlets.message.items=\u30a2\u30a4\u30c6\u30e0 +portlets.message.showing_items={0} \u30a2\u30a4\u30c6\u30e0\u3092\u8868\u793a\u3057\u3066\u3044\u307e\u3059\u3002 + +portlets.doclist.all_items=\u5168\u3066\u306e\u30a2\u30a4\u30c6\u30e0 +portlets.doclist.word_documents=Word\u6587\u66f8 +portlets.doclist.html_documents=HTML\u6587\u66f8 +portlets.doclist.pdf_documents=PDF\u6587\u66f8 +portlets.doclist.recently_modified=\u6700\u8fd1\u4fee\u6b63\u3055\u308c\u305f\u6587\u66f8 + +portlets.panel.description=\u8aac\u660e +portlets.panel.modified=\u4fee\u6b63\u6e08 +portlets.panel.modified_by=\u4fee\u6b63\u8005 +portlets.panel.created=\u4f5c\u6210\u6e08 +portlets.panel.created_by=\u4f5c\u6210\u8005 +portlets.panel.size=\u30b5\u30a4\u30ba +portlets.panel.kb=KB + +portlets.myspaces.create_space=\u30b9\u30da\u30fc\u30b9\u306e\u4f5c\u6210 +portlets.myspaces.create_space.title=\u65b0\u898f\u30b9\u30da\u30fc\u30b9\u306e\u4f5c\u6210 +portlets.myspaces.upload=\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9 +portlets.myspaces.upload.title=\u65b0\u898f\u6587\u66f8\u3092\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9 +portlets.myspaces.name=\u540d\u524d +portlets.myspaces.title=\u30bf\u30a4\u30c8\u30eb +portlets.myspaces.description=\u8aac\u660e +portlets.myspaces.all_items=\u5168\u3066\u306e\u30a2\u30a4\u30c6\u30e0 +portlets.myspaces.spaces=\u30b9\u30da\u30fc\u30b9 +portlets.myspaces.documents=\u6587\u66f8 +portlets.myspaces.my_items=\u3042\u306a\u305f\u306e\u30a2\u30a4\u30c6\u30e0 +portlets.myspaces.recently_modified=\u6700\u8fd1\u4fee\u6b63\u3055\u308c\u305f\u6587\u66f8 + +portlets.mywebfiles.showing_count_files_in_count_web_projects={1}Web\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e{0}\u30d5\u30a1\u30a4\u30eb\u3092\u8868\u793a\u3059\u308b +portlets.mywebfiles.view_web_project=Web\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u8868\u793a +portlets.mywebfiles.my_modified_items=\u5909\u66f4\u6e08\u306e\u3042\u306a\u305f\u306e\u30a2\u30a4\u30c6\u30e0 +portlets.mywebfiles.edit=\u7de8\u96c6 +portlets.mywebfiles.no_items_modified=\u4fee\u6b63\u6e08\u30a2\u30a4\u30c6\u30e0\u306a\u3057 + +portlets.mywebforms.view_web_project=Web\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u8868\u793a +portlets.mywebforms.showing_count_forms_in_count_web_projects={1}Web\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e{0}\u30d5\u30a9\u30fc\u30e0\u3092\u8868\u793a\u3059\u308b + +portlets.mytasks.tasks_to_do=\u4e88\u5b9a\u306e\u30bf\u30b9\u30af +portlets.mytasks.due_today=\u672c\u65e5\u671f\u9650 +portlets.mytasks.next_7_days=7\u65e5\u4ee5\u5185 +portlets.mytasks.no_due_date=\u7de0\u5207\u65e5\u306a\u3057 +portlets.mytasks.overdue=\u671f\u9650\u5207\u308c +portlets.mytasks.showing_overdue=\u671f\u9650\u5207\u308c +portlets.mytasks.showing_task=\u30bf\u30b9\u30af +portlets.mytasks.showing_due_today=\u672c\u65e5\u671f\u9650 +portlets.mytasks.showing_due_next_week=\u6765\u9031\u671f\u9650 +portlets.mytasks.showing_with_no_due_date_set=\u671f\u9650\u306e\u8a2d\u5b9a\u306a\u3057 + +portlets.mytaskspanel.status=\u30b9\u30c6\u30fc\u30bf\u30b9 +portlets.mytaskspanel.priority=\u512a\u5148 +portlets.mytaskspanel.start_date=\u958b\u59cb\u65e5 +portlets.mytaskspanel.complete=\u5b8c\u4e86 +portlets.mytaskspanel.manage_task=\u30bf\u30b9\u30af\u7ba1\u7406 +portlets.mytaskspanel.workflow_action=\u30ef\u30fc\u30af\u30d5\u30ed\u30fc\u30fb\u30a2\u30af\u30b7\u30e7\u30f3 +portlets.mytaskspanel.workflow_complited=\u5b8c\u4e86\u6e08 + +portlets.checkin.item_working_copy_of_name_has_been_checked_in=\u30a2\u30a4\u30c6\u30e0 \\\"Working Copy of {0}\\\" \u306f\u3059\u3067\u306b\u30c1\u30a7\u30c3\u30af\u30a4\u30f3\u3055\u308c\u3066\u3044\u307e\u3059\u3002 +portlets.checkout.working_copy_for_the_checked_out="\u30c1\u30a7\u30c3\u30af\u30a2\u30a6\u30c8\u6e08\u30a2\u30a4\u30c6\u30e0 \\\"Working Copy of {0}\\\" \u306e\u4f5c\u696d\u30b3\u30d4\u30fc\u306f\u3059\u3067\u306b\u4f5c\u6210\u3055\u308c\u3066\u3044\u307e\u3059\u3002 + +task_summary_panel.close=\u9589\u3058\u308b +task_summary_panel.type=\u30bf\u30a4\u30d7 +task_summary_panel.name=\u540d\u524d +task_summary_panel.start_date=\u958b\u59cb\u65e5 +task_summary_panel.due_date=\u7de0\u5207\u65e5 +task_summary_panel.none=\u306a\u3057 +task_summary_panel.priority=\u512a\u5148 +task_summary_panel.percent_completed=\u5b8c\u4e86\u3057\u305f\u30d1\u30fc\u30bb\u30f3\u30c8 +task_summary_panel.status=\u30b9\u30c6\u30fc\u30bf\u30b9 +task_summary_panel.completed=\u5b8c\u4e86\u6e08 +task_summary_panel.yes=\u306f\u3044 +task_summary_panel.no=\u3044\u3044\u3048 +task_resource_panel.no_task_resources=\u30bf\u30b9\u30af\u30ea\u30bd\u30fc\u30b9\u306a\u3057 + diff --git a/config/alfresco/messages/webclient-config-admin-interpreter-help_ja.properties b/config/alfresco/messages/webclient-config-admin-interpreter-help_ja.properties new file mode 100755 index 0000000000..cab2a2a4ac --- /dev/null +++ b/config/alfresco/messages/webclient-config-admin-interpreter-help_ja.properties @@ -0,0 +1 @@ +configadmin_console.help=alfresco/messages/webclient-config-admin-interpreter-help.txt diff --git a/config/alfresco/messages/webclient.properties b/config/alfresco/messages/webclient.properties index c2883d7f2c..6fabf35bbb 100644 --- a/config/alfresco/messages/webclient.properties +++ b/config/alfresco/messages/webclient.properties @@ -2125,3 +2125,6 @@ trx.transferStatus=Current Status trx.fromRepositoryId=Transferred From trx.repositoryId=Transferred Origin trx.invadedBy=Contains transfers + +# Team properties +team_login_warning=The requested Alfresco Explorer page is unsupported. Access this page only at the direction of Alfresco Support. diff --git a/config/alfresco/messages/webclient_de.properties b/config/alfresco/messages/webclient_de.properties index c21bfd5bc7..eca646b115 100644 --- a/config/alfresco/messages/webclient_de.properties +++ b/config/alfresco/messages/webclient_de.properties @@ -10,12 +10,12 @@ make_multilingual_description=Dieses Dokument in ein mehrsprachiges Dokument umw error_make_multilingual_dialog=Diese Datei kann nicht mehrsprachig gestaltet werden. add_translation=\u00dcbersetzung hinzuf\u00fcgen add_translation_tooltip=Diesem Dokument eine \u00dcbersetzung hinzuf\u00fcgen -add_translation_description=Dem Dokument eine \u00dcbersetzung hinzuf\u00fcgen +add_translation_description=Dem Dokument eine \u00dcbersetzung hinzuf\u00fcgen. error_add_translation_dialog=Es kann keine \u00dcbersetzung hinzugef\u00fcgt werden. trad_exists_error=F\u00fcr diese Sprachumgebung gibt es bereits eine \u00dcbersetzung. add_translation_wc=Eine \u00dcbersetzung ohne Inhalt hinzuf\u00fcgen add_translation_wc_tooltip=Dem Dokument eine \u00dcbersetzung ohne Inhalt hinzuf\u00fcgen -add_translation_wc_description=Den Dokumenteneigenschaften eine \u00dcbersetzung hinzuf\u00fcgen +add_translation_wc_description=Den Dokumenteneigenschaften eine \u00dcbersetzung hinzuf\u00fcgen. error_add_translation_wc_dialog=Es kann keine \u00dcbersetzung ohne Inhalt hinzugef\u00fcgt werden. ml_common_content_properties=\u00dcbliche mehrsprachige Inhaltseigenschaften ml_other_options=Weitere Optionen @@ -28,7 +28,7 @@ select_language= ml_content_info=Information zu mehrsprachigem Inhalt edit_ml_container_properties=Mehrsprachige Inhaltseigenschaften bearbeiten edit_ml_container_description=Informationen \u00fcber den mehrsprachigen Inhalt \u00e4ndern. -error_locale_null=F\u00fcr diesen Node muss eine Sprachumgebung definiert werden. +error_locale_null=F\u00fcr diesen Knoten muss eine Sprachumgebung definiert werden. translator=\u00dcbersetzer manage_multilingual_details_for=Mehrsprachigen Inhalt verwalten f\u00fcr manage_multilingual_details=Mehrsprachigen Inhalt verwalten @@ -58,7 +58,7 @@ step1_edition_details_desc=Schritt eins, Detail der neuen Ausgabe bearbeiten step2_edition_details_desc=Schritt zwei, Detail der neuen Ausgabe bearbeiten step1_new_edition_details_title=Schritt Eins - Details der Ausgabe step2_new_edition_details_title=Schritt Zwei - Details der Ausgabe -new_edition_details_desc=Informationen \u00fcber die neue Ausgabe eingeben +new_edition_details_desc=Informationen \u00fcber die neue Ausgabe eingeben. step3_edition_summary=Zusammenfassung step2_edition_summary_desc=Schritt zwei, Zusammenfassung der neuen Ausgabe anzeigen step3_edition_summary_desc=Schritt drei, Zusammenfassung der neuen Ausgabe anzeigen @@ -96,7 +96,7 @@ time_pattern=HH:mm # General UI product_name=Alfresco -view_description=In dieser Anzeigen k\u00f6nnen Sie die Objekte in diesem Arbeitsbereich durchsuchen. +view_description=In dieser Ansicht k\u00f6nnen Sie die Objekte in diesem Arbeitsbereich durchsuchen. search_description=In dieser Ansicht k\u00f6nnen Sie die Ergebnisse Ihrer Suche sehen. checkinfile_description=Arbeitskopie einchecken, damit andere Teammitglieder damit arbeiten k\u00f6nnen. checkoutfilelink_description=Ausgecheckte Datei bearbeiten, Auschecken r\u00fcckg\u00e4ngig machen oder weiter arbeiten. @@ -141,8 +141,8 @@ download_doc=Herunterladen # Offline editing click_here= Hier klicken -offline_help=F\u00fcr Hilfe bei der Offline Bearbeitung. -offline_download_first=Wenn der Download Ihres Dokuments nicht in +offline_help=F\u00fcr Hilfe bei der Offline Bearbeitung +offline_download_first=Wenn der Download Ihres Dokuments nicht in offline_download_second=Sekunden beginnt, dann offline_download_auto_change=Wenn Sie nicht w\u00fcnschen, dass der Dateidownload automatisch beginnt, wenn Sie Offline Bearbeitung w\u00e4hlen, dann offline_download_not_started=Wenn der Download Ihres Dokuments nicht begonnen hat, dann @@ -176,7 +176,7 @@ other_options=Weitere Optionen local=Lokal inherited=Geerbt search=Suche -advanced_search=Erweiterte Suche +advanced_search=Erweiterte Suche value_not_set=nicht eingestellt description_not_set=Keine Beschreibung eingestellt. clear=Ergebnisse l\u00f6schen @@ -192,7 +192,7 @@ more_options_space=Mehr Aktionen f\u00fcr diesen Raum more_options_file=Mehr Aktionen f\u00fcr dieses Dokument select_space_prompt=Hier klicken, um einen Raum auszuw\u00e4hlen select_existing_space_prompt=Hier klicken, um einen bestehenden Raum auszuw\u00e4hlen -select_home_space_prompt=Hier klicken, um die Speicherstelle f\u00fcr den Home Arbeitsbereich des Raums auszuw\u00e4hlen +select_home_space_prompt=Hier klicken, um den Speicherort f\u00fcr den Home Arbeitsbereich des Raums auszuw\u00e4hlen select_category_prompt=Hier klicken, um eine Kategorie auszuw\u00e4hlen select_destination_prompt=Hier klicken, um das Ziel auszuw\u00e4hlen select_web_project_folder=Hier klicken, um einen Web-Projekt-Ordner auszuw\u00e4hlen @@ -201,9 +201,9 @@ change=\u00c4ndern select=Ausw\u00e4hlen set=Einstellen no_categories_applied=Auf dieses Dokument werden noch keine Kategorien angewandt. -has_following_categories=Auf dieses Dokument werden die folgenden Kategorien angewandt ... +has_following_categories=Auf dieses Dokument werden die folgenden Kategorien angewandt... no_categories_applied_space=Auf diesen Arbeitsbereich werden noch keine Kategorien angewandt. -has_following_categories_space=Auf diesen Arbeitsbereich werden die folgenden Kategorien angewandt ... +has_following_categories_space=Auf diesen Arbeitsbereich werden die folgenden Kategorien angewandt... moved=verschoben copied=kopiert clipboard=Zwischenablage @@ -215,11 +215,11 @@ my_home=Mein Home guest_home=Besucher-Home new_search=Neue Suche search_results=Suchergebnisse -search_detail=Suche nach \''{0}\'' Ergebnisse unten angezeigt. +search_detail=Suche nach \"{0}\" Ergebnisse unten angezeigt close_search=Suche schlie\u00dfen browse_spaces=Arbeitsbereiche durchsuchen browse_content=Inhaltselemente -location=Speicherstelle +location=Speicherort toggle_shelf=Seitenleiste aus- oder einblenden actions=Aktionen view=Ansicht @@ -253,7 +253,7 @@ view_in_cifs=In CIFS anzeigen download_content=Inhalt herunterladen details_page_bookmark=Details URL-Seite details_browse_bookmark=URL-Seite durchsuchen -noderef_link=Alfresco Node Referenz +noderef_link=Alfresco Knoten Referenz links=Links create_shortcut=Verkn\u00fcpfung erstellen navigation=Navigation @@ -278,13 +278,13 @@ login=Login templates=Mustervorlagen template=Mustervorlage rss_template=RSS Mustervorlage -select_button=Ausw\u00e4hlen ... +select_button=Ausw\u00e4hlen... select_items=Elemente ausw\u00e4hlen select_an_item=Ein Element ausw\u00e4hlen selected_items=Ausgew\u00e4hlte Elemente add_to_list_button=Zur Liste hinzuf\u00fcgen -none=Keine -no_selected_items=Keine ausgew\u00e4hlten Elemente +none=Keine +no_selected_items=Keine ausgew\u00e4hlten Elemente. search_select_item=Element suchen und ausw\u00e4hlen. search_select_items=Elemente suchen und ausw\u00e4hlen. search_minimum=F\u00fcr eine Suche wurden nicht genug Informationen eingegeben. Es muss mindestens ein Wert oder ein Speicherort ausgew\u00e4hlt werden, in dem gesucht wird. Textfelder m\u00fcssen mindestens {0} Zeichen umfassen. @@ -309,7 +309,7 @@ edit_doc_offline=Offline bearbeiten edit_doc_online=Online bearbeiten upload_new_version=Neue Version hochladen checkin_this_file=Diese Datei einchecken -cannot_delete_node_has_working_copy=Datei \''{0}\'' kann nicht gel\u00f6scht werden, da eine dazugeh\u00f6rige Arbeitskopie existiert. +cannot_delete_node_has_working_copy=Datei \"{0}\" kann nicht gel\u00f6scht werden, da eine dazugeh\u00f6rige Arbeitskopie existiert. unknown=Unbekannt picker_search_min=F\u00fcr eine Suche bitte mindestens {0} Zeichen eingeben. locked=Gesperrt @@ -367,7 +367,7 @@ done_editing=Bearbeitung erledigt checkout_document=Dieses Dokument auschecken undocheckout=Auschecken r\u00fcckg\u00e4ngig machen cancel_editing=Bearbeitung abbrechen -delete_space=Arbeitsbereich l\u00f6schen +delete_space=Raum l\u00f6schen delete_file=Datei l\u00f6schen delete_rule=Regel l\u00f6schen delete_user=Benutzer l\u00f6schen @@ -399,7 +399,7 @@ modify_user_roles=Benutzerrollen \u00e4ndern f\u00fcr modify=\u00c4ndern logout=Logout add=Hinzuf\u00fcgen -node_browser=Node Browser +node_browser=Knoten Browser reset_config=Konfigurationsservice zur\u00fccksetzen save=Speichern user_details=Benutzer-Details @@ -444,7 +444,7 @@ no_space_items=Keine anzuzeigenden Elemente. Aktion ''{0}'' anklicken, um einen no_content_items=Keine anzuzeigenden Elemente. Aktion ''{0}'' anklicken, um ein bestehendes Dokument hinzuzuf\u00fcgen. Um eine HTML- oder Nur Text-Datei zu erstellen, Aktion ''{1}'' anklicken. # Advanced Search messages -look_in=An Speicherort suchen +look_in=An Speicherort suchen look_for=Suchen nach all_spaces=Alle Arbeitsbereiche specify_space=Arbeitsbereich angeben @@ -455,7 +455,7 @@ file_names_contents=Dateinamen und Inhalte file_names=Nur Dateinamen space_names=Nur Namen der Arbeitsbereiche show_results_categories=Ergebnisse in folgenden Kategorien anzeigen -include_sub_categories=Einschlie\u00dflich Unterkategorien +include_sub_categories=Einschlie\u00dflich Unterkategorien also_search_results=Weitere Suchoptionen additional_options=Zus\u00e4tzliche Optionen save_new_search=Neue Suche speichern @@ -464,7 +464,7 @@ saved_searches=Meine gespeicherten Suchoptionen title_save_search=Suchanfrage speichern save_search_description=Suchanfrage f\u00fcr sp\u00e4teren Gebrauch speichern search_props=Gespeicherte Sucheigenschaften -select_saved_search=Eine gespeicherte Suche ausw\u00e4hlen ... +select_saved_search=Eine gespeicherte Suche ausw\u00e4hlen... saved_search_warning=Mit diesem Vorgang wird versucht, die bestehende, gespeicherte Suche ''{0}'' zu \u00fcberschreiben user_searches=Ihre Suchen global_searches=\u00d6ffentliche Suchen @@ -557,7 +557,7 @@ items=Elemente title_delete_category=Kategorie l\u00f6schen delete_category_warning=Mit dieser Kategorie sind {0} bestehende Dokumente verlinkt. delete_category_info=Auf L\u00f6schen klicken, um diese Kategorie und alle Subkategorien zu entfernen. -delete_category_confirm=M\u00f6chten Sie die Kategorie \''{0}\'' und alle Subkategorien wirklich l\u00f6schen? +delete_category_confirm=M\u00f6chten Sie die Kategorie \"{0}\" und alle Subkategorien wirklich l\u00f6schen? title_edit_category=Kategorie bearbeiten edit_category_description=Information f\u00fcr diese Kategorie bearbeiten. @@ -583,7 +583,7 @@ create_group_warning=Der Identifikator einer Gruppe kann nach dem Anlegen nicht title_delete_group=Gruppe l\u00f6schen delete_group_warning=Mit dieser Gruppe sind {0} Untergruppen oder Benutzer verbunden. delete_group_info=L\u00f6schen anklicken, um diese Gruppe und alle Mitglieder aus dem System zu l\u00f6schen. -delete_group_confirm=Wenn die Gruppe aus dem System entfernt wird, ist sie nicht mehr zug\u00e4nglich. Wollen Sie die Gruppe \''{0}\'' und alle Benutzer wirklich l\u00f6schen? +delete_group_confirm=Wenn die Gruppe aus dem System entfernt wird, ist sie nicht mehr zug\u00e4nglich. Wollen Sie die Gruppe \"{0}\" und alle Benutzer wirklich l\u00f6schen? title_add_user_group=Benutzer zur Gruppe hinzuf\u00fcgen add_user_group_description=Einen bestehenden Benutzer zu einer Gruppe hinzuf\u00fcgen select_users=Benutzer ausw\u00e4hlen, die dieser Gruppe hinzugef\u00fcgt werden sollen @@ -605,8 +605,8 @@ change_permissions=Berechtigungen \u00e4ndern set_permissions_title=Berechtigungen f\u00fcr ''{0}'' werden eingestellt set_permissions_subtitle=Mit diesem Dialog k\u00f6nnen Sie anderen Benutzern Zugriff auf Ihren Ordner oder Ihre Datei einr\u00e4umen select_usersgroups_perms=Benutzer/Gruppe und dazugeh\u00f6rige Berechtigung(en) ausw\u00e4hlen -selected_usersgroups_perms=Ausgew\u00e4hlte Benutzer/Gruppen und dazugeh\u00f6rige Berechtigung(en) -remove_permissions_title=Benutzer {0} entfernen +selected_usersgroups_perms=Ausgew\u00e4hlte Benutzer/Gruppen und dazugeh\u00f6rige Berechtigung(en) +remove_permissions_title=Benutzer ''{0}'' entfernen remove_permissions_subtitle=Ja anklicken, um alle Berechtigungen des Benutzers zu entfernen. remove_permissions=Wollen Sie wirklich alle Berechtigungen dieses Benutzers entfernen? edit_permissions_title=Berechtigungen f\u00fcr ''{0}'' \u00e4ndern @@ -614,7 +614,7 @@ view_permissions_title=Berechtigungen f\u00fcr ''{0}'' anzeigen edit_permissions_subtitle=Berechtigungen auf Zugriff auf Ihren Ordner oder Ihre Datei \u00e4ndern, die Sie einem Benutzer einger\u00e4umt haben. view_permissions_subtitle=Berechtigungen auf Zugriff auf Ihren Ordner oder Ihre Datei, die Sie einem Benutzer einger\u00e4umt haben. select_perm=Berechtigung ausw\u00e4hlen -selected_perm=Ausgew\u00e4hlte Berechtigung +selected_perm=Ausgew\u00e4hlte Berechtigung change_user_perms=Benutzerberechtigungen \u00e4ndern # Invite Users Wizard messages @@ -624,7 +624,7 @@ invite_step1_title=Schritt Eins - Benutzer einladen invite_step1_desc=Benutzer und die Rolle ausw\u00e4hlen, die sie in diesem Raum spielen werden. invite_step2_title=Schritt Zwei - Benutzer benachrichtigen invite_step2_desc=Ausgew\u00e4hlte Benutzer benachrichtigen. -i_want_to=Ich m\u00f6chte ... +i_want_to=Ich m\u00f6chte... invite_step_1=Benutzer einladen invite_step_2=Benutzer benachrichtigen invite_all=Alle Benutzer als G\u00e4ste einladen @@ -632,7 +632,7 @@ invite_users=Benutzer/Gruppen und deren Rollen festlegen specify_usersgroups=Benutzer/Gruppen festlegen select_usersgroups=Benutzer/Gruppe und deren Rolle(n) ausw\u00e4hlen select_role=Rolle ausw\u00e4hlen -selected_usersgroups=Ausgew\u00e4hlte Benutzer/Gruppen und Ihre Rolle(n) +selected_usersgroups=Ausgew\u00e4hlte Benutzer/Gruppen und Ihre Rolle(n) selected_roles=Ausgew\u00e4hlte Rollen click_add=Hinzuf\u00fcgen anklicken role=Rolle @@ -682,7 +682,7 @@ decrement_button_hint=Vorhergehende g\u00fcltige Version refresh_button_hint=Aktualisieren # System Users messages -create_user=Benutzer erstellen +create_user=Benutzer anlegen change_password=Passwort \u00e4ndern title_change_password=Benutzerpasswort \u00e4ndern change_password_description=\u00dcber diese Ansicht ein bestehendes Benutzerpasswort \u00e4ndern. @@ -694,12 +694,12 @@ warn_user_was_deleted=Benutzer wurde gel\u00f6scht check_in=Einchecken checkin_options=Check In Optionen checkin_changes_info=\u00c4nderungen einchecken und Datei ausgecheckt lassen -workingcopy_location=Speicherstelle f\u00fcr Arbeitskopie +workingcopy_location=Speicherort f\u00fcr Arbeitskopie which_copy_checkin=Welche Kopie m\u00f6chten Sie einchecken? which_copy_current=Kopie aus diesem Arbeitsbereich verwenden which_copy_other=Von meinem Computer hochgeladene Kopie verwenden locate_doc_upload=Hochzuladendes Dokument lokalisieren -file_location=Speicherstelle +file_location=Speicherort minor_change=Geringf\u00fcgige \u00c4nderung major_change=Wesentliche \u00c4nderung notes=Notizen @@ -707,7 +707,7 @@ new_version_has=Diese neue Version hat initial_version=Das ist die Ausgangsversion minor_changes=Geringf\u00fcgige \u00c4nderungen major_changes=Wesentliche \u00c4nderungen -missing_original_node=Fehlender urspr\u00fcnglicher Inhalts-Node +missing_original_node=Fehlender urspr\u00fcnglicher Inhalts-Knoten version_info=Versions-Info # Check-out messages @@ -763,7 +763,7 @@ space_props=Eigenschaften des Arbeitsbereiches choose_space_icon=Icon f\u00fcr den Arbeitsbereich w\u00e4hlen create_space_finish=Zum Erstellen Ihres Arbeitsbereiches Arbeitsbereich erstellen anklicken. select_category=Eine Kategorie ausw\u00e4hlen -selected_categories=Ausgew\u00e4hlte Kategorien +selected_categories=Ausgew\u00e4hlte Kategorien no_selected_categories=Keine Kategorien ausgew\u00e4hlt. success_ownership=Eigentum des Objektes erfolgreich \u00fcbernommen. success_unlock=Dokument erfolgreich freigegeben. @@ -775,8 +775,8 @@ apply_dashboard_info=Mustervorlage ausw\u00e4hlen, die als benutzerdefinierte An apply_dashboard_doc_info=Mustervorlage ausw\u00e4hlen, die als benutzerdefinierte Ansicht auf das Dokument angewandt werden soll. apply_rss_feed=RSS Feed Mustervorlage anwenden apply_rss_feed_info=Mustervorlage ausw\u00e4hlen, die als RSS Feed auf den Raum angewandt werden soll. -apply_rss_feed_warning1=Dieser Arbeitsbereich muss f\u00fcr den Gastbenutzer sichtbar sein, damit das RSS Feed \u00f6ffentlich angezeigt werden kann. Sie k\u00f6nnen den Gastbenutzer mit -apply_rss_feed_warning2=der Ansicht einladen. +apply_rss_feed_warning1=Dieser Arbeitsbereich muss f\u00fcr den Gastbenutzer sichtbar sein, damit das RSS Feed \u00f6ffentlich angezeigt werden kann. Sie k\u00f6nnen den Gastbenutzer mit der +apply_rss_feed_warning2=Ansicht einladen. rss_feed=RSS Feed rss_feed_link=RSS Feed Link warn_cannot_view_target_details=Kann Details des Zieldokuments nicht anzeigen, da Sie nicht \u00fcber die erforderlichen Berechtigungen verf\u00fcgen. @@ -785,7 +785,7 @@ warn_cannot_view_target_details=Kann Details des Zieldokuments nicht anzeigen, d export_info=Exportiert Metadaten und Inhalt aus diesem oder allen Arbeitsbereichen. export_from=Export aus package_name=Paketname -all_spaces_root=Vollst\u00e4ndiges Repository +all_spaces_root=Vollst\u00e4ndiges Repository current_space=Aktueller Arbeitsbereich include_children=Kinder einschlie\u00dfen include_self=Diesen Arbeitsbereich einschlie\u00dfen @@ -803,7 +803,7 @@ import_error_info=Wenn diese Option gew\u00e4hlt wird, erfolgt der Import im Hin # Edit Content messages edit_file_title=Datei bearbeiten edit_file_prompt=Zur Bearbeitung der Datei ''{0}'' untenstehenden Link anklicken und auf Aufforderung Speichern w\u00e4hlen. -edit_download_complete=Nach Abschluss des Download Schlie\u00dfen anklicken. +edit_download_complete=Nach Abschluss des Downloads Schlie\u00dfen anklicken. edit_using_web_form=Hier klicken, um diese Datei mit einem Web-Formular zu bearbeiten. checkout_file_title=Datei auschecken checkout_you_may_want=Vielleicht sollten Sie diese Datei auschecken und sperren, damit andere Benutzer sie nicht bearbeiten k\u00f6nnen. @@ -811,8 +811,8 @@ checkout_hint1=Tipp: Wenn Sie eine Datei auschecken, wird eine Kopie angelegt, m checkout_hint2=Wenn Sie die Bearbeitung der Kopie abgeschlossen haben, m\u00fcssen Sie sie einchecken, um die Sperre aufzuheben, damit andere mit dem ge\u00e4nderten Dokument arbeiten k\u00f6nnen. checkout_want_to=um zu verhindern, dass andere Benutzer Ihre \u00c4nderungen \u00fcberschreiben. checkout_warn=Hinweis: Sie verlieren alle \u00c4nderungen an diesem Dokument. -local_copy_location=Speicherstelle der lokalen Kopie -locate_content_upload=Suchen Sie die Speicherstelle Ihres Dokuments zum Hochladen +local_copy_location=Speicherort der lokalen Kopie +locate_content_upload=Suchen Sie den Speicherort Ihres Dokuments zum Hochladen # System Information and admin page messages system_info=Systeminformation @@ -829,14 +829,14 @@ system_props=Systemeigenschaften hide_details=Details ausblenden show_details=Details anzeigen user_search_info=Einen Benutzer durch Suche nach Vornamen, Nachnamen und/oder Benutzernamen finden. Alternativ, um alle Benutzer anzuzeigen, 'Alle anzeigen' anklicken. Wenn viele Benutzer im System vorhanden sind, kann das einige Zeit dauern. -group_search_info=Eine Gruppe anhand des Gruppennamens suchen. Alternativ, um alle Gruppen anzuzeigen, 'Alle anzeigen' anklicken. Wenn viele Gruppen im System vorhanden sind, kann das einige Zeit dauern. -user_change_homespace_info=Die Auswahl eines neuen Home Arbeitsbereichs f\u00fcr einen Benutzer entfernt bestehende Berechtigungen f\u00fcr den urspr\u00fcnglichen Home Arbeitsbereich nicht. Vielleicht sollten Sie \u00fcber den Dialog Benutzer des Raums Verwalten Berechtigungen \u00e4ndern, wenn diese f\u00fcr den urspr\u00fcnglichen Home Arbeitsbereich nicht mehr erforderlich sind. +group_search_info=Eine Gruppe anhand des Gruppennamens suchen. Alternativ, um alle Gruppen anzuzeigen, 'Alle anzeigen' anklicken. +user_change_homespace_info=Wenn viele Gruppen im System vorhanden sind, kann das einige Zeit dauern.Die Auswahl eines neuen Home Arbeitsbereichs f\u00fcr einen Benutzer entfernt bestehende Berechtigungen f\u00fcr den urspr\u00fcnglichen Home Arbeitsbereich nicht. Vielleicht sollten Sie \u00fcber den Dialog Benutzer des Raums Verwalten Berechtigungen \u00e4ndern, wenn diese f\u00fcr den urspr\u00fcnglichen Home Arbeitsbereich nicht mehr erforderlich sind. quota_totalusage=Gesamtgebrauch (f\u00fcr diese Suche) quota_totalquota=Gesamtkontingent (f\u00fcr diese Suche) caused_by=verursacht durch: # Content Wizard messages -add_content_dialog_title=Inhall hinzuf\u00fcgen Dialog +add_content_dialog_title=Dialogfeld zum Hinzuf\u00fcgen von Inhalten add_content_dialog_desc=Anhand dieses Dialogs k\u00f6nnen Sie Inhalt zu einem Arbeitsbereich hinzuf\u00fcgen. upload_content=Inhalt hochladen properties=Eigenschaften @@ -846,15 +846,15 @@ content_type=Typ des Inhalts content_format=Format des Inhalts inline_editable=Inline editierbar locate_content=Hochzuladenden Inhalt lokalisieren -content_location=Speicherstelle -uploaded_content=Hochgeladener Inhalt +content_location=Speicherort +uploaded_content=Hochgeladener Inhalt click_upload=Hochladen anklicken file_upload_success=''{0}'' wurde erfolgreich hochgeladen. modify_props_when_page_closes=Alle Eigenschaften \u00e4ndern, wenn diese Seite geschlossen wird. modify_props_when_wizard_closes=Alle Eigenschaften \u00e4ndern, wenn dieser Assistent geschlossen wird. modify_props_help_text=Auf diesen Inhalt angewandte Regeln k\u00f6nnen die Eingabe von Zusatzinformationen erforderlich machen. content_finish_instruction=Fertigstellen anklicken, um den Inhalt zu diesem Raum hinzuzuf\u00fcgen. Zur\u00fcck anklicken, um Ihre Auswahl zu pr\u00fcfen oder zu \u00e4ndern. -create_content_title=Assistent f\u00fcr das Erstellen von Inhalt +create_content_title=Assistent f\u00fcr das Erstellen von Inhalt create_content_desc=Mit diesem Assistenten k\u00f6nnen Sie ein neues Dokument in einem Arbeitsbereich erstellen. create_content_step1_title=Schritt Eins - Namen angeben und Typ ausw\u00e4hlen create_content_step1_desc=Namen angeben und Art des zu erstellenden Inhalts ausw\u00e4hlen. @@ -866,9 +866,9 @@ content=Inhalt text_content=Einfacher Textinhalt html_content=HTML-Inhalt xml_content=XML-Inhalt -node_locked_dialog_closed=Der angelegte Node ist gesperrt. Das ist vermutlich auf eine konfigurierte Regel in diesem Arbeitsbereich zur\u00fcckzuf\u00fchren. Da der Node nicht bearbeitet werden kann, wurde das Dialogfeld Inhaltseigenschaften Ver\u00e4ndern geschlossen. +node_locked_dialog_closed=Der angelegte Knoten ist gesperrt. Das ist vermutlich auf eine konfigurierte Regel in diesem Arbeitsbereich zur\u00fcckzuf\u00fchren. Da der Knoten nicht bearbeitet werden kann, wurde das Dialogfeld Inhaltseigenschaften Ver\u00e4ndern geschlossen. -regenerate_renditions_title=Assistent f\u00fcr die Erneuerung von Renditions +regenerate_renditions_title=Assistent f\u00fcr die Erneuerung von Renditions regenerate_renditions_desc=Anhand dieses Assistenten k\u00f6nnen Sie Renditions erneuern. regenerate_renditions_select_renditions_title=Renditions ausw\u00e4hlen regenerate_renditions_select_renditions_step_title=Renditions ausw\u00e4hlen @@ -886,16 +886,16 @@ regenerate_renditions_snapshot_description_scope_form=Alle Renditions w\u00fcrde regenerate_renditions_snapshot_description_scope_rendering_engine_template=Alle von {0} erzeugten Renditions wurden erneuert. regenerate_renditions_snapshot_description_scope_web_project=Alle Renditions aus dem Web-Projekt {0} wurden erneuert. regenerate_renditions_snapshot_short_description={0} {0,Wahl,0#Renditions|1#Rendition|1 ml_content_info=Informaci\u00f3n sobre contenidos multiling\u00fces @@ -36,7 +36,7 @@ manage_multilingual_details_tooltip=Administrar las propiedades multiling\u00fce manage_multilingual_details_description=Utilice esta p\u00e1gina para gestionar contenidos multiling\u00fces. translations=Traducciones related_translations=Traducciones relacionadas -related_content=Contenidos relacionados +related_content=Contenidos relacionados deep_copy=Copia profunda new_edition=Nueva edici\u00f3n new_edition_from=Nueva edici\u00f3n a partir de estos @@ -111,7 +111,7 @@ cancel_editing_file_description=Cancelar la edici\u00f3n de un documento y desca updatefile_description=Actualizar un documento del repositorio con contenidos de su ordenador. editfile_description=Editar el contenido del fichero. editfileinline_description=Editar el contenido del documento, y luego pulsar en Guardar. -createfile_description=Introducir nuevos contenidos +createfile_description=Introducir nuevos contenidos. manageusers_description=Administrar los usuarios del repositorio. manage_invited_users_description=Gestionar los permisos que ha otorgado a los usuarios que acceden a su espacio. manage_content_users_description=Gestionar los permisos que ha otorgado a los usuarios que acceden a sus contenidos. @@ -119,7 +119,7 @@ modify_user_roles_description=Modificar los permisos otorgados a un usuario para modify_content_user_roles_description=Modificar los permisos otorgados a un usuario para acceder a sus contenidos. advancedsearch_description=Realizar una b\u00fasqueda m\u00e1s detallada dentro del repositorio. edit_content_description=Modificar las propiedades del contenido y luego pulsar Aceptar. -view_content_description=Ver las propiedades de contenido +view_content_description=Ver las propiedades de contenido. editcategory_description=Establecer la categor\u00eda del documento, y luego pulsar Aceptar. editcategory_space_description=Establecer la categor\u00eda del espacio, y luego pulsar Aceptar. editworkflow_description=Modificar las propiedades del flujo de trabajo sencillo y luego pulsar Aceptar. @@ -130,7 +130,7 @@ space_rules_description=Esta vista le muestra todas las reglas a aplicar a los c warning_inline=Esto s\u00f3lo se recomienda para documentos HTML o de texto plano. categories_description=Esta vista le permite examinar y modificar la jerarqu\u00eda de categor\u00edas. new_category_description=Introducir informaci\u00f3n sobre la nueva categor\u00eda y luego pulsar en Crear categor\u00eda. -status_message_default=No hay mensajes +status_message_default=No hay mensajes. no_icons_found=No se encontraron iconos required_field=Campo requerido no_data=-- @@ -147,7 +147,7 @@ offline_download_second=segundos offline_download_auto_change=Si no desea que la descarga de los ficheros se inicie autom\u00e1ticamente al seleccionar edici\u00f3n fuera de l\u00ednea offline_download_not_started=Si su documento no ha empezado a descargarse offline_editing=Edici\u00f3n fuera de l\u00ednea -offline_title=Descarga de ''{0}' para edici\u00f3n fuera de l\u00ednea +offline_title=Descarga de ''{0}'' para edici\u00f3n fuera de l\u00ednea. # UI Component messages done=Hecho @@ -169,7 +169,7 @@ page_info=P\u00e1gina {0} de {1} go_up=Ir arriba ok=Aceptar go=Ir -to=Hasta +to=Para from=Desde options=Opciones other_options=Otras opciones @@ -207,7 +207,7 @@ has_following_categories_space=Este espacio tiene aplicadas las siguientes categ moved=movida copied=copiada clipboard=Portapapeles -node_added_clipboard=Se a\u00f1adi\u00f3 un elemento al portapapeles. En este momento hay {0} elemento(s) en el portapapeles. Para pegar todos los elementos recolectados navegar hasta el espacio deseado y luego desde el men\u00fa en ''Mis Acciones'', 'seleccionar "Pegar todo''. +node_added_clipboard=Se a\u00f1adi\u00f3 un elemento al portapapeles. En este momento hay {0} elemento(s) en el portapapeles. Para pegar todos los elementos recolectados navegar hasta el espacio deseado y luego desde el men\u00fa en ''Mis Acciones'', seleccionar ''Pegar todo''. recent_spaces=Espacios recientes shortcuts=Accesos directos company_home=Espacio de empresa @@ -215,7 +215,7 @@ my_home=Mi Espacio guest_home=Espacio de invitado new_search=Nueva b\u00fasqueda search_results=Resultados de la b\u00fasqueda -search_detail=Buscar en ''{0}'' resultados que se muestran abajo +search_detail=Buscar en \"{0}\" resultados que se muestran abajo close_search=Cerrar b\u00fasqueda browse_spaces=Examinar espacios browse_content=Elementos de contenido @@ -231,7 +231,7 @@ download=Descargar cut=Cortar copy=Copiar paste=Pegar -remove=Quitar +remove=Eliminar change_roles=Cambiar roles change_user_roles=Cambiar roles de usuario paste_item=Pegar elemento @@ -309,8 +309,8 @@ edit_doc_offline=Editar fuera de l\u00ednea edit_doc_online=Editar en l\u00ednea upload_new_version=Subir nueva versi\u00f3n checkin_this_file=Desbloquear este fichero -cannot_delete_node_has_working_copy=No se puede eliminar el fichero ''{0}'', ya que tiene asociada una copia de trabajo. -unknown=Desconocido +cannot_delete_node_has_working_copy=No se puede eliminar el fichero \"{0}\", ya que tiene asociada una copia de trabajo. +unknown=Desconocida picker_search_min=Por favor, introduzca al menos {0} caracteres para realizar una b\u00fasqueda. locked=Bloqueado no_task_resources=No hay recursos de tareas @@ -374,7 +374,7 @@ delete_user=Eliminar usuario remove_user=Eliminar usuario create_space=Crear espacio add_content=A\u00f1adir contenido -create_content=Crear contenidos +create_content=Crear contenido create_form=Crear formulario edit_form=Editar formulario create_web_form=Crear formulario Web @@ -390,7 +390,7 @@ reapply_rules_success=Las reglas fueron aplicadas con \u00e9xito. ignore_inherited_rules=Ignorar reglas heredadas include_inherited_rules=Incluir reglas heredadas inherited_rules_being_ignored=Las reglas heredadas est\u00e1n siendo ignoradas. -manage_rules=Gestionar reglas de vontenido +manage_rules=Gestionar reglas de contenido manage_users=Administrar usuarios del sistema manage_groups=Administrar grupos de usuarios manage_invited_users=Administrar usuarios de espacios @@ -441,7 +441,7 @@ user_err_user_name=ID de usuario no puede contener los caracteres: {0} # Browse list messages no_space_items=Ning\u00fan elemento para mostrar. Pulse en la acci\u00f3n ''{0}'' para crear un espacio. -no_content_items=Ning\u00fan elemento para mostrar. Para a\u00f1adir un documento existente, pulsar en la acci\u00f3n "{0}"'. Para crear un fichero HTML o de texto plano, pulsar en la acci\u00f3n "{1}"'. +no_content_items=Ning\u00fan elemento para mostrar. Para a\u00f1adir un documento existente, pulsar en la acci\u00f3n ''{0}''. Para crear un fichero HTML o de texto plano, pulsar en la acci\u00f3n ''{1}''. # Advanced Search messages look_in=Busque en la ubicaci\u00f3n @@ -464,7 +464,7 @@ saved_searches=M\u00e1s opciones de b\u00fasqueda guardada title_save_search=Guardar consulta de b\u00fasqueda save_search_description=Guardar una consulta de b\u00fasqueda para reutilizarla m\u00e1s tarde search_props=Propiedades de b\u00fasqueda guardadas -select_saved_search=Seleccionar una b\u00fasqueda guardada +select_saved_search=Seleccionar una b\u00fasqueda guardada... saved_search_warning=Esta operaci\u00f3n va a intentar sobrescribir la b\u00fasqueda guardada existente ''{0}'' user_searches=Sus b\u00fasquedas global_searches=B\u00fasquedas p\u00fablicas @@ -480,9 +480,9 @@ browse_posts=Examinar entradas forums_info=Esta vista le permite examinar espacios de foro y foros. forum_info=Esta vista le permite examinar temas en este foro. topic_info=Esta vista le permite examinar entradas en este foro. -no_forums=No hay espacios de foro o foros para mostrar. Pulse en la acci\u00f3n ''Crear espacio de foro'' para crear un espacio de foro o en la acci\u00f3n "Crear foro" para crear un foro. -no_topics=Ning\u00fan tema para mostrar. Pulse en la acci\u00f3n '"Crear tema" para crear un tema. -no_posts=Ninguna entrada para mostrar. Pulse en la acci\u00f3n '"Entrada en el tema" para crear una entrada. +no_forums=No hay espacios de foro o foros para mostrar. Pulse en la acci\u00f3n ''Crear espacio de foro'' para crear un espacio de foro o en la acci\u00f3n ''Crear foro'' para crear un foro. +no_topics=Ning\u00fan tema para mostrar. Pulse en la acci\u00f3n ''Crear tema'' para crear un tema. +no_posts=Ninguna entrada para mostrar. Pulse en la acci\u00f3n ''Entrada en el tema'' para crear una entrada. topic=Tema topics=Temas post=Entrada @@ -557,7 +557,7 @@ items=Elementos title_delete_category=Eliminar categor\u00eda delete_category_warning=Esta categor\u00eda tiene {0} documento(s) existente(s) vinculados a ella. delete_category_info=Para quitar esta categor\u00eda y todas sus subcategor\u00edas, pulse en Eliminar. -delete_category_confirm=\u00bfEsta seguro de que quiere eliminar la categor\u00eda ''{0}'' y todas las subcategor\u00edas? +delete_category_confirm=\u00bfEsta seguro de que quiere eliminar la categor\u00eda \"{0}\" y todas las subcategor\u00edas? title_edit_category=Editar categor\u00eda edit_category_description=Edite la informaci\u00f3n para esta categor\u00eda. @@ -583,7 +583,7 @@ create_group_warning=El identificador de un grupo no se puede modificar una vez title_delete_group=Eliminar grupo delete_group_warning=Este grupo tiene {0} subgrupo(s) o usuario(s) vinculados al mismo. delete_group_info=Para eliminar este grupo en el sistema y eliminar todos los miembros del mismo, pulse en Eliminar. -delete_group_confirm=Una vez eliminado del sistema el grupo ya no ser\u00e1 accesible. \u00bfEsta seguro de que quiere eliminar el grupo ''{0}'' y todos los usuarios del mismo? +delete_group_confirm=Una vez eliminado del sistema el grupo ya no ser\u00e1 accesible. \u00bfEsta seguro de que quiere eliminar el grupo \"{0}\" y todos los usuarios del mismo? title_add_user_group=A\u00f1adir usuario al grupo add_user_group_description=A\u00f1adir un usuario existente a un grupo select_users=Seleccionar usuarios a a\u00f1adir a este grupo @@ -591,7 +591,7 @@ selected_users=Usuarios seleccionados groups_err_group_name_length=El ID de grupo debe tener entre {0} y {1} caracteres de longitud. groups_err_group_name=El ID de grupo no puede contener los caracteres: {0} groups_err_exists=Ya existe un identificador de grupo con el mismo nombre, los identificadores de grupo debe ser \u00fanico. -Read=Leer +Read=Lectura Write=Escribir Delete=Eliminar permission=Permiso @@ -603,7 +603,7 @@ view_permissions=Ver los permisos set_permissions=Configurar permisos change_permissions=Cambiar permisos set_permissions_title=Configurando permisos para ''{0}'' -set_permissions_subtitle=Este di\u00e1logo le permite dar acceso a otros usuarios a su carpeta o fichero. +set_permissions_subtitle=Este di\u00e1logo le permite dar acceso a otros usuarios a su carpeta o fichero select_usersgroups_perms=Seleccione el usuario/grupo y su(s) permiso(s) selected_usersgroups_perms=Usuarios/grupos seleccionados y su(s) permiso(s) remove_permissions_title=Quitar usuario ''{0}'' @@ -645,7 +645,7 @@ invite_role=Usted tendr\u00e1 el rol de: {0} invite_finish_instruction=Para cerrar este asistente y aplicar sus cambios, pulse en Finalizar. Para revisar o cambiar sus selecciones, pulse en Volver. remove_invited_user_info=Para retirar a un usuario invitado de este espacio, pulsar en S\u00ed. add_role=A\u00f1adir rol -space_owner=El usuario ''{0}''' es el actual propietario de este espacio. +space_owner=El usuario ''{0}'' es el actual propietario de este espacio. users_and_groups=Usuarios y grupos authority=Nombre de usuario invite_users_summary=Usuarios y roles @@ -657,7 +657,7 @@ invite_content_title=Asistente Invitar a usuarios de contenidos invite_content_desc=Este asistente le ayuda a dar acceso a otros usuarios a sus contenidos. invite_content_step1_desc=Seleccione los usuarios y los roles que desempe\u00f1ar\u00e1n para este contenido. remove_content_user_info=Para retirar a un usuario invitado de este contenido, pulsar en S\u00ed. -content_owner=El usuario ''{0}''' es el actual propietario de este contenido. +content_owner=El usuario ''{0}'' es el actual propietario de este contenido. # AVM Compare snapshot_compare_to_current=Comparar con instant\u00e1nea actual @@ -683,7 +683,7 @@ refresh_button_hint=Actualizar # System Users messages create_user=Crear usuario -change_password=Cambiar dontrase\u00f1a +change_password=Cambiar contrase\u00f1a title_change_password=Cambiar contrase\u00f1a de usuario change_password_description=Utilice esta vista para cambiar una contrase\u00f1a de usuario existente. change_password_instructions=Introduzca una nueva contrase\u00f1a para este usuario. @@ -726,7 +726,7 @@ undo_checkout_for=Deshacer bloqueo para undo_checkout=Deshacer bloqueo undo_checkout_info=Si deshace el bloqueo de un documento, se eliminar\u00e1 la copia de trabajo asociada y se perder\u00e1n todos los cambios efectuados en ella desde el Bloqueo. cancel_editing_for=Cancelar edici\u00f3n para -cancel_editing_info=\u00bfEst\u00e1 seguro de que quiere cancelar la edici\u00f3n? Se perder\u00e1n todos los cambios en la copia de trabajo . +cancel_editing_info=\u00bfEst\u00e1 seguro de que quiere cancelar la edici\u00f3n? Se perder\u00e1n todos los cambios en la copia de trabajo. complete=complete working_copy_for=Copia de trabajo para working_copy_missing_info=La copia de trabajo ya no est\u00e1 disponible. Esto podr\u00eda ser consecuencia de la(s) regla(s) activa(s) aplicadas al espacio que usted ha bloqueado. @@ -742,11 +742,11 @@ view_content_properties=Ver propiedades de contenido preview=Previsualizar en plantilla custom_view=Vista personalizada view_links=Enlaces -not_inline_editable=Este documento no es editable en l\u00ednea +not_inline_editable=Este documento no es editable en l\u00ednea. allow_inline_editing=Permitir la edici\u00f3n en l\u00ednea -not_in_category=Este documento no est\u00e1 categorizado -not_in_category_space=Este espacio no est\u00e1 categorizado -not_versioned=Este documento no tiene hist\u00f3rico de versiones +not_in_category=Este documento no est\u00e1 categorizado. +not_in_category_space=Este espacio no est\u00e1 categorizado. +not_versioned=Este documento no tiene hist\u00f3rico de versiones. allow_categorization=Permitir categorizaci\u00f3n allow_versioning=Permitir versionado version_history=Hist\u00f3rico de versiones @@ -776,7 +776,7 @@ apply_dashboard_doc_info=Seleccione una plantilla a aplicar al documento como vi apply_rss_feed=Aplicar plantilla de canal RSS apply_rss_feed_info=Seleccione una plantilla a aplicar al espacio como canal RSS. apply_rss_feed_warning1=Este espacio debe ser visible para el usuario invitado para que el canal RSS sea p\u00fablicamente visible, puede invitar al usuario invitado mediante la -apply_rss_feed_warning2=vista . +apply_rss_feed_warning2=vista. rss_feed=Canal RSS rss_feed_link=Enlace canal RSS warn_cannot_view_target_details=No puede ver los detalles del documento de destino ya que carece de los permisos necesarios. @@ -794,7 +794,7 @@ export_error_info=Si se selecciona esta opci\u00f3n la exportaci\u00f3n se reali # Import messages import_info=Importa un paquete de contenidos de Alfresco o fichero en formato ZIP en el repositorio. -import_acp_description=Paquete de contenidos de Alfresco +import_acp_description=Paquete de contenidos de Alfresco import_zip_description=Paquete de ficheros locate_acp_upload=Localizar el fichero .acp o .zip a subir run_import_in_background=Ejecutar importaci\u00f3n en segundo plano @@ -802,7 +802,7 @@ import_error_info=Si se selecciona esta opci\u00f3n la importaci\u00f3n se reali # Edit Content messages edit_file_title=Editar el fichero -edit_file_prompt=Para editar el fichero, pulse en el enlace de abajo y si se le solicita seleccione Guardar. +edit_file_prompt=Para editar el fichero ''{0}'', pulse el enlace de abajo y, si se le solicita, seleccione Guardar. edit_download_complete=Cuando finalice la descarga, pulse en Cerrar. edit_using_web_form=Para editar este fichero mediante un formulario Web, pulse aqu\u00ed. checkout_file_title=Bloquear fichero @@ -824,13 +824,13 @@ http_request_params=Par\u00e1metros de la solicitud HTTP http_request_headers=T\u00edtulos de la solicitud HTTP repository_props=Propiedades de repositorio repository_patch_succeeded=\u00c9xito -repository_patch_failed=FRACASO +repository_patch_failed=FALLADO system_props=Propiedades de sistema hide_details=Ocultar detalles show_details=Mostrar detalles -user_search_info=Para encontrar un usuario b\u00fasquelo por su nombre, apellido y/o nombre de usuario. Como alternativa para ver a todos los usuarios pulse en 'Mostrar Todos', sin embargo, esto puede tomar alg\u00fan tiempo si hay una gran cantidad de usuarios en el sistema. +user_search_info=Para encontrar un usuario b\u00fasquelo por su nombre, apellido y/o nombre de usuario. Como alternativa para ver a todos los usuarios pulse en 'Mostrar todos', sin embargo, esto puede tomar alg\u00fan tiempo si hay una gran cantidad de usuarios en el sistema. group_search_info=Para encontrar un grupo b\u00fasquelo por su nombre de grupo. Como alternativa para ver a todos los grupos pulse en 'Mostrar todos', sin embargo, esto puede tomar alg\u00fan tiempo si hay una gran cantidad de grupos en el sistema. -user_change_homespace_info=Al seleccionar un nuevo espacio de inicio para un usuario no se van a quitar los permisos existentes en el espacio de inicio original. Es posible que desee utilizar el di\u00e1logo Administrar Usuarios de Espacio para modificar los permisos si ya no son necesa +user_change_homespace_info=Al seleccionar un nuevo espacio de inicio para un usuario no se van a quitar los permisos existentes en el espacio de inicio original. Es posible que desee utilizar el di\u00e1logo Administrar usuarios de espacios para modificar los permisos si ya no son necesarios en el espacio de inicio original. quota_totalusage=Total de uso (para esta b\u00fasqueda) quota_totalquota=Total de cuota (para esta b\u00fasqueda) caused_by=originado por: @@ -849,7 +849,7 @@ locate_content=Localizar el contenido a subir content_location=Ubicaci\u00f3n uploaded_content=Contenidos subidos click_upload=Pulse en subir -file_upload_success={0}' fue subido con \u00e9xito +file_upload_success=''{0}'' fue subido con \u00e9xito. modify_props_when_page_closes=Modificar todas las propiedades al cierre de esta p\u00e1gina. modify_props_when_wizard_closes=Modificar todas las propiedades al cierre de este asistente. modify_props_help_text=Las reglas aplicadas a este contenido pueden requerir que introduzca informaci\u00f3n adicional. @@ -857,7 +857,7 @@ content_finish_instruction=Para a\u00f1adir el contenido a este espacio pulse en create_content_title=Asistente Crear contenido create_content_desc=Este asistente le ayuda a crear un nuevo documento en un espacio. create_content_step1_title=Primer paso - Especifique el nombre y seleccione el tipo -create_content_step1_desc=Especifique el nombre y seleccione el tipo de contenido que desea crear +create_content_step1_desc=Especifique el nombre y seleccione el tipo de contenido que desea crear. create_content_step2_title=Segundo paso - Introducir contenidos create_content_step2_desc=Introduzca el contenido de su documento en el repositorio. enter_content=Introducir contenidos @@ -866,7 +866,7 @@ content=Contenido text_content=Contenido de texto plano html_content=Contenido HTML xml_content=Contenido XML -node_locked_dialog_closed=El nodo creado est\u00e1 bloqueado. Esto se debe probablemente a una regla configurada en este espacio. Dado que el nodo no puede editarse, el di\u00e1logo Modificar Propiedades de Contenidos se ha cerrado. +node_locked_dialog_closed=El nodo creado est\u00e1 bloqueado, esto se debe probablemente a una regla configurada en este espacio. Dado que el nodo no puede editarse, el di\u00e1logo Modificar Propiedades de Contenidos se ha cerrado. regenerate_renditions_title=Asistente Regenerar renderizaciones regenerate_renditions_desc=Este asistente le ayuda a regenerar renderizaciones. @@ -948,7 +948,7 @@ form_associated_with_form_instance_data_not_configured_for_web_project=El formul # Rule and Action Wizard messages run_action_title=Asistente Ejecutar acci\u00f3n -run_action_desc=Este asistente le ayuda a ejecutar una acci\u00f3n. +run_action_desc=Este asistente le ayuda a ejecutar una acci\u00f3n run_action_step1_title=Primer paso - Seleccionar acciones run_action_finish_instruction=Para ejecutar la acci\u00f3n, pulsar en Finalizar. Para revisar o cambiar sus selecciones, pulse en Volver. create_rule_title=Asistente Crear regla @@ -1020,9 +1020,9 @@ action_add_features=A\u00f1adir aspecto ''{0}'' action_remove_features=Quitar aspecto ''{0}'' action_specialise_type=El elemento est\u00e1 especializado en el tipo ''{0}'' action_simple_workflow={0} elemento a ''{1}'' si se emprende la acci\u00f3n ''{2}''. -action_link_category=Enlace a categor\u00eda "{0}" +action_link_category=Enlace a categor\u00eda ''{0}'' action_transform=Copia el contenido a ''{0}'' y transforma en ''{1}'' -action_transform_image=Copia la imagen a ''{0}'' y transforma en ''{1}''' mediante la opci\u00f3n ''{2}'' +action_transform_image=Copia la imagen a ''{0}'' y transforma en ''{1}'' mediante la opci\u00f3n ''{2}'' action_copy=Copiar a ''{0}'' action_copy_to_web_project_folder=Copiar a ''{0}'' en ''{1}'' action_move=Mover a ''{0}'' @@ -1079,13 +1079,13 @@ structure=Estructura structure_contents=Estructura y contenidos space_copy_note=Nota: Tambi\u00e9n se copiar\u00e1n todas las reglas de contenido para los espacios. space_type=Tipo de espacio -space_type_create=Seleccione el tipo de espacio que desea crear +space_type_create=Seleccione el tipo de espacio que desea crear. container=Espacio de carpeta container_desc=Un lugar para conservar y organizar documentos y otros espacios. forums_desc=Un lugar para discutir el contenido con otros usuarios. space_type_note=Nota: Si s\u00f3lo puede ver un tipo de espacio, los otros tipos de espacio pueden no estar activados. Consulte a su Administrador del Sistema para obtener m\u00e1s ayuda. template_space=Espacio de plantilla -select_template=Seleccione la plantilla que desea utilizar +select_template=Seleccione la plantilla que desea utilizar. # Create and Edit Website Wizard messages create_website=Crear proyecto Web @@ -1140,7 +1140,7 @@ website_select_workflows=Seleccionar flujos de trabajo website_selected_workflows=Flujos de trabajo seleccionados website_invite=A\u00f1adir usuarios create_website_step6_title=Sexto paso - A\u00f1adir usuarios -create_website_step6_desc=Seleccione usuarios y sus roles +create_website_step6_desc=Seleccione usuarios y sus roles. website_notify=Correo electr\u00f3nico a usuarios create_website_step7_title=S\u00e9ptimo paso - Enviar correo electr\u00f3nico a usuarios create_website_step7_desc=Notificar a los usuarios del sitio Web. @@ -1168,7 +1168,7 @@ invite_website_users=Invitar a usuarios de proyecto Web invite_webusers_title=Invitar a usuarios de proyecto Web invite_webusers_desc=Invitar a nuevos usuarios nuevos y crear espacios de prueba para el proyecto Web. invite_webusers_step1_title=Primer paso - Invitar a usuarios -invite_webusers_step1_desc=Seleccione usuarios y sus roles +invite_webusers_step1_desc=Seleccione usuarios y sus roles. invite_webusers_step2_title=Segundo paso - Notificar a los usuarios invite_webusers_step2_desc=Notificar a los usuarios invitados. invite_webusers_finish_instruction=Para cerrar el asistente y crear los espacios de prueba de usuario, pulse en Finalizar. Para revisar o cambiar sus selecciones, pulse en Volver. @@ -1176,7 +1176,7 @@ invite_webusers_finish_instruction=Para cerrar el asistente y crear los espacios # Delete Website Dialog messages delete_website=Eliminar proyecto Web delete_website_info=Para quitar este proyecto Web y todos sus espacios de prueba de usuario asociados, pulse en Aceptar. -delete_website_confirm=\u00bfEsta seguro de que quiere eliminar el proyecto Web ''{0}'' y todos los espacios de prueba de usuario asociados? +delete_website_confirm=\u00bfEsta seguro de que quiere eliminar el proyecto Web \"{0}\" y todos los espacios de prueba de usuario asociados? # Browse Website and Sandboxes messages title_browse_website=Examinar sitio Web @@ -1201,7 +1201,7 @@ sandbox_deploy=Desplegar sandbox_release_test_server=Servidor Publicaci\u00f3n import_website_content=Importaci\u00f3n masiva title_browse_sandbox=Examinar espacio de prueba -sandbox_info=Utilice esta vista para examinar los ficheros y las carpetas dentro del espacios de prueba para un proyecto Web. +sandbox_info=Utilice esta vista para examinar los ficheros y las carpetas dentro del espacio de prueba para un proyecto Web. sandbox_title=Sitio Web ''{0}'' espacio de prueba ''{1}'' sandbox_staging=Preparaci\u00f3n website_browse_folders=Examinar carpetas @@ -1219,7 +1219,7 @@ avm_node_deleted=Eliminado revert=Restablecer revert_success=Restablecidos con \u00e9xito: {1,choice,0#SHOULD_NOT_HAPPEN|1#item|1 ml_content_info=Informations sur le Contenu Multilingue edit_ml_container_properties=Editer les propri\u00e9t\u00e9s du contenu multilingue -edit_ml_container_description=Modifier l'information sur le contenu multilingue +edit_ml_container_description=Modifier l'information sur le contenu multilingue. error_locale_null=Une locale doit \u00eatre d\u00e9finie pour ce noeud. translator=Traducteur manage_multilingual_details_for=G\u00e8re le Contenu Multilingue pour @@ -52,7 +52,7 @@ error_new_edition_wizard=Impossible de cr\u00e9er une nouvelle \u00e9dition \u00 step1_choose_translation=El\u00e9ment de d\u00e9part step1_choose_translation_desc=Etape un, s\u00e9lectionner l'\u00e9l\u00e9ment de d\u00e9part de la liste des traductions new_edition_choose_translation_title=Etape Un - El\u00e9ment de d\u00e9marrage -new_edition_choose_translation_desc=Choisir le contenu du contenu dont vous voulez cr\u00e9er une nouvelle \u00e9dition. +new_edition_choose_translation_desc=Choisir le contenu de l'\u00e9l\u00e9ment dont vous voulez cr\u00e9er une nouvelle \u00e9dition. step2_edition_details=D\u00e9tail des Editions step1_edition_details_desc=Etape un, \u00e9diter les d\u00e9tails de la nouvelle \u00e9dition step2_edition_details_desc=Etape deux, editer les d\u00e9tails de la nouvelle \u00e9dition @@ -73,10 +73,10 @@ translation_title=Titre de la traduction translation_language=Langue de traduction translation_author=Auteur de la traduction new_edition_details=D\u00e9tails de la nouvelle \u00e9dition -create_new_edition_using=Cr\u00e9er une nouvelle \u00e9dition en utilisant +create_new_edition_using=Cr\u00e9er une nouvelle \u00e9dition en utilisant translations_checked_out_error=Impossible de cr\u00e9er une nouvelle \u00e9dition car les traductions suivantes sont copi\u00e9es dans des copies de travail. available_translations=Traductions disponibles -marker_tooltip=Changez vos pr\u00e9f\u00e9rences de langue de contenu pour voir ou \u00e9diter le texte dans des langues diff\u00e9rentes +marker_tooltip=Changez vos pr\u00e9f\u00e9rences de langue de contenu pour voir ou \u00e9diter le texte dans des langues diff\u00e9rentes. checked_out_by=Copie extraite par doc_name=Nom de document title_mlcontainer_details=D\u00e9tails de document multilingue @@ -84,10 +84,10 @@ title_mlcontainer_details=D\u00e9tails de document multilingue # Versioning of the metadata versioned_details_of=D\u00e9tails de version de -versioned_documentdetails_description=Voir les d\u00e9tails du contenu versionn\u00e9 +versioned_documentdetails_description=Voir les d\u00e9tails du contenu versionn\u00e9. title_versioned_doc_details=D\u00e9tails du document versionn\u00e9 view_versioned_properties=Propri\u00e9t\u00e9s d'un contenu versionn\u00e9 -view_versioned_properties_description=Voir les propri\u00e9t\u00e9s d'un contenu versionn\u00e9 +view_versioned_properties_description=Voir les propri\u00e9t\u00e9s d'un contenu versionn\u00e9. # Date Pattern date_pattern=d MMMM yyyy @@ -113,23 +113,23 @@ editfile_description=Editer le contenu du fichier. editfileinline_description=Editer le contenu du document puis cliquez sur 'Enregistrer'. createfile_description=Saisir un nouveau contenu. manageusers_description=G\u00e9rer les utilisateurs de l'entrep\u00f4t. -manage_invited_users_description=G\u00e9rer les droits d'acc\u00e8s que vous accordez aux utilisateurs qui acc\u00e8dent \u00e0 votre Espace +manage_invited_users_description=G\u00e9rer les droits d'acc\u00e8s que vous accordez aux utilisateurs qui acc\u00e8dent \u00e0 votre Espace. manage_content_users_description=G\u00e9rer les permissions que vous accordez aux utilisateurs qui acc\u00e8dent votre contenu. -modify_user_roles_description=Modifier les droits d'acc\u00e8s accord\u00e9s \u00e0 un utilisateur qui acc\u00e8de \u00e0 votre Espace -modify_content_user_roles_description=Modifier les droits d'acc\u00e8s accord\u00e9s \u00e0 un utilisateur qui acc\u00e8de \u00e0 votre contenu +modify_user_roles_description=Modifier les droits d'acc\u00e8s accord\u00e9s \u00e0 un utilisateur qui acc\u00e8de \u00e0 votre Espace. +modify_content_user_roles_description=Modifier les droits d'acc\u00e8s accord\u00e9s \u00e0 un utilisateur qui acc\u00e8de \u00e0 votre contenu. advancedsearch_description=Effectuer une recherche plus d\u00e9taill\u00e9e dans l'entrep\u00f4t. edit_content_description=Modifier les propri\u00e9t\u00e9s du contenu puis cliquez sur OK. -view_content_description=Visualiser les propri\u00e9t\u00e9s du contenu +view_content_description=Visualiser les propri\u00e9t\u00e9s du contenu. editcategory_description=Affecter une ou plusieurs cat\u00e9gories au document puis cliquer sur OK. editcategory_space_description=Affecter une ou plusieurs cat\u00e9gories \u00e0 l'Espace puis cliquer sur OK. editworkflow_description=Modifier les propri\u00e9t\u00e9s du workflow de base puis cliquez sur OK. editspace_description=Modifier les propri\u00e9t\u00e9s de l'Espace puis cliquez sur OK. editlink_description=Modifier les propri\u00e9t\u00e9s de l'objet lien puis cliquez sur OK. -create_space_description=Entrez les informations sur le nouvel Espace, puis cliquez sur 'Cr\u00e9er un Espace'. +create_space_description=Entrez les informations sur le nouvel Espace, puis cliquez sur Cr\u00e9er un Espace. space_rules_description=Cette vue affiche toutes les r\u00e8gles appliqu\u00e9es au contenu de cet Espace. warning_inline=Ceci est recommand\u00e9 uniquement pour les documents HTML. categories_description=Cette vue vous permet de parcourir et de modifier la hi\u00e9rarchie des cat\u00e9gories. -new_category_description=D\u00e9crire la nouvelle cat\u00e9gorie puis cliquez sur 'Nouvelle cat\u00e9gorie'. +new_category_description=D\u00e9crire la nouvelle cat\u00e9gorie puis cliquez sur Nouvelle cat\u00e9gorie. status_message_default=Aucun message. no_icons_found=Aucun ic\u00f4ne trouv\u00e9 required_field=Champs Obligatoire @@ -207,7 +207,7 @@ has_following_categories_space=Les cat\u00e9gories suivantes sont d\u00e9finies moved=d\u00e9plac\u00e9 copied=copi\u00e9 clipboard=Presse-papiers -node_added_clipboard=Un \u00e9l\u00e9ment a \u00e9t\u00e9 ajout\u00e9 au presse-papier Il y a actuellement {0} \u00e9l\u00e9ment(s) dans le presse-papier Pour coller tous les \u00e9l\u00e9ments collect\u00e9s, se placer dans l''Espace d\u00e9sir\u00e9 puis dans le menu ''Actions Suppl\u00e9mentaires'' s\u00e9lectionner ''Tout coller''. +node_added_clipboard=Un \u00e9l\u00e9ment a \u00e9t\u00e9 ajout\u00e9 au presse-papier. Il y a actuellement {0} \u00e9l\u00e9ment(s) dans le presse-papier. Pour coller tous les \u00e9l\u00e9ments collect\u00e9s, se placer dans l''Espace d\u00e9sir\u00e9 puis dans le menu ''Actions Suppl\u00e9mentaires'' s\u00e9lectionner ''Tout coller''. recent_spaces=Espaces r\u00e9cents shortcuts=Raccourcis company_home=Espace racine @@ -267,11 +267,11 @@ other_action=Lancer une action information=Information move=D\u00e9placer type=Type -tag=\u00c9tiquette +tag=Tag encoding=Encodage aspect=Aspect -workflow=Flux de travail -workflows=Flux de travail +workflow=Workflow +workflows=Workflow rules=R\u00e8gles system_error=Erreur syst\u00e8me login=Connexion @@ -280,7 +280,7 @@ template=Mod\u00e8le rss_template=Mod\u00e8le RSS select_button=S\u00e9lectionnez... select_items=S\u00e9lectionner les \u00e9l\u00e9ments -select_an_item=S\u00e9lectionnez un \u00e9l\u00e9ment... +select_an_item=S\u00e9lectionnez un \u00e9l\u00e9ment selected_items=El\u00e9ments s\u00e9lectionn\u00e9s add_to_list_button=Choisir et ajouter none=Aucun @@ -294,7 +294,7 @@ security=S\u00e9curit\u00e9 all_formats=Tous les formats rules_count=Nombre de r\u00e8gles appliqu\u00e9es \u00e0 cet Espace working_copy_document=Copie de travail -copy_of=Copie de +copy_of=Copie de link_to=Lier \u00e0 icon=Ic\u00f4ne lock=Verrouillage @@ -304,14 +304,14 @@ raise_issue=Signaler un probl\u00e8me click_to_set_date=Cliquer pour d\u00e9finir une date today=Aujourd'hui reset=Remise \u00e0 z\u00e9ro -label=\u00c9tiquette +label=Tag edit_doc_offline=Editer hors-ligne edit_doc_online=Editer en ligne upload_new_version=Ins\u00e9rer une nouvelle version checkin_this_file=Archiver ce fichier cannot_delete_node_has_working_copy=Impossible de supprimer le fichier \"{0}\" car une copie de travail y est associ\u00e9e. unknown=Inconnu -picker_search_min=Entrez au moins {0} caract\u00e8res pour lancer une recherche +picker_search_min=Entrez au moins {0} caract\u00e8res pour lancer une recherche. locked=Verrouill\u00e9 no_task_resources=Pas de ressource @@ -388,7 +388,7 @@ reapply_rules=Appliquer les r\u00e8gles \u00e0 nouveau reapply_rules_to_children=R\u00e9appliquer les r\u00e8gles sur l'espace et ses fils reapply_rules_success=Les r\u00e8gles ont \u00e9t\u00e9 appliqu\u00e9es \u00e0 nouveau avec succ\u00e8s. ignore_inherited_rules=Ignorer les r\u00e8gles h\u00e9rit\u00e9es -include_inherited_rules=Prendre en compte les r\u00e8gles h\u00e9rit\u00e9es +include_inherited_rules=Inclure les r\u00e8gles h\u00e9rit\u00e9es inherited_rules_being_ignored=Les r\u00e8gles h\u00e9rit\u00e9es sont ignor\u00e9es. manage_rules=G\u00e9rer les r\u00e8gles de contenu manage_users=G\u00e9rer les utilisateurs @@ -428,12 +428,12 @@ view_content=Afficher le contenu # Login page message login_details=Entrez les informations de connexion -login_err_password_length=La longueur du mot de passe doit \u00eatre comprise entre 5 et 12 caract\u00e8res. +login_err_password_length=La longueur du mot de passe doit \u00eatre comprise entre {0} et {1} caract\u00e8res. login_err_password_chars=Seuls les caract\u00e8res et les chiffres sont autoris\u00e9s dans le mot de passe. -login_err_username_length=La longueur du nom d'utilisateur doit \u00eatre comprise entre 5 et 12 caract\u00e8res. +login_err_username_length=La longueur du nom d''utilisateur doit \u00eatre comprise entre {0} et {1} caract\u00e8res. login_err_username_chars=Seuls les caract\u00e8res et les chiffres sont autoris\u00e9s dans le nom d'utilisateur. login_err_permissions=L'utilisateur ne dispose pas d'une permission suffisante pour acc\u00e9der \u00e0 cet \u00e9l\u00e9ment. Veuillez vous connecter sous un autre nom d'utilisateur. -loggedout_details=Vous avez \u00e9t\u00e9 d\u00e9connect\u00e9 d'Alfresco +loggedout_details=Vous avez \u00e9t\u00e9 d\u00e9connect\u00e9 d'Alfresco. relogin=Re-connexion \u00e0 Alfresco no_access=Acc\u00e9s \u00e0 Alfresco refus\u00e9. no_cookies=Les cookies doivent \u00eatre accept\u00e9s par votre navigateur pour qu'Alfresco puisse fonctionner correctement. @@ -441,7 +441,7 @@ user_err_user_name=L''identifiant d''utilisateur ne peut pas comporter les carac # Browse list messages no_space_items=Aucun \u00e9l\u00e9ment \u00e0 afficher. Cliquez sur l''action ''{0}'' pour cr\u00e9er un espace. -no_content_items=Aucun \u00e9l\u00e9ment \u00e0 afficher. Pour ajouter un document existant, cliquez sur "Ajouter un contenu". Pour cr\u00e9er un fichier Texte ou HTML, cliquez sur ''{1}''. +no_content_items=Aucun \u00e9l\u00e9ment \u00e0 afficher. Pour ajouter un document existant, cliquez sur l''action ''{0}''. Pour cr\u00e9er un fichier Texte ou HTML, cliquez sur ''{1}''. # Advanced Search messages look_in=Regarder dans l'emplacement @@ -461,8 +461,8 @@ additional_options=Options additionnelles save_new_search=Enregistrer une nouvelle recherche save_edit_search=Enregistrer la recherche modifi\u00e9e saved_searches=Vos options de recherche sauvegard\u00e9es -title_save_search=Enregistrer la Recherche -save_search_description=Enregistrer une requ\u00e8te de recherche pour un usage ult\u00e9rieur +title_save_search=Enregistrer la requ\u00eate +save_search_description=Enregistrer une requ\u00eate de recherche pour un usage ult\u00e9rieur search_props=Enregistrer les propri\u00e9t\u00e9s de la recherche select_saved_search=S\u00e9lectionner une recherche sauvegard\u00e9e... saved_search_warning=Cette op\u00e9ration tentera d''\u00e9craser la recherche sauvegard\u00e9e ''{0}'' @@ -480,17 +480,17 @@ browse_posts=Parcourir les messages forums_info=Cette vue vous permet de parcourir les Espaces et les forums. forum_info=Cette vue vous permet de parcourir les discussions dans ce forum. topic_info=Cette vue vous permet de parcourir les messages dans cette discussion. -no_forums=Pas de forum ou espace de forum \u00e0 afficher. Cliquer sur 'Cr\u00e9er un Espace forum' pour cr\u00e9er un Espace forum ou sur 'Cr\u00e9er un forum' pour cr\u00e9er un forum. -no_topics=Pas de discussions \u00e0 afficher. Cliquer sur 'Cr\u00e9er une discussion' pour cr\u00e9er une discussion. -no_posts=Aucun message \u00e0 afficher. Cliquer sur 'Cr\u00e9er une message' pour cr\u00e9er un message. +no_forums=Pas de forum ou espace de forum \u00e0 afficher. Cliquer sur ''Cr\u00e9er un Espace forum'' pour cr\u00e9er un Espace forum ou sur ''Cr\u00e9er un forum'' pour cr\u00e9er un forum. +no_topics=Pas de discussions \u00e0 afficher. Cliquer sur ''Cr\u00e9er une discussion'' pour cr\u00e9er une discussion. +no_posts=Aucun message \u00e0 afficher. Cliquer sur ''Cr\u00e9er un message'' pour cr\u00e9er un message. topic=Discussion topics=Discussions post=Message posted=Publi\u00e9 create_forums_description=Entrez les informations sur le nouvel Espace forum puis cliquez sur 'Cr\u00e9er un Espace forum'. create_forum_description=Entrez les informations sur le nouveau forum puis cliquez sur 'Cr\u00e9er un forum'. -create_topic_description=Entrez les informations sur la nouvelle discussion puis cliquez sur 'Cr\u00e9er une discussion'. -create_post_description=Entrer le contenu du message puis cliquez sur 'Publier'. +create_topic_description=Entrez les informations sur la nouvelle discussion puis cliquez sur Cr\u00e9er une discussion. +create_post_description=Entrer le contenu du message puis cliquez sur Publier. create_reply_description=Entrer le message de r\u00e9ponse puis cliquez sur 'R\u00e9pondre'. modify_forums_properties=Modifier les propri\u00e9t\u00e9s de l'Espace forum forums_props=Propri\u00e9t\u00e9s de l'Espace forum @@ -501,7 +501,7 @@ modify_topic_properties=Modifier les propri\u00e9t\u00e9s de la discussion create_forums_finish=Pour cr\u00e9er l'Espace forum, cliquez sur 'Cr\u00e9er un Espace forum'. create_forum_finish=Pour cr\u00e9er le forum, cliquez sur 'Cr\u00e9er un forum'. create_topic_finish=Pour cr\u00e9er la discussion, cliquez sur 'Cr\u00e9er une discussion'. -create_post_finish=Pour cr\u00e9er le message, cliquez sur 'Publier'. +create_post_finish=Pour cr\u00e9er le message, cliquez sur Publier. create_reply_finish=Pour cr\u00e9er la r\u00e9ponse, cliquez sur 'R\u00e9pondre'. forums_details_description=Visualiser les d\u00e9tails de l'Espace forum. forum_details_description=Visualiser les d\u00e9tails du forum. @@ -514,7 +514,7 @@ edit_forums_description=Modifier les propri\u00e9t\u00e9s de l'Espace forum puis edit_forum_description=Modifier les propri\u00e9t\u00e9s du forum puis cliquez sur OK. edit_topic_description=Modifier les propri\u00e9t\u00e9s de la discussion puis cliquez sur OK. edit_post_description=Modifier le message puis cliquez sur OK. -edit_post_finish=Pour enregistrer le message, cliquez sur 'Publier'. +edit_post_finish=Pour enregistrer le message, cliquez sur Publier. start_discussion=D\u00e9marrer une discussion discuss=Voir les Discussions discussion_for=Discussion {0} @@ -523,7 +523,7 @@ discussion_for=Discussion {0} navigator=Navigateur navigator_desc=Permet une navigation en arbre sur l'entrep\u00f4t shelf=Panneau lat\u00e9ral -shelf_desc=Emplacement qui inclut le presse-papiers, les Espace r\u00e9cents et les raccourcis. +shelf_desc=Emplacement qui inclut le presse-papiers, les Espace r\u00e9cents et les raccourcis reset_navigator=Rafra\u00eechir navigator_node_deleted=L'espace s\u00e9lectionn\u00e9 n'est pr\u00e9sent dans l'entrep\u00f4t, merci de rafra\u00eechir la vue avant de continuer. @@ -531,7 +531,7 @@ navigator_node_deleted=L'espace s\u00e9lectionn\u00e9 n'est pr\u00e9sent dans l' steps=Etapes summary=R\u00e9sum\u00e9 summary_desc=Les informations saisies sont affich\u00e9es ci-dessous. -default_instruction=Cliquez sur 'Suivant' pour continuer. +default_instruction=Cliquez sur Suivant pour continuer. next_button=Suivant back_button=Pr\u00e9c\u00e9dent finish_button=Terminer @@ -603,17 +603,17 @@ view_permissions=Visualiser les droits d'acc\u00e8s set_permissions=Appliquer des droits d'acc\u00e8s change_permissions=Changer les droits d'acc\u00e8s set_permissions_title=Appliquer des droits d''acc\u00e8s pour ''{0}'' -set_permissions_subtitle=Cette fen\u00eatre vous permet de donner des droits d'acc\u00e8s aux utilisateurs qui acc\u00e8dent \u00e0 votre Espace ou \u00e0 vos fichiers. -select_usersgroups_perms=Selectionnez les utilisateurs/groupes et leur(s) r\u00f4le(s) -selected_usersgroups_perms=Selectionnez les utilisateurs/groupes et leur(s) r\u00f4le(s) -remove_permissions_title=Supprimer l'utilisateur ''{0}'' -remove_permissions_subtitle=Pour supprimer les droits d'acc\u00e8s d'un utilisateur, cliquer sur 'Oui'. +set_permissions_subtitle=Cette fen\u00eatre vous permet de donner des droits d'acc\u00e8s aux utilisateurs qui acc\u00e8dent \u00e0 votre Espace ou \u00e0 vos fichiers +select_usersgroups_perms=S\u00e9lectionnez les utilisateurs/groupes et leur(s) r\u00f4le(s) +selected_usersgroups_perms=S\u00e9lectionnez les utilisateurs/groupes et leur(s) r\u00f4le(s) +remove_permissions_title=Supprimer l''utilisateur ''{0}'' +remove_permissions_subtitle=Pour supprimer les droits d'acc\u00e8s d'un utilisateur, cliquer sur Oui. remove_permissions=Etes-vous certain de vouloir supprimer les droits d'acc\u00e8s pour cet utilisateur ? edit_permissions_title=Modifier les droits d''acc\u00e8s pour ''{0}'' view_permissions_title=Visualiser les droits d''acc\u00e8s pour ''{0}'' edit_permissions_subtitle=Modifier les droits d'acc\u00e8s accord\u00e9s \u00e0 un utilisateur qui acc\u00e8de \u00e0 votre Espace ou \u00e0 vos fichiers. view_permissions_subtitle=Les droits d'acc\u00e8s accord\u00e9s \u00e0 un utilisateur qui acc\u00e8de \u00e0 votre Espace ou \u00e0 vos fichiers. -select_perm=Choisir les droits d'acc\u00e8s +select_perm=S\u00e9lectionner les droits d'acc\u00e8s selected_perm=Droits d'acc\u00e8s selectionn\u00e9s change_user_perms=Changer les droits d'acc\u00e8s utilisateur @@ -643,7 +643,7 @@ automatic_text=Texte automatique invited_to=Vous avez \u00e9t\u00e9 invit\u00e9 \u00e0 ''{0}'' par {1}. invite_role=Vous disposerez du r\u00f4le suivant\u00a0: {0} invite_finish_instruction=Pour terminer cet assistant et appliquer vos modifications, cliquez sur Terminer. Pour revoir ou changer vos choix, cliquez sur Retour. -remove_invited_user_info=Pour supprimer un utilisateur invit\u00e9 dans cet Espace, cliquer sur 'Oui'. +remove_invited_user_info=Pour supprimer un utilisateur invit\u00e9 dans cet Espace, cliquer sur Oui. add_role=Ajouter un r\u00f4le space_owner=L''utilisateur ''{0}'' est actuellement le propri\u00e9taire de cet Espace. users_and_groups=Utilisateurs et groupes @@ -656,10 +656,10 @@ max_users_returned=La recherche a \u00e9t\u00e9 limit\u00e9e aux {0} premiers r\ invite_content_title=Assistant d'invitation d'utilisateur de contenu invite_content_desc=Cet assistant vous aide \u00e0 donner acc\u00e8s \u00e0 d'autres utilisateurs \u00e0 votre contenu. invite_content_step1_desc=S\u00e9lectionnez les utilisateurs et leurs r\u00f4les sur ce contenu. -remove_content_user_info=Pour retirer un utilisateur de ce contenu, cliquer sur 'Oui'. +remove_content_user_info=Pour retirer un utilisateur de ce contenu, cliquer sur Oui. content_owner=L''utilisateur ''{0}'' est le propri\u00e9taire actuel de ce contenu. -# AVM Compare +# AVM Compare snapshot_compare_to_current=Comparer avec le clich\u00e9 courante snapshot_compare_to_current_description=Voir la liste des modifications entre le clich\u00e9 ''{0}'' et le clich\u00e9 courant snapshot_compare_to_previous=Comparer avec le clich\u00e9 pr\u00e9c\u00e9dent @@ -676,7 +676,7 @@ avm_compare_same=M\u00eame error_version_validate=Le num\u00e9ro de version est invalide snapshot_name=Nom snapshot_path=Chemin -snapshot_status=Etat +snapshot_status=Statut increment_button_hint=Version valide suivante decrement_button_hint=Version valide pr\u00e9c\u00e9dente refresh_button_hint=Rafra\u00eechir @@ -720,7 +720,7 @@ store_space_selected=Dans l'Espace s\u00e9lectionn\u00e9 check_out_of=Extraire une copie de travail de copy_file_checkedout=Une copie du fichier ''{0}'' vient d''\u00eatre extraite pour que vous puissiez l''\u00e9diter. edit_workingcopy_title=Editer la copie de travail maintenant -edit_workingcopy_info=Pour \u00e9diter la copie de travail du fichier, cliquez sur le lien ci-dessous, et si cela est demand\u00e9, cliquez sur 'Enregistrer'. +edit_workingcopy_info=Pour \u00e9diter la copie de travail du fichier, cliquez sur le lien ci-dessous, et si cela est demand\u00e9, cliquez sur Enregistrer. download_complete=Lorsque le t\u00e9l\u00e9chargement est termin\u00e9, cliquez sur OK. undo_checkout_for=Annuler la copie de travail pour undo_checkout=Annuler la copie de travail @@ -729,7 +729,7 @@ cancel_editing_for=Annuler l'\u00e9dition pour cancel_editing_info=Etes-vous s\u00fbr de vouloir annuler l'\u00e9dition ? Toutes les modifications \u00e0 la copie de travail seront perdues. complete=fini working_copy_for=Copie de travail pour -working_copy_missing_info=La Copie de Travail n'est plus accessible Cela peut \u00eatre d\u00fb \u00e0 une ou des r\u00e8gles actives sur l'Espace dans lequel vous avez extrait une copie de travail. +working_copy_missing_info=La Copie de Travail n'est plus accessible. Cela peut \u00eatre d\u00fb \u00e0 une ou des r\u00e8gles actives sur l'Espace dans lequel vous avez extrait une copie de travail. # Document and Space details messages details_of=D\u00e9tails de @@ -761,28 +761,28 @@ no_other_properties=Il n'y a pas d'autres propri\u00e9t\u00e9s \u00e0 afficher p modify_categories_of=Modifier les cat\u00e9gories de space_props=Propri\u00e9t\u00e9s de l'Espace choose_space_icon=Choisir un ic\u00f4ne pour l'Espace -create_space_finish=Pour cr\u00e9er votre Espace cliquez sur 'Cr\u00e9er un Espace'. +create_space_finish=Pour cr\u00e9er votre Espace cliquez sur Cr\u00e9er un Espace. select_category=S\u00e9lectionnez une cat\u00e9gorie selected_categories=Cat\u00e9gories s\u00e9lectionn\u00e9es no_selected_categories=Aucune cat\u00e9gorie s\u00e9lectionn\u00e9e. success_ownership=Appropriation de l'objet r\u00e9ussie. success_unlock=Document d\u00e9verrouill\u00e9 avec succ\u00e8s. inherit_permissions=H\u00e9riter des permissions de l'Espace parent -success_inherit_permissions=Succ\u00e8s du changement de l'h\u00e9ritage des Permissions du Parent \u00e0 'Oui' -success_not_inherit_permissions=Succ\u00e8s du changement de l'h\u00e9ritage des Permissions du Parent \u00e0 'Non' +success_inherit_permissions=Succ\u00e8s du changement de l'h\u00e9ritage des Permissions du Parent \u00e0 Oui +success_not_inherit_permissions=Succ\u00e8s du changement de l'h\u00e9ritage des Permissions du Parent \u00e0 Non apply_template=Appliquer le mod\u00e8le -apply_dashboard_info=Choisir le mod\u00e8le \u00e0 appliquer \u00e0 l'Espace pour cr\u00e9er une vue personnalis\u00e9e. -apply_dashboard_doc_info=Choisir le mod\u00e8le \u00e0 appliquer \u00e0 l'\u00e9l\u00e9ment pour cr\u00e9er une vue personnalis\u00e9e. +apply_dashboard_info=S\u00e9lectionner le mod\u00e8le \u00e0 appliquer \u00e0 l'Espace pour cr\u00e9er une vue personnalis\u00e9e. +apply_dashboard_doc_info=S\u00e9lectionner le mod\u00e8le \u00e0 appliquer \u00e0 l'\u00e9l\u00e9ment pour cr\u00e9er une vue personnalis\u00e9e. apply_rss_feed=Applquer le mod\u00e8le de flux RSS -apply_rss_feed_info=S\u00e9lectionne un mod\u00e8le de flux RSS \u00e0 appliquer \u00e0 l'Espace -apply_rss_feed_warning1=Cet Espace doit \u00eatre visible \u00e0 l'utilisateur ''Lecteur'' pour que le flux RSS soit publiquement visible, vous pouvez inviter l'utilisateur ''Lecteur'' en utilisant la +apply_rss_feed_info=S\u00e9lectionne un mod\u00e8le de flux RSS \u00e0 appliquer \u00e0 l'Espace. +apply_rss_feed_warning1=Cet Espace doit \u00eatre visible \u00e0 l'utilisateur 'Lecteur' pour que le flux RSS soit publiquement visible, vous pouvez inviter l'utilisateur 'Lecteur' en utilisant la apply_rss_feed_warning2=vue. rss_feed=Flux RSS rss_feed_link=Lien du Flux RSS warn_cannot_view_target_details=Il est impossible de voir les d\u00e9tails du document cible car vous ne poss\u00e9dez pas les droits d'acc\u00e8s requis. # Export messages -export_info=Exporter les m\u00e9ta-donn\u00e9es et les contenus de cet ou de tous les Espaces. +export_info=Exporter les m\u00e9tadonn\u00e9es et les contenus de cet ou de tous les Espaces. export_from=Exporter \u00e0 partir de package_name=Nom du Paquetage all_spaces_root=Entrep\u00f4t complet @@ -803,7 +803,7 @@ import_error_info=Si cette option est s\u00e9lectionn\u00e9e, l'import sera ex\u # Edit Content messages edit_file_title=Editer le fichier edit_file_prompt=Pour \u00e9diter le fichier ''{0}'', cliquez sur le lien ci-dessous. Selon votre navigateur, vous pouvez effectuer un clic droit sur le lien et s\u00e9lectionner Enregistrer la cible sous. -edit_download_complete=Lorsque le t\u00e9l\u00e9chargement est termin\u00e9, cliquez sur 'Fermer'. +edit_download_complete=Lorsque le t\u00e9l\u00e9chargement est termin\u00e9, cliquez sur Fermer. edit_using_web_form=Pour \u00e9diter ce fichier en utilisant un formulaire web, cliquez ici. checkout_file_title=Extraire une copie de travail checkout_you_may_want=Vous pourriez extraire une copie de travail de ce fichier pour le verrouiller et emp\u00eacher d'autres utilisateurs de l'\u00e9diter. @@ -812,7 +812,7 @@ checkout_hint2=Lorsque vous avez fini d'\u00e9diter la copie de travail, vous de checkout_want_to=pour emp\u00eacher les autres utilisateurs d'\u00e9craser vos changements. checkout_warn=Note\u00a0: Vous perdrez toutes les modifications d\u00e9j\u00e0 effectu\u00e9es sur ce document. local_copy_location=Emplacement de la copie locale -locate_content_upload=S\u00e9lectionner et transf\u00e9rer votre document dans l'entrep\u00f4t. +locate_content_upload=S\u00e9lectionner et transf\u00e9rer votre document dans l'entrep\u00f4t # System Information and admin page messages system_info=Informations syst\u00e8me @@ -828,8 +828,8 @@ repository_patch_failed=Echou\u00e9 system_props=Propri\u00e9t\u00e9s syst\u00e8me hide_details=Cacher les D\u00e9tails show_details=Montrer les D\u00e9tails -user_search_info=Pour trouver un utilisateur, le chercher en utilisant son nom, son pr\u00e9nom ou son nom d'utilisateur. Egalement, pour voir tous les utilisateurs, cliquer 'Tout montrer', cependant, cette action pourra prendre un certain temps s'il y a beaucoup d'utilisateurs sur le syst\u00e8me. -group_search_info=Vous pouvez retrouver un groupe \u00e0 partir du nom du groupe. Pour afficher tous les groupes, cliquer sur 'Afficher tout'. Cette op\u00e9ration peut prendre du temps si le syst\u00e8me compte un grand nombre de groupes. +user_search_info=Pour trouver un utilisateur, le chercher en utilisant son nom, son pr\u00e9nom ou son nom d'utilisateur. Egalement, pour voir tous les utilisateurs, cliquer Tout montrer, cependant, cette action pourra prendre un certain temps s'il y a beaucoup d'utilisateurs sur le syst\u00e8me. +group_search_info=Vous pouvez retrouver un groupe \u00e0 partir du nom du groupe. Pour afficher tous les groupes, cliquer sur Afficher tout. Cette op\u00e9ration peut prendre du temps si le syst\u00e8me compte un grand nombre de groupes. user_change_homespace_info=S\u00e9lectionner un nouvel Espace d'accueil pour un utilisateur ne supprimera pas les permissions sur l'Espace initial. Vous pouvez utiliser l'assistant pour G\u00e9rer les utilisateurs invit\u00e9s pour modifier les permissions si elles ne sont plus n\u00e9cessaires sur l'Espace original. quota_totalusage=Usage total (pour cette recherche) quota_totalquota=Quota total (pour cette recherche) @@ -848,12 +848,12 @@ inline_editable=Supporte l'\u00e9dition en ligne locate_content=Identifier le contenu \u00e0 importer content_location=Emplacement uploaded_content=Contenu import\u00e9 -click_upload=Cliquer sur 'Importer dans l'entrep\u00f4t' +click_upload=Cliquer sur Importer dans l'entrep\u00f4t file_upload_success=''{0}'' a \u00e9t\u00e9 import\u00e9 avec succ\u00e8s. modify_props_when_page_closes=Modifier toutes les propri\u00e9t\u00e9s lorsque cette page est ferm\u00e9e. modify_props_when_wizard_closes=Modifier toutes les propri\u00e9t\u00e9s lorsque cet assistant est ferm\u00e9. modify_props_help_text=Les r\u00e8gles appliqu\u00e9es \u00e0 ce contenu pourront n\u00e9cessiter que vous entriez des informations suppl\u00e9mentaires. -content_finish_instruction=Pour ajouter le contenu dans cet Espace, cliquez sur 'Terminer'. Pour revoir ou changer vos choix, cliquez sur Retour. +content_finish_instruction=Pour ajouter le contenu dans cet Espace, cliquez sur Terminer. Pour revoir ou changer vos choix, cliquez sur Retour. create_content_title=Assistant de cr\u00e9ation de contenu create_content_desc=Cet assistant vous aide \u00e0 cr\u00e9er un nouveau contenu dans un Espace. create_content_step1_title=Etape un - S\u00e9lectionner le nom et le type @@ -866,7 +866,7 @@ content=Contenu text_content=Contenu Plein Texte html_content=Contenu HTML xml_content=Contenu XML -node_locked_dialog_closed=Le n\u009cud est verrouill\u00e9, sans doute en raison d'une r\u00e8gle configur\u00e9e dans cet espace. Le n\u009cud ne pouvant pas \u00eatre modifi\u00e9, la bo\u00eete de dialogue Modifier les propri\u00e9t\u00e9s du contenu a \u00e9t\u00e9 ferm\u00e9e. +node_locked_dialog_closed=Le n\u0153ud est verrouill\u00e9, sans doute en raison d'une r\u00e8gle configur\u00e9e dans cet espace. Le n\u0153ud ne pouvant pas \u00eatre modifi\u00e9, la bo\u00eete de dialogue Modifier les propri\u00e9t\u00e9s du contenu a \u00e9t\u00e9 ferm\u00e9e. regenerate_renditions_title=Assistant de Reg\u00e9n\u00e9ration des Rendus regenerate_renditions_desc=Cet assistant vous aide \u00e0 reg\u00e9n\u00e9rer les rendus. @@ -879,7 +879,7 @@ regenerate_renditions_select_renditions_select_regenerate_scope=S\u00e9lectionne regenerate_renditions_select_renditions_scope_all=Choisissez cette option pour reg\u00e9n\u00e9rer tous les rendus de tous les contenu g\u00e9n\u00e9r\u00e9s par les formulaires du projet web s\u00e9lectionn\u00e9. regenerate_renditions_select_renditions_scope_form=Choisissez cette option pour reg\u00e9n\u00e9rer tous les rendus des contenus g\u00e9n\u00e9r\u00e9s par un ensemble particulier de formulaires configur\u00e9s sur le projet web s\u00e9lectionn\u00e9. regenerate_renditions_select_renditions_scope_rendering_engine_templates=Choisissez cette option pour reg\u00e9n\u00e9rer les rendus particuliers g\u00e9n\u00e9r\u00e9s par un ensemble particulier de moteurs de rendu. -regenerate_renditions_select_renditions_instruction=Pour reg\u00e9n\u00e9rer un rendu bas\u00e9 sur votre s\u00e9lection, cliquez sur Prochain. +regenerate_renditions_select_renditions_instruction=Pour reg\u00e9n\u00e9rer un rendu bas\u00e9 sur votre s\u00e9lection, cliquez sur Suivant. regenerate_renditions_summary_desc={0} {0,choice,0#rendus|1#rendu|1 -create_form_form_details_associated_web_projects=Ce formulaire est actuellement configur\u00e9 pour les projets web suivants : +create_form_form_details_associated_web_projects=Ce formulaire est actuellement configur\u00e9 pour les projets web suivants\u00a0: create_form_configure_rendering_engine_templates_title=Configurer les Mod\u00e8les create_form_configure_rendering_engine_templates_step_title=Etape deux - Configurer les mod\u00e8les -create_form_configure_rendering_engine_templates_desc=Entrez les informations sur le mod\u00e8le d''affichage que vous voulez utiliser pour le formulaire ''{0}''. +create_form_configure_rendering_engine_templates_desc=Entrez les informations sur le mod\u00e8le d''affichage que vous voulez utiliser pour le formulaire {0}. create_form_configure_rendering_engine_templates_step1_desc=S\u00e9lectionner le mod\u00e8le d'affichage \u00e0 utiliser create_form_configure_rendering_engine_templates_step2_desc=Sp\u00e9cifier les d\u00e9tails du nouveau mod\u00e8le d'affichage create_form_select_default_workflow_title=Configurer le workflow create_form_select_default_workflow_step_title=Etape trois - Configurer le workflow -create_form_select_default_workflow_desc=S\u00e9lectionner le workflow que vous voulez utiliser par d\u00e9faut pour le formulaire ''{0}''. +create_form_select_default_workflow_desc=S\u00e9lectionner le workflow que vous voulez utiliser par d\u00e9faut pour le formulaire {0}. create_form_select_default_workflow_apply_default_workflow=Voulez-vous appliquer un workflow par d\u00e9faut ? create_form_select_default_workflow_select_workflow=S\u00e9lectionner un workflow create_web_content_details_title=D\u00e9tails du contenu web @@ -931,7 +931,7 @@ selected_rendering_engine_templates=S\u00e9lectionner les moteurs de rendu rendering_engine_template_file=Fichier mod\u00e8le de moteur de rendu rendering_engine=Moteur de rendu output_path_pattern=Chemin de destination -mimetype_for_renditions=Type mime du rendu +mimetype_for_renditions=Type MIME du rendu schema=Sch\u00e9ma schema_root_element_name=El\u00e9ment racine form=Formulaire @@ -941,8 +941,8 @@ web_project=Projet Web # Form Not Found Exception messages form_not_found=Impossible de trouver le formulaire {0}. form_not_found_for_form_instance_data=Impossible de trouver le formulaire {0} associ\u00e9 \u00e0 {1}. -form_not_found_in_web_project= Impossible de trouver le formulaire {0} dans le projet web {1}. -form_not_found_for_form_instance_data_in_web_project= Impossible de trouver le formulaire {0} dans le projet {1} associ\u00e9 \u00e0 {2}. +form_not_found_in_web_project=Impossible de trouver le formulaire {0} dans le projet web {1}. +form_not_found_for_form_instance_data_in_web_project=Impossible de trouver le formulaire {0} dans le projet {1} associ\u00e9 \u00e0 {2}. form_not_configured_for_web_project=Le formulaire {0} n''est pas configur\u00e9 pour le projet web {1}. form_associated_with_form_instance_data_not_configured_for_web_project=Le formulaire {0} associ\u00e9 avec {1} n''est pas configur\u00e9 pour le projet web {2}. @@ -950,16 +950,16 @@ form_associated_with_form_instance_data_not_configured_for_web_project=Le formul run_action_title=Lancer l'assistant de cr\u00e9ation d'Action run_action_desc=Cet assistant vous aide \u00e0 ex\u00e9cuter une action run_action_step1_title=Etape un - S\u00e9lectionner les actions -run_action_finish_instruction=Pour ex\u00e9cuter l'action, cliquez 'Terminer'. Pour revoir ou changer vos choix, cliquez sur Retour. +run_action_finish_instruction=Pour ex\u00e9cuter l'action, cliquez Terminer. Pour revoir ou changer vos choix, cliquez sur Retour. create_rule_title=Assistant de cr\u00e9ation de r\u00e8gle create_rule_desc=Cet assistant vous guide pour la cr\u00e9ation d'une nouvelle r\u00e8gle. create_rule_step1_title=Etape un - S\u00e9lectionner les conditions create_rule_step2_title=Etape deux - S\u00e9lectionner les actions create_rule_step3_title=Etape trois - Entrer les d\u00e9tails -create_rule_finish_instruction=Pour cr\u00e9er la r\u00e8gle, cliquez 'Terminer'. Pour revoir ou changer vos choix, cliquez sur Retour. +create_rule_finish_instruction=Pour cr\u00e9er la r\u00e8gle, cliquez Terminer. Pour revoir ou changer vos choix, cliquez sur Retour. edit_rule_title=Assistant de modification de r\u00e8gle edit_rule_desc=Cet assistant vous aide \u00e0 modifier une r\u00e8gle. -edit_rule_finish_instruction=Pour mettre la r\u00e8gle \u00e0 jour, cliquez 'Terminer'. Pour revoir ou changer vos choix, cliquez sur Retour. +edit_rule_finish_instruction=Pour mettre la r\u00e8gle \u00e0 jour, cliquez Terminer. Pour revoir ou changer vos choix, cliquez sur Retour. select_action=S\u00e9lectionnez une action... select_an_action=S\u00e9lectionnez une action... select_a_type=S\u00e9lectionnez un type... @@ -1006,12 +1006,12 @@ selected_actions=Actions s\u00e9lectionn\u00e9es pour l'action action_cannot_be_execute_repeatedly=L'action ne peut \u00eatre ex\u00e9cut\u00e9e de mani\u00e8re r\u00e9p\u00e9t\u00e9e condition_has_aspect=L''\u00e9l\u00e9ment a l''aspect ''{0}'' condition_has_aspect_not=L''\u00e9l\u00e9ment n''a pas l''aspect ''{0}'' -condition_has_tag=L''\u00e9l\u00e9ment poss\u00e8de l''\u00e9tiquette ''{0}'' -condition_has_tag_not=L''\u00e9l\u00e9ment ne poss\u00e8de pas l''\u00e9tiquette ''{0}'' +condition_has_tag=L''\u00e9l\u00e9ment poss\u00e8de le tag ''{0}'' +condition_has_tag_not=L''\u00e9l\u00e9ment ne poss\u00e8de pas le tag ''{0}'' condition_is_subtype=L''\u00e9l\u00e9ment est un sous-type de ''{0}'' condition_is_subtype_not=L''\u00e9l\u00e9ment n''est pas un sous-type de ''{0}'' -condition_compare_mime_type=L''\u00e9l\u00e9ment a le type mime ''{0}'' -condition_compare_mime_type_not=L''\u00e9l\u00e9ment n''a pas le type mime ''{0}'' +condition_compare_mime_type=L''\u00e9l\u00e9ment a le type MIME ''{0}'' +condition_compare_mime_type_not=L''\u00e9l\u00e9ment n''a pas le type MIME ''{0}'' condition_in_category=L''\u00e9l\u00e9ment est inclus dans la cat\u00e9gorie ''{0}'' condition_in_category_not=L''\u00e9l\u00e9ment n''est pas inclus dans la cat\u00e9gorie ''{0}'' condition_compare_property_value=Le nom de la propri\u00e9t\u00e9 correspond \u00e0 ''{0}'' @@ -1100,9 +1100,9 @@ validation_invalid_dns_name=Nom\u00a0DNS de site Web invalide\u00a0: seuls les c website_webapp=Application web par d\u00e9faut website_createfrom=Cr\u00e9er \u00e0 partir d'un projet web existant create_website_step2_title=Etape deux - Configurer les formulaires web -create_website_step2_desc=S\u00e9lectionnez et configurez les formulaires web pour la saisie du contenu du site web. -website_create_empty=Cr\u00e9er un nouveau projet web. -website_create_existing=Cr\u00e9er un projet web bas\u00e9 sur un projet existant. L'environnement de recette, les formulaires, workflows et utilisateurs seront cipi\u00e9s depuis le projet web s\u00e9lectionn\u00e9. +create_website_step2_desc=S\u00e9lectionnez et configurez les formulaires web pour la saisie du contenu du site web +website_create_empty=Cr\u00e9er un nouveau projet web +website_create_existing=Cr\u00e9er un projet web bas\u00e9 sur un projet existant. L'environnement de recette, les formulaires, workflows et utilisateurs seront cipi\u00e9s depuis le projet web s\u00e9lectionn\u00e9 website_sourcewebsite=Cr\u00e9\u00e9 depuis un projet web website_sourcetemplate=Utiliser comme mod\u00e8le ? website_sourcenote=Note\u00a0: Seuls les projets Web signal\u00e9s comme pouvant \u00eatre utilis\u00e9s en tant que mod\u00e8les s'afficheront par d\u00e9faut. @@ -1114,28 +1114,28 @@ website_save_location=Emplacement de sauvegarde website_save_location_info=Utiliser l'emplacement suivant pour sauvegarder le contenu website_filename_pattern=Motif de fichier website_filename_match=Motif de recherche de fichier -website_workflow=Flux de travail +website_workflow=Workflow website_workflow_info=Utiliser le workflow suivant website_forms=Configurer les formulaires web form_template_details=D\u00e9tail du formulaire web -form_template_details_desc=Editer les d\u00e9tails de ce formulaire web +form_template_details_desc=Editer les d\u00e9tails du formulaire web {0} dans le projet web {1}. form_template_conf_workflow=Configurer le workflow form_template_select_templates=Configurer les Mod\u00e8les form_template_templates=Configurer les Mod\u00e8les -form_template_templates_desc=Configurer les Mod\u00e8les que vous voulez utiliser pour le formulaire web. +form_template_templates_desc=Configurer les Mod\u00e8les que vous voulez utiliser pour le formulaire web {0} dans le projet web {1}. form_template_workflow=Configurer le workflow -form_template_workflow_desc=Configurer les param\u00e8tres par d\u00e9faut du workflow pour ce projet web. +form_template_workflow_desc=Configurer les param\u00e8tres par d\u00e9faut du workflow pour ce projet web create_website_step3_title=Etape trois - Configurer les receveurs de d\u00e9ploiement -create_website_step3_desc=Configurer les receveurs de d\u00e9ploiement pour le projet web +create_website_step3_desc=Configurer les receveurs de d\u00e9ploiement pour le projet web. website_deployment=Configurer les receveurs de d\u00e9ploiement create_website_step4_title=Etape quatre - Ajouter des utilisateurs -create_website_step4_desc=S\u00e9lectionnez les utilisateurs et leurs r\u00f4les. +create_website_step4_desc=S\u00e9lectionnez et configurez les formulaires web pour g\u00e9n\u00e9rer le contenu du site. website_select_form=S\u00e9lectionnez les formulaires web website_select_templates=S\u00e9lectionnez les mod\u00e8les website_selected_templates=Mod\u00e8les s\u00e9lectionn\u00e9s website_settings=Configurer le workflow create_website_step5_title=Etape cinq - Envoyer un courriel aux utilisateurs -create_website_step5_desc=Notifiez les utilisateurs invit\u00e9s +create_website_step5_desc=S\u00e9lectionnez et configurez un workflow pour les ressources g\u00e9n\u00e9r\u00e9es sans formulaire. website_select_workflows=S\u00e9lectionnez les workflows website_selected_workflows=Workflows s\u00e9lectionn\u00e9s website_invite=Ajouter des Utilisateurs @@ -1144,7 +1144,7 @@ create_website_step6_desc=S\u00e9lectionnez les utilisateurs et leurs r\u00f4les website_notify=Notifier les utilisateurs par courriel create_website_step7_title=Etape sept - Adresse email des utilisateurs create_website_step7_desc=Notifier les utilisateurs du site web. -create_website_finish_instruction=Pour terminer cet assistant et cr\u00e9er votre Espace de projet web, cliquez sur 'Terminer'. Pour revoir ou changer vos choix, cliquez sur Retour. +create_website_finish_instruction=Pour terminer cet assistant et cr\u00e9er votre Espace de projet web, cliquez sur Terminer. Pour revoir ou changer vos choix, cliquez sur Retour. create_website_summary_users=Utilisateurs et R\u00f4les server_already_exist=Un serveur avec le nom {0} existe d\u00e9j\u00e0. edit_website_title=Assistant de modification de projet web @@ -1153,13 +1153,13 @@ edit_website_finish_instruction=Pour terminer cet assistant et appliquer vos mod edit_website=Modifier les param\u00e8tres du projet web workflow_settings=Param\u00e8tres du workflow workflow_not_configured=Workflow non configur\u00e9 -error_filename_pattern=Erreur de pattern du nom de fichier du flux de travail\u00a0: {0} +error_filename_pattern=Erreur de motif du nom de fichier du workflow\u00a0: {0} workflow_not_set=Aucun workflow rendering_engines_selected=Mod\u00e8les s\u00e9lectionn\u00e9s edit_website_step2_title=Etape deux - Configurer les serveurs de d\u00e9ploiement edit_website_step2_desc=S\u00e9lectionnez et configurez le workflow pour les \u00e9l\u00e9ments cr\u00e9\u00e9s en dehors des formulaires web. edit_website_step3_title=Etape trois - Configurer les formulaires de contenu web -edit_website_step3_desc=S\u00e9lectionnez les utilisateurs et leurs r\u00f4les. +edit_website_step3_desc=S\u00e9lectionnez et configurez les formulaires web pour g\u00e9n\u00e9rer le contenu du site. edit_website_step4_title=Etape quatre - Configurer le workflow edit_website_step4_desc=Notifiez les utilisateurs invit\u00e9s @@ -1171,12 +1171,12 @@ invite_webusers_step1_title=Etape un - Inviter des utilisateurs invite_webusers_step1_desc=S\u00e9lectionnez les utilisateurs et leurs r\u00f4les. invite_webusers_step2_title=Etape deux - Notifier les utilisateurs invite_webusers_step2_desc=Notifiez les utilisateurs invit\u00e9s -invite_webusers_finish_instruction=Pour terminer cet assistant et cr\u00e9er les bacs \u00e0 sable utilisateurs, cliquez sur 'Terminer'. Pour revoir ou changer vos choix, cliquez sur Retour. +invite_webusers_finish_instruction=Pour terminer cet assistant et cr\u00e9er les bacs \u00e0 sable utilisateurs, cliquez sur Terminer. Pour revoir ou changer vos choix, cliquez sur Retour. # Delete Website Dialog messages delete_website=Supprimer le projet web delete_website_info=Pour supprimer ce projet web et tous ses utilisateurs de test, cliquez sur OK. -delete_website_confirm=\u00cates-vous s\u00fbr de vouloir supprimer le projet Web \"{0}\" et tous les bacs \u00e0 sable d'utilisateur associ\u00e9s\u00a0? +delete_website_confirm=\u00cates-vous s\u00fbr de vouloir supprimer le projet Web \"{0}\" et tous les bacs \u00e0 sable d''utilisateur associ\u00e9s\u00a0? # Browse Website and Sandboxes messages title_browse_website=Naviguer dans le site web @@ -1189,12 +1189,12 @@ sandbox_browse=Naviguer dans le site web sandbox_revert=Annuler les modifications pour cet \u00e9l\u00e9ment sandbox_revertall=Annuler toutes les modifications sandbox_submitall=Tout soumettre -count_conflicted_items={0} fichier(s) en conflit avec les changements apport\u00e9s par d'autres utilisateurs +count_conflicted_items={0} fichier(s) en conflit avec les changements apport\u00e9s par d''autres utilisateurs sandbox_submitselected=Soumettre les \u00e9l\u00e9ments s\u00e9lectionn\u00e9s sandbox_revertselected=Annuler les modifications des \u00e9lements s\u00e9lectionn\u00e9s sandbox_icon=Naviguer dans le site web sandbox_snapshot=Cr\u00e9er un clich\u00e9 -sandbox_snapshot_info=Cr\u00e9er une capture d'\u00e9cran \u00e0 partir de ce bac \u00e0 sable. +sandbox_snapshot_info=Cr\u00e9er un clich\u00e9 \u00e0 partir de ce bac \u00e0 sable. sandbox_remove=Supprimer sandbox_refresh=Rafra\u00eechir sandbox_deploy=D\u00e9ployer @@ -1223,8 +1223,8 @@ revertselected_success=R\u00e9tablissement r\u00e9ussi des \u00e9l\u00e9ments s\ revert_sandbox_success=R\u00e9tablissement r\u00e9ussi du bac \u00e0 sable ''{0}'' vers la version\u00a0: {1} submit=Soumettre submit_success=\u00c9l\u00e9ment soumis\u00a0: {0} -submitall_success=Soumission r\u00e9ussie du bac \u00e0 sable de l'utilisateur\u00a0: {0} -submitselected_success=Soumission r\u00e9ussie des \u00e9l\u00e9ments s\u00e9lectionn\u00e9s de l'utilisateur\u00a0: {0} +submitall_success=Soumission r\u00e9ussie du bac \u00e0 sable de l''utilisateur\u00a0: {0} +submitselected_success=Soumission r\u00e9ussie des \u00e9l\u00e9ments s\u00e9lectionn\u00e9s de l''utilisateur\u00a0: {0} submitted=Soumis folder_preview=Pr\u00e9visualiser le dossier file_preview=Pr\u00e9visualiser le fichier @@ -1249,11 +1249,11 @@ pending_promote=Envoyer Maintenant pending_abort=Abandonner la soumission task_done_resubmit_all=T\u00e2che R\u00e9alis\u00e9e & Re-Soumet tout delete_all_deploy_reports=Supprimer tous les rapports de d\u00e9ploiement -delete_reports_info=Pour supprimer tous les rapports de d\u00e9ploiement dans ce projet web, cliquez Oui -delete_reports_confirm=Etes-vous certain de vouloir supprimer tous les rapports de d\u00e9ploiement pour l'ensemble des bacs \u00e0 sable de ce projet web ? +delete_reports_info=Pour supprimer tous les rapports de d\u00e9ploiement dans ce projet web, cliquez Oui. +delete_reports_confirm=Etes-vous certain de vouloir supprimer tous les rapports de d\u00e9ploiement pour l'ensemble des bacs \u00e0 sable de ce projet web\u00a0? release_server_title=Serveur de test -release_server_info=Pour d\u00e9ployer sur le serveur de test depuis ce bac \u00e0 sable, cliquez Oui -release_server_confirm=Etes-vous certain de vouloir d\u00e9connecter le serveur de test associ\u00e9 \u00e0 ce bac \u00e0 sable ? +release_server_info=Pour d\u00e9ployer sur le serveur de test depuis ce bac \u00e0 sable, cliquez Oui. +release_server_confirm=Etes-vous certain de vouloir d\u00e9connecter le serveur de test associ\u00e9 \u00e0 ce bac \u00e0 sable\u00a0? website_showallsandboxes=Montrer tous les bacs \u00e0 sable # Website actions and dialog messages @@ -1269,18 +1269,18 @@ delete_folder=Supprimer le Dossier delete_avm_folder_info=Pour supprimer ce dossier et son contenu du bac \u00e0 sable, cliquez sur OK. delete_avm_folder_confirm=\u00cates-vous s\u00fbr de vouloir supprimer \"{0}\" et son contenu du bac \u00e0 sable\u00a0? unlock_file=D\u00e9verrouiller le fichier -unlock_file_info=Pour supprimer le verrou de ce fichier, cliquez OK +unlock_file_info=Pour supprimer le verrou de ce fichier, cliquez OK. unlock_file_confirm=Etes-vous certain de vouloir supprimer le verrou sur \"{0}\"\u00a0? -error_delete_folder=Impossible de supprimer le dossier suite \u00e0 une erreur syst\u00e8me : +error_delete_folder=Impossible de supprimer le dossier suite \u00e0 une erreur syst\u00e8me\u00a0: create_web_content=Cr\u00e9er un contenu web create_web_content_title=Assistant de cr\u00e9ation de contenu web edit_web_content_title=Assistant d'\u00e9dition du contenu web create_web_content_desc=Cet assistant vous aide \u00e0 cr\u00e9er un nouvel \u00e9l\u00e9ment de contenu pour un site web. -edit_web_content_desc=Cet assistant vous aide \u00e0 \u00e9diter un \u00e9l\u00e9ment de contenu pour un site web +edit_web_content_desc=Cet assistant vous aide \u00e0 \u00e9diter un \u00e9l\u00e9ment de contenu pour un site web. create_folder=Cr\u00e9er un dossier create_avm_folder_info=Cr\u00e9er un nouveau dossier dans le site web. -create_layered_folder=Cr\u00e9er un dossier sous forme de couche -create_layered_folder_info=Cr\u00e9er un dossier en couche dans le site web +create_layered_folder=Cr\u00e9er un dossier superpos\u00e9 +create_layered_folder_info=Cr\u00e9er un dossier superpos\u00e9 dans le site web. target=Cible target_path=Chemin de la cible target_does_not_exists=Impossible de cr\u00e9er un dossier superpos\u00e9 car le chemin cible {0} n''existe pas dans le projet Web s\u00e9lectionn\u00e9. @@ -1294,8 +1294,8 @@ stale_shared_file=Fichier superpos\u00e9 hors service target_is_deleted=Le dossier cible pour ''{0}'' est supprim\u00e9. shared_from=Superpos\u00e9 depuis {0} add_avm_content_dialog_desc=Cette fen\u00eatre vous aide \u00e0 ajouter du contenu dans un dossier. -update_avm_file_desc=Met \u00e0 jour un fichier sur le site web \u00e0 partir de contenu stock\u00e9 sur votre ordinateur -file_details_desc=Visualiser les d\u00e9tails du fichier +update_avm_file_desc=Met \u00e0 jour un fichier sur le site web \u00e0 partir de contenu stock\u00e9 sur votre ordinateur. +file_details_desc=Visualiser les d\u00e9tails du fichier. title_folder_details=D\u00e9tails du Dossier folder_details_desc=Visualiser les d\u00e9tails sur le dossier. edit_file_properties=Editer les Propri\u00e9t\u00e9s du Fichier @@ -1304,20 +1304,20 @@ edit_folder_properties=Editer les Propri\u00e9t\u00e9s du Dossier edit_folder_description=Editer les propri\u00e9t\u00e9s du dossier puis cliquez sur OK. folder_props=Propri\u00e9t\u00e9s du dossier snapshot_properties=Propri\u00e9t\u00e9s du clich\u00e9 -snapshot_label=\u00c9tiquette -snapshot_success=Capture d'\u00e9cran ''{0}'' cr\u00e9\u00e9e pour le bac \u00e0 sable\u00a0: {1} +snapshot_label=Tag +snapshot_success=Clich\u00e9 ''{0}'' cr\u00e9\u00e9 pour le bac \u00e0 sable\u00a0: {1} snapshot_failure=Clich\u00e9 non cr\u00e9\u00e9 - Le bac \u00e0 sable n'a pas \u00e9t\u00e9 modifi\u00e9 depuis le dernier clich\u00e9. snapshot_submitted_by=Soumis par title_website_details=D\u00e9tails du projet web webproject_details_of=D\u00e9tails du projet Web de delete_sandbox=Supprimer le bac \u00e0 sable delete_sandbox_info=Pour supprimer ce bac \u00e0 sable et l''utilisateur du projet web, cliquez sur OK. -delete_sandbox_confirm=\u00cates-vous s\u00fbr de vouloir supprimer le bac \u00e0 sable d'utilisateur \"{0}\" du projet Web\u00a0? +delete_sandbox_confirm=\u00cates-vous s\u00fbr de vouloir supprimer le bac \u00e0 sable d''utilisateur \"{0}\" du projet Web\u00a0? submit_submission_info=Information de Soumission submit_comment=Description -submit_snapshotlabel=\u00c9tiquette +submit_snapshotlabel=Tag submit_workflow_selection=Utiliser le workflow suivant pour soumettre tous les \u00e9l\u00e9ments modifi\u00e9s -submit_not_submit_warning=Les \u00e9l\u00e9ments suivants ne peuvent pas \u00eatre soumis car ils font d\u00e9j\u00e0 partie d'un workflow +submit_not_submit_warning=Les \u00e9l\u00e9ments suivants ne peuvent pas \u00eatre soumis car ils font d\u00e9j\u00e0 partie d'un workflow. submit_no_workflow_warning=Aucun workflow adapt\u00e9 n'a \u00e9t\u00e9 trouv\u00e9 pour les \u00e9l\u00e9ments modifi\u00e9s ci-dessous submit_submit_info=Les \u00e9l\u00e9ments suivants vont \u00eatre soumis submit_items_title=Soumettre des El\u00e9ments @@ -1333,8 +1333,8 @@ revert_selected_desc=Pour annuler les modifications des fichiers s\u00e9lectionn revert_selected_confirm=Etes-vous s\u00fbr de vouloir annuler les modifications des fichiers s\u00e9lectionn\u00e9s du bac \u00e0 sable ? revert_all_title=Retour Arri\u00e8re de Tous les El\u00e9ments revert_snapshot_title=R\u00e9tablir le clich\u00e9 -revert_snapshot_desc=R\u00e9tablir un clich\u00e9 vers un identifiant de version de capture d'\u00e9cran sp\u00e9cifique -revert_snapshot_confirm=R\u00e9tablir un bac \u00e0 sable vers la version : +revert_snapshot_desc=R\u00e9tablir un clich\u00e9 vers un identifiant de version de clich\u00e9 sp\u00e9cifique +revert_snapshot_confirm=R\u00e9tablir un bac \u00e0 sable vers la version\u00a0: {0} revert_all_conflicts=R\u00e9tablir tous les conflits revert_all_desc=Pour annuler les modifications des fichiers dans le bac \u00e0 sable, cliquez sur OK. revert_all_confirm=Etes-vous s\u00fbr de vouloir annuler les modifications des fichiers dans le bac \u00e0 sable ? @@ -1344,7 +1344,7 @@ deploy_sandbox_title=D\u00e9ployer le bac \u00e0 sable deploy_sandbox_desc=S\u00e9lectionner un serveur de test de d\u00e9ploiement et cliquer sur OK. Ce serveur sera ensuite attribu\u00e9 \u00e0 ce bac \u00e0 sable. redeploy_sandbox_title=D\u00e9ployer les modifications du bac \u00e0 sable redeploy_sandbox_desc=Cliquer sur OK pour d\u00e9ployer les modifications dans le bac \u00e0 sable sur votre serveur de test attribu\u00e9. -deploy_destination=S\u00e9lectionner les serveurs cibles du d\u00e9ploiement. +deploy_destination=S\u00e9lectionner les serveurs cibles du d\u00e9ploiement deploying=En cours de d\u00e9ploiement ... deploy_successful=D\u00e9ploiement r\u00e9ussi deploy_failed=Le d\u00e9ploiement a \u00e9chou\u00e9 @@ -1413,13 +1413,13 @@ expiration_date=Date d'expiration expire_date_label=Expire apply_to_all=Appliquer \u00e0 tous set_expiration_date=Fixe la date d'expiration pour tous les \u00e9l\u00e9ments modifi\u00e9s. -change_expiration_date_change=Note\u00a0: Pour changer des dates d'expiration individuelles, cliquer sur l'ic\u00f4ne d'action 'Changer la date d'expiration'. +change_expiration_date_change=Note\u00a0: Pour changer des dates d'expiration individuelles, cliquer sur l'ic\u00f4ne d'action Changer la date d'expiration. change_expiration_date_title=Changer la Date d'Expiration change_expiration_date_desc=Cet assistant vous permet de changer la date d'expiration pour un \u00e9l\u00e9ment modifi\u00e9. expired_content_for_review=Contenu Expir\u00e9 pour Relecture report_summary=Rapport r\u00e9sum\u00e9 -link_check_completed_at=Les liens bris\u00e9s ont fait l'objet d'un contr\u00f4le sur {0} \u00e0 l''aide de la capture d'\u00e9cran {1}. -link_check_not_latest=La derni\u00e8re version de capture d''\u00e9cran est {0}. +link_check_completed_at=Les liens bris\u00e9s ont fait l''objet d''un contr\u00f4le sur {0} \u00e0 l''aide du clich\u00e9 {1}. +link_check_not_latest=La derni\u00e8re version du clich\u00e9 est {0}. link_check_items_found={0}\u00a0fichier(s) ont \u00e9t\u00e9 contr\u00f4l\u00e9s, {1}\u00a0lien(s) ont \u00e9t\u00e9 trouv\u00e9s. link_check_items_broken={0}\u00a0lien(s) bris\u00e9(s) ont \u00e9t\u00e9 trouv\u00e9s dans {1}\u00a0fichier(s). link_check_no_broken=Aucun lien bris\u00e9 n'a \u00e9t\u00e9 trouv\u00e9. @@ -1518,12 +1518,12 @@ recovered_item_permission=Impossible de r\u00e9cup\u00e9rer l''\u00e9l\u00e9ment recovered_item_permission_short=Pas de permission d'\u00e9criture recovered_item_integrity=Impossible de r\u00e9cup\u00e9rer l''\u00e9l\u00e9ment \"{0}\" car il y a un \u00e9l\u00e9ment dans le r\u00e9pertoire parent avec le m\u00eame nom, veuillez s\u00e9lectionner un nouveau r\u00e9pertoire de destination. recovered_item_integrity_short=Un \u00e9l\u00e9ment existe avec le m\u00eame nom -recovered_item_failure=Impossible de r\u00e9cup\u00e9rer l'\u00e9l\u00e9ment \"{0}\" en raison d'une erreur\u00a0: {1} +recovered_item_failure=Impossible de r\u00e9cup\u00e9rer l''\u00e9l\u00e9ment \"{0}\" en raison d''une erreur\u00a0: {1} recovered_item_failure_short=Echec delete_item_success=L''\u00e9l\u00e9ment \"{0}\" a \u00e9t\u00e9 d\u00e9finitivement supprim\u00e9. title_deleted_item_details=D\u00e9tails des El\u00e9ments effac\u00e9s deleteditem_details_description=D\u00e9tails de l'\u00e9l\u00e9ment effac\u00e9 -alternative_destination=Vous pouvez s\u00e9lectionner un emplacement o\u00f9 les \u00e9l\u00e9ments r\u00e9cup\u00e9r\u00e9s seront plac\u00e9s. Si vous ne s\u00e9lectionnez pas un emplacement, l'\u00e9l\u00e9ment sera replac\u00e9 dans son emplacement original. La r\u00e9cup\u00e9ration d'un \u00e9l\u00e9ment peut \u00e9chouer si l'emplacement n'existe pas ou si vous n'avez pas la permission d'y ajouter des \u00e9l\u00e9ments. +alternative_destination=Vous pouvez s\u00e9lectionner un emplacement o\u00f9 les \u00e9l\u00e9ments r\u00e9cup\u00e9r\u00e9s seront plac\u00e9s. Si vous ne s\u00e9lectionnez pas un emplacement, l'\u00e9l\u00e9ment sera replac\u00e9 dans son emplacement original. La r\u00e9cup\u00e9ration d'un \u00e9l\u00e9ment peut \u00e9chouer si l'emplacement n'existe pas ou si vous n'avez pas la permission d'y ajouter des \u00e9l\u00e9ments. user_filter_who=Qui user_filter_all=Tous user_filter_user=Utilisateur @@ -1551,32 +1551,32 @@ error_dashboard=Une erreur est survenue dans un des composants. configure_dashboard_title=Assistant de configuration du tableau de bord configure_dashboard_desc=Cet assistant vous aide \u00e0 configurer la disposition et le contenu de votre tableau de bord step_layout=Disposition -configure_dashboard_step1_title=Etape un - Choisir la disposition +configure_dashboard_step1_title=Etape un - S\u00e9lectionner la disposition configure_dashboard_step1_desc=Choisir la disposition et le nombre de colonnes pour votre tableau de bord. step_columns=Composants -configure_dashboard_step2_title=Etape deux - Choisir les composants -configure_dashboard_step2_desc=Choisir les composants pour votre tableau de bord et les ajouter aux colonnes. +configure_dashboard_step2_title=Etape deux - S\u00e9lectionner les composants +configure_dashboard_step2_desc=S\u00e9lectionner les composants pour votre tableau de bord et les ajouter aux colonnes. configure_dashboard_finish_instruction=Pour sauvegarder la configuration du tableau de bord, cliquez Terminer. Pour revoir ou changer vos choix, cliquez sur Retour. -select_layout=Choisir la disposition pour votre tableau de bord. Changer la disposition d'un tableau de bord existant pour une autre avec moins de colonnes fait que les colonnes additionnelles seront retir\u00e9es. +select_layout=S\u00e9lectionner la disposition pour votre tableau de bord. Changer la disposition d'un tableau de bord existant pour une autre avec moins de colonnes fait que les colonnes additionnelles seront retir\u00e9es. select_column=S\u00e9lectionnez la colonne \u00e0 configurer dashlet_list=Composants disponibles dashlet_btn_select=Ajouter dashlet_btn_remove=Retirer selected_dashlets=Composants s\u00e9lectionn\u00e9s dashboard_column=Colonne -column_max_components=Cette colonne peut afficher {0} composants. -single_column_max_components=Cette disposition peut afficher {0} composants. +column_max_components=cette colonne peut afficher {0} composants +single_column_max_components=Cette disposition peut afficher {0} composants selected_item=El\u00e9ment s\u00e9lectionn\u00e9 # My Alfresco Layouts messages layout_single_label=Une seule colonne -layout_single_desc=Cette disposition affiche les composants en une seule colonne sur toute la largeur de la page. +layout_single_desc=Cette disposition affiche les composants en une seule colonne sur toute la largeur de la page layout_narrow_left_label=Deux colonnes, navigation \u00e0 gauche -layout_narrow_left_desc=Cette disposition affiche les composants en deux colonnes avec une colonne de navigation \u00e0 gauche. +layout_narrow_left_desc=Cette disposition affiche les composants en deux colonnes avec une colonne de navigation \u00e0 gauche layout_narrow_right_label=Deux colonnes, navigation \u00e0 droite -layout_narrow_right_desc=Cette disposition affiche les composants en deux colonnes avec une colonne de navigation \u00e0 droite. +layout_narrow_right_desc=Cette disposition affiche les composants en deux colonnes avec une colonne de navigation \u00e0 droite layout_three_column_label=Trois colonnes -layout_three_column_desc=Cette disposition affiche les composants en trois colonnes de m\u00eame largeur. +layout_three_column_desc=Cette disposition affiche les composants en trois colonnes de m\u00eame largeur # My Alfresco Dashlet components messages dashlet_gettingstarted_label=Guide de d\u00e9marrage @@ -1589,13 +1589,13 @@ dashlet_myimages=Mes images dashlet_myimages_desc=Images de mon Espace d'accueil sous forme de miniatures gettingstarted_commontasks=T\u00e2ches classiques gettingstarted_browse=Consulter les \u00e9l\u00e9ments dans votre Espace d'accueil -gettingstarted_browse_desc=Cliquez sur 'Mon accueil' sur la barre d'outils pour afficher une liste d'\u00e9l\u00e9ments dans l'Espace. +gettingstarted_browse_desc=Cliquez sur Mon accueil sur la barre d'outils pour afficher une liste d'\u00e9l\u00e9ments dans l'Espace. gettingstarted_createspace=Cr\u00e9er un Espace dans votre Espace d'accueil -gettingstarted_createspace_desc=Aller \u00e0 votre Espace d'accueil. Dans la zone d'information de l'Espace, dans le menu 'Cr\u00e9er', cliquez sur 'Cr\u00e9er un Espace' et entrez les informations sur l'Espace \u00e0 cr\u00e9er. +gettingstarted_createspace_desc=Aller \u00e0 votre Espace d'accueil. Dans la zone d'information de l'Espace, dans le menu Cr\u00e9er, cliquez sur Cr\u00e9er un Espace et entrez les informations sur l'Espace \u00e0 cr\u00e9er. gettingstarted_addcontent=Ajouter un contenu \u00e0 votre Espace d'accueil -gettingstarted_addcontent_desc=Aller \u00e0 votre Espace d'accueil. Dans la zone d'information de l'Espace, cliquez sur 'Ajouter un contenu' et entrez les informations sur le contenu \u00e0 importer. +gettingstarted_addcontent_desc=Aller \u00e0 votre Espace d'accueil. Dans la zone d'information de l'Espace, cliquez sur Ajouter un contenu et entrez les informations sur le contenu \u00e0 importer. gettingstarted_createcontent=Cr\u00e9er un contenu dans votre Espace d'accueil -gettingstarted_createcontent_desc=Aller \u00e0 votre Espace d'accueil. Dans la zone d'information de l'Espace, dans le menu 'Cr\u00e9er', cliquez sur 'Cr\u00e9er un contenu' et entrez les informations sur le contenu \u00e0 cr\u00e9er. +gettingstarted_createcontent_desc=Aller \u00e0 votre Espace d'accueil. Dans la zone d'information de l'Espace, dans le menu Cr\u00e9er, cliquez sur Cr\u00e9er un contenu et entrez les informations sur le contenu \u00e0 cr\u00e9er. gettingstarted_demonstration=D\u00e9monstration gettingstarted_demonstration_desc=Visionner une d\u00e9monstration sur la mani\u00e8re dont Alfresco peut \u00eatre utilis\u00e9 pour cr\u00e9er un lancement marketing. gettingstarted_featuretour=Aper\u00e7u des Fonctionnalit\u00e9s @@ -1604,12 +1604,12 @@ gettingstarted_onlinehelp=Aide en Ligne gettingstarted_onlinehelp_desc=Cliquez sur l'ic\u00f4ne d'aide pour afficher les rubriques d'Aide d'Alfresco. # User Console and Settings messages -title_user_console=Options de l'Utilisateur +title_user_console=Profil de l'utilisateur title_edit_user_details=Editer les D\u00e9tails de l'Utilisateur -user_console=Options de l'Utilisateur +user_console=Profil de l'utilisateur user_console_info=Options Utilisateur user_console_description=Utilisez cette page pour changer vos options et param\u00e8tres -user_profile=Options de l'Utilisateur +user_profile=Profil de l'utilisateur user_profile_for=Profil de l''utilisateur ''{0}'' my_details=Mes d\u00e9tails general_pref=Pr\u00e9f\u00e9rences G\u00e9n\u00e9rales @@ -1626,7 +1626,7 @@ content_language_filter=Filtre de la langue du contenu content_all_languages=Toutes les langues download_automatically=T\u00e9l\u00e9charger automatiquement les fichiers pour une \u00e9dition hors-ligne user_management=Gestion -select_avatar_prompt=Cliquez ici pour choisir un avatar +select_avatar_prompt=Cliquez ici pour s\u00e9lectionner un avatar # Delete Space Dialog messages select_delete_operation=Que voulez-vous supprimer ? @@ -1635,12 +1635,12 @@ delete_op_files=Seulement les fichiers dans cet Espace. delete_op_folders=Seulement les dossiers dans cet Espace. delete_op_contents=Fichiers et dossiers dans cet Espace. delete_execute_rules=Ex\u00e9cuter des r\u00e8gles -delete_archive_nodes=Archiver des n\u009cuds +delete_archive_nodes=Archiver des n\u0153uds # Email users dialog email_space_users=Ecrire aux utilisateurs de cet Espace email_space_users_desc=Envoyer un courriel aux utilisateurs et groupes assign\u00e9s \u00e0 cet Espace. -email_space_users_no_recipients=Il n'y a pas d'utilisateurs ou de groupes assign\u00e9s \u00e0 cet espace, cliquez sur Annuler pour quitter cet fen\u00eatre. +email_space_users_no_recipients=Il n'y a pas d'utilisateurs ou de groupes assign\u00e9s \u00e0 cet espace, cliquez sur Annuler pour quitter cette fen\u00eatre. # Workflow messages doc_not_in_simple_workflow=Ce document ne fait partie d'aucun workflow simple. @@ -1671,7 +1671,7 @@ step_workflow_options=Options du workflow start_workflow_options_title=Options du workflow start_workflow_options_desc=S\u00e9lectionner les options pour le workflow start_workflow_finish_instruction=Pour d\u00e9marrer le workflow, cliquez sur Terminer. Pour revoir ou changer vos choix, cliquez sur Retour. -start_workflow_no_metadata=Il n'y a aucun m\u00e9tadata \u00e0 collecter pour ce workflow particulier. +start_workflow_no_metadata=Il n'y a aucune m\u00e9tadonn\u00e9e \u00e0 collecter pour ce workflow particulier. start_workflow_no_workflows=Il n'y aucun workflow actuellement d\u00e9ploy\u00e9 dans l'entrep\u00f4t, cliquez sur Annuler pour quitter l'assistant. users_and_roles=Les utilisateurs et leur r\u00f4les resources=Ressources @@ -1685,12 +1685,12 @@ task_pooled_properties=Pot Commun des T\u00e2ches task_type=Type de T\u00e2che id=Identifiant owner=Propri\u00e9taire -status=Etat -completed=Compl\u00e9t\u00e9 +status=Statut +completed=Termin\u00e9 source=Origine priority=Priorit\u00e9 tasks_active_title=Toutes les T\u00e2ches Actives -tasks_active_desc=Liste des t\u00e2ches actives pour finaliser +tasks_active_desc=Liste des t\u00e2ches actives \u00e0 r\u00e9aliser my_tasks_todo_title=Mes t\u00e2ches \u00e0 r\u00e9aliser my_tasks_todo_desc=Liste des t\u00e2ches \u00e0 r\u00e9aliser my_tasks_completed_title=Mes t\u00e2ches achev\u00e9es @@ -1707,11 +1707,11 @@ mywebforms-webscript_title=Mes formulaires web mywebforms-webscript_desc=WebScript Mes formulaires mywebfiles-webscript_title=Mes fichiers Web mywebfiles-webscript_desc=WebScript mes fichiers web -due_date=Ech\u00e9ance +due_date=Date d'\u00e9ch\u00e9ance completed_on=Compl\u00e9t\u00e9 le outcome=R\u00e9sultat reassign=R\u00e9assigner -cancel_workflow=Abandon du workflow +cancel_workflow=Annuler le workflow cancel_workflow_info=Pour abandonner ce workflow, cliquez sur OK. cancel_workflow_confirm=Etes-vous s\u00fbr de vouloir abandonner le workflow \"{0}\" ? error_cancel_workflow=Impossible d'annuler le workflow \u00e0 cause d'une erreur syst\u00e8me. @@ -1747,7 +1747,7 @@ wf_review_options=Options de relecture wf_review_status=Statut de relecture wf_reviewer=Relecteur wf_reviewers=Relecteurs -wf_adhoc_due_date=Ech\u00e9ance +wf_adhoc_due_date=Date d'\u00e9ch\u00e9ance wf_adhoc_priority=Priorit\u00e9 wf_adhoc_assign_to=Assigner \u00e0 wf_adhoc_assignee=Assign\u00e9 \u00e0 @@ -1763,16 +1763,16 @@ imap.attachments.folder=Dossier de pi\u00e8ces jointes title_admin_console=Console d'administration admin_console=Console d'administration admin_description=Utiliser cette console pour r\u00e9aliser les actions d'administration syst\u00e8me. -admin_limited_license=Sous licence\u00a0: Licence : {0} licence accord\u00e9e \u00e0 {1} et limit\u00e9e \u00e0 {3} jours expirant le {4,date,short} ({5} jours restant - g\u00e9n\u00e9r\u00e9e le {2,date,short}). -admin_unlimited_license=Sous licence\u00a0: Licence : {0} licence accord\u00e9e \u00e0 {1} et n''expire pas (g\u00e9n\u00e9r\u00e9e le {2,date,short}). -admin_invalid_license=Sous licence\u00a0: LICENCE INVALIDE - R\u00e9f\u00e9rentiel Alfresco limit\u00e9 \u00e0 des capacit\u00e9s de lecture seule. +admin_limited_license=Sous licence\u00a0: Licence\u00a0: {0} licence accord\u00e9e \u00e0 {1} et limit\u00e9e \u00e0 {3} jours expirant le {4,date,short} ({5} jours restant - g\u00e9n\u00e9r\u00e9e le {2,date,short}). +admin_unlimited_license=Sous licence\u00a0: Licence\u00a0: {0} licence accord\u00e9e \u00e0 {1} et n''expire pas (g\u00e9n\u00e9r\u00e9e le {2,date,short}). +admin_invalid_license=Sous licence\u00a0: LICENCE INVALIDE - Entrep\u00f4t Alfresco limit\u00e9 \u00e0 des capacit\u00e9s de lecture seule. # Workflow Console messages title_workflow_console=Console du workflow workflow_context=Contexte workflow_command=Commande (tapez help pour l'aide) workflow_command_submit=Soumettre -workflow_last_command=Derni\u00e8re commande : +workflow_last_command=Derni\u00e8re commande\u00a0: workflow_duration=Dur\u00e9e: workflow_duration_ms=ms @@ -1785,7 +1785,7 @@ title_configadmin_console=Console d'administration de configuration du client we configadmin_context=Contexte configadmin_command=Commande (tapez help pour l'aide) configadmin_command_submit=Soumettre -configadmin_last_command=Derni\u00e8re commande : +configadmin_last_command=Derni\u00e8re commande\u00a0: configadmin_duration=Dur\u00e9e: configadmin_duration_ms=ms @@ -1795,7 +1795,7 @@ title_repoadmin_console=Console d'administration de l'entrep\u00f4t repoadmin_context=Contexte repoadmin_command=Commande (tapez help pour l'aide) repoadmin_command_submit=Soumettre -repoadmin_last_command=Derni\u00e8re commande : +repoadmin_last_command=Derni\u00e8re commande\u00a0: repoadmin_duration=Dur\u00e9e: repoadmin_duration_ms=ms @@ -1804,7 +1804,7 @@ title_tenantadmin_console=Console d'administration de la gestion des entrep\u00f tenantadmin_context=Contexte tenantadmin_command=Commande (tapez help pour l'aide) tenantadmin_command_submit=Soumettre -tenantadmin_last_command=Derni\u00e8re commande : +tenantadmin_last_command=Derni\u00e8re commande\u00a0: tenantadmin_duration=Dur\u00e9e: tenantadmin_duration_ms=ms @@ -1812,16 +1812,16 @@ tenantadmin_duration_ms=ms # OpenSearch messages show=Montrer opensearch=OpenSearch -opensearch_desc=Permet de rechercher au travers plusieurs moteurs de recherche OpenSearch support\u00e9s +opensearch_desc=Permet de rechercher au travers plusieurs moteurs de recherche OpenSearch support\u00e9s. search_in=Rechercher dans no_engines_registered=Impossible de trouver un moteur OpenSearch enregistr\u00e9 ! current_repo=Entrep\u00f4t Alfresco courant current_repo_people=Personnes du serveur Alfresco courant toggle_options=Basculer les Options no_results=Pas de r\u00e9sultat -of=de -failed_gen_url=Impossible de g\u00e9n\u00e9rer d''URL pour le moteur de recherche ''{0}''.\\n\\nCela est probablement d\u00fb \u00e0 des param\u00e8tres requis manquants. V\u00e9rifiez l''URL mod\u00e8le pour le moteur de recherche. -failed_search=\u00c9chec dans l''obtention des r\u00e9sultats de recherche de ''{0}'' +of=sur +failed_gen_url=Impossible de g\u00e9n\u00e9rer d'URL pour le moteur de recherche '{0}'.\\n\\nCela est probablement d\u00fb \u00e0 des param\u00e8tres requis manquants. V\u00e9rifiez l'URL mod\u00e8le pour le moteur de recherche. +failed_search=\u00c9chec dans l'obtention des r\u00e9sultats de recherche de '{0}' # UI Page Titles title_about=A propos de Alfresco @@ -1879,12 +1879,12 @@ title_action_simple_workflow=Action de workflow Simple title_action_transform=Action de Transformation title_action_transform_image=Action de Transformation d'Image title_action_specialise_type=Action de Sp\u00e9cialisation de Type -title_condition_contains_text=Condition : contient du texte -title_condition_has_mimetype=Condition : \u00e0 le type mime -title_condition_in_category=Condition : dans la cat\u00e9gorie -title_condition_is_subtype=Condition : est un sous-type -title_condition_has_aspect=Condition : correspond \u00e0 l'aspect -title_condition_has_tag=Poss\u00e8de la condition d'\u00e9tiquette +title_condition_contains_text=Condition\u00a0: contient du texte +title_condition_has_mimetype=Condition\u00a0: \u00e0 le type MIME +title_condition_in_category=Condition\u00a0: dans la cat\u00e9gorie +title_condition_is_subtype=Condition\u00a0: est un sous-type +title_condition_has_aspect=Condition\u00a0: correspond \u00e0 l'aspect +title_condition_has_tag=Poss\u00e8de la condition de tag title_new_user_person_props=Utilisateur - Caract\u00e9ristiques de la personne title_new_user_user_props=Utilisateur - Caract\u00e9ristiques de l'utilisateur title_new_user_summary=Utilisateur - R\u00e9sum\u00e9 @@ -1911,60 +1911,60 @@ title_create_post=Cr\u00e9er un message title_create_reply=Cr\u00e9er une r\u00e9ponse title_edit_forums=Editer les d\u00e9tails de l'Espace forum title_edit_forum=Editer les d\u00e9tails du forum -title_edit_topic=Editer les d\u00e9tails de la Discussion +title_edit_topic=Editer les d\u00e9tails de la Discussion title_edit_post=Editer le Message title_noaccess=Acc\u00e8s Interdit # UI Error messages -error_generic=Une erreur syst\u00e8me s''est produite lors de l'op\u00e9ration\u00a0: {0} -error_noderef=L''\u00e9l\u00e9ment de r\u00e9f\u00e9rentiel (identifiant\u00a0: {0} est introuvable - l''enregistrement a sans doute \u00e9t\u00e9 supprim\u00e9 de la base de donn\u00e9es. +error_generic=Une erreur syst\u00e8me s''est produite lors de l''op\u00e9ration\u00a0: {0} +error_noderef=L''\u00e9l\u00e9ment d''entrep\u00f4t (identifiant\u00a0: {0} est introuvable - l''enregistrement a sans doute \u00e9t\u00e9 supprim\u00e9 de la base de donn\u00e9es. error_deleted_folder=L''\u00e9l\u00e9ment de dossier (identifiant\u00a0: {0} - a \u00e9t\u00e9 supprim\u00e9 de la base de donn\u00e9es. Le syst\u00e8me a modifi\u00e9 l''emplacement de votre Espace courant car l''Espace o\u00f9 vous \u00e9tiez n''existe plus. -error_homespace=Le n\u009cud d''espace personnel (identifiant\u00a0: {0}}est introuvable. Il se peut qu''il ait \u00e9t\u00e9 supprim\u00e9 de la base de donn\u00e9es. Veuillez contacter votre administrateur syst\u00e8me. +error_homespace=Le n\u0153ud d''espace personnel (identifiant\u00a0: {0}}est introuvable. Il se peut qu''il ait \u00e9t\u00e9 supprim\u00e9 de la base de donn\u00e9es. Veuillez contacter votre administrateur syst\u00e8me. error_search=\u00c9chec de la recherche en raison d''une erreur syst\u00e8me\u00a0: {0} -error_search_query=La recherche a \u00e9chou\u00e9 car le syst\u00e8me n'a pas pu la traiter, veuillez essayer une recherche diff\u00e9rente. +error_search_query=La requ\u00eate a \u00e9chou\u00e9 car le syst\u00e8me n'a pas pu la traiter, veuillez essayer une recherche diff\u00e9rente. error_not_found={0} non trouv\u00e9 dans {1}. error_exists=Un espace ou un fichier portant ce nom existe d\u00e9j\u00e0\u00a0: {0} error_delete_space=\u00c9chec de la suppression de l''espace en raison d''une erreur syst\u00e8me\u00a0: {0} error_delete_file=\u00c9chec de la suppression du fichier en raison d''une erreur syst\u00e8me\u00a0: {0} error_delete_sandbox=\u00c9chec de la suppression du bac \u00e0 sable en raison d''une erreur syst\u00e8me\u00a0: {0} -error_checkout=Impossible d'extraire une copie de travail du contenu suite \u00e0 une erreur syst\u00e8me : -error_update=Impossible de mettre \u00e0 jour le contenu suite \u00e0 une erreur syst\u00e8me : -error_cancel_checkout=Impossible d'annuler la copie de travail du contenu suite \u00e0 une erreur syst\u00e8me : -error_checkin=Impossible d'archiver le contenu suite \u00e0 une erreur syst\u00e8me : -error_paste=Impossible de coller l'\u00e9l\u00e9ment suite \u00e0 une erreur syst\u00e8me : +error_checkout=Impossible d'extraire une copie de travail du contenu suite \u00e0 une erreur syst\u00e8me\u00a0: +error_update=Impossible de mettre \u00e0 jour le contenu suite \u00e0 une erreur syst\u00e8me\u00a0: +error_cancel_checkout=Impossible d'annuler la copie de travail du contenu suite \u00e0 une erreur syst\u00e8me\u00a0: +error_checkin=Impossible d'archiver le contenu suite \u00e0 une erreur syst\u00e8me\u00a0: +error_paste=Impossible de coller l'\u00e9l\u00e9ment suite \u00e0 une erreur syst\u00e8me\u00a0: error_login_user=Impossible de se connecter - nom d'utilisateur/mot de passe inconnu. error_login_missing=Vous devez pr\u00e9ciser un nom d'utilisateur et un mot de passe. error_login_disallowed=Utilisateur d\u00e9sactiv\u00e9 - Veuillez contacter votre administrateur syst\u00e8me. error_login_maxusers=Nombre maximum d'utilisateurs atteint - Veuillez contacter votre administrateur syst\u00e8me. -error_delete_rule=Impossible de supprimer la r\u00e8gle suite \u00e0 une erreur syst\u00e8me : +error_delete_rule=Impossible de supprimer la r\u00e8gle suite \u00e0 une erreur syst\u00e8me\u00a0: error_actions=\u00c9chec d''ex\u00e9cution des actions en raison d''une erreur\u00a0: {0} error_rule=\u00c9chec de la cr\u00e9ation de la r\u00e8gle en raison d''une erreur\u00a0: {0} -error_space= \u00c9hec de la cr\u00e9ation d''un espace en raison d''une erreur\u00a0: {0} +error_space=\u00c9hec de la cr\u00e9ation d''un espace en raison d''une erreur\u00a0: {0} error_content=\u00c9chec de la cr\u00e9ation de contenu en raison d''une erreur\u00a0: {0} error_person=\u00c9chec de la cr\u00e9ation d''une personne en raison d''une erreur\u00a0: {0} error_delete_user=\u00c9chec de la suppression de l''utilisateur en raison d''une erreur\u00a0: {0} error_remove_user=\u00c9chec de la suppression de l''utilisateur en raison d''une erreur\u00a0: {0} error_password_match=Veuillez v\u00e9rifier que les deux mots de passe sont identiques. error_property=La propri\u00e9t\u00e9 ''{0}'' n''est pas disponible -error_create_space_dialog=Veuillez corriger les erreurs ci-dessous puis cliquez sur 'Cr\u00e9er un Espace'. -error_create_forums_dialog=Veuillez corriger les erreurs ci-dessous puis cliquez sur 'Cr\u00e9er un Espace forum'. -error_create_forum_dialog=Veuillez corriger les erreurs ci-dessous puis cliquez sur 'Cr\u00e9er un forum'. -error_create_topic_dialog=Veuillez corriger les erreurs ci-dessous puis cliquez sur 'Cr\u00e9er une discussion'. -error_create_post_dialog=Veuillez corriger les erreurs ci-dessous puis cliquez sur 'Cr\u00e9er un message'. -error_create_reply_dialog=Veuillez corriger les erreurs ci-dessous puis cliquez sur 'R\u00e9pondre'. -error_create_category_dialog=Veuillez corriger les erreurs ci-dessous puis cliquez sur 'Nouvelle cat\u00e9gorie'. -error_create_group_dialog=Veuillez corriger les erreurs ci-dessous puis cliquez sur 'Cr\u00e9er un groupe'. +error_create_space_dialog=Veuillez corriger les erreurs ci-dessous puis cliquez sur Cr\u00e9er un Espace. +error_create_forums_dialog=Veuillez corriger les erreurs ci-dessous puis cliquez sur Cr\u00e9er un Espace forum. +error_create_forum_dialog=Veuillez corriger les erreurs ci-dessous puis cliquez sur Cr\u00e9er un forum. +error_create_topic_dialog=Veuillez corriger les erreurs ci-dessous puis cliquez sur Cr\u00e9er une discussion. +error_create_post_dialog=Veuillez corriger les erreurs ci-dessous puis cliquez sur Cr\u00e9er un message. +error_create_reply_dialog=Veuillez corriger les erreurs ci-dessous puis cliquez sur R\u00e9pondre. +error_create_category_dialog=Veuillez corriger les erreurs ci-dessous puis cliquez sur Nouvelle cat\u00e9gorie. +error_create_group_dialog=Veuillez corriger les erreurs ci-dessous puis cliquez sur Cr\u00e9er un groupe. error_dialog=Veuillez corriger les erreurs ci-dessous puis cliquez sur OK. error_wizard=Veuillez corriger les erreurs ci-dessous puis cliquez sur Terminer. error_update_category=\u00c9chec de la mise \u00e0 jour de la cat\u00e9gorie en raison d''une erreur syst\u00e8me\u00a0: {0} -error_update_simpleworkflow=\u00c9chec de la mise \u00e0 jour du flux de travail simple en raison d''une erreur syst\u00e8me\u00a0: {0} -error_workflow_approve= \u00c9chec de l''autorisation du document en raison d'une erreur syst\u00e8me\u00a0: {0} +error_update_simpleworkflow=\u00c9chec de la mise \u00e0 jour du workflow simple en raison d''une erreur syst\u00e8me\u00a0: {0} +error_workflow_approve=\u00c9chec de l''autorisation du document en raison d''une erreur syst\u00e8me\u00a0: {0} error_workflow_reject=\u00c9chec du rejet du document en raison d''une erreur syst\u00e8me\u00a0: {0} -error_aspect_classify=\u00c9chec de l''application au document de l''aspect ''classifiable'' en raison d''une erreur syst\u00e8me\u00a0: {0} -error_aspect_classify_space=\u00c9chec de l''application \u00e0 l''espace de l''aspect ''classifiable'' en raison d''une erreur syst\u00e8me\u00a0: {0} +error_aspect_classify=\u00c9chec de l''application au document de l''aspect ''cat\u00e9gorisable'' en raison d''une erreur syst\u00e8me\u00a0: {0} +error_aspect_classify_space=\u00c9chec de l''application \u00e0 l''espace de l''aspect ''cat\u00e9gorisable'' en raison d''une erreur syst\u00e8me\u00a0: {0} error_aspect_versioning=\u00c9chec de l''application au document de l''aspect ''versionnable'' en raison d''une erreur syst\u00e8me\u00a0: {0} error_aspect_inlineeditable=\u00c9chec de l''application au document de l''aspect ''modifiable en ligne'' en raison d''une erreur syst\u00e8me\u00a0: {0} -error_content_missing=Le contenu du n\u009cud est manquant\u00a0: \n n\u009cud\u00a0: {0} \n lecteur\u00a0: {1} \nVeuillez contacter votre administrateur syst\u00e8me. +error_content_missing=Le contenu du n\u0153ud est manquant\u00a0: \n n\u0153ud\u00a0: {0} \n lecteur\u00a0: {1} \nVeuillez contacter votre administrateur syst\u00e8me. error_export=\u00c9chec de l''ex\u00e9cution de l''exportation\u00a0: {0} error_import=\u00c9chec de l''ex\u00e9cution de l''importation\u00a0: {0} error_import_no_file=Aucun fichier\u00a0ACP n'a \u00e9t\u00e9 trouv\u00e9 pour l'importation\u00a0! @@ -1977,6 +1977,7 @@ error_shortcut_permissions=Impossible de naviguer vers l'\u00e9l\u00e9ment car c error_association=Echec de la recherche de la d\u00e9finition de l''association pour l''association \"{0}\". error_charset_null=Valeur du set de caract\u00e8res nulle error_negative_quota=Le quota ne peut pas \u00eatre n\u00e9gatif\u00a0: {0} +error_search_not_exist=Search does not exist with name: {0} error_search_not_exist=Aucune recherche n''existe avec le nom suivant\u00a0: \"{0}\" error_retrieving_search_results=Erreur d''obtention de r\u00e9sultats pour la recherche \"{0}\" - \"{1}\" error_domain_mismatch=Discordance de domaine\u00a0: valeur attendue = {0}, valeur r\u00e9elle = {1} @@ -2010,7 +2011,7 @@ delete_translation_confirm=\u00cates-vous s\u00fbre de vouloir supprimer \"{0}\" delete_empty_translation_confirm=\u00cates-vous certain de vouloir d\u00e9finitivement supprimer \"{0}\"\u00a0? Ce document ne sera pas r\u00e9cup\u00e9rable. delete_ml_container_confirm=\u00cates-vous certain de vouloir supprimer \"{0}\" et toutes ses \u00e9ditions pr\u00e9c\u00e9dentes\u00a0? Chaque traduction sera supprim\u00e9e aussi. delete_rule_info=Pour supprimer cette r\u00e8gle de l'Espace, cliquez sur OK. -delete_user_info=Pour supprimer cet utilisateur du syst\u00e8me, cliquez sur 'Oui'. +delete_user_info=Pour supprimer cet utilisateur du syst\u00e8me, cliquez sur Oui. delete_rule_confirm=\u00cates-vous s\u00fbr de vouloir supprimer \"{0}\"\u00a0? delete_user_confirm=Cet utilisateur n''aura d\u00e9sormais plus acc\u00e8s au syst\u00e8me. \u00cates-vous s\u00fbr de vouloir supprimer \"{0}\"\u00a0? remove_invited_user_confirm=L''utilisateur ne pourra plus acc\u00e9der aux documents et aux dossiers de cet espace. \u00cates-vous s\u00fbr de vouloir supprimer l''utilisateur \"{0}\"\u00a0? @@ -2024,14 +2025,14 @@ status_space_deleted=Espace ''{0}'' effac\u00e9 avec succ\u00e8s. status_space_updated=Espace ''{0}'' mis \u00e0 jour avec succ\u00e8s. # Validation Messages -validation_mandatory={0} est un champs n\u00e9cessaire. +validation_mandatory={0} est un champs obligatoire. validation_string_length={0} doit \u00eatre entre {1} et {2} caract\u00e8res de long. validation_is_number={0} doit contenir un nombre. validation_regex={0} est invalide. validation_regex_not_match={0} est invalide. validation_numeric_range={0} doit \u00eatre entre {1} et {2}. validation_invalid_character=est un caract\u00e8re invalide. -validation_provide_values_for_required_fields=Pri\u00e8re de fournir des valeurs pour tous lees champs obligatoires +validation_provide_values_for_required_fields=Pri\u00e8re de fournir des valeurs pour tous les champs obligatoires # XForms ui idle=En attente @@ -2045,8 +2046,8 @@ go_up=Remonter # Tag picker click_to_select_tag=Cliquez pour s\u00e9lectionner des tags -add_a_tag=Add a tag -tags=\u00c9tiquettes +add_a_tag=Ajouter un tag +tags=Tags # Category browsing category_browser_plugin_label=Cat\u00e9gories @@ -2063,7 +2064,7 @@ SiteManager=Gestionnaire du site SiteConsumer=Visiteur du site SiteCollaborator=Collaborateur du site SiteContributor=Contributeur du site -sites_space_warning=Cet espace est g\u00e9r\u00e9 par Alfresco Share. Merci d'utiliser l'interface Share pour travailler sur le contenu de cet espace et de ses sous-espaces. +sites_space_warning=Cet espace est g\u00e9r\u00e9 par Alfresco Share. Merci d'utiliser l'interface Share pour travailler sur le contenu de cet espace et de ses sous-espaces. # Composite conditions select_composite_condition=Choix de la condition composite @@ -2071,10 +2072,10 @@ enter_text_condition=Entrer les param\u00e8tres de la condition pour une propri\ enter_integer_condition=Entrer les param\u00e8tres de la condition pour une propri\u00e9t\u00e9 de type entier enter_date_condition=Entrer les param\u00e8tres de la condition pour une propri\u00e9t\u00e9 de type date enter_boolean_condition=Entrer les param\u00e8tres de la condition pour une propri\u00e9t\u00e9 de type bool\u00e9en -select_default_qname=Choisissez le QName par d\u00e9faut +select_default_qname=S\u00e9lectionnez le QName par d\u00e9faut composite_condition_page_description=Cr\u00e9er une condition en en combinant plusieurs autres composite_condition_page_title=Cr\u00e9er une condition composite -composite_condition_page_selected=Les conditions seront combin\u00e9es selon l'op\u00e9rateur +composite_condition_page_selected=Les conditions seront combin\u00e9es selon l'op\u00e9rateur composite_condition_page_or=OU text_property_condition_property=Nom de la propri\u00e9t\u00e9 (ex: description or cm:description) integer_property_condition_property=Nom de la propri\u00e9t\u00e9 (ex: count or my:count) @@ -2124,3 +2125,6 @@ trx.transferStatus=Statut actuel trx.fromRepositoryId=Transf\u00e9r\u00e9 de trx.repositoryId=Origine du transfert trx.invadedBy=Inclut des transferts + +# Team properties +team_login_warning=La page Alfresco Explorer requise n'est pas prise en charge. Acc\u00e9dez \u00e0 cette page uniquement lorsque le service de support Alfresco vous y invite. diff --git a/config/alfresco/messages/webclient_it.properties b/config/alfresco/messages/webclient_it.properties index 40f899dbee..7f6e6b4502 100755 --- a/config/alfresco/messages/webclient_it.properties +++ b/config/alfresco/messages/webclient_it.properties @@ -1,6 +1,6 @@ # I18N message properties -empty_message -left_quote=' +empty_message= +left_qoute=' right_quote=' # Multilingual @@ -215,11 +215,11 @@ my_home=La mia homepage guest_home=Homepage dell'ospite new_search=Nuova ricerca search_results=Risultati della ricerca -search_detail=Di seguito sono mostrati i risultati della ricerca di "{0}" +search_detail=Di seguito sono mostrati i risultati della ricerca di \"{0}\" close_search=Chiudi ricerca browse_spaces=Sfoglia spazi browse_content=Elementi di contenuto -location=Posizione +location=Localit\u00e0 toggle_shelf=Nascondi o mostra la barra laterale actions=Azioni view=Vedi @@ -309,7 +309,7 @@ edit_doc_offline=Modifica offline edit_doc_online=Modifica online upload_new_version=Carica nuova versione checkin_this_file=Check In file -cannot_delete_node_has_working_copy=Impossibile eliminare il file ''{0}'' perch\u00e9 dispone di una copia di lavoro associata. +cannot_delete_node_has_working_copy=Impossibile eliminare il file \"{0}\" perch\u00e9 dispone di una copia di lavoro associata. unknown=Sconosciuto picker_search_min=Immettere almeno {0} caratteri per eseguire una ricerca. locked=Bloccato @@ -350,7 +350,7 @@ Coordinator=Coordinatore Collaborator=Collaboratore Contributor=Contributore Editor=Redattore -All=Tutto +All=Tutti ContentManager=Manager contenuto ContentPublisher=Editore contenuto ContentContributor=Contributore contenuto @@ -432,7 +432,7 @@ login_err_password_length=La password deve avere una lunghezza compresa tra {0} login_err_password_chars=La password pu\u00f2 contenere solo caratteri o cifre. login_err_username_length=Il nome utente deve avere una lunghezza compresa tra {0} e {1} caratteri. login_err_username_chars=Il nome utente pu\u00f2 contenere solo caratteri o cifre. -login_err_permissions=L'utente non dispone di permessi sufficienti per vedere l'elemento. Eseguire il login come un altro utente. +login_err_permissions=L'utente non dispone di permessi sufficienti per vedere l'elemento, eseguire il login come un altro utente. loggedout_details=\u00c8 stato eseguito il logout da Alfresco. relogin=Ripeti login ad Alfresco no_access=L'utente non dispone dell'accesso ad Alfresco. @@ -525,7 +525,7 @@ navigator_desc=Consente di spostarsi tramite la struttura ad albero all'interno shelf=Scaffale shelf_desc=Area contenente gli appunti, gli spazi recenti e le scorciatoie reset_navigator=Aggiorna -navigator_node_deleted=Lo spazio selezionato non \u00e8 pi\u00f9 presente nel repository. Aggiornare il Navigatore prima di continuare. +navigator_node_deleted=Lo spazio selezionato non \u00e8 pi\u00f9 presente nel repository, aggiornare il Navigatore prima di continuare. # Common Wizard messages steps=Passi @@ -557,7 +557,7 @@ items=Elementi title_delete_category=Elimina categoria delete_category_warning=A questa categoria sono collegati {0} documenti esistenti. delete_category_info=Per rimuovere questa categoria e tutte le relative sottocategorie, scegliere Elimina. -delete_category_confirm=Eliminare la categoria ''{0}'' e tutte le relative sottocategorie? +delete_category_confirm=Eliminare la categoria \"{0}\" e tutte le relative sottocategorie? title_edit_category=Modifica categoria edit_category_description=Modificare le informazioni di questa categoria. @@ -574,7 +574,7 @@ group_icons=Gruppi group_details=Dettagli root_groups=Gruppi radice group_filter_children=Figli -group_filter_all=Tutto +group_filter_all=Tutti title_create_group=Crea gruppo new_group_description=Immettere le informazioni sul nuovo gruppo, quindi scegliere Crea gruppo. group_props=Propriet\u00e0 gruppo @@ -583,7 +583,7 @@ create_group_warning=L'identificativo di un gruppo non pu\u00f2 essere cambiato title_delete_group=Elimina gruppo delete_group_warning=A questo gruppo sono associati {0} sottogruppo/i o utente/i. delete_group_info=Per eliminare questo gruppo dal sistema e rimuovere tutti i membri in esso contenuti, scegliere Elimina. -delete_group_confirm=Una volta rimosso dal sistema, il gruppo non sar\u00e0 pi\u00f9 accessibile. Eliminare il gruppo ''{0}'' e rimuovere tutti gli utenti in esso contenuti? +delete_group_confirm=Una volta rimosso dal sistema, il gruppo non sar\u00e0 pi\u00f9 accessibile. Eliminare il gruppo \"{0}\" e rimuovere tutti gli utenti in esso contenuti? title_add_user_group=Aggiungi utente a gruppo add_user_group_description=Aggiungere un utente esistente a un gruppo select_users=Seleziona utenti da aggiungere a questo gruppo @@ -593,7 +593,7 @@ groups_err_group_name=L''ID gruppo non pu\u00f2 contenere i caratteri seguenti: groups_err_exists=Esiste gi\u00e0 un ID gruppo con lo stesso nome. Gli identificativi dei gruppi devono essere unici. Read=Lettura Write=Scrittura -Delete=Eliminazione +Delete=Elimina permission=Permesso permissions=Permessi manage_permissions_title=Gestisci permessi per ''{0}'' @@ -659,7 +659,7 @@ invite_content_step1_desc=Selezionare gli utenti e i ruoli di cui disporranno pe remove_content_user_info=Per rimuovere un utente invitato da questo contenuto, scegliere S\u00ec. content_owner=L''utente ''{0}'' \u00e8 l''attuale proprietario di questo contenuto. -# AVM Compare +# AVM Compare snapshot_compare_to_current=Confronta con istantanea attuale snapshot_compare_to_current_description=Esaminare l''elenco delle modifiche tra l''istantanea ''{0}'' e l''istantanea attuale snapshot_compare_to_previous=Confronta con istantanea precedente @@ -699,7 +699,7 @@ which_copy_checkin=Di quale copia si desidera eseguire il Check In? which_copy_current=Usa copia nello spazio attuale which_copy_other=Usa copia caricata dal mio computer locate_doc_upload=Individua documento da caricare -file_location=Posizione +file_location=Localit\u00e0 minor_change=Cambiamento minore major_change=Cambiamento maggiore notes=Note @@ -775,8 +775,8 @@ apply_dashboard_info=Selezionare un modello da applicare allo spazio come vista apply_dashboard_doc_info=Selezionare un modello da applicare al documento come vista personalizzata. apply_rss_feed=Applica modello feed RSS apply_rss_feed_info=Selezionare un modello da applicare allo spazio come feed RSS. -apply_rss_feed_warning1=Questo spazio deve essere visibile all'utente ospite affinch\u00e9 il feed RSS possa essere visualizzato pubblicamente. \u00c8 possibile invitare l'utente ospite utilizzando la vista -apply_rss_feed_warning2=. +apply_rss_feed_warning1=Questo spazio deve essere visibile all'utente ospite affinch\u00e9 il feed RSS possa essere visualizzato pubblicamente +apply_rss_feed_warning2=\u00c8 possibile invitare l'utente ospite utilizzando la vista. rss_feed=Feed RSS rss_feed_link=Link feed RSS warn_cannot_view_target_details=Impossibile vedere i dettagli del documento di destinazione perch\u00e9 non si dispone dei permessi richiesti. @@ -824,7 +824,7 @@ http_request_params=Parametri richiesta HTTP http_request_headers=Intestazioni richiesta HTTP repository_props=Propriet\u00e0 repository repository_patch_succeeded=Operazione riuscita -repository_patch_failed=OPERAZIONE NON RIUSCITA +repository_patch_failed=NON RIUSCITO system_props=Propriet\u00e0 sistema hide_details=Nascondi dettagli show_details=Mostra dettagli @@ -846,7 +846,7 @@ content_type=Tipo di contenuto content_format=Formato contenuto inline_editable=Modificabile in linea locate_content=Individua contenuto da caricare -content_location=Posizione +content_location=Localit\u00e0 uploaded_content=Contenuto caricato click_upload=Scegliere Carica file_upload_success=''{0}'' \u00e8 stato caricato. @@ -939,7 +939,7 @@ web_form=Modulo web web_project=Progetto web # Form Not Found Exception messages -form_not_found=Impossibile trovare il modulo ''{0}''. +form_not_found=Impossibile trovare il modulo {0}. form_not_found_for_form_instance_data=Impossibile trovare il modulo {0} associato a {1}. form_not_found_in_web_project=Impossibile trovare il modulo {0} nel progetto web {1}. form_not_found_for_form_instance_data_in_web_project=Impossibile trovare il modulo {0} nel progetto web {1} associato a {2}. @@ -948,7 +948,7 @@ form_associated_with_form_instance_data_not_configured_for_web_project=Il modulo # Rule and Action Wizard messages run_action_title=Assistente Esegui azione -run_action_desc=Questo assistente consente di eseguire un'azione. +run_action_desc=Questo assistente consente di eseguire un'azione run_action_step1_title=Passo uno - Seleziona azioni run_action_finish_instruction=Per eseguire l'azione, scegliere Fine. Per esaminare o cambiare le selezioni, scegliere Torna. create_rule_title=Assistente Crea regola @@ -1007,7 +1007,7 @@ action_cannot_be_execute_repeatedly=Impossibile eseguire l'azione ripetutamente condition_has_aspect=L''elemento ha l''aspetto ''{0}'' condition_has_aspect_not=L''elemento non ha l''aspetto ''{0}'' condition_has_tag=L''elemento ha il tag ''{0}'' -condition_has_tag_not=L'elemento non ha il tag ''{0}'' +condition_has_tag_not=L''elemento non ha il tag ''{0}'' condition_is_subtype=L''elemento \u00e8 un sottotipo di ''{0}'' condition_is_subtype_not=L''elemento non \u00e8 un sottotipo di ''{0}'' condition_compare_mime_type=L''elemento ha il mimetype ''{0}'' @@ -1028,11 +1028,11 @@ action_copy_to_web_project_folder=Copia in ''{0}'' in ''{1}'' action_move=Sposta in ''{0}'' action_mail=Invia e-mail a ''{0}'' action_mail_template=Usa modello -action_check_in=Esegui Check In contenuto come '''{0}'' con il commento ''{1}'' +action_check_in=Esegui Check In contenuto come ''{0}'' con il commento ''{1}'' action_check_out=Esegui Check Out contenuto in ''{0}'' action_set_property_value=Imposta propriet\u00e0 ''{0}'' action_import=Importa in ''{0}'' -action_script=Esegui script {0} +action_script=Esegui script ''{0}'' action_script_select=Seleziona uno script da eseguire not_condition_result=Verifica che l'elemento non corrisponda ai criteri indicati space=Spazio @@ -1102,9 +1102,9 @@ website_createfrom=Crea da progetto web esistente create_website_step2_title=Passo due - Crea da progetto web esistente create_website_step2_desc=Selezionare opzionalmente un progetto esistente da utilizzare come modello per questo sito web website_create_empty=Crea un nuovo progetto web vuoto -website_create_existing=Crea un progetto web in base a uno esistente. La struttura della sandbox temporanea, i moduli web, il workflow e gli utenti verranno copiati dal progetto web selezionato. +website_create_existing=Crea un progetto web in base a uno esistente. La struttura della sandbox temporanea, i moduli web, il workflow e gli utenti verranno copiati dal progetto web selezionato website_sourcewebsite=Creato da progetto web -website_sourcetemplate=Usa come modello +website_sourcetemplate=Usa come modello? website_sourcenote=Nota: per default verranno visualizzati solo i progetti web contrassegnati per l'utilizzo come modello. website_sourceshowall=Mostra tutti i progetti web website_sourceshowtemplates=Mostra progetti web modello @@ -1176,7 +1176,7 @@ invite_webusers_finish_instruction=Per chiudere l'assistente e creare le sandbox # Delete Website Dialog messages delete_website=Elimina progetto web delete_website_info=Per rimuovere questo progetto web e le sandbox di tutti gli utenti associati, scegliere OK. -delete_website_confirm=Eliminare il progetto web ''{0}'' e le sandbox di tutti gli utenti associati? +delete_website_confirm=Eliminare il progetto web \"{0}\" e le sandbox di tutti gli utenti associati? # Browse Website and Sandboxes messages title_browse_website=Sfoglia sito web @@ -1262,15 +1262,15 @@ import_website_content_title=Importa in blocco import_website_content_desc=Utilizzare questa finestra di dialogo per importare un archivio di contenuto nel progetto web. import_high_byte_zip_file=Il file ZIP contiene nel byte alto caratteri del nome di file quali quelli giapponesi, cinesi o coreani. delete_avm_file_info=Per rimuovere questo file dalla sandbox, scegliere OK. -delete_avm_file_confirm=Rimuovere ''{0}'' dalla sandbox? -delete_form_instance_data_confirm=Rimuovere ''{0}'' e le {1} {1,choice,0#renditions|1#rendition|1\u3053\u306e\u6587\u66f8\u3092\u30c1\u30a7\u30c3\u30af\u30a2\u30a6\u30c8\u3059\u308b\u3053\u3068\u3067\u3001\u4ed6\u306e\u30e6\u30fc\u30b6\u306b\u3088\u308b\u5909\u66f4\u306e\u4e0a\u66f8\u3092\u9632\u3050\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002 + +# Category Management messages +title_categories_list=\u30ab\u30c6\u30b4\u30ea +add_category=\u30ab\u30c6\u30b4\u30ea\u306e\u8ffd\u52a0 +edit_category=\u30ab\u30c6\u30b4\u30ea\u306e\u7de8\u96c6 +delete_category=\u30ab\u30c6\u30b4\u30ea\u306e\u524a\u9664 +category_icons=\u30ab\u30c6\u30b4\u30ea +category_details=\u8a73\u7d30 +category_management=\u30ab\u30c6\u30b4\u30ea\u306e\u7ba1\u7406 +title_create_category=\u65b0\u898f\u30ab\u30c6\u30b4\u30ea\u306e\u4f5c\u6210 +new_category=\u65b0\u898f\u30ab\u30c6\u30b4\u30ea +category_props=\u30ab\u30c6\u30b4\u30ea\u306e\u30d7\u30ed\u30d1\u30c6\u30a3 +items=\u30a2\u30a4\u30c6\u30e0 +title_delete_category=\u30ab\u30c6\u30b4\u30ea\u306e\u524a\u9664 +delete_category_warning=\u3053\u306e\u30ab\u30c6\u30b4\u30ea\u306b\u306f\u3001\u3059\u3067\u306b{0}\u4ef6\u306e\u6587\u66f8\u306b\u5bfe\u3057\u3066\u30ea\u30f3\u30af\u304c\u8a2d\u5b9a\u3055\u308c\u3066\u3044\u307e\u3059\u3002 +delete_category_info=\u3053\u306e\u30ab\u30c6\u30b4\u30ea\u3068\u305d\u306e\u5168\u3066\u306e\u30b5\u30d6\u30ab\u30c6\u30b4\u30ea\u3092\u53d6\u9664\u304f\u306b\u306f\u3001[\u524a\u9664]\u3092\u30af\u30ea\u30c3\u30af\u3057\u3066\u304f\u3060\u3055\u3044\u3002 +delete_category_confirm=\u30ab\u30c6\u30b4\u30ea \"{0}\" \u3068\u305d\u306e\u5168\u3066\u306e\u30b5\u30d6\u30ab\u30c6\u30b4\u30ea\u3092\u524a\u9664\u3057\u307e\u3059\u304b? +title_edit_category=\u30ab\u30c6\u30b4\u30ea\u306e\u7de8\u96c6 +edit_category_description=\u3053\u306e\u30ab\u30c6\u30b4\u30ea\u306e\u60c5\u5831\u3092\u7de8\u96c6\u3057\u307e\u3059\u3002 + +# Groups Management messages +title_groups_list=\u30b0\u30eb\u30fc\u30d7\u7ba1\u7406 +groups_management=\u30b0\u30eb\u30fc\u30d7\u7ba1\u7406 +groups_description=\u30b0\u30eb\u30fc\u30d7\u30e1\u30f3\u30d0\u306e\u7ba1\u7406\u3001\u30b0\u30eb\u30fc\u30d7\u306e\u65b0\u898f\u4f5c\u6210\u307e\u305f\u306f\u65e2\u5b58\u306e\u30b0\u30eb\u30fc\u30d7\u306e\u524a\u9664\u3092\u884c\u3044\u307e\u3059\u3002 +new_group=\u30b0\u30eb\u30fc\u30d7\u306e\u4f5c\u6210 +new_sub_group=\u30b5\u30d6\u30b0\u30eb\u30fc\u30d7\u306e\u4f5c\u6210 +edit_group=\u30b0\u30eb\u30fc\u30d7\u306e\u7de8\u96c6 +delete_group=\u30b0\u30eb\u30fc\u30d7\u306e\u524a\u9664 +add_user=\u30e6\u30fc\u30b6\u306e\u8ffd\u52a0 +group_icons=\u30b0\u30eb\u30fc\u30d7 +group_details=\u8a73\u7d30 +root_groups=\u30eb\u30fc\u30c8\u30b0\u30eb\u30fc\u30d7 +group_filter_children=\u5b50 +group_filter_all=\u5168\u3066 +title_create_group=\u30b0\u30eb\u30fc\u30d7\u306e\u4f5c\u6210 +new_group_description=\u65b0\u898f\u30b0\u30eb\u30fc\u30d7\u306e\u60c5\u5831\u3092\u5165\u529b\u3057\u3001[\u30b0\u30eb\u30fc\u30d7\u306e\u4f5c\u6210]\u3092\u30af\u30ea\u30c3\u30af\u3057\u3066\u304f\u3060\u3055\u3044\u3002 +group_props=\u30b0\u30eb\u30fc\u30d7\u306e\u30d7\u30ed\u30d1\u30c6\u30a3 +identifier=ID +create_group_warning=\u30b0\u30eb\u30fc\u30d7\u306eID\u306f\u4e00\u5ea6\u8a2d\u5b9a\u3059\u308b\u3068\u5909\u66f4\u3067\u304d\u307e\u305b\u3093\u3002 +title_delete_group=\u30b0\u30eb\u30fc\u30d7\u306e\u524a\u9664 +delete_group_warning=\u3053\u306e\u30b0\u30eb\u30fc\u30d7\u306b\u306f\u3001{0} \u30b5\u30d6\u30b0\u30eb\u30fc\u30d7\u307e\u305f\u306f\u30e6\u30fc\u30b6\u304c\u6dfb\u4ed8\u3055\u308c\u3066\u3044\u307e\u3059\u3002 +delete_group_info=\u30b7\u30b9\u30c6\u30e0\u304b\u3089\u3053\u306e\u30b0\u30eb\u30fc\u30d7\u3092\u524a\u9664\u3057\u30b0\u30eb\u30fc\u30d7\u304b\u3089\u5168\u3066\u306e\u30e1\u30f3\u30d0\u3092\u53d6\u9664\u304f\u306b\u306f\u3001[\u524a\u9664]\u3092\u30af\u30ea\u30c3\u30af\u3057\u3066\u304f\u3060\u3055\u3044\u3002 +delete_group_confirm=\u30b0\u30eb\u30fc\u30d7\u3092\u30b7\u30b9\u30c6\u30e0\u304b\u3089\u53d6\u9664\u304f\u3068\u3001\u518d\u5ea6\u30a2\u30af\u30bb\u30b9\u3059\u308b\u3053\u3068\u306f\u3067\u304d\u307e\u305b\u3093\u3002 \u30b0\u30eb\u30fc\u30d7 \"{0}\" \u3092\u524a\u9664\u3057\u3001\u30b0\u30eb\u30fc\u30d7\u5185\u306e\u5168\u3066\u306e\u30e6\u30fc\u30b6\u3092\u53d6\u308a\u5916\u3057\u307e\u3059\u304b? +title_add_user_group=\u30b0\u30eb\u30fc\u30d7\u306b\u30e6\u30fc\u30b6\u3092\u8ffd\u52a0 +add_user_group_description=\u30b0\u30eb\u30fc\u30d7\u306b\u65e2\u5b58\u30e6\u30fc\u30b6\u3092\u8ffd\u52a0 +select_users=\u3053\u306e\u30b0\u30eb\u30fc\u30d7\u306b\u8ffd\u52a0\u3059\u308b\u30e6\u30fc\u30b6\u3092\u9078\u629e +selected_users=\u9078\u629e\u3055\u308c\u305f\u30e6\u30fc\u30b6 +groups_err_group_name_length=\u30b0\u30eb\u30fc\u30d7ID\u306f{0}\u304b\u3089{1}\u6587\u5b57\u306e\u9593\u306e\u9577\u3055\u306b\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002 +groups_err_group_name=\u30b0\u30eb\u30fc\u30d7ID\u306b\u6587\u5b57''{0}''\u3092\u542b\u3081\u308b\u3053\u3068\u306f\u3067\u304d\u307e\u305b\u3093 +groups_err_exists=\u540c\u540d\u306e\u30b0\u30eb\u30fc\u30d7ID\u304c\u3059\u3067\u306b\u5b58\u5728\u3057\u307e\u3059\u3002\u30b0\u30eb\u30fc\u30d7ID\u306f\u56fa\u6709\u306e\u3082\u306e\u3067\u3042\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002 +Read=\u8aad\u8fbc +Write=\u66f8\u8fbc\u307f +Delete=\u524a\u9664 +permission=\u6a29\u9650 +permissions=\u6a29\u9650 +manage_permissions_title=''{0}''\u306e\u6a29\u9650\u3092\u7ba1\u7406 +manage_permissions_subtitle=\u30d5\u30a9\u30eb\u30c0\u3084\u30d5\u30a1\u30a4\u30eb\u306b\u30a2\u30af\u30bb\u30b9\u3059\u308b\u30e6\u30fc\u30b6\u306b\u4e0e\u3048\u305f\u6a29\u9650\u3092\u7ba1\u7406\u3057\u307e\u3059\u3002 +manage_permissions=\u6a29\u9650\u3092\u7ba1\u7406 +view_permissions=\u6a29\u9650\u3092\u8868\u793a +set_permissions=\u6a29\u9650\u3092\u8a2d\u5b9a +change_permissions=\u6a29\u9650\u3092\u5909\u66f4 +set_permissions_title=''{0}''\u306e\u6a29\u9650\u3092\u8a2d\u5b9a +set_permissions_subtitle=\u3053\u306e\u30c0\u30a4\u30a2\u30ed\u30b0\u3067\u306f\u3001\u4ed6\u306e\u30e6\u30fc\u30b6\u30fc\u306b\u3053\u306e\u30d5\u30a9\u30eb\u30c0\u3084\u30d5\u30a1\u30a4\u30eb\u3078\u306e\u30a2\u30af\u30bb\u30b9\u6a29\u9650\u3092\u4e0e\u3048\u307e\u3059\u3002 +select_usersgroups_perms=\u30e6\u30fc\u30b6/\u30b0\u30eb\u30fc\u30d7\u3068\u305d\u306e\u6a29\u9650\u306e\u9078\u629e +selected_usersgroups_perms=\u9078\u629e\u3055\u308c\u305f\u30e6\u30fc\u30b6/\u30b0\u30eb\u30fc\u30d7\u3068\u6a29\u9650 +remove_permissions_title=\u30e6\u30fc\u30b6''{0}''\u3092\u53d6\u9664\u304f +remove_permissions_subtitle=\u30e6\u30fc\u30b6\u306e\u6a29\u9650\u3092\u5168\u3066\u53d6\u9664\u304f\u306b\u306f\u3001[\u306f\u3044]\u3092\u30af\u30ea\u30c3\u30af\u3057\u3066\u304f\u3060\u3055\u3044\u3002 +remove_permissions=\u3053\u306e\u30e6\u30fc\u30b6\u306e\u6a29\u9650\u3092\u5168\u3066\u53d6\u9664\u304d\u307e\u3059\u304b? +edit_permissions_title=''{0}''\u306e\u6a29\u9650\u3092\u5909\u66f4 +view_permissions_title=''{0}''\u306e\u6a29\u9650\u3092\u8868\u793a +edit_permissions_subtitle=\u30d5\u30a9\u30eb\u30c0\u3084\u30d5\u30a1\u30a4\u30eb\u306b\u30a2\u30af\u30bb\u30b9\u3059\u308b\u30e6\u30fc\u30b6\u306b\u4e0e\u3048\u305f\u6a29\u9650\u3092\u5909\u66f4\u3057\u307e\u3059\u3002 +view_permissions_subtitle=\u30d5\u30a9\u30eb\u30c0\u3084\u30d5\u30a1\u30a4\u30eb\u306b\u30a2\u30af\u30bb\u30b9\u3059\u308b\u30e6\u30fc\u30b6\u306b\u4e0e\u3048\u305f\u6a29\u9650\u3002 +select_perm=\u6a29\u9650\u306e\u9078\u629e +selected_perm=\u9078\u629e\u3055\u308c\u305f\u6a29\u9650 +change_user_perms=\u30e6\u30fc\u30b6\u30fc\u306e\u6a29\u9650\u306e\u5909\u66f4 + +# Invite Users Wizard messages +invite_title=\u30e6\u30fc\u30b6\u306e\u62db\u5f85\u30a6\u30a3\u30b6\u30fc\u30c9 +invite_desc=\u3053\u306e\u30a6\u30a3\u30b6\u30fc\u30c9\u3067\u306f\u3001\u4ed6\u306e\u30e6\u30fc\u30b6\u30fc\u306b\u3053\u306e\u30b9\u30da\u30fc\u30b9\u3078\u306e\u30a2\u30af\u30bb\u30b9\u6a29\u9650\u3092\u4e0e\u3048\u307e\u3059\u3002 +invite_step1_title=\u30b9\u30c6\u30c3\u30d7 1 - \u30e6\u30fc\u30b6\u306e\u62db\u5f85 +invite_step1_desc=\u3053\u306e\u30b9\u30fc\u30da\u30b9\u306b\u5272\u5f53\u3066\u308b\u3001\u30e6\u30fc\u30b6\u3068\u305d\u306e\u5f79\u5272\u3092\u9078\u629e\u3057\u307e\u3059\u3002 +invite_step2_title=\u30b9\u30c6\u30c3\u30d7 2 - \u30e6\u30fc\u30b6\u306b\u901a\u77e5\u3059\u308b +invite_step2_desc=\u9078\u629e\u3057\u305f\u30e6\u30fc\u30b6\u306b\u901a\u77e5\u3057\u3066\u304f\u3060\u3055\u3044\u3002 +i_want_to=\u4ee5\u4e0b\u3092\u5b9f\u884c\u30fb\u30fb\u30fb +invite_step_1=\u30e6\u30fc\u30b6\u306e\u62db\u5f85 +invite_step_2=\u30e6\u30fc\u30b6\u3078\u901a\u77e5 +invite_all=\u5168\u3066\u306e\u30e6\u30fc\u30b6\u3092\u30b2\u30b9\u30c8\u3068\u3057\u3066\u62db\u5f85 +invite_users=\u30e6\u30fc\u30b6/\u30b0\u30eb\u30fc\u30d7\u3068\u5f79\u5272\u306e\u6307\u5b9a +specify_usersgroups=\u30e6\u30fc\u30b6/\u30b0\u30eb\u30fc\u30d7\u306e\u6307\u5b9a +select_usersgroups=\u30e6\u30fc\u30b6/\u30b0\u30eb\u30fc\u30d7\u3068\u305d\u306e\u5f79\u5272\u306e\u9078\u629e +select_role=\u5f79\u5272\u306e\u9078\u629e +selected_usersgroups=\u9078\u629e\u3055\u308c\u305f\u30e6\u30fc\u30b6/\u30b0\u30eb\u30fc\u30d7\u3068\u305d\u306e\u5f79\u5272 +selected_roles=\u9078\u629e\u3055\u308c\u305f\u5f79\u5272 +click_add=\u30af\u30ea\u30c3\u30af\u3057\u3066\u8ffd\u52a0 +role=\u5f79\u5272 +send_email=\u62db\u5f85\u3057\u305f\u30e6\u30fc\u30b6\u306b\u901a\u77e5E\u30e1\u30fc\u30eb\u3092\u9001\u4fe1\u3057\u307e\u3059\u304b\uff1f +subject=\u4ef6\u540d +body=\u672c\u6587 +automatic_text=\u81ea\u52d5\u30c6\u30ad\u30b9\u30c8 +invited_to={1}\u304b\u3089''{0}''\u306b\u62db\u5f85\u3055\u308c\u3066\u3044\u307e\u3059\u3002 +invite_role=\u4ee5\u4e0b\u306e\u5f79\u5272\u304c\u3042\u308a\u307e\u3059: {0} +invite_finish_instruction=\u5909\u66f4\u3092\u9069\u7528\u3057\u3066\u3053\u306e\u30a6\u30a3\u30b6\u30fc\u30c9\u3092\u9589\u3058\u308b\u306b\u306f\u3001[\u7d42\u4e86]\u3092\u30af\u30ea\u30c3\u30af\u3057\u307e\u3059\u3002 \u9078\u629e\u5185\u5bb9\u3092\u30ec\u30d3\u30e5\u30fc\u307e\u305f\u306f\u5909\u66f4\u3059\u308b\u306b\u306f\u3001[\u623b\u308b]\u3092\u30af\u30ea\u30c3\u30af\u3057\u3066\u304f\u3060\u3055\u3044\u3002 +remove_invited_user_info=\u62db\u5f85\u3057\u305f\u30e6\u30fc\u30b6\u3092\u3053\u306e\u30b9\u30da\u30fc\u30b9\u304b\u3089\u524a\u9664\u3059\u308b\u306b\u306f\u3001[\u306f\u3044]\u3092\u30af\u30ea\u30c3\u30af\u3057\u3066\u304f\u3060\u3055\u3044\u3002 +add_role=\u5f79\u5272\u306e\u8ffd\u52a0 +space_owner=\u30e6\u30fc\u30b6 ''{0}'' \u306f\u3053\u306e\u30b9\u30da\u30fc\u30b9\u306e\u73fe\u5728\u306e\u6240\u6709\u8005\u3067\u3059\u3002 +users_and_groups=\u30e6\u30fc\u30b6\u3068\u30b0\u30eb\u30fc\u30d7 +authority=\u30e6\u30fc\u30b6\u540d +invite_users_summary=\u30e6\u30fc\u30b6\u3068\u5f79\u5272 +too_many_users=\u691c\u7d22\u306b\u30de\u30c3\u30c1\u3059\u308b\u30e6\u30fc\u30b6\u304c\u591a\u3059\u304e\u307e\u3059\u3002 \u6761\u4ef6\u3092\u7d5e\u308a\u8fbc\u3093\u3067\u518d\u8a66\u884c\u3057\u3066\u304f\u3060\u3055\u3044\u3002 +max_users_returned=\u691c\u7d22\u3067\u306f\u3001\u6700\u521d\u306e {0} \u7d50\u679c\u3057\u304b\u8868\u793a\u3055\u308c\u307e\u305b\u3093\u3002 + +# Invite Content Users Wizard messages +invite_content_title=\u30b3\u30f3\u30c6\u30f3\u30c4\u30fb\u30e6\u30fc\u30b6\u306e\u62db\u5f85\u30a6\u30a3\u30b6\u30fc\u30c9 +invite_content_desc=\u3053\u306e\u30a6\u30a3\u30b6\u30fc\u30c9\u3067\u306f\u3001\u4ed6\u306e\u30e6\u30fc\u30b6\u30fc\u306b\u3053\u306e\u30b3\u30f3\u30c6\u30f3\u30c4\u3078\u306e\u30a2\u30af\u30bb\u30b9\u6a29\u9650\u3092\u4e0e\u3048\u307e\u3059\u3002 +invite_content_step1_desc=\u30e6\u30fc\u30b6\u304a\u3088\u3073\u3001\u305d\u306e\u30e6\u30fc\u30b6\u304c\u3053\u306e\u30b3\u30f3\u30c6\u30f3\u30c4\u3067\u679c\u305f\u3059\u5f79\u5272\u3092\u9078\u629e\u3057\u3066\u304f\u3060\u3055\u3044\u3002 +remove_content_user_info=\u62db\u5f85\u3057\u305f\u30e6\u30fc\u30b6\u3092\u3053\u306e\u30b3\u30f3\u30c6\u30f3\u30c4\u304b\u3089\u53d6\u9664\u304f\u306b\u306f\u3001[\u306f\u3044]\u3092\u30af\u30ea\u30c3\u30af\u3057\u3066\u304f\u3060\u3055\u3044\u3002 +content_owner=\u30e6\u30fc\u30b6 ''{0}'' \u306f\u3053\u306e\u30b3\u30f3\u30c6\u30f3\u30c4\u306e\u73fe\u5728\u306e\u6240\u6709\u8005\u3067\u3059\u3002 + +# AVM Compare +snapshot_compare_to_current=\u73fe\u5728\u306e\u30b9\u30ca\u30c3\u30d7\u30b7\u30e7\u30c3\u30c8\u3068\u306e\u6bd4\u8f03 +snapshot_compare_to_current_description=\u30b9\u30ca\u30c3\u30d7\u30b7\u30e7\u30c3\u30c8''{0}''\u3068\u73fe\u5728\u306e\u30b9\u30ca\u30c3\u30d7\u30b7\u30e7\u30c3\u30c8\u306e\u9593\u306e\u5909\u66f4\u3092\u306e\u30ea\u30b9\u30c8\u3092\u8868\u793a +snapshot_compare_to_previous=\u524d\u306e\u30b9\u30ca\u30c3\u30d7\u30b7\u30e7\u30c3\u30c8\u3068\u306e\u6bd4\u8f03 +snapshot_compare_to_previous_description=\u30b9\u30ca\u30c3\u30d7\u30b7\u30e7\u30c3\u30c8''{0}''\u3068 ''{1}''\u306e\u9593\u306e\u5909\u66f4\u306e\u30ea\u30b9\u30c8\u3092\u8868\u793a +snapshot_compare_to_any=\u4efb\u610f\u306e\u30b9\u30ca\u30c3\u30d7\u30b7\u30e7\u30c3\u30c8\u3068\u306e\u6bd4\u8f03 +snapshot_compare_to_any_description=\u30b9\u30ca\u30c3\u30d7\u30b7\u30e7\u30c3\u30c8''{0}''\u3068\u30e6\u30fc\u30b6\u304c\u9078\u629e\u3057\u305f\u30b9\u30ca\u30c3\u30d7\u30b7\u30e7\u30c3\u30c8\u306e\u9593\u306e\u5909\u66f4\u306e\u30ea\u30b9\u30c8\u3092\u8868\u793a +store_title=\u30b9\u30c8\u30a2 +version_title=\u30d0\u30fc\u30b8\u30e7\u30f3 +avm_compare_newer=\u65b0\u3057\u3044 +avm_compare_older=\u53e4\u3044 +avm_compare_conflict=\u30b3\u30f3\u30d5\u30ea\u30af\u30c8 +avm_compare_directory=\u30c7\u30a3\u30ec\u30af\u30c8\u30ea +avm_compare_same=\u540c\u3058 +error_version_validate=\u30d0\u30fc\u30b8\u30e7\u30f3\u756a\u53f7\u304c\u6709\u52b9\u3067\u3042\u308a\u307e\u305b\u3093\u3002 +snapshot_name=\u540d\u524d +snapshot_path=\u30d1\u30b9 +snapshot_status=\u30b9\u30c6\u30fc\u30bf\u30b9 +increment_button_hint=\u6b21\u306e\u6709\u52b9\u306a\u30d0\u30fc\u30b8\u30e7\u30f3 +decrement_button_hint=\u524d\u306e\u6709\u52b9\u306a\u30d0\u30fc\u30b8\u30e7\u30f3 +refresh_button_hint=\u518d\u8aad\u307f\u8fbc\u307f + +# System Users messages +create_user=\u30e6\u30fc\u30b6\u306e\u4f5c\u6210 +change_password=\u30d1\u30b9\u30ef\u30fc\u30c9\u306e\u5909\u66f4 +title_change_password=\u30e6\u30fc\u30b6\u30d1\u30b9\u30ef\u30fc\u30c9\u306e\u5909\u66f4 +change_password_description=\u3053\u306e\u30d3\u30e5\u30fc\u3067\u306f\u3001\u65e2\u5b58\u306e\u30e6\u30fc\u30b6\u30fb\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u5909\u66f4\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002 +change_password_instructions=\u3053\u306e\u30e6\u30fc\u30b6\u306e\u65b0\u3057\u3044\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u5165\u529b\u3057\u3066\u304f\u3060\u3055\u3044\u3002 +show_all=\u5168\u3066\u8868\u793a +warn_user_was_deleted=\u30e6\u30fc\u30b6\u306f\u3059\u3067\u306b\u524a\u9664\u3055\u308c\u3066\u3044\u307e\u3059\u3002 + +# Check-in messages +check_in=\u30c1\u30a7\u30c3\u30af\u30a4\u30f3 +checkin_options=\u30c1\u30a7\u30c3\u30af\u30a4\u30f3\u30fb\u30aa\u30d7\u30b7\u30e7\u30f3 +checkin_changes_info=\u5909\u66f4\u3092\u30c1\u30a7\u30c3\u30af\u30a4\u30f3\u3057\u3001\u30c1\u30a7\u30c3\u30af\u30a2\u30a6\u30c8\u3057\u305f\u30d5\u30a1\u30a4\u30eb\u3092\u4fdd\u7ba1 +workingcopy_location=\u4f5c\u696d\u30b3\u30d4\u30fc\u306e\u5834\u6240 +which_copy_checkin=\u3069\u306e\u30b3\u30d4\u30fc\u3092\u30c1\u30a7\u30c3\u30af\u30a4\u30f3\u3057\u307e\u3059\u304b? +which_copy_current=\u73fe\u5728\u306e\u30b9\u30da\u30fc\u30b9\u306e\u30b3\u30d4\u30fc\u3092\u4f7f\u7528\u3059\u308b +which_copy_other=\u81ea\u5206\u306e\u30b3\u30f3\u30d4\u30e5\u30fc\u30bf\u304b\u3089\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3057\u305f\u30b3\u30d4\u30fc\u3092\u4f7f\u7528\u3059\u308b +locate_doc_upload=\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3059\u308b\u6587\u66f8\u3092\u63a2\u3059 +file_location=\u5834\u6240 +minor_change=\u5c0f\u3055\u306a\u5909\u66f4 +major_change=\u5927\u304d\u306a\u5909\u66f4 +notes=\u30e1\u30e2 +new_version_has=\u3053\u306e\u65b0\u898f\u30d0\u30fc\u30b8\u30e7\u30f3\u306b\u306f +initial_version=\u3053\u308c\u306f\u521d\u671f\u30d0\u30fc\u30b8\u30e7\u30f3\u3067\u3059 +minor_changes=\u5c0f\u3055\u306a\u5909\u66f4 +major_changes=\u5927\u304d\u306a\u5909\u66f4 +missing_original_node=\u5143\u306e\u30b3\u30f3\u30c6\u30f3\u30c4\u30fb\u30ce\u30fc\u30c9\u304c\u898b\u3064\u304b\u308a\u307e\u305b\u3093 +version_info=\u30d0\u30fc\u30b8\u30e7\u30f3\u60c5\u5831 + +# Check-out messages +check_out=\u30c1\u30a7\u30c3\u30af\u30a2\u30a6\u30c8 +copy_work_with=\u30d5\u30a1\u30a4\u30eb ''{0}'' \u306e\u30b3\u30d4\u30fc\u304c\u4f5c\u696d\u7528\u306b\u4f5c\u6210\u3055\u308c\u307e\u3059\u3002 +copy_checkin_changes=\u5909\u66f4\u3092\u5b8c\u4e86\u3057\u305f\u3089\u3001\u4ed6\u306e\u4eba\u304c\u5909\u66f4\u3092\u8868\u793a\u3067\u304d\u308b\u3088\u3046\u306b\u3001\u30d5\u30a1\u30a4\u30eb\u3092\u30c1\u30a7\u30c3\u30af\u30a4\u30f3\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002 +copy_store_prompt=\u3053\u306e\u30d5\u30a1\u30a4\u30eb\u306e\u30b3\u30d4\u30fc\u3092\u3069\u3053\u306b\u4fdd\u7ba1\u3057\u307e\u3059\u304b? +store_space_current=\u73fe\u5728\u306e\u30b9\u30da\u30fc\u30b9 +store_space_selected=\u9078\u629e\u3057\u305f\u30b9\u30da\u30fc\u30b9 +check_out_of=\u30c1\u30a7\u30c3\u30af\u30a2\u30a6\u30c8\u5bfe\u8c61 +copy_file_checkedout=\u30d5\u30a1\u30a4\u30eb ''{0}'' \u306e\u30b3\u30d4\u30fc\u304c\u7de8\u96c6\u7528\u306b\u30c1\u30a7\u30c3\u30af\u30a2\u30a6\u30c8\u3055\u308c\u307e\u3059\u3002 +edit_workingcopy_title=\u4f5c\u696d\u7528\u30b3\u30d4\u30fc\u3092\u4eca\u7de8\u96c6\u3059\u308b +edit_workingcopy_info=\u30d5\u30a1\u30a4\u30eb\u306e\u4f5c\u696d\u7528\u30b3\u30d4\u30fc\u3092\u7de8\u96c6\u3059\u308b\u306b\u306f\u3001\u4e0b\u306e\u30ea\u30f3\u30af\u3092\u30af\u30ea\u30c3\u30af\u3057\u3001\u6c42\u3081\u3089\u308c\u305f\u3089[\u4fdd\u5b58]\u3092\u9078\u629e\u3057\u3066\u304f\u3060\u3055\u3044\u3002 +download_complete=\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u304c\u5b8c\u4e86\u3057\u305f\u3089\u3001[OK]\u3092\u30af\u30ea\u30c3\u30af\u3057\u3066\u304f\u3060\u3055\u3044\u3002 +undo_checkout_for=\u30c1\u30a7\u30c3\u30af\u30a2\u30a6\u30c8\u3092\u5143\u306b\u623b\u3059 +undo_checkout=\u30c1\u30a7\u30c3\u30af\u30a2\u30a6\u30c8\u3092\u5143\u306b\u623b\u3059 +undo_checkout_info=\u6587\u66f8\u306e\u30c1\u30a7\u30c3\u30af\u30a2\u30a6\u30c8\u3092\u5143\u306b\u623b\u3059\u3068\u3001\u95a2\u9023\u3059\u308b\u4f5c\u696d\u7528\u30b3\u30d4\u30fc\u304c\u524a\u9664\u3055\u308c\u3001\u30c1\u30a7\u30c3\u30af\u30a2\u30a6\u30c8\u5f8c\u306e\u5909\u66f4\u306f\u5168\u3066\u5931\u308f\u308c\u307e\u3059\u3002 +cancel_editing_for=\u7de8\u96c6\u306e\u30ad\u30e3\u30f3\u30bb\u30eb +cancel_editing_info=\u7de8\u96c6\u3092\u30ad\u30e3\u30f3\u30bb\u30eb\u3057\u307e\u3059\u304b? \u4f5c\u696d\u7528\u30b3\u30d4\u30fc\u306e\u5909\u66f4\u306f\u5168\u3066\u5931\u308f\u308c\u307e\u3059\u3002 +complete=\u5b8c\u4e86 +working_copy_for=\u4f5c\u696d\u7528\u30b3\u30d4\u30fc +working_copy_missing_info=\u4f5c\u696d\u7528\u30b3\u30d4\u30fc\u306f\u5229\u7528\u3067\u304d\u307e\u305b\u3093\u3002 \u30c1\u30a7\u30c3\u30af\u30a2\u30a6\u30c8\u5148\u306e\u30b9\u30da\u30fc\u30b9\u306b\u9069\u7528\u3055\u308c\u3066\u3044\u308b\u6709\u52b9\u306a\u30eb\u30fc\u30eb\u304c\u539f\u56e0\u3067\u3042\u308b\u3068\u601d\u308f\u308c\u307e\u3059\u3002 + +# Document and Space details messages +details_of=\u8a73\u7d30 +preview_of=\u30d7\u30ec\u30d3\u30e5\u30fc +modify_props_of=\u30d7\u30ed\u30d1\u30c6\u30a3\u306e\u4fee\u6b63 +modify_space_properties=\u30b9\u30da\u30fc\u30b9\u30fb\u30d7\u30ed\u30d1\u30c6\u30a3\u306e\u4fee\u6b63 +modify_content_properties=\u30b3\u30f3\u30c6\u30f3\u30c4\u30fb\u30d7\u30ed\u30d1\u30c6\u30a3\u306e\u4fee\u6b63 +modify_link_properties=\u30ea\u30f3\u30af\u30fb\u30d7\u30ed\u30d1\u30c6\u30a3\u306e\u4fee\u6b63 +view_content_properties=\u30b3\u30f3\u30c6\u30f3\u30c4\u30fb\u30d7\u30ed\u30d1\u30c6\u30a3\u306e\u8868\u793a +preview=\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u3067\u30d7\u30ec\u30d3\u30e5\u30fc +custom_view=\u30ab\u30b9\u30bf\u30e0\u30d3\u30e5\u30fc +view_links=\u30ea\u30f3\u30af +not_inline_editable=\u3053\u306e\u6587\u66f8\u306f\u30a4\u30f3\u30e9\u30a4\u30f3\u7de8\u96c6\u3067\u304d\u307e\u305b\u3093\u3002 +allow_inline_editing=\u30a4\u30f3\u30e9\u30a4\u30f3\u7de8\u96c6\u306e\u8a31\u53ef +not_in_category=\u3053\u306e\u6587\u66f8\u306b\u306f\u30ab\u30c6\u30b4\u30ea\u304c\u8a2d\u5b9a\u3055\u308c\u3066\u3044\u307e\u305b\u3093\u3002 +not_in_category_space=\u3053\u306e\u30b9\u30da\u30fc\u30b9\u306b\u306f\u30ab\u30c6\u30b4\u30ea\u304c\u8a2d\u5b9a\u3055\u308c\u3066\u3044\u307e\u305b\u3093\u3002 +not_versioned=\u3053\u306e\u6587\u66f8\u306b\u306f\u66f4\u65b0\u5c65\u6b74\u304c\u3042\u308a\u307e\u305b\u3093\u3002 +allow_categorization=\u30ab\u30c6\u30b4\u30ea\u8a2d\u5b9a\u306e\u8a31\u53ef +allow_versioning=\u30d0\u30fc\u30b8\u30e7\u30f3\u7ba1\u7406\u306e\u8a31\u53ef +version_history=\u30d0\u30fc\u30b8\u30e7\u30f3\u5c65\u6b74 +version=\u30d0\u30fc\u30b8\u30e7\u30f3 +document_properties=\u6587\u66f8\u30d7\u30ed\u30d1\u30c6\u30a3 +link_properties=\u30ea\u30f3\u30af\u30fb\u30d7\u30ed\u30d1\u30c6\u30a3 +general_properties=\u4e00\u822c\u306e\u30d7\u30ed\u30d1\u30c6\u30a3 +other_properties=\u4ed6\u306e\u30d7\u30ed\u30d1\u30c6\u30a3 +link_destination=\u30ea\u30f3\u30af\u5148 +link_destination_details=\u30ea\u30f3\u30af\u5148\u306e\u8a73\u7d30 +no_other_properties=\u3053\u306e\u6587\u66f8\u306b\u306f\u8868\u793a\u3059\u308b\u4ed6\u306e\u30d7\u30ed\u30d1\u30c6\u30a3\u304c\u3042\u308a\u307e\u305b\u3093\u3002 +modify_categories_of=\u30ab\u30c6\u30b4\u30ea\u3092\u4fee\u6b63 +space_props=\u30b9\u30da\u30fc\u30b9\u30fb\u30d7\u30ed\u30d1\u30c6\u30a3 +choose_space_icon=\u30b9\u30da\u30fc\u30b9\u306e\u30a2\u30a4\u30b3\u30f3\u3092\u9078\u629e +create_space_finish=\u30b9\u30da\u30fc\u30b9\u3092\u4f5c\u6210\u3059\u308b\u306b\u306f\u3001[\u30b9\u30da\u30fc\u30b9\u306e\u4f5c\u6210]\u3092\u30af\u30ea\u30c3\u30af\u3057\u3066\u304f\u3060\u3055\u3044\u3002 +select_category=\u30ab\u30c6\u30b4\u30ea\u306e\u9078\u629e +selected_categories=\u9078\u629e\u6e08\u306e\u30ab\u30c6\u30b4\u30ea +no_selected_categories=\u30ab\u30c6\u30b4\u30ea\u304c\u9078\u629e\u3055\u308c\u3066\u3044\u307e\u305b\u3093\u3002 +success_ownership=\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u6240\u6709\u6a29\u306e\u7372\u5f97\u306b\u6210\u529f\u3057\u307e\u3057\u305f\u3002 +success_unlock=\u6587\u66f8\u306e\u30ed\u30c3\u30af\u89e3\u9664\u306b\u6210\u529f\u3057\u307e\u3057\u305f\u3002 +inherit_permissions=\u89aa\u30b9\u30da\u30fc\u30b9\u306e\u6a29\u9650\u3092\u7d99\u627f +success_inherit_permissions=\u7d99\u627f\u3059\u308b\u89aa\u6a29\u9650\u3092\u6b63\u5e38\u306b'\u306f\u3044'\u306b\u5909\u66f4\u3057\u307e\u3057\u305f\u3002 +success_not_inherit_permissions=\u7d99\u627f\u3059\u308b\u89aa\u6a29\u9650\u3092'\u3044\u3044\u3048'\u306b\u6b63\u5e38\u306b\u5909\u66f4\u3057\u307e\u3057\u305f\u3002 +apply_template=\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u306e\u9069\u7528 +apply_dashboard_info=\u30ab\u30b9\u30bf\u30e0\u30d3\u30e5\u30fc\u3068\u3057\u3066\u3001\u30b9\u30da\u30fc\u30b9\u306b\u9069\u7528\u3059\u308b\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u3092\u9078\u629e\u3057\u307e\u3059\u3002 +apply_dashboard_doc_info=\u30ab\u30b9\u30bf\u30e0\u30d3\u30e5\u30fc\u3068\u3057\u3066\u6587\u66f8\u306b\u9069\u7528\u3059\u308b\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u3092\u9078\u629e\u3057\u307e\u3059\u3002 +apply_rss_feed=RSS\u30d5\u30a3\u30fc\u30c9\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u306e\u9069\u7528 +apply_rss_feed_info=RSS\u30d5\u30a3\u30fc\u30c9\u3068\u3057\u3066\u3001\u30b9\u30da\u30fc\u30b9\u306b\u9069\u7528\u3059\u308b\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u3092\u9078\u629e\u3057\u307e\u3059\u3002 +apply_rss_feed_warning1=\u6587\u66f8\u306e\u30ed\u30c3\u30af\u89e3\u9664\u306b\u6210\u529f\u3057\u307e\u3057\u305f\u3002 +apply_rss_feed_warning2=\u89aa\u30b9\u30da\u30fc\u30b9\u306e\u6a29\u9650\u3092\u7d99\u627f +rss_feed=RSS\u30d5\u30a3\u30fc\u30c9 +rss_feed_link=RSS\u30d5\u30a3\u30fc\u30c9\u30ea\u30f3\u30af +warn_cannot_view_target_details=\u5fc5\u8981\u306a\u6a29\u9650\u304c\u306a\u3044\u305f\u3081\u30bf\u30fc\u30b2\u30c3\u30c8\u6587\u66f8\u306e\u8a73\u7d30\u3092\u8868\u793a\u3067\u304d\u307e\u305b\u3093\u3002 + +# Export messages +export_info=\u3053\u306e\u30b9\u30da\u30fc\u30b9\u307e\u305f\u306f\u5168\u30b9\u30da\u30fc\u30b9\u304b\u3089\u30e1\u30bf\u30c7\u30fc\u30bf\u3068\u30b3\u30f3\u30c6\u30f3\u30c4\u3092\u30a8\u30af\u30b9\u30dd\u30fc\u30c8\u3057\u307e\u3059\u3002 +export_from=\u6b21\u306e\u5834\u6240\u304b\u3089\u30a8\u30af\u30b9\u30dd\u30fc\u30c8 +package_name=\u30d1\u30c3\u30b1\u30fc\u30b8\u540d +all_spaces_root=\u30ea\u30dd\u30b8\u30c8\u30ea\u5168\u4f53 +current_space=\u73fe\u5728\u306e\u30b9\u30da\u30fc\u30b9 +include_children=\u5b50\u3092\u542b\u3081\u308b +include_self=\u3053\u306e\u30b9\u30da\u30fc\u30b9\u3092\u542b\u3081\u308b +run_export_in_background=\u30d0\u30c3\u30af\u30b0\u30e9\u30a6\u30f3\u30c9\u3067\u30a8\u30af\u30b9\u30dd\u30fc\u30c8\u3092\u5b9f\u884c\u3059\u308b +export_error_info=\u3053\u306e\u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u9078\u629e\u3057\u305f\u5834\u5408\u3001\u30a8\u30af\u30b9\u30dd\u30fc\u30c8\u306f\u30d0\u30c3\u30af\u30b0\u30e9\u30a6\u30f3\u30c9\u3067\u5b9f\u884c\u3055\u308c\u308b\u305f\u3081\u3001\u7d50\u679c\u304c\u3059\u3050\u306b\u306f\u53cd\u6620\u3055\u308c\u306a\u3044\u5834\u5408\u304c\u3042\u308a\u307e\u3059\u3002 \u30b5\u30fc\u30d0\u306e\u30b3\u30f3\u30bd\u30fc\u30eb\u3092\u76e3\u8996\u3057\u30a8\u30e9\u30fc\u306e\u30d5\u30a1\u30a4\u30eb\u3092\u30ed\u30b0\u3059\u308b\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u3002 + +# Import messages +import_info=Alfresco\u30b3\u30f3\u30c6\u30f3\u30c4\u30fb\u30d1\u30c3\u30b1\u30fc\u30b8\u307e\u305f\u306fZIP\u5f62\u5f0f\u30d5\u30a1\u30a4\u30eb\u3092\u30ea\u30dd\u30b8\u30c8\u30ea\u306b\u30a4\u30f3\u30dd\u30fc\u30c8\u3057\u307e\u3059\u3002 +import_acp_description=Alfresco\u30b3\u30f3\u30c6\u30f3\u30c4\u30d1\u30c3\u30b1\u30fc\u30b8 +import_zip_description=\u30a2\u30fc\u30ab\u30a4\u30d6\u30d1\u30c3\u30b1\u30fc\u30b8 +locate_acp_upload=\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3059\u308b.acp\u3042\u308b\u3044\u306f.zip\u30d5\u30a1\u30a4\u30eb\u3092\u63a2\u3059 +run_import_in_background=\u30a4\u30f3\u30dd\u30fc\u30c8\u3092\u30d0\u30c3\u30af\u30b0\u30e9\u30a6\u30f3\u30c9\u3067\u5b9f\u884c\u3059\u308b +import_error_info=\u3053\u306e\u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u9078\u629e\u3057\u305f\u5834\u5408\u3001\u30a4\u30f3\u30dd\u30fc\u30c8\u306f\u30d0\u30c3\u30af\u30b0\u30e9\u30a6\u30f3\u30c9\u3067\u5b9f\u884c\u3055\u308c\u308b\u305f\u3081\u3001\u7d50\u679c\u304c\u3059\u3050\u306b\u306f\u53cd\u6620\u3055\u308c\u306a\u3044\u5834\u5408\u304c\u3042\u308a\u307e\u3059\u3002 \u30b5\u30fc\u30d0\u306e\u30b3\u30f3\u30bd\u30fc\u30eb\u3092\u76e3\u8996\u3057\u30a8\u30e9\u30fc\u306e\u30d5\u30a1\u30a4\u30eb\u3092\u30ed\u30b0\u3059\u308b\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u3002 + +# Edit Content messages +edit_file_title=\u30d5\u30a1\u30a4\u30eb\u306e\u7de8\u96c6 +edit_file_prompt=\u30d5\u30a1\u30a4\u30eb ''{0}'' \u3092\u7de8\u96c6\u3059\u308b\u306b\u306f\u3001\u4e0b\u306e\u30ea\u30f3\u30af\u3092\u30af\u30ea\u30c3\u30af\u3057\u3001\u6c42\u3081\u3089\u308c\u305f\u3089[\u4fdd\u5b58]\u3092\u9078\u629e\u3057\u3066\u304f\u3060\u3055\u3044\u3002 +edit_download_complete=\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u304c\u5b8c\u4e86\u3057\u305f\u3089\u3001[\u9589\u3058\u308b]\u3092\u30af\u30ea\u30c3\u30af\u3057\u3066\u304f\u3060\u3055\u3044\u3002 +edit_using_web_form=Web\u30d5\u30a9\u30fc\u30e0\u3092\u4f7f\u3063\u3066\u3053\u306e\u30d5\u30a1\u30a4\u30eb\u3092\u7de8\u96c6\u3059\u308b\u306b\u306f\u3001\u3053\u3053\u3092\u30af\u30ea\u30c3\u30af\u3057\u3066\u304f\u3060\u3055\u3044\u3002 +checkout_file_title=\u30d5\u30a1\u30a4\u30eb\u306e\u30c1\u30a7\u30c3\u30af\u30a2\u30a6\u30c8 +checkout_you_may_want=\u3053\u306e\u30d5\u30a1\u30a4\u30eb\u3092\u30ed\u30c3\u30af\u3057\u3066\u4ed6\u306e\u30e6\u30fc\u30b6\u304c\u7de8\u96c6\u3067\u304d\u306a\u3044\u3088\u3046\u306b\u3059\u308b\u305f\u3081\u306b\u3001\u30d5\u30a1\u30a4\u30eb\u3092\u30c1\u30a7\u30c3\u30af\u30a2\u30a6\u30c8\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002 +checkout_hint1=\u30d2\u30f3\u30c8: \u30d5\u30a1\u30a4\u30eb\u3092\u30c1\u30a7\u30c3\u30af\u30a2\u30a6\u30c8\u3059\u308b\u3068\u3001\u4f5c\u696d\u7528\u306b\u30b3\u30d4\u30fc\u304c\u4f5c\u6210\u3055\u308c\u307e\u3059\u3002 +checkout_hint2=\u30b3\u30d4\u30fc\u306e\u7de8\u96c6\u304c\u7d42\u4e86\u3057\u305f\u3089\u3001\u4fee\u6b63\u3057\u305f\u6587\u66f8\u3092\u4ed6\u306e\u30e6\u30fc\u30b6\u304c\u4f7f\u7528\u3067\u304d\u308b\u3088\u3046\u306b\u3001\u30c1\u30a7\u30c3\u30af\u30a4\u30f3\u3057\u3066\u30ed\u30c3\u30af\u3092\u89e3\u9664\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002 +checkout_want_to=\u4ed6\u306e\u30e6\u30fc\u30b6\u306b\u3088\u308b\u5909\u66f4\u306e\u4e0a\u66f8\u304d\u3092\u9632\u6b62\u3057\u307e\u3059\u3002 +checkout_warn=\u30e1\u30e2: \u3053\u306e\u6587\u66f8\u306b\u3059\u3067\u306b\u884c\u3063\u305f\u5168\u3066\u306e\u5909\u66f4\u304c\u5931\u308f\u308c\u307e\u3059\u3002 +local_copy_location=\u30ed\u30fc\u30ab\u30eb\u30b3\u30d4\u30fc\u306e\u5834\u6240 +locate_content_upload=\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u7528\u306e\u6587\u66f8\u3092\u898b\u3064\u3051\u308b + +# System Information and admin page messages +system_info=\u30b7\u30b9\u30c6\u30e0\u60c5\u5831 +current_user=\u73fe\u5728\u306e\u30e6\u30fc\u30b6 +http_app_state=HTTP\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u30fb\u30b9\u30c6\u30fc\u30bf\u30b9 +http_session_state=HTTP\u30bb\u30c3\u30b7\u30e7\u30f3\u30fb\u30b9\u30c6\u30fc\u30bf\u30b9 +http_request_state=HTTP\u30ea\u30af\u30a8\u30b9\u30c8\u30fb\u30b9\u30c6\u30fc\u30bf\u30b9 +http_request_params=HTTP\u30ea\u30af\u30a8\u30b9\u30c8\u306e\u30d1\u30e9\u30e1\u30fc\u30bf +http_request_headers=HTTP\u30ea\u30af\u30a8\u30b9\u30c8\u30fb\u30d8\u30c3\u30c0 +repository_props=\u30ea\u30dd\u30b8\u30c8\u30ea\u30fb\u30d7\u30ed\u30d1\u30c6\u30a3 +repository_patch_succeeded=\u6210\u529f +repository_patch_failed=\u5931\u6557 +system_props=\u30b7\u30b9\u30c6\u30e0\u30fb\u30d7\u30ed\u30d1\u30c6\u30a3 +hide_details=\u8a73\u7d30\u3092\u96a0\u3059 +show_details=\u8a73\u7d30\u3092\u8868\u793a +user_search_info=\u30e6\u30fc\u30b6\u3092\u898b\u3064\u3051\u308b\u306b\u306f\u3001\u59d3\u3001\u540d\u3001\u3042\u308b\u3044\u306f\u30e6\u30fc\u30b6\u540d\u3067\u30e6\u30fc\u30b6\u3092\u691c\u7d22\u3057\u307e\u3059\u3002 \u307e\u305f\u3001\u5168\u3066\u306e\u30e6\u30fc\u30b6\u3092\u8868\u793a\u3059\u308b\u306b\u306f'\u5168\u3066\u8868\u793a'\u3092\u30af\u30ea\u30c3\u30af\u3057\u307e\u3059\u3002\u305f\u3060\u3057\u3001\u30b7\u30b9\u30c6\u30e0\u306b\u30e6\u30fc\u30b6\u6570\u304c\u591a\u3044\u5834\u5408\u3001\u6642\u9593\u304c\u304b\u304b\u308b\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002 +group_search_info=\u30b0\u30eb\u30fc\u30d7\u540d\u3092\u4f7f\u3063\u3066\u30b0\u30eb\u30fc\u30d7\u691c\u7d22\u3092\u898b\u3064\u3051\u307e\u3059\u3002 \u307e\u305f\u3001'\u5168\u3066\u8868\u793a'\u3092\u30af\u30ea\u30c3\u30af\u3059\u308b\u3053\u3068\u3067\u5168\u3066\u306e\u30b0\u30eb\u30fc\u30d7\u3092\u5168\u3066\u8868\u793a\u3059\u308b\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u3002\u305f\u3060\u3057\u3001\u30b7\u30b9\u30c6\u30e0\u306b\u30b0\u30eb\u30fc\u30d7\u6570\u304c\u591a\u3044\u5834\u5408\u3001\u6642\u9593\u304c\u304b\u304b\u308b\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002 +user_change_homespace_info=\u3042\u308b\u30e6\u30fc\u30b6\u306b\u65b0\u898f\u306e\u30db\u30fc\u30e0\u30b9\u30da\u30fc\u30b9\u3092\u9078\u629e\u3057\u305f\u5834\u5408\u3067\u3082\u3001\u5143\u306e\u30db\u30fc\u30e0\u30b9\u30da\u30fc\u30b9\u306e\u65e2\u5b58\u306e\u6a29\u9650\u306f\u7dad\u6301\u3055\u308c\u307e\u3059\u3002 \u5143\u306e\u30db\u30fc\u30e0\u30b9\u30da\u30fc\u30b9\u306b\u5fc5\u8981\u306a\u304f\u306a\u3063\u305f\u5834\u5408\u3001\u6a29\u9650\u3092\u5909\u66f4\u3059\u308b\u305f\u3081\u306b[\u30b9\u30da\u30fc\u30b9\u30e6\u30fc\u30b6\u306e\u7ba1\u7406]\u30c0\u30a4\u30a2\u30ed\u30b0\u3092\u4f7f\u7528\u3059\u308b\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u3002 +quota_totalusage=\u5408\u8a08\u4f7f\u7528\u91cf (\u3053\u306e\u691c\u7d22\u306e) +quota_totalquota=\u5408\u8a08\u30af\u30a9\u30fc\u30bf (\u3053\u306e\u691c\u7d22\u306e) +caused_by=\u539f\u56e0: + +# Content Wizard messages +add_content_dialog_title=\u30b3\u30f3\u30c6\u30f3\u30c4\u306e\u8ffd\u52a0\u30c0\u30a4\u30a2\u30ed\u30b0 +add_content_dialog_desc=\u3053\u306e\u30c0\u30a4\u30a2\u30ed\u30b0\u306b\u3088\u308a\u3001\u30b9\u30da\u30fc\u30b9\u306b\u30b3\u30f3\u30c6\u30f3\u30c4\u304c\u8ffd\u52a0\u3055\u308c\u307e\u3059\u3002 +upload_content=\u30b3\u30f3\u30c6\u30f3\u30c4\u306e\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9 +properties=\u30d7\u30ed\u30d1\u30c6\u30a3 +general=\u4e00\u822c +file_name=\u30d5\u30a1\u30a4\u30eb\u540d +content_type=\u30b3\u30f3\u30c6\u30f3\u30c4\u30bf\u30a4\u30d7 +content_format=\u30b3\u30f3\u30c6\u30f3\u30c4\u306e\u30d5\u30a9\u30fc\u30de\u30c3\u30c8 +inline_editable=\u30a4\u30f3\u30e9\u30a4\u30f3\u7de8\u96c6\u5bfe\u8c61 +locate_content=\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3059\u308b\u30b3\u30f3\u30c6\u30f3\u30c4\u3092\u63a2\u3059 +content_location=\u5834\u6240 +uploaded_content=\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3055\u308c\u305f\u30b3\u30f3\u30c6\u30f3\u30c4 +click_upload=[\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9]\u3092\u30af\u30ea\u30c3\u30af\u3057\u307e\u3059\u3002 +file_upload_success=''{0}'' \u306e\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u306f\u6210\u529f\u3057\u307e\u3057\u305f\u3002 +modify_props_when_page_closes=\u3053\u306e\u30da\u30fc\u30b8\u304c\u9589\u3058\u308b\u3068\u304d\u306b\u3001\u5168\u3066\u306e\u30d7\u30ed\u30d1\u30c6\u30a3\u3092\u5909\u66f4\u3057\u307e\u3059\u3002 +modify_props_when_wizard_closes=\u3053\u306e\u30a6\u30a3\u30b6\u30fc\u30c9\u304c\u9589\u3058\u308b\u3068\u304d\u306b\u3001\u5168\u3066\u306e\u30d7\u30ed\u30d1\u30c6\u30a3\u3092\u5909\u66f4\u3057\u307e\u3059\u3002 +modify_props_help_text=\u3053\u306e\u30b3\u30f3\u30c6\u30f3\u30c4\u306b\u30eb\u30fc\u30eb\u3092\u9069\u7528\u3059\u308b\u306b\u306f\u3001\u8ffd\u52a0\u60c5\u5831\u306e\u5165\u529b\u304c\u5fc5\u8981\u306b\u306a\u308a\u307e\u3059\u3002 +content_finish_instruction=\u30b3\u30f3\u30c6\u30f3\u30c4\u3092\u3053\u306e\u30b9\u30da\u30fc\u30b9\u306b\u8ffd\u52a0\u3059\u308b\u306b\u306f\u3001[\u7d42\u4e86]\u3092\u30af\u30ea\u30c3\u30af\u3057\u3066\u304f\u3060\u3055\u3044\u3002 \u9078\u629e\u5185\u5bb9\u3092\u30ec\u30d3\u30e5\u30fc\u307e\u305f\u306f\u5909\u66f4\u3059\u308b\u306b\u306f\u3001[\u623b\u308b]\u3092\u30af\u30ea\u30c3\u30af\u3057\u3066\u304f\u3060\u3055\u3044\u3002 +create_content_title=\u30b3\u30f3\u30c6\u30f3\u30c4\u4f5c\u6210\u30a6\u30a3\u30b6\u30fc\u30c9 +create_content_desc=\u3053\u306e\u30a6\u30a3\u30b6\u30fc\u30c9\u3067\u306f\u3001\u30b9\u30da\u30fc\u30b9\u306b\u65b0\u898f\u6587\u66f8\u3092\u4f5c\u6210\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002 +create_content_step1_title=\u30b9\u30c6\u30c3\u30d7 1 - \u540d\u524d\u306e\u6307\u5b9a\u3068\u30bf\u30a4\u30d7\u306e\u9078\u629e +create_content_step1_desc=\u540d\u524d\u3092\u6307\u5b9a\u3057\u3001\u4f5c\u6210\u3059\u308b\u30b3\u30f3\u30c6\u30f3\u30c4\u306e\u30bf\u30a4\u30d7\u3092\u9078\u629e\u3057\u3066\u304f\u3060\u3055\u3044\u3002 +create_content_step2_title=\u30b9\u30c6\u30c3\u30d7 2 - \u30b3\u30f3\u30c6\u30f3\u30c4\u306e\u5165\u529b +create_content_step2_desc=\u30ea\u30dd\u30b8\u30c8\u30ea\u306b\u6587\u66f8\u30b3\u30f3\u30c6\u30f3\u30c4\u3092\u5165\u529b\u3057\u3066\u304f\u3060\u3055\u3044\u3002 +enter_content=\u30b3\u30f3\u30c6\u30f3\u30c4\u306e\u5165\u529b +select_type=\u30bf\u30a4\u30d7\u306e\u9078\u629e +content=\u30b3\u30f3\u30c6\u30f3\u30c4 +text_content=\u30d7\u30ec\u30fc\u30f3\u30c6\u30ad\u30b9\u30c8\u30fb\u30b3\u30f3\u30c6\u30f3\u30c4 +html_content=HTML\u30b3\u30f3\u30c6\u30f3\u30c4 +xml_content=XML\u30b3\u30f3\u30c6\u30f3\u30c4 +node_locked_dialog_closed=\u4f5c\u6210\u3055\u308c\u305f\u30ce\u30fc\u30c9\u306f\u30ed\u30c3\u30af\u3055\u308c\u3066\u3044\u307e\u3059\u3002\u3053\u308c\u306f\u3001\u3053\u306e\u30b9\u30da\u30fc\u30b9\u3067\u8a2d\u5b9a\u3055\u308c\u305f\u30eb\u30fc\u30eb\u306b\u3088\u308b\u3082\u306e\u3068\u601d\u308f\u308c\u307e\u3059\u3002 \u30ce\u30fc\u30c9\u306f\u7de8\u96c6\u3067\u304d\u306a\u3044\u305f\u3081\u3001[\u30b3\u30f3\u30c6\u30f3\u30c4\u30d7\u30ed\u30d1\u30c6\u30a3\u306e\u5909\u66f4]\u30c0\u30a4\u30a2\u30ed\u30b0\u304c\u9589\u3058\u3089\u308c\u3066\u3044\u307e\u3059\u3002 + +regenerate_renditions_title=\u63cf\u753b\u306e\u518d\u751f\u6210\u30a6\u30a3\u30b6\u30fc\u30c9 +regenerate_renditions_desc=\u3053\u306e\u30a6\u30a3\u30b6\u30fc\u30c9\u306b\u3088\u308a\u63cf\u753b\u306e\u518d\u751f\u6210\u304c\u884c\u3048\u307e\u3059\u3002 +regenerate_renditions_select_renditions_title=\u63cf\u753b\u306e\u9078\u629e +regenerate_renditions_select_renditions_step_title=\u63cf\u753b\u306e\u9078\u629e +regenerate_renditions_select_renditions_desc=\u518d\u751f\u6210\u3059\u308b\u63cf\u753b\u3092\u9078\u629e\u3057\u3066\u304f\u3060\u3055\u3044\u3002 +regenerate_renditions_select_renditions_select_item_desc={1}\u306b{0} \u95a2\u9023\u3059\u308b {0,choice,0#renditions|1#rendition|1 +create_form_form_details_associated_web_projects=\u3053\u306e\u30d5\u30a9\u30fc\u30e0\u306f\u73fe\u5728\u3001\u6b21\u306eWeb\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u5411\u3051\u306b\u8a2d\u5b9a\u3055\u308c\u3066\u3044\u307e\u3059: +create_form_configure_rendering_engine_templates_title=\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u306e\u8a2d\u5b9a +create_form_configure_rendering_engine_templates_step_title=\u30b9\u30c6\u30c3\u30d7 2 - \u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u306e\u8a2d\u5b9a +create_form_configure_rendering_engine_templates_desc=\u30d5\u30a9\u30fc\u30e0 {0} \u3067\u5229\u7528\u3059\u308b\u30ec\u30f3\u30c0\u30ea\u30f3\u30b0\u30fb\u30a8\u30f3\u30b8\u30f3\u30fb\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u306b\u3064\u3044\u3066\u306e\u60c5\u5831\u3092\u5165\u529b\u3057\u3066\u304f\u3060\u3055\u3044\u3002 +create_form_configure_rendering_engine_templates_step1_desc=\u4f7f\u7528\u3059\u308b\u30ec\u30f3\u30c0\u30ea\u30f3\u30b0\u30fb\u30a8\u30f3\u30b8\u30f3\u30fb\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u3092\u9078\u629e\u3057\u3066\u304f\u3060\u3055\u3044\u3002 +create_form_configure_rendering_engine_templates_step2_desc=\u65b0\u898f\u306e\u30ec\u30f3\u30c0\u30ea\u30f3\u30b0 \u30a8\u30f3\u30b8\u30f3\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u306e\u8a73\u7d30\u3092\u6307\u5b9a\u3059\u308b +create_form_select_default_workflow_title=\u30ef\u30fc\u30af\u30d5\u30ed\u30fc\u306e\u8a2d\u5b9a +create_form_select_default_workflow_step_title=\u30b9\u30c6\u30c3\u30d7 3 - \u30ef\u30fc\u30af\u30d5\u30ed\u30fc\u306e\u8a2d\u5b9a +create_form_select_default_workflow_desc=\u30d5\u30a9\u30fc\u30e0 {0}\u306b\u5bfe\u3057\u3066\u4f7f\u7528\u3059\u308b\u30c7\u30d5\u30a9\u30eb\u30c8\u306e\u30ef\u30fc\u30af\u30d5\u30ed\u30fc\u3092\u9078\u629e\u3057\u3066\u304f\u3060\u3055\u3044\u3002 +create_form_select_default_workflow_apply_default_workflow=\u4eca\u3059\u3050\u30c7\u30d5\u30a9\u30eb\u30c8\u306e\u30ef\u30fc\u30af\u30d5\u30ed\u30fc\u3092\u9069\u7528\u3057\u307e\u3059\u304b\uff1f +create_form_select_default_workflow_select_workflow=\u30ef\u30fc\u30af\u30d5\u30ed\u30fc\u3092\u9078\u629e\u3057\u3066\u304f\u3060\u3055\u3044\u3002 +create_web_content_details_title=Web\u30b3\u30f3\u30c6\u30f3\u30c4\u306e\u8a73\u7d30 +create_web_content_details_step_title=\u30b9\u30c6\u30c3\u30d7 1 - Web\u30b3\u30f3\u30c6\u30f3\u30c4\u306e\u8a73\u7d30 +create_web_content_enter_content_title=Web\u30b3\u30f3\u30c6\u30f3\u30c4\u306e\u4f5c\u6210\u8005 +create_web_content_enter_content_step_title=\u30b9\u30c6\u30c3\u30d7 2 - Web\u30b3\u30f3\u30c6\u30f3\u30c4\u306e\u4f5c\u6210\u8005 +edit_web_content_enter_content_step_title=\u30b9\u30c6\u30c3\u30d7 1 - Web\u30b3\u30f3\u30c6\u30f3\u30c4\u306e\u4f5c\u6210\u8005 +create_web_content_summary_desc=\u30b3\u30f3\u30c6\u30f3\u30c4\u3068\u5168\u63cf\u753b\u306e\u4f5c\u6210\u304c\u6b63\u5e38\u306b\u5b8c\u4e86\u3057\u307e\u3057\u305f\u3002 +create_web_content_summary_content_details=\u30b3\u30f3\u30c6\u30f3\u30c4\u306e\u8a73\u7d30 +create_web_content_summary_rendition_details=\u63cf\u753b\u306e\u8a73\u7d30 +create_web_content_summary_uploaded_files_details=\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3055\u308c\u305f\u30d5\u30a1\u30a4\u30eb\u306e\u8a73\u7d30 +create_web_content_summary_submit_message=\u30a6\u30a3\u30b6\u30fc\u30c9\u304c\u7d42\u4e86\u3059\u308b\u3068\u304d\u306b\u3001 {0,choice,0#__SHOULD NOT BE ZERO__|1#{1}|1Spanish French Italian + Japanese diff --git a/source/java/org/alfresco/web/app/AlfrescoNavigationHandler.java b/source/java/org/alfresco/web/app/AlfrescoNavigationHandler.java index 9fa7527b7d..0c03888fd1 100644 --- a/source/java/org/alfresco/web/app/AlfrescoNavigationHandler.java +++ b/source/java/org/alfresco/web/app/AlfrescoNavigationHandler.java @@ -809,6 +809,9 @@ public class AlfrescoNavigationHandler extends NavigationHandler else { handleBrowseDispatch(context, fromAction, overriddenOutcome); + + // ALF-6661, always clear the view stack with an overridden outcome + getViewStack(context).clear(); } } } diff --git a/source/java/org/alfresco/web/app/servlet/BaseServlet.java b/source/java/org/alfresco/web/app/servlet/BaseServlet.java index 3718e5ffb6..2d81d812ae 100644 --- a/source/java/org/alfresco/web/app/servlet/BaseServlet.java +++ b/source/java/org/alfresco/web/app/servlet/BaseServlet.java @@ -64,7 +64,11 @@ import org.springframework.web.jsf.FacesContextUtils; */ public abstract class BaseServlet extends HttpServlet { + private static final long serialVersionUID = -826295358696861789L; + public static final String FACES_SERVLET = "/faces"; + public static final String KEY_STORE = "store"; + public static final String KEY_ROOT_PATH = "rootPath"; /** an existing Ticket can be passed to most servlet for non-session based authentication */ private static final String ARG_TICKET = "ticket"; @@ -382,7 +386,7 @@ public abstract class BaseServlet extends HttpServlet // TODO: since these constants are used more widely than just the WebDAVServlet, // they should be defined somewhere other than in that servlet - String rootPath = wc.getServletContext().getInitParameter(org.alfresco.repo.webdav.WebDAVServlet.KEY_ROOT_PATH); + String rootPath = wc.getServletContext().getInitParameter(BaseServlet.KEY_ROOT_PATH); // note: rootNodeRef is required (for storeRef part) nodeRef = tenantService.getRootNode(nodeService, searchService, namespaceService, rootPath, nodeRef); diff --git a/source/java/org/alfresco/web/app/servlet/JBPMDeployProcessServlet.java b/source/java/org/alfresco/web/app/servlet/JBPMDeployProcessServlet.java index 0c54b15ab5..0a2f4f8533 100644 --- a/source/java/org/alfresco/web/app/servlet/JBPMDeployProcessServlet.java +++ b/source/java/org/alfresco/web/app/servlet/JBPMDeployProcessServlet.java @@ -36,6 +36,7 @@ import org.alfresco.service.cmr.workflow.WorkflowDefinition; import org.alfresco.service.cmr.workflow.WorkflowDeployment; import org.alfresco.service.cmr.workflow.WorkflowException; import org.alfresco.service.cmr.workflow.WorkflowService; +import org.alfresco.util.PropertyCheck; import org.apache.commons.fileupload.DiskFileUpload; import org.apache.commons.fileupload.FileItem; import org.apache.commons.fileupload.FileUpload; @@ -55,11 +56,6 @@ public class JBPMDeployProcessServlet extends HttpServlet private static final String BEAN_GLOBAL_PROPERTIES = "global-properties"; private static final String PROP_ENABLED = "system.workflow.deployservlet.enabled"; - - - /* (non-Javadoc) - * @see javax.servlet.GenericServlet#init() - */ @Override public void init() throws ServletException { @@ -67,17 +63,14 @@ public class JBPMDeployProcessServlet extends HttpServlet WebApplicationContext wc = WebApplicationContextUtils.getRequiredWebApplicationContext(getServletContext()); Properties globalProperties = (Properties) wc.getBean(BEAN_GLOBAL_PROPERTIES); String enabled = globalProperties.getProperty(PROP_ENABLED); - if (enabled == null || !Boolean.parseBoolean(enabled)) + if (!PropertyCheck.isValidPropertyString(enabled) || !Boolean.parseBoolean(enabled)) { throw new UnavailableException("system.workflow.deployservlet.enabled=false"); } } - /* (non-Javadoc) - * @see javax.servlet.http.HttpServlet#service(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse) - */ - public void service(HttpServletRequest request, HttpServletResponse response) - throws IOException + @Override + public void service(HttpServletRequest request, HttpServletResponse response) throws IOException { try { @@ -97,7 +90,6 @@ public class JBPMDeployProcessServlet extends HttpServlet response.getWriter().println("FileUploadException"); } } - /** * Retrieve the JBPM Process Designer deployment archive from the request @@ -167,5 +159,4 @@ public class JBPMDeployProcessServlet extends HttpServlet return super.getBoundary(contentType.replace(",", ";")); } } - } \ No newline at end of file diff --git a/source/java/org/alfresco/web/bean/LinkPropertiesDialog.java b/source/java/org/alfresco/web/bean/LinkPropertiesDialog.java index 5fa29c57e6..45ed337de4 100644 --- a/source/java/org/alfresco/web/bean/LinkPropertiesDialog.java +++ b/source/java/org/alfresco/web/bean/LinkPropertiesDialog.java @@ -209,13 +209,6 @@ public class LinkPropertiesDialog extends BaseDialogBean // send the properties back to the repository this.getNodeService().setProperties(nodeRef, properties); - - // reset any document held by the browse bean as it's just been updated - // if this is a space link then it doesn't matter anyway - if (this.browseBean.getDocument() != null) - { - this.browseBean.getDocument().reset(); - } } catch (InvalidNodeRefException err) { @@ -236,4 +229,19 @@ public class LinkPropertiesDialog extends BaseDialogBean return outcome; } + + @Override + protected String doPostCommitProcessing(FacesContext context, String outcome) + { + if (this.browseBean.getDocument() != null) + { + this.browseBean.getDocument().reset(); + } + else if (this.browseBean.getActionSpace() != null) + { + this.browseBean.getActionSpace().reset(); + } + + return outcome; + } } diff --git a/source/java/org/alfresco/web/bean/LoginBean.java b/source/java/org/alfresco/web/bean/LoginBean.java index 9765b324f1..50ec956226 100644 --- a/source/java/org/alfresco/web/bean/LoginBean.java +++ b/source/java/org/alfresco/web/bean/LoginBean.java @@ -20,6 +20,7 @@ package org.alfresco.web.bean; import java.io.IOException; import java.io.Serializable; +import java.io.StringWriter; import java.text.MessageFormat; import java.util.Locale; import java.util.Map; @@ -43,6 +44,7 @@ import org.alfresco.web.app.servlet.AuthenticationHelper; import org.alfresco.web.bean.repository.Repository; import org.alfresco.web.bean.repository.User; import org.alfresco.web.bean.users.UserPreferencesBean; +import org.alfresco.web.ui.common.PanelGenerator; import org.alfresco.web.ui.common.Utils; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; @@ -215,6 +217,47 @@ public class LoginBean implements Serializable return Application.getClientConfig(FacesContext.getCurrentInstance()).isLanguageSelect(); } + /** + * Returns the HTML to display if the system is in TEAM mode + * + * @return The HTML to display + */ + public String getTeamLoginWarningHTML() + { + FacesContext context = FacesContext.getCurrentInstance(); + String contextPath = context.getExternalContext().getRequestContextPath(); + StringBuilder html = new StringBuilder(); + + try + { + html.append(""); + + StringWriter writer = new StringWriter(); + PanelGenerator.generatePanelStart(writer, contextPath, "yellowInner", "#ffffcc"); + html.append(writer.toString()); + + html.append(""); + html.append(""); + html.append("
"); + html.append(""); + html.append(Application.getMessage(context, "team_login_warning")); + html.append("
"); + + writer = new StringWriter(); + PanelGenerator.generatePanelEnd(writer, contextPath, "yellowInner"); + html.append(writer.toString()); + + html.append(""); + } + catch (IOException ioe) + { + logger.error(ioe); + } + + return html.toString(); + } // ------------------------------------------------------------------------------ // Validator methods diff --git a/source/java/org/alfresco/web/bean/NavigationBean.java b/source/java/org/alfresco/web/bean/NavigationBean.java index c5ba2442a6..560648435f 100644 --- a/source/java/org/alfresco/web/bean/NavigationBean.java +++ b/source/java/org/alfresco/web/bean/NavigationBean.java @@ -40,13 +40,20 @@ import org.alfresco.jlan.server.core.SharedDeviceList; import org.alfresco.jlan.server.filesys.DiskSharedDevice; import org.alfresco.jlan.server.filesys.FilesystemsConfigSection; import org.alfresco.model.ContentModel; +import org.alfresco.repo.security.authentication.AuthenticationUtil; +import org.alfresco.repo.security.authentication.AuthenticationUtil.RunAsWork; import org.alfresco.repo.security.permissions.AccessDeniedException; +import org.alfresco.repo.tenant.TenantService; import org.alfresco.repo.web.scripts.FileTypeImageUtils; +import org.alfresco.service.ServiceRegistry; +import org.alfresco.service.cmr.admin.RepoAdminService; +import org.alfresco.service.cmr.admin.RepoUsage; import org.alfresco.service.cmr.repository.FileTypeImageSize; import org.alfresco.service.cmr.repository.InvalidNodeRefException; import org.alfresco.service.cmr.repository.NodeRef; import org.alfresco.service.cmr.repository.NodeService; import org.alfresco.service.cmr.repository.Path; +import org.alfresco.service.cmr.repository.StoreRef; import org.alfresco.service.cmr.repository.TemplateImageResolver; import org.alfresco.service.cmr.repository.TemplateService; import org.alfresco.service.cmr.rule.RuleService; @@ -75,6 +82,7 @@ import org.alfresco.web.ui.repo.component.IRepoBreadcrumbHandler; import org.alfresco.web.ui.repo.component.shelf.UIShelf; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; +import org.springframework.web.jsf.FacesContextUtils; /** * Bean providing access and management of the various global navigation mechanisms @@ -149,6 +157,21 @@ public class NavigationBean implements Serializable return namespaceService; } + public void setRepoAdminService(RepoAdminService repoAdminService) + { + this.repoAdminService = repoAdminService; + } + + + public RepoAdminService getRepoAdminService() + { + if (repoAdminService == null) + { + this.repoAdminService = Repository.getServiceRegistry(FacesContext.getCurrentInstance()).getRepoAdminService(); + } + return repoAdminService; + } + /** * @param ruleService The ruleService to use */ @@ -1061,6 +1084,32 @@ public class NavigationBean implements Serializable return this.authService.isAuthenticationMutable(this.authService.getCurrentUserName()); } + /** + * @return true if this is a team license + */ + public boolean isTeamMode() + { + Boolean teamMode = AuthenticationUtil.runAs(new RunAsWork() + { + public Boolean doWork() throws Exception + { + RepoAdminService s = getRepoAdminService(); + + if (s != null) + { + if (RepoUsage.LicenseMode.TEAM.equals(s.getRestrictions().getLicenseMode())) + { + return Boolean.TRUE; + } + } + + return Boolean.FALSE; + } + }, AuthenticationUtil.getSystemUserName()); + + return teamMode.booleanValue(); + } + // ------------------------------------------------------------------------------ // Helpers @@ -1081,7 +1130,10 @@ public class NavigationBean implements Serializable // ------------------------------------------------------------------------------ // Inner classes - /** + + + +/** * Class to handle breadcrumb interaction for top-level navigation pages */ public class NavigationBreadcrumbHandler implements IRepoBreadcrumbHandler @@ -1178,6 +1230,9 @@ public class NavigationBean implements Serializable /** RuleService bean reference*/ transient private RuleService ruleService; + /** Repo Admin Service reference */ + transient private RepoAdminService repoAdminService; + /** File server configuration reference */ transient private ServerConfigurationAccessor serverConfiguration; diff --git a/source/java/org/alfresco/web/bean/clipboard/WorkspaceClipboardItem.java b/source/java/org/alfresco/web/bean/clipboard/WorkspaceClipboardItem.java index 4ab1daca26..db3e2e16fd 100644 --- a/source/java/org/alfresco/web/bean/clipboard/WorkspaceClipboardItem.java +++ b/source/java/org/alfresco/web/bean/clipboard/WorkspaceClipboardItem.java @@ -24,12 +24,14 @@ import java.util.List; import java.util.Map; import javax.faces.context.FacesContext; -import javax.transaction.UserTransaction; import org.alfresco.model.ApplicationModel; import org.alfresco.model.ContentModel; import org.alfresco.repo.avm.AVMNodeConverter; import org.alfresco.service.cmr.avm.AVMNodeDescriptor; +import org.alfresco.repo.transaction.RetryingTransactionHelper; +import org.alfresco.repo.transaction.RetryingTransactionHelper.RetryingTransactionCallback; +import org.alfresco.service.ServiceRegistry; import org.alfresco.service.cmr.dictionary.DictionaryService; import org.alfresco.service.cmr.ml.MultilingualContentService; import org.alfresco.service.cmr.model.FileExistsException; @@ -132,44 +134,48 @@ public class WorkspaceClipboardItem extends AbstractClipboardItem /** * @see org.alfresco.web.bean.clipboard.ClipboardItem#paste(javax.faces.context.FacesContext, java.lang.String, int) */ - public boolean paste(FacesContext fc, String viewId, int action) - throws Throwable + public boolean paste(final FacesContext fc, String viewId, final int action) { + final ServiceRegistry serviceRegistry = getServiceRegistry(); + final RetryingTransactionHelper retryingTransactionHelper = serviceRegistry.getRetryingTransactionHelper(); if (WORKSPACE_PASTE_VIEW_ID.equals(viewId) || FORUMS_PASTE_VIEW_ID.equals(viewId) || FORUM_PASTE_VIEW_ID.equals(viewId)) { NavigationBean navigator = (NavigationBean)FacesHelper.getManagedBean(fc, NavigationBean.BEAN_NAME); - NodeRef destRef = new NodeRef(Repository.getStoreRef(), navigator.getCurrentNodeId()); + final NodeRef destRef = new NodeRef(Repository.getStoreRef(), navigator.getCurrentNodeId()); - DictionaryService dd = getServiceRegistry().getDictionaryService(); - NodeService nodeService = getServiceRegistry().getNodeService(); - FileFolderService fileFolderService = getServiceRegistry().getFileFolderService(); - CopyService copyService = getServiceRegistry().getCopyService(); - MultilingualContentService multilingualContentService = getServiceRegistry().getMultilingualContentService(); + final DictionaryService dd = serviceRegistry.getDictionaryService(); + final NodeService nodeService = serviceRegistry.getNodeService(); + final FileFolderService fileFolderService = serviceRegistry.getFileFolderService(); + final CopyService copyService = serviceRegistry.getCopyService(); + final MultilingualContentService multilingualContentService = serviceRegistry.getMultilingualContentService(); - boolean isPrimaryParent = true; + final boolean isPrimaryParent; - ChildAssociationRef assocRef = null; + final ChildAssociationRef assocRef; if (getParent() == null) { assocRef = nodeService.getPrimaryParent(getNodeRef()); + isPrimaryParent = true; } else { NodeRef parentNodeRef = getParent(); List assocList = nodeService.getParentAssocs(getNodeRef()); + ChildAssociationRef foundRef = null; if (assocList != null) { - for (ChildAssociationRef assocListEntry : assocList) - { - if (parentNodeRef.equals(assocListEntry.getParentRef())) - { - assocRef = assocListEntry; - break; - } - } + for (ChildAssociationRef assocListEntry : assocList) + { + if (parentNodeRef.equals(assocListEntry.getParentRef())) + { + foundRef = assocListEntry; + break; + } + } } + assocRef = foundRef; isPrimaryParent = parentNodeRef.equals(nodeService.getPrimaryParent(getNodeRef()).getParentRef()); } @@ -184,258 +190,235 @@ public class WorkspaceClipboardItem extends AbstractClipboardItem name = linkTo + ' ' + name; } - boolean operationComplete = false; - while (operationComplete == false) + // Loop until we find a target name that doesn't exist + for(;;) { - UserTransaction tx = null; try { + final String currentTranslationPrefix = translationPrefix; + final String currentName = name; + // attempt each copy/paste in its own transaction - tx = Repository.getUserTransaction(fc, false); - tx.begin(); - if (getMode() == ClipboardStatus.COPY) + retryingTransactionHelper.doInTransaction(new RetryingTransactionCallback() { - if (action == UIClipboardShelfItem.ACTION_PASTE_LINK) + public Void execute() throws Throwable { - // LINK operation - if (logger.isDebugEnabled()) - logger.debug("Attempting to link node ID: " + getNodeRef() + " into node: " + destRef.toString()); - - // we create a special Link Object node that has a property to reference the original - // create the node using the nodeService (can only use FileFolderService for content) - if (checkExists(name + LINK_NODE_EXTENSION, destRef) == false) + if (getMode() == ClipboardStatus.COPY) { - Map props = new HashMap(2, 1.0f); - String newName = name + LINK_NODE_EXTENSION; - props.put(ContentModel.PROP_NAME, newName); - props.put(ContentModel.PROP_LINK_DESTINATION, getNodeRef()); - if (dd.isSubClass(getType(), ContentModel.TYPE_CONTENT)) + if (action == UIClipboardShelfItem.ACTION_PASTE_LINK) { - // create File Link node - ChildAssociationRef childRef = nodeService.createNode( - destRef, - ContentModel.ASSOC_CONTAINS, + // LINK operation + if (logger.isDebugEnabled()) + logger.debug("Attempting to link node ID: " + getNodeRef() + " into node: " + destRef.toString()); + + // we create a special Link Object node that has a property to reference the original + // create the node using the nodeService (can only use FileFolderService for content) + if (checkExists(currentName + LINK_NODE_EXTENSION, destRef) == false) + { + Map props = new HashMap(2, 1.0f); + String newName = currentName + LINK_NODE_EXTENSION; + props.put(ContentModel.PROP_NAME, newName); + props.put(ContentModel.PROP_LINK_DESTINATION, getNodeRef()); + if (dd.isSubClass(getType(), ContentModel.TYPE_CONTENT)) + { + // create File Link node + ChildAssociationRef childRef = nodeService.createNode( + destRef, + ContentModel.ASSOC_CONTAINS, QName.createQName(assocRef.getQName().getNamespaceURI(), newName), - ApplicationModel.TYPE_FILELINK, - props); - - // apply the titled aspect - title and description - Map titledProps = new HashMap(2, 1.0f); - titledProps.put(ContentModel.PROP_TITLE, name); - titledProps.put(ContentModel.PROP_DESCRIPTION, name); - nodeService.addAspect(childRef.getChildRef(), ContentModel.ASPECT_TITLED, titledProps); + ApplicationModel.TYPE_FILELINK, + props); + + // apply the titled aspect - title and description + Map titledProps = new HashMap(2, 1.0f); + titledProps.put(ContentModel.PROP_TITLE, currentName); + titledProps.put(ContentModel.PROP_DESCRIPTION, currentName); + nodeService.addAspect(childRef.getChildRef(), ContentModel.ASPECT_TITLED, titledProps); + } + else + { + // create Folder link node + ChildAssociationRef childRef = nodeService.createNode( + destRef, + ContentModel.ASSOC_CONTAINS, + assocRef.getQName(), + ApplicationModel.TYPE_FOLDERLINK, + props); + + // apply the uifacets aspect - icon, title and description props + Map uiFacetsProps = new HashMap(4, 1.0f); + uiFacetsProps.put(ApplicationModel.PROP_ICON, "space-icon-link"); + uiFacetsProps.put(ContentModel.PROP_TITLE, currentName); + uiFacetsProps.put(ContentModel.PROP_DESCRIPTION, currentName); + nodeService.addAspect(childRef.getChildRef(), ApplicationModel.ASPECT_UIFACETS, uiFacetsProps); + } + } } else { - // create Folder link node - ChildAssociationRef childRef = nodeService.createNode( - destRef, - ContentModel.ASSOC_CONTAINS, - assocRef.getQName(), - ApplicationModel.TYPE_FOLDERLINK, - props); - - // apply the uifacets aspect - icon, title and description props - Map uiFacetsProps = new HashMap(4, 1.0f); - uiFacetsProps.put(ApplicationModel.PROP_ICON, "space-icon-link"); - uiFacetsProps.put(ContentModel.PROP_TITLE, name); - uiFacetsProps.put(ContentModel.PROP_DESCRIPTION, name); - nodeService.addAspect(childRef.getChildRef(), ApplicationModel.ASPECT_UIFACETS, uiFacetsProps); + // COPY operation + if (logger.isDebugEnabled()) + logger.debug("Attempting to copy node: " + getNodeRef() + " into node ID: " + destRef.toString()); + + // first check that we are not attempting to copy a duplicate into the same parent + if (destRef.equals(assocRef.getParentRef()) && currentName.equals(getName())) + { + // manually change the name if this occurs + throw new FileExistsException(destRef, currentName); + } + + if (dd.isSubClass(getType(), ContentModel.TYPE_CONTENT) || + dd.isSubClass(getType(), ContentModel.TYPE_FOLDER)) + { + // copy the file/folder + fileFolderService.copy( + getNodeRef(), + destRef, + currentName); + } + else if(dd.isSubClass(getType(), ContentModel.TYPE_MULTILINGUAL_CONTAINER)) + { + // copy the mlContainer and its translations + multilingualContentService.copyTranslationContainer(getNodeRef(), destRef, currentTranslationPrefix); + } + else + { + // copy the node + if (checkExists(currentName, destRef) == false) + { + copyService.copyAndRename( + getNodeRef(), + destRef, + ContentModel.ASSOC_CONTAINS, + assocRef.getQName(), + true); + } + } } - - // if we get here without an exception, the clipboard link operation was successful - operationComplete = true; - } - } - else - { - // COPY operation - if (logger.isDebugEnabled()) - logger.debug("Attempting to copy node: " + getNodeRef() + " into node ID: " + destRef.toString()); - - // first check that we are not attempting to copy a duplicate into the same parent - if (destRef.equals(assocRef.getParentRef()) && name.equals(getName())) - { - // manually change the name if this occurs - String copyOf = Application.getMessage(fc, MSG_COPY_OF); - name = copyOf + ' ' + name; - } - - if (dd.isSubClass(getType(), ContentModel.TYPE_CONTENT) || - dd.isSubClass(getType(), ContentModel.TYPE_FOLDER)) - { - // copy the file/folder - fileFolderService.copy( - getNodeRef(), - destRef, - name); - } - else if(dd.isSubClass(getType(), ContentModel.TYPE_MULTILINGUAL_CONTAINER)) - { - // copy the mlContainer and its translations - multilingualContentService.copyTranslationContainer(getNodeRef(), destRef, translationPrefix); } else { - // copy the node - if (checkExists(name, destRef) == false) + // MOVE operation + if (logger.isDebugEnabled()) + logger.debug("Attempting to move node: " + getNodeRef() + " into node ID: " + destRef.toString()); + + if (dd.isSubClass(getType(), ContentModel.TYPE_CONTENT) || + dd.isSubClass(getType(), ContentModel.TYPE_FOLDER)) { - copyService.copyAndRename( - getNodeRef(), - destRef, - ContentModel.ASSOC_CONTAINS, - assocRef.getQName(), - true); + // move the file/folder + fileFolderService.moveFrom(getNodeRef(), getParent(), destRef, currentName); + } + else if(dd.isSubClass(getType(), ContentModel.TYPE_MULTILINGUAL_CONTAINER)) + { + // copy the mlContainer and its translations + multilingualContentService.moveTranslationContainer(getNodeRef(), destRef); + } + else + { + if (isPrimaryParent) + { + // move the node + nodeService.moveNode(getNodeRef(), destRef, ContentModel.ASSOC_CONTAINS, assocRef.getQName()); + } + else + { + nodeService.removeChild(getParent(), getNodeRef()); + nodeService.addChild(destRef, getNodeRef(), assocRef.getTypeQName(), assocRef.getQName()); + } } } + return null; + } + }); - // if we get here without an exception, the clipboard copy operation was successful - operationComplete = true; - } - } - else - { - // MOVE operation - if (logger.isDebugEnabled()) - logger.debug("Attempting to move node: " + getNodeRef() + " into node ID: " + destRef.toString()); - - if (dd.isSubClass(getType(), ContentModel.TYPE_CONTENT) || - dd.isSubClass(getType(), ContentModel.TYPE_FOLDER)) - { - // move the file/folder - fileFolderService.move(getNodeRef(), getParent(), destRef, name); - } - else if(dd.isSubClass(getType(), ContentModel.TYPE_MULTILINGUAL_CONTAINER)) - { - // copy the mlContainer and its translations - multilingualContentService.moveTranslationContainer(getNodeRef(), destRef); - } - else - { - if (isPrimaryParent) - { - // move the node - nodeService.moveNode(getNodeRef(), destRef, ContentModel.ASSOC_CONTAINS, assocRef.getQName()); - } - else - { - nodeService.removeChild(getParent(), getNodeRef()); - nodeService.addChild(destRef, getNodeRef(), assocRef.getTypeQName(), assocRef.getQName()); - } - } - - // if we get here without an exception, the clipboard move operation was successful - operationComplete = true; - } + // We got here without error, so no need to loop with a new name + break; } catch (FileExistsException fileExistsErr) { - if (getMode() != ClipboardStatus.COPY) + // If mode is COPY, have another go around the loop with a new name + if (getMode() == ClipboardStatus.COPY) + { + String copyOf = Application.getMessage(fc, MSG_COPY_OF); + name = copyOf + ' ' + name; + translationPrefix = copyOf + ' ' + translationPrefix; + } + else { // we should not rename an item when it is being moved - so exit throw fileExistsErr; } } - catch (Throwable e) - { - // some other type of exception occured - rollback and exit - throw e; - } - finally - { - // rollback if the operation didn't complete - if (operationComplete == false) - { - try { if (tx != null) {tx.rollback();} } catch (Exception tex) {} - String copyOf = Application.getMessage(fc, MSG_COPY_OF); - name = copyOf + ' ' + name; - translationPrefix = copyOf + ' ' + translationPrefix; - } - else - { - // commit the transaction - tx.commit(); - } - } } - return operationComplete; + return true; } else if (AVM_PASTE_VIEW_ID.equals(viewId)) { AVMBrowseBean avmBrowseBean = (AVMBrowseBean)FacesHelper.getManagedBean(fc, AVMBrowseBean.BEAN_NAME); - String destPath = avmBrowseBean.getCurrentPath(); - NodeRef destRef = AVMNodeConverter.ToNodeRef(-1, destPath); + final String destPath = avmBrowseBean.getCurrentPath(); + final NodeRef destRef = AVMNodeConverter.ToNodeRef(-1, destPath); - CrossRepositoryCopyService crossRepoCopyService = getServiceRegistry().getCrossRepositoryCopyService(); + final CrossRepositoryCopyService crossRepoCopyService = getServiceRegistry().getCrossRepositoryCopyService(); // initial name to attempt the copy of the item with String name = getName(); - boolean operationComplete = false; - while (operationComplete == false) + for(;;) { - UserTransaction tx = null; try { - // attempt each copy/paste in its own transaction - tx = Repository.getUserTransaction(fc, false); - tx.begin(); - if (getMode() == ClipboardStatus.COPY) - { - // COPY operation - if (logger.isDebugEnabled()) - logger.debug("Attempting to copy node: " + getNodeRef() + " into node ID: " + destRef.toString()); + final String currentName = name; - // inter-store copy operation - crossRepoCopyService.copy(getNodeRef(), destRef, name); - - if (destRef.getStoreRef().getProtocol().equals(StoreRef.PROTOCOL_AVM)) - { - // ETHREEOH-2110 - AVMNodeDescriptor desc = getAvmService().lookup(-1, destPath + "/" + name); - recursiveFormCheck(desc); - } - - // if we get here without an exception, the clipboard copy operation was successful - operationComplete = true; - } - else + // attempt each copy/paste in its own transaction + retryingTransactionHelper.doInTransaction(new RetryingTransactionCallback() { - // this should not occur as the canMoveToViewId() will return false - throw new Exception("Move operation not supported between stores."); - } + public Void execute() throws Throwable + { + if (getMode() == ClipboardStatus.COPY) + { + // COPY operation + if (logger.isDebugEnabled()) + logger.debug("Attempting to copy node: " + getNodeRef() + " into node ID: " + destRef.toString()); + + // inter-store copy operation + crossRepoCopyService.copy(getNodeRef(), destRef, currentName); + + if (destRef.getStoreRef().getProtocol().equals(StoreRef.PROTOCOL_AVM)) + { + // ETHREEOH-2110 + AVMNodeDescriptor desc = getAvmService().lookup(-1, destPath + "/" + currentName); + recursiveFormCheck(desc); + } + } + else + { + // this should not occur as the canMoveToViewId() will return false + throw new Exception("Move operation not supported between stores."); + } + return null; + } + }); + + // We got here without error, so no need to loop with a new name + break; } catch (FileExistsException fileExistsErr) { - if (getMode() != ClipboardStatus.COPY) + // If mode is COPY, have another go around the loop with a new name + if (getMode() == ClipboardStatus.COPY) + { + String copyOf = Application.getMessage(fc, MSG_COPY_OF); + name = copyOf + ' ' + name; + } + else { // we should not rename an item when it is being moved - so exit throw fileExistsErr; } } - catch (Throwable e) - { - // some other type of exception occured - rollback and exit - throw e; - } - finally - { - // rollback if the operation didn't complete - if (operationComplete == false) - { - try { if (tx != null) {tx.rollback();} } catch (Exception tex) {} - String copyOf = Application.getMessage(fc, MSG_COPY_OF); - name = copyOf + ' ' + name; - } - else - { - // commit the transaction - tx.commit(); - } - } } - return operationComplete; + return true; } else { diff --git a/source/java/org/alfresco/web/bean/groups/CreateGroupDialog.java b/source/java/org/alfresco/web/bean/groups/CreateGroupDialog.java index 3db700852e..f7f79a21aa 100644 --- a/source/java/org/alfresco/web/bean/groups/CreateGroupDialog.java +++ b/source/java/org/alfresco/web/bean/groups/CreateGroupDialog.java @@ -84,8 +84,9 @@ public class CreateGroupDialog extends BaseDialogBean { Utils.addErrorMessage(Application.getMessage(context, MSG_ERR_EXISTS)); outcome = null; + this.isFinished = false; } - + return outcome; } diff --git a/source/java/org/alfresco/web/bean/repository/Repository.java b/source/java/org/alfresco/web/bean/repository/Repository.java index 5c390c60c4..5ce36f38ff 100644 --- a/source/java/org/alfresco/web/bean/repository/Repository.java +++ b/source/java/org/alfresco/web/bean/repository/Repository.java @@ -61,6 +61,7 @@ import org.alfresco.service.cmr.security.PersonService; import org.alfresco.service.namespace.NamespaceService; import org.alfresco.service.namespace.QName; import org.alfresco.service.transaction.TransactionService; +import org.alfresco.util.PathUtil; import org.alfresco.web.app.Application; import org.alfresco.web.bean.NavigationBean; import org.alfresco.web.ui.common.Utils; @@ -321,34 +322,7 @@ public final class Repository */ public static String getDisplayPath(Path path, boolean showLeaf) { - StringBuilder buf = new StringBuilder(64); - - int count = path.size() - (showLeaf ? 0 : 1); - for (int i=0; i/app:company_home + + org.apache.myfaces.ERROR_HANDLING + false + Authentication Filter @@ -672,11 +676,6 @@ java.lang.Exception /jsp/error.jsp - - - org.apache.myfaces.ERROR_HANDLING - false - The Alfresco database connection diff --git a/source/web/jsp/content/document-details.jsp b/source/web/jsp/content/document-details.jsp index febec9302d..298b0a679d 100644 --- a/source/web/jsp/content/document-details.jsp +++ b/source/web/jsp/content/document-details.jsp @@ -349,7 +349,7 @@ - + diff --git a/source/web/jsp/dialog/about.jsp b/source/web/jsp/dialog/about.jsp index 29a46649b7..29fd4b6868 100644 --- a/source/web/jsp/dialog/about.jsp +++ b/source/web/jsp/dialog/about.jsp @@ -37,7 +37,7 @@
http://www.alfresco.com

- Alfresco Software Inc. © 2005-2010 All rights reserved. Legal and License + Alfresco Software Inc. © 2005-2011 All rights reserved. Legal and License

diff --git a/source/web/jsp/login.jsp b/source/web/jsp/login.jsp index 6dd70c33ca..4c3b92723c 100644 --- a/source/web/jsp/login.jsp +++ b/source/web/jsp/login.jsp @@ -109,6 +109,9 @@ + <%-- warning message for Team mode --%> + + : diff --git a/source/web/jsp/wcm/create-website-wizard/form-workflow.jsp b/source/web/jsp/wcm/create-website-wizard/form-workflow.jsp index fdf76c05e8..cb3670913c 100644 --- a/source/web/jsp/wcm/create-website-wizard/form-workflow.jsp +++ b/source/web/jsp/wcm/create-website-wizard/form-workflow.jsp @@ -24,7 +24,7 @@ <%@ page buffer="32kb" contentType="text/html;charset=UTF-8" %> <%@ page isELIgnored="false" %> - + diff --git a/source/web/jsp/wcm/create-website-wizard/forms.jsp b/source/web/jsp/wcm/create-website-wizard/forms.jsp index 010ab98589..63ff34d8c1 100644 --- a/source/web/jsp/wcm/create-website-wizard/forms.jsp +++ b/source/web/jsp/wcm/create-website-wizard/forms.jsp @@ -24,7 +24,7 @@ <%@ page buffer="32kb" contentType="text/html;charset=UTF-8" %> <%@ page isELIgnored="false" %> - + <%-- Form selection list - scrollable DIV area --%> diff --git a/source/web/jsp/wcm/create-website-wizard/settings.jsp b/source/web/jsp/wcm/create-website-wizard/settings.jsp index e96bd775fc..afa17c244c 100644 --- a/source/web/jsp/wcm/create-website-wizard/settings.jsp +++ b/source/web/jsp/wcm/create-website-wizard/settings.jsp @@ -24,7 +24,7 @@ <%@ page buffer="32kb" contentType="text/html;charset=UTF-8" %> <%@ page isELIgnored="false" %> - + <%-- Workflow selection list - scrollable DIV area --%> @@ -49,7 +49,7 @@ - diff --git a/source/web/jsp/wcm/deployment-report.jsp b/source/web/jsp/wcm/deployment-report.jsp index 89b0ebb263..548c749fad 100644 --- a/source/web/jsp/wcm/deployment-report.jsp +++ b/source/web/jsp/wcm/deployment-report.jsp @@ -61,7 +61,7 @@ - + diff --git a/source/web/scripts/ajax/mootools.v1.11-src.js b/source/web/scripts/ajax/mootools.v1.11-src.js deleted file mode 100644 index 3de7c52bad..0000000000 --- a/source/web/scripts/ajax/mootools.v1.11-src.js +++ /dev/null @@ -1,7125 +0,0 @@ -/* -Script: Core.js - Mootools - My Object Oriented javascript. - -License: - MIT-style license. - -MooTools Copyright: - copyright (c) 2007 Valerio Proietti, - -MooTools Credits: - - Class is slightly based on Base.js (c) 2006 Dean Edwards, License - - Some functions are inspired by those found in prototype.js (c) 2005 Sam Stephenson sam [at] conio [dot] net, MIT-style license - - Documentation by Aaron Newton (aaron.newton [at] cnet [dot] com) and Valerio Proietti. -*/ - -var MooTools = { - version: '1.11' -}; - -/* Section: Core Functions */ - -/* -Function: $defined - Returns true if the passed in value/object is defined, that means is not null or undefined. - -Arguments: - obj - object to inspect -*/ - -function $defined(obj){ - return (obj != undefined); -}; - -/* -Function: $type - Returns the type of object that matches the element passed in. - -Arguments: - obj - the object to inspect. - -Example: - >var myString = 'hello'; - >$type(myString); //returns "string" - -Returns: - 'element' - if obj is a DOM element node - 'textnode' - if obj is a DOM text node - 'whitespace' - if obj is a DOM whitespace node - 'arguments' - if obj is an arguments object - 'object' - if obj is an object - 'string' - if obj is a string - 'number' - if obj is a number - 'boolean' - if obj is a boolean - 'function' - if obj is a function - 'regexp' - if obj is a regular expression - 'class' - if obj is a Class. (created with new Class, or the extend of another class). - 'collection' - if obj is a native htmlelements collection, such as childNodes, getElementsByTagName .. etc. - false - (boolean) if the object is not defined or none of the above. -*/ - -function $type(obj){ - if (!$defined(obj)) return false; - if (obj.htmlElement) return 'element'; - var type = typeof obj; - if (type == 'object' && obj.nodeName){ - switch(obj.nodeType){ - case 1: return 'element'; - case 3: return (/\S/).test(obj.nodeValue) ? 'textnode' : 'whitespace'; - } - } - if (type == 'object' || type == 'function'){ - switch(obj.constructor){ - case Array: return 'array'; - case RegExp: return 'regexp'; - case Class: return 'class'; - } - if (typeof obj.length == 'number'){ - if (obj.item) return 'collection'; - if (obj.callee) return 'arguments'; - } - } - return type; -}; - -/* -Function: $merge - merges a number of objects recursively without referencing them or their sub-objects. - -Arguments: - any number of objects. - -Example: - >var mergedObj = $merge(obj1, obj2, obj3); - >//obj1, obj2, and obj3 are unaltered -*/ - -function $merge(){ - var mix = {}; - for (var i = 0; i < arguments.length; i++){ - for (var property in arguments[i]){ - var ap = arguments[i][property]; - var mp = mix[property]; - if (mp && $type(ap) == 'object' && $type(mp) == 'object') mix[property] = $merge(mp, ap); - else mix[property] = ap; - } - } - return mix; -}; - -/* -Function: $extend - Copies all the properties from the second passed object to the first passed Object. - If you do myWhatever.extend = $extend the first parameter will become myWhatever, and your extend function will only need one parameter. - -Example: - (start code) - var firstOb = { - 'name': 'John', - 'lastName': 'Doe' - }; - var secondOb = { - 'age': '20', - 'sex': 'male', - 'lastName': 'Dorian' - }; - $extend(firstOb, secondOb); - //firstOb will become: - { - 'name': 'John', - 'lastName': 'Dorian', - 'age': '20', - 'sex': 'male' - }; - (end) - -Returns: - The first object, extended. -*/ - -var $extend = function(){ - var args = arguments; - if (!args[1]) args = [this, args[0]]; - for (var property in args[1]) args[0][property] = args[1][property]; - return args[0]; -}; - -/* -Function: $native - Will add a .extend method to the objects passed as a parameter, but the property passed in will be copied to the object's prototype only if non previously existent. - Its handy if you dont want the .extend method of an object to overwrite existing methods. - Used automatically in MooTools to implement Array/String/Function/Number methods to browser that dont support them whitout manual checking. - -Arguments: - a number of classes/native javascript objects - -*/ - -var $native = function(){ - for (var i = 0, l = arguments.length; i < l; i++){ - arguments[i].extend = function(props){ - for (var prop in props){ - if (!this.prototype[prop]) this.prototype[prop] = props[prop]; - if (!this[prop]) this[prop] = $native.generic(prop); - } - }; - } -}; - -$native.generic = function(prop){ - return function(bind){ - return this.prototype[prop].apply(bind, Array.prototype.slice.call(arguments, 1)); - }; -}; - -$native(Function, Array, String, Number); - -/* -Function: $chk - Returns true if the passed in value/object exists or is 0, otherwise returns false. - Useful to accept zeroes. - -Arguments: - obj - object to inspect -*/ - -function $chk(obj){ - return !!(obj || obj === 0); -}; - -/* -Function: $pick - Returns the first object if defined, otherwise returns the second. - -Arguments: - obj - object to test - picked - the default to return - -Example: - (start code) - function say(msg){ - alert($pick(msg, 'no meessage supplied')); - } - (end) -*/ - -function $pick(obj, picked){ - return $defined(obj) ? obj : picked; -}; - -/* -Function: $random - Returns a random integer number between the two passed in values. - -Arguments: - min - integer, the minimum value (inclusive). - max - integer, the maximum value (inclusive). - -Returns: - a random integer between min and max. -*/ - -function $random(min, max){ - return Math.floor(Math.random() * (max - min + 1) + min); -}; - -/* -Function: $time - Returns the current timestamp - -Returns: - a timestamp integer. -*/ - -function $time(){ - return new Date().getTime(); -}; - -/* -Function: $clear - clears a timeout or an Interval. - -Returns: - null - -Arguments: - timer - the setInterval or setTimeout to clear. - -Example: - >var myTimer = myFunction.delay(5000); //wait 5 seconds and execute my function. - >myTimer = $clear(myTimer); //nevermind - -See also: - , -*/ - -function $clear(timer){ - clearTimeout(timer); - clearInterval(timer); - return null; -}; - -/* -Class: Abstract - Abstract class, to be used as singleton. Will add .extend to any object - -Arguments: - an object - -Returns: - the object with an .extend property, equivalent to <$extend>. -*/ - -var Abstract = function(obj){ - obj = obj || {}; - obj.extend = $extend; - return obj; -}; - -//window, document - -var Window = new Abstract(window); -var Document = new Abstract(document); -document.head = document.getElementsByTagName('head')[0]; - -/* -Class: window - Some properties are attached to the window object by the browser detection. - -Note: - browser detection is entirely object-based. We dont sniff. - -Properties: - window.ie - will be set to true if the current browser is internet explorer (any). - window.ie6 - will be set to true if the current browser is internet explorer 6. - window.ie7 - will be set to true if the current browser is internet explorer 7. - window.gecko - will be set to true if the current browser is Mozilla/Gecko. - window.webkit - will be set to true if the current browser is Safari/Konqueror. - window.webkit419 - will be set to true if the current browser is Safari2 / webkit till version 419. - window.webkit420 - will be set to true if the current browser is Safari3 (Webkit SVN Build) / webkit over version 419. - window.opera - is set to true by opera itself. -*/ - -window.xpath = !!(document.evaluate); -if (window.ActiveXObject) window.ie = window[window.XMLHttpRequest ? 'ie7' : 'ie6'] = true; -else if (document.childNodes && !document.all && !navigator.taintEnabled) window.webkit = window[window.xpath ? 'webkit420' : 'webkit419'] = true; -else if (document.getBoxObjectFor != null) window.gecko = true; - -/*compatibility*/ - -window.khtml = window.webkit; - -Object.extend = $extend; - -/*end compatibility*/ - -//htmlelement - -if (typeof HTMLElement == 'undefined'){ - var HTMLElement = function(){}; - if (window.webkit) document.createElement("iframe"); //fixes safari - HTMLElement.prototype = (window.webkit) ? window["[[DOMElement.prototype]]"] : {}; -} -HTMLElement.prototype.htmlElement = function(){}; - -//enables background image cache for internet explorer 6 - -if (window.ie6) try {document.execCommand("BackgroundImageCache", false, true);} catch(e){}; - -/* -Script: Class.js - Contains the Class Function, aims to ease the creation of reusable Classes. - -License: - MIT-style license. -*/ - -/* -Class: Class - The base class object of the framework. - Creates a new class, its initialize method will fire upon class instantiation. - Initialize wont fire on instantiation when you pass *null*. - -Arguments: - properties - the collection of properties that apply to the class. - -Example: - (start code) - var Cat = new Class({ - initialize: function(name){ - this.name = name; - } - }); - var myCat = new Cat('Micia'); - alert(myCat.name); //alerts 'Micia' - (end) -*/ - -var Class = function(properties){ - var klass = function(){ - return (arguments[0] !== null && this.initialize && $type(this.initialize) == 'function') ? this.initialize.apply(this, arguments) : this; - }; - $extend(klass, this); - klass.prototype = properties; - klass.constructor = Class; - return klass; -}; - -/* -Property: empty - Returns an empty function -*/ - -Class.empty = function(){}; - -Class.prototype = { - - /* - Property: extend - Returns the copy of the Class extended with the passed in properties. - - Arguments: - properties - the properties to add to the base class in this new Class. - - Example: - (start code) - var Animal = new Class({ - initialize: function(age){ - this.age = age; - } - }); - var Cat = Animal.extend({ - initialize: function(name, age){ - this.parent(age); //will call the previous initialize; - this.name = name; - } - }); - var myCat = new Cat('Micia', 20); - alert(myCat.name); //alerts 'Micia' - alert(myCat.age); //alerts 20 - (end) - */ - - extend: function(properties){ - var proto = new this(null); - for (var property in properties){ - var pp = proto[property]; - proto[property] = Class.Merge(pp, properties[property]); - } - return new Class(proto); - }, - - /* - Property: implement - Implements the passed in properties to the base Class prototypes, altering the base class, unlike . - - Arguments: - properties - the properties to add to the base class. - - Example: - (start code) - var Animal = new Class({ - initialize: function(age){ - this.age = age; - } - }); - Animal.implement({ - setName: function(name){ - this.name = name - } - }); - var myAnimal = new Animal(20); - myAnimal.setName('Micia'); - alert(myAnimal.name); //alerts 'Micia' - (end) - */ - - implement: function(){ - for (var i = 0, l = arguments.length; i < l; i++) $extend(this.prototype, arguments[i]); - } - -}; - -//internal - -Class.Merge = function(previous, current){ - if (previous && previous != current){ - var type = $type(current); - if (type != $type(previous)) return current; - switch(type){ - case 'function': - var merged = function(){ - this.parent = arguments.callee.parent; - return current.apply(this, arguments); - }; - merged.parent = previous; - return merged; - case 'object': return $merge(previous, current); - } - } - return current; -}; - -/* -Script: Class.Extras.js - Contains common implementations for custom classes. In Mootools is implemented in , and and many more. - -License: - MIT-style license. -*/ - -/* -Class: Chain - An "Utility" Class. Its methods can be implemented with into any . - Currently implemented in , and . In for example, is used to execute a list of function, one after another, once the effect is completed. - The functions will not be fired all togheter, but one every completion, to create custom complex animations. - -Example: - (start code) - var myFx = new Fx.Style('element', 'opacity'); - - myFx.start(1,0).chain(function(){ - myFx.start(0,1); - }).chain(function(){ - myFx.start(1,0); - }).chain(function(){ - myFx.start(0,1); - }); - //the element will appear and disappear three times - (end) -*/ - -var Chain = new Class({ - - /* - Property: chain - adds a function to the Chain instance stack. - - Arguments: - fn - the function to append. - */ - - chain: function(fn){ - this.chains = this.chains || []; - this.chains.push(fn); - return this; - }, - - /* - Property: callChain - Executes the first function of the Chain instance stack, then removes it. The first function will then become the second. - */ - - callChain: function(){ - if (this.chains && this.chains.length) this.chains.shift().delay(10, this); - }, - - /* - Property: clearChain - Clears the stack of a Chain instance. - */ - - clearChain: function(){ - this.chains = []; - } - -}); - -/* -Class: Events - An "Utility" Class. Its methods can be implemented with into any . - In Class, for example, is used to give the possibility add any number of functions to the Effects events, like onComplete, onStart, onCancel. - Events in a Class that implements can be either added as an option, or with addEvent. Never with .options.onEventName. - -Example: - (start code) - var myFx = new Fx.Style('element', 'opacity').addEvent('onComplete', function(){ - alert('the effect is completed'); - }).addEvent('onComplete', function(){ - alert('I told you the effect is completed'); - }); - - myFx.start(0,1); - //upon completion it will display the 2 alerts, in order. - (end) - -Implementing: - This class can be implemented into other classes to add the functionality to them. - Goes well with the class. - -Example: - (start code) - var Widget = new Class({ - initialize: function(){}, - finish: function(){ - this.fireEvent('onComplete'); - } - }); - Widget.implement(new Events); - //later... - var myWidget = new Widget(); - myWidget.addEvent('onComplete', myfunction); - (end) -*/ - -var Events = new Class({ - - /* - Property: addEvent - adds an event to the stack of events of the Class instance. - - Arguments: - type - string; the event name (e.g. 'onComplete') - fn - function to execute - */ - - addEvent: function(type, fn){ - if (fn != Class.empty){ - this.$events = this.$events || {}; - this.$events[type] = this.$events[type] || []; - this.$events[type].include(fn); - } - return this; - }, - - /* - Property: fireEvent - fires all events of the specified type in the Class instance. - - Arguments: - type - string; the event name (e.g. 'onComplete') - args - array or single object; arguments to pass to the function; if more than one argument, must be an array - delay - (integer) delay (in ms) to wait to execute the event - - Example: - (start code) - var Widget = new Class({ - initialize: function(arg1, arg2){ - ... - this.fireEvent("onInitialize", [arg1, arg2], 50); - } - }); - Widget.implement(new Events); - (end) - */ - - fireEvent: function(type, args, delay){ - if (this.$events && this.$events[type]){ - this.$events[type].each(function(fn){ - fn.create({'bind': this, 'delay': delay, 'arguments': args})(); - }, this); - } - return this; - }, - - /* - Property: removeEvent - removes an event from the stack of events of the Class instance. - - Arguments: - type - string; the event name (e.g. 'onComplete') - fn - function that was added - */ - - removeEvent: function(type, fn){ - if (this.$events && this.$events[type]) this.$events[type].remove(fn); - return this; - } - -}); - -/* -Class: Options - An "Utility" Class. Its methods can be implemented with into any . - Used to automate the options settings, also adding Class when the option begins with on. - - Example: - (start code) - var Widget = new Class({ - options: { - color: '#fff', - size: { - width: 100 - height: 100 - } - }, - initialize: function(options){ - this.setOptions(options); - } - }); - Widget.implement(new Options); - //later... - var myWidget = new Widget({ - color: '#f00', - size: { - width: 200 - } - }); - //myWidget.options = {color: #f00, size: {width: 200, height: 100}} - (end) -*/ - -var Options = new Class({ - - /* - Property: setOptions - sets this.options - - Arguments: - defaults - object; the default set of options - options - object; the user entered options. can be empty too. - - Note: - if your Class has implemented, every option beginning with on, followed by a capital letter (onComplete) becomes an Class instance event. - */ - - setOptions: function(){ - this.options = $merge.apply(null, [this.options].extend(arguments)); - if (this.addEvent){ - for (var option in this.options){ - if ($type(this.options[option] == 'function') && (/^on[A-Z]/).test(option)) this.addEvent(option, this.options[option]); - } - } - return this; - } - -}); - -/* -Script: Array.js - Contains Array prototypes, <$A>, <$each> - -License: - MIT-style license. -*/ - -/* -Class: Array - A collection of The Array Object prototype methods. -*/ - -//custom methods - -Array.extend({ - - /* - Property: forEach - Iterates through an array; This method is only available for browsers without native *forEach* support. - For more info see - - *forEach* executes the provided function (callback) once for each element present in the array. callback is invoked only for indexes of the array which have assigned values; it is not invoked for indexes which have been deleted or which have never been assigned values. - - Arguments: - fn - function to execute with each item in the array; passed the item and the index of that item in the array - bind - the object to bind "this" to (see ) - - Example: - >['apple','banana','lemon'].each(function(item, index){ - > alert(index + " = " + item); //alerts "0 = apple" etc. - >}, bindObj); //optional second arg for binding, not used here - */ - - forEach: function(fn, bind){ - for (var i = 0, j = this.length; i < j; i++) fn.call(bind, this[i], i, this); - }, - - /* - Property: filter - This method is provided only for browsers without native *filter* support. - For more info see - - *filter* calls a provided callback function once for each element in an array, and constructs a new array of all the values for which callback returns a true value. callback is invoked only for indexes of the array which have assigned values; it is not invoked for indexes which have been deleted or which have never been assigned values. Array elements which do not pass the callback test are simply skipped, and are not included in the new array. - - Arguments: - fn - function to execute with each item in the array; passed the item and the index of that item in the array - bind - the object to bind "this" to (see ) - - Example: - >var biggerThanTwenty = [10,3,25,100].filter(function(item, index){ - > return item > 20; - >}); - >//biggerThanTwenty = [25,100] - */ - - filter: function(fn, bind){ - var results = []; - for (var i = 0, j = this.length; i < j; i++){ - if (fn.call(bind, this[i], i, this)) results.push(this[i]); - } - return results; - }, - - /* - Property: map - This method is provided only for browsers without native *map* support. - For more info see - - *map* calls a provided callback function once for each element in an array, in order, and constructs a new array from the results. callback is invoked only for indexes of the array which have assigned values; it is not invoked for indexes which have been deleted or which have never been assigned values. - - Arguments: - fn - function to execute with each item in the array; passed the item and the index of that item in the array - bind - the object to bind "this" to (see ) - - Example: - >var timesTwo = [1,2,3].map(function(item, index){ - > return item*2; - >}); - >//timesTwo = [2,4,6]; - */ - - map: function(fn, bind){ - var results = []; - for (var i = 0, j = this.length; i < j; i++) results[i] = fn.call(bind, this[i], i, this); - return results; - }, - - /* - Property: every - This method is provided only for browsers without native *every* support. - For more info see - - *every* executes the provided callback function once for each element present in the array until it finds one where callback returns a false value. If such an element is found, the every method immediately returns false. Otherwise, if callback returned a true value for all elements, every will return true. callback is invoked only for indexes of the array which have assigned values; it is not invoked for indexes which have been deleted or which have never been assigned values. - - Arguments: - fn - function to execute with each item in the array; passed the item and the index of that item in the array - bind - the object to bind "this" to (see ) - - Example: - >var areAllBigEnough = [10,4,25,100].every(function(item, index){ - > return item > 20; - >}); - >//areAllBigEnough = false - */ - - every: function(fn, bind){ - for (var i = 0, j = this.length; i < j; i++){ - if (!fn.call(bind, this[i], i, this)) return false; - } - return true; - }, - - /* - Property: some - This method is provided only for browsers without native *some* support. - For more info see - - *some* executes the callback function once for each element present in the array until it finds one where callback returns a true value. If such an element is found, some immediately returns true. Otherwise, some returns false. callback is invoked only for indexes of the array which have assigned values; it is not invoked for indexes which have been deleted or which have never been assigned values. - - Arguments: - fn - function to execute with each item in the array; passed the item and the index of that item in the array - bind - the object to bind "this" to (see ) - - Example: - >var isAnyBigEnough = [10,4,25,100].some(function(item, index){ - > return item > 20; - >}); - >//isAnyBigEnough = true - */ - - some: function(fn, bind){ - for (var i = 0, j = this.length; i < j; i++){ - if (fn.call(bind, this[i], i, this)) return true; - } - return false; - }, - - /* - Property: indexOf - This method is provided only for browsers without native *indexOf* support. - For more info see - - *indexOf* compares a search element to elements of the Array using strict equality (the same method used by the ===, or triple-equals, operator). - - Arguments: - item - any type of object; element to locate in the array - from - integer; optional; the index of the array at which to begin the search (defaults to 0) - - Example: - >['apple','lemon','banana'].indexOf('lemon'); //returns 1 - >['apple','lemon'].indexOf('banana'); //returns -1 - */ - - indexOf: function(item, from){ - var len = this.length; - for (var i = (from < 0) ? Math.max(0, len + from) : from || 0; i < len; i++){ - if (this[i] === item) return i; - } - return -1; - }, - - /* - Property: each - Same as . - - Arguments: - fn - function to execute with each item in the array; passed the item and the index of that item in the array - bind - optional, the object that the "this" of the function will refer to. - - Example: - >var Animals = ['Cat', 'Dog', 'Coala']; - >Animals.each(function(animal){ - > document.write(animal) - >}); - */ - - /* - Property: copy - returns a copy of the array. - - Returns: - a new array which is a copy of the current one. - - Arguments: - start - integer; optional; the index where to start the copy, default is 0. If negative, it is taken as the offset from the end of the array. - length - integer; optional; the number of elements to copy. By default, copies all elements from start to the end of the array. - - Example: - >var letters = ["a","b","c"]; - >var copy = letters.copy(); // ["a","b","c"] (new instance) - */ - - copy: function(start, length){ - start = start || 0; - if (start < 0) start = this.length + start; - length = length || (this.length - start); - var newArray = []; - for (var i = 0; i < length; i++) newArray[i] = this[start++]; - return newArray; - }, - - /* - Property: remove - Removes all occurrences of an item from the array. - - Arguments: - item - the item to remove - - Returns: - the Array with all occurrences of the item removed. - - Example: - >["1","2","3","2"].remove("2") // ["1","3"]; - */ - - remove: function(item){ - var i = 0; - var len = this.length; - while (i < len){ - if (this[i] === item){ - this.splice(i, 1); - len--; - } else { - i++; - } - } - return this; - }, - - /* - Property: contains - Tests an array for the presence of an item. - - Arguments: - item - the item to search for in the array. - from - integer; optional; the index at which to begin the search, default is 0. If negative, it is taken as the offset from the end of the array. - - Returns: - true - the item was found - false - it wasn't - - Example: - >["a","b","c"].contains("a"); // true - >["a","b","c"].contains("d"); // false - */ - - contains: function(item, from){ - return this.indexOf(item, from) != -1; - }, - - /* - Property: associate - Creates an object with key-value pairs based on the array of keywords passed in - and the current content of the array. - - Arguments: - keys - the array of keywords. - - Example: - (start code) - var Animals = ['Cat', 'Dog', 'Coala', 'Lizard']; - var Speech = ['Miao', 'Bau', 'Fruuu', 'Mute']; - var Speeches = Animals.associate(Speech); - //Speeches['Miao'] is now Cat. - //Speeches['Bau'] is now Dog. - //... - (end) - */ - - associate: function(keys){ - var obj = {}, length = Math.min(this.length, keys.length); - for (var i = 0; i < length; i++) obj[keys[i]] = this[i]; - return obj; - }, - - /* - Property: extend - Extends an array with another one. - - Arguments: - array - the array to extend ours with - - Example: - >var Animals = ['Cat', 'Dog', 'Coala']; - >Animals.extend(['Lizard']); - >//Animals is now: ['Cat', 'Dog', 'Coala', 'Lizard']; - */ - - extend: function(array){ - for (var i = 0, j = array.length; i < j; i++) this.push(array[i]); - return this; - }, - - /* - Property: merge - merges an array in another array, without duplicates. (case- and type-sensitive) - - Arguments: - array - the array to merge from. - - Example: - >['Cat','Dog'].merge(['Dog','Coala']); //returns ['Cat','Dog','Coala'] - */ - - merge: function(array){ - for (var i = 0, l = array.length; i < l; i++) this.include(array[i]); - return this; - }, - - /* - Property: include - includes the passed in element in the array, only if its not already present. (case- and type-sensitive) - - Arguments: - item - item to add to the array (if not present) - - Example: - >['Cat','Dog'].include('Dog'); //returns ['Cat','Dog'] - >['Cat','Dog'].include('Coala'); //returns ['Cat','Dog','Coala'] - */ - - include: function(item){ - if (!this.contains(item)) this.push(item); - return this; - }, - - /* - Property: getRandom - returns a random item in the Array - */ - - getRandom: function(){ - return this[$random(0, this.length - 1)] || null; - }, - - /* - Property: getLast - returns the last item in the Array - */ - - getLast: function(){ - return this[this.length - 1] || null; - } - -}); - -//copies - -Array.prototype.each = Array.prototype.forEach; -Array.each = Array.forEach; - -/* Section: Utility Functions */ - -/* -Function: $A() - Same as , but as function. - Useful to apply Array prototypes to iterable objects, as a collection of DOM elements or the arguments object. - -Example: - (start code) - function myFunction(){ - $A(arguments).each(argument, function(){ - alert(argument); - }); - }; - //the above will alert all the arguments passed to the function myFunction. - (end) -*/ - -function $A(array){ - return Array.copy(array); -}; - -/* -Function: $each - Use to iterate through iterables that are not regular arrays, such as builtin getElementsByTagName calls, arguments of a function, or an object. - -Arguments: - iterable - an iterable element or an objct. - function - function to apply to the iterable. - bind - optional, the 'this' of the function will refer to this object. - -Function argument: - The function argument will be passed the following arguments. - - item - the current item in the iterator being procesed - index - integer; the index of the item, or key in case of an object. - -Examples: - (start code) - $each(['Sun','Mon','Tue'], function(day, index){ - alert('name:' + day + ', index: ' + index); - }); - //alerts "name: Sun, index: 0", "name: Mon, index: 1", etc. - //over an object - $each({first: "Sunday", second: "Monday", third: "Tuesday"}, function(value, key){ - alert("the " + key + " day of the week is " + value); - }); - //alerts "the first day of the week is Sunday", - //"the second day of the week is Monday", etc. - (end) -*/ - -function $each(iterable, fn, bind){ - if (iterable && typeof iterable.length == 'number' && $type(iterable) != 'object'){ - Array.forEach(iterable, fn, bind); - } else { - for (var name in iterable) fn.call(bind || iterable, iterable[name], name); - } -}; - -/*compatibility*/ - -Array.prototype.test = Array.prototype.contains; - -/*end compatibility*/ - -/* -Script: String.js - Contains String prototypes. - -License: - MIT-style license. -*/ - -/* -Class: String - A collection of The String Object prototype methods. -*/ - -String.extend({ - - /* - Property: test - Tests a string with a regular expression. - - Arguments: - regex - a string or regular expression object, the regular expression you want to match the string with - params - optional, if first parameter is a string, any parameters you want to pass to the regex ('g' has no effect) - - Returns: - true if a match for the regular expression is found in the string, false if not. - See - - Example: - >"I like cookies".test("cookie"); // returns true - >"I like cookies".test("COOKIE", "i") // ignore case, returns true - >"I like cookies".test("cake"); // returns false - */ - - test: function(regex, params){ - return (($type(regex) == 'string') ? new RegExp(regex, params) : regex).test(this); - }, - - /* - Property: toInt - parses a string to an integer. - - Returns: - either an int or "NaN" if the string is not a number. - - Example: - >var value = "10px".toInt(); // value is 10 - */ - - toInt: function(){ - return parseInt(this, 10); - }, - - /* - Property: toFloat - parses a string to an float. - - Returns: - either a float or "NaN" if the string is not a number. - - Example: - >var value = "10.848".toFloat(); // value is 10.848 - */ - - toFloat: function(){ - return parseFloat(this); - }, - - /* - Property: camelCase - Converts a hiphenated string to a camelcase string. - - Example: - >"I-like-cookies".camelCase(); //"ILikeCookies" - - Returns: - the camel cased string - */ - - camelCase: function(){ - return this.replace(/-\D/g, function(match){ - return match.charAt(1).toUpperCase(); - }); - }, - - /* - Property: hyphenate - Converts a camelCased string to a hyphen-ated string. - - Example: - >"ILikeCookies".hyphenate(); //"I-like-cookies" - */ - - hyphenate: function(){ - return this.replace(/\w[A-Z]/g, function(match){ - return (match.charAt(0) + '-' + match.charAt(1).toLowerCase()); - }); - }, - - /* - Property: capitalize - Converts the first letter in each word of a string to Uppercase. - - Example: - >"i like cookies".capitalize(); //"I Like Cookies" - - Returns: - the capitalized string - */ - - capitalize: function(){ - return this.replace(/\b[a-z]/g, function(match){ - return match.toUpperCase(); - }); - }, - - /* - Property: trim - Trims the leading and trailing spaces off a string. - - Example: - >" i like cookies ".trim() //"i like cookies" - - Returns: - the trimmed string - */ - - trim: function(){ - return this.replace(/^\s+|\s+$/g, ''); - }, - - /* - Property: clean - trims () a string AND removes all the double spaces in a string. - - Returns: - the cleaned string - - Example: - >" i like cookies \n\n".clean() //"i like cookies" - */ - - clean: function(){ - return this.replace(/\s{2,}/g, ' ').trim(); - }, - - /* - Property: rgbToHex - Converts an RGB value to hexidecimal. The string must be in the format of "rgb(255,255,255)" or "rgba(255,255,255,1)"; - - Arguments: - array - boolean value, defaults to false. Use true if you want the array ['FF','33','00'] as output instead of "#FF3300" - - Returns: - hex string or array. returns "transparent" if the output is set as string and the fourth value of rgba in input string is 0. - - Example: - >"rgb(17,34,51)".rgbToHex(); //"#112233" - >"rgba(17,34,51,0)".rgbToHex(); //"transparent" - >"rgb(17,34,51)".rgbToHex(true); //['11','22','33'] - */ - - rgbToHex: function(array){ - var rgb = this.match(/\d{1,3}/g); - return (rgb) ? rgb.rgbToHex(array) : false; - }, - - /* - Property: hexToRgb - Converts a hexidecimal color value to RGB. Input string must be the hex color value (with or without the hash). Also accepts triplets ('333'); - - Arguments: - array - boolean value, defaults to false. Use true if you want the array [255,255,255] as output instead of "rgb(255,255,255)"; - - Returns: - rgb string or array. - - Example: - >"#112233".hexToRgb(); //"rgb(17,34,51)" - >"#112233".hexToRgb(true); //[17,34,51] - */ - - hexToRgb: function(array){ - var hex = this.match(/^#?(\w{1,2})(\w{1,2})(\w{1,2})$/); - return (hex) ? hex.slice(1).hexToRgb(array) : false; - }, - - /* - Property: contains - checks if the passed in string is contained in the String. also accepts an optional second parameter, to check if the string is contained in a list of separated values. - - Example: - >'a b c'.contains('c', ' '); //true - >'a bc'.contains('bc'); //true - >'a bc'.contains('b', ' '); //false - */ - - contains: function(string, s){ - return (s) ? (s + this + s).indexOf(s + string + s) > -1 : this.indexOf(string) > -1; - }, - - /* - Property: escapeRegExp - Returns string with escaped regular expression characters - - Example: - >var search = 'animals.sheeps[1]'.escapeRegExp(); // search is now 'animals\.sheeps\[1\]' - - Returns: - Escaped string - */ - - escapeRegExp: function(){ - return this.replace(/([.*+?^${}()|[\]\/\\])/g, '\\$1'); - } - -}); - -Array.extend({ - - /* - Property: rgbToHex - see , but as an array method. - */ - - rgbToHex: function(array){ - if (this.length < 3) return false; - if (this.length == 4 && this[3] == 0 && !array) return 'transparent'; - var hex = []; - for (var i = 0; i < 3; i++){ - var bit = (this[i] - 0).toString(16); - hex.push((bit.length == 1) ? '0' + bit : bit); - } - return array ? hex : '#' + hex.join(''); - }, - - /* - Property: hexToRgb - same as , but as an array method. - */ - - hexToRgb: function(array){ - if (this.length != 3) return false; - var rgb = []; - for (var i = 0; i < 3; i++){ - rgb.push(parseInt((this[i].length == 1) ? this[i] + this[i] : this[i], 16)); - } - return array ? rgb : 'rgb(' + rgb.join(',') + ')'; - } - -}); - -/* -Script: Function.js - Contains Function prototypes and utility functions . - -License: - MIT-style license. - -Credits: - - Some functions are inspired by those found in prototype.js (c) 2005 Sam Stephenson sam [at] conio [dot] net, MIT-style license -*/ - -/* -Class: Function - A collection of The Function Object prototype methods. -*/ - -Function.extend({ - - /* - Property: create - Main function to create closures. - - Returns: - a function. - - Arguments: - options - An Options object. - - Options: - bind - The object that the "this" of the function will refer to. Default is the current function. - event - If set to true, the function will act as an event listener and receive an event as first argument. - If set to a class name, the function will receive a new instance of this class (with the event passed as argument's constructor) as first argument. - Default is false. - arguments - A single argument or array of arguments that will be passed to the function when called. - - If both the event and arguments options are set, the event is passed as first argument and the arguments array will follow. - - Default is no custom arguments, the function will receive the standard arguments when called. - - delay - Numeric value: if set, the returned function will delay the actual execution by this amount of milliseconds and return a timer handle when called. - Default is no delay. - periodical - Numeric value: if set, the returned function will periodically perform the actual execution with this specified interval and return a timer handle when called. - Default is no periodical execution. - attempt - If set to true, the returned function will try to execute and return either the results or false on error. Default is false. - */ - - create: function(options){ - var fn = this; - options = $merge({ - 'bind': fn, - 'event': false, - 'arguments': null, - 'delay': false, - 'periodical': false, - 'attempt': false - }, options); - if ($chk(options.arguments) && $type(options.arguments) != 'array') options.arguments = [options.arguments]; - return function(event){ - var args; - if (options.event){ - event = event || window.event; - args = [(options.event === true) ? event : new options.event(event)]; - if (options.arguments) args.extend(options.arguments); - } - else args = options.arguments || arguments; - var returns = function(){ - return fn.apply($pick(options.bind, fn), args); - }; - if (options.delay) return setTimeout(returns, options.delay); - if (options.periodical) return setInterval(returns, options.periodical); - if (options.attempt) try {return returns();} catch(err){return false;}; - return returns(); - }; - }, - - /* - Property: pass - Shortcut to create closures with arguments and bind. - - Returns: - a function. - - Arguments: - args - the arguments passed. must be an array if arguments > 1 - bind - optional, the object that the "this" of the function will refer to. - - Example: - >myFunction.pass([arg1, arg2], myElement); - */ - - pass: function(args, bind){ - return this.create({'arguments': args, 'bind': bind}); - }, - - /* - Property: attempt - Tries to execute the function, returns either the result of the function or false on error. - - Arguments: - args - the arguments passed. must be an array if arguments > 1 - bind - optional, the object that the "this" of the function will refer to. - - Example: - >myFunction.attempt([arg1, arg2], myElement); - */ - - attempt: function(args, bind){ - return this.create({'arguments': args, 'bind': bind, 'attempt': true})(); - }, - - /* - Property: bind - method to easily create closures with "this" altered. - - Arguments: - bind - optional, the object that the "this" of the function will refer to. - args - optional, the arguments passed. must be an array if arguments > 1 - - Returns: - a function. - - Example: - >function myFunction(){ - > this.setStyle('color', 'red'); - > // note that 'this' here refers to myFunction, not an element - > // we'll need to bind this function to the element we want to alter - >}; - >var myBoundFunction = myFunction.bind(myElement); - >myBoundFunction(); // this will make the element myElement red. - */ - - bind: function(bind, args){ - return this.create({'bind': bind, 'arguments': args}); - }, - - /* - Property: bindAsEventListener - cross browser method to pass event firer - - Arguments: - bind - optional, the object that the "this" of the function will refer to. - args - optional, the arguments passed. must be an array if arguments > 1 - - Returns: - a function with the parameter bind as its "this" and as a pre-passed argument event or window.event, depending on the browser. - - Example: - >function myFunction(event){ - > alert(event.clientx) //returns the coordinates of the mouse.. - >}; - >myElement.onclick = myFunction.bindAsEventListener(myElement); - */ - - bindAsEventListener: function(bind, args){ - return this.create({'bind': bind, 'event': true, 'arguments': args}); - }, - - /* - Property: delay - Delays the execution of a function by a specified duration. - - Arguments: - delay - the duration to wait in milliseconds. - bind - optional, the object that the "this" of the function will refer to. - args - optional, the arguments passed. must be an array if arguments > 1 - - Example: - >myFunction.delay(50, myElement) //wait 50 milliseconds, then call myFunction and bind myElement to it - >(function(){alert('one second later...')}).delay(1000); //wait a second and alert - */ - - delay: function(delay, bind, args){ - return this.create({'delay': delay, 'bind': bind, 'arguments': args})(); - }, - - /* - Property: periodical - Executes a function in the specified intervals of time - - Arguments: - interval - the duration of the intervals between executions. - bind - optional, the object that the "this" of the function will refer to. - args - optional, the arguments passed. must be an array if arguments > 1 - */ - - periodical: function(interval, bind, args){ - return this.create({'periodical': interval, 'bind': bind, 'arguments': args})(); - } - -}); - -/* -Script: Number.js - Contains the Number prototypes. - -License: - MIT-style license. -*/ - -/* -Class: Number - A collection of The Number Object prototype methods. -*/ - -Number.extend({ - - /* - Property: toInt - Returns this number; useful because toInt must work on both Strings and Numbers. - */ - - toInt: function(){ - return parseInt(this); - }, - - /* - Property: toFloat - Returns this number as a float; useful because toFloat must work on both Strings and Numbers. - */ - - toFloat: function(){ - return parseFloat(this); - }, - - /* - Property: limit - Limits the number. - - Arguments: - min - number, minimum value - max - number, maximum value - - Returns: - the number in the given limits. - - Example: - >(12).limit(2, 6.5) // returns 6.5 - >(-4).limit(2, 6.5) // returns 2 - >(4.3).limit(2, 6.5) // returns 4.3 - */ - - limit: function(min, max){ - return Math.min(max, Math.max(min, this)); - }, - - /* - Property: round - Returns the number rounded to specified precision. - - Arguments: - precision - integer, number of digits after the decimal point. Can also be negative or zero (default). - - Example: - >12.45.round() // returns 12 - >12.45.round(1) // returns 12.5 - >12.45.round(-1) // returns 10 - - Returns: - The rounded number. - */ - - round: function(precision){ - precision = Math.pow(10, precision || 0); - return Math.round(this * precision) / precision; - }, - - /* - Property: times - Executes a passed in function the specified number of times - - Arguments: - function - the function to be executed on each iteration of the loop - - Example: - >(4).times(alert); - */ - - times: function(fn){ - for (var i = 0; i < this; i++) fn(i); - } - -}); - -/* -Script: Element.js - Contains useful Element prototypes, to be used with the dollar function <$>. - -License: - MIT-style license. - -Credits: - - Some functions are inspired by those found in prototype.js (c) 2005 Sam Stephenson sam [at] conio [dot] net, MIT-style license -*/ - -/* -Class: Element - Custom class to allow all of its methods to be used with any DOM element via the dollar function <$>. -*/ - -var Element = new Class({ - - /* - Property: initialize - Creates a new element of the type passed in. - - Arguments: - el - string; the tag name for the element you wish to create. you can also pass in an element reference, in which case it will be extended. - props - object; the properties you want to add to your element. - Accepts the same keys as , but also allows events and styles - - Props: - the key styles will be used as setStyles, the key events will be used as addEvents. any other key is used as setProperty. - - Example: - (start code) - new Element('a', { - 'styles': { - 'display': 'block', - 'border': '1px solid black' - }, - 'events': { - 'click': function(){ - //aaa - }, - 'mousedown': function(){ - //aaa - } - }, - 'class': 'myClassSuperClass', - 'href': 'http://mad4milk.net' - }); - - (end) - */ - - initialize: function(el, props){ - if ($type(el) == 'string'){ - if (window.ie && props && (props.name || props.type)){ - var name = (props.name) ? ' name="' + props.name + '"' : ''; - var type = (props.type) ? ' type="' + props.type + '"' : ''; - delete props.name; - delete props.type; - el = '<' + el + name + type + '>'; - } - el = document.createElement(el); - } - el = $(el); - return (!props || !el) ? el : el.set(props); - } - -}); - -/* -Class: Elements - - Every dom function such as <$$>, or in general every function that returns a collection of nodes in mootools, returns them as an Elements class. - - The purpose of the Elements class is to allow methods to work also on array. - - Elements is also an Array, so it accepts all the methods. - - Every node of the Elements instance is already extended with <$>. - -Example: - >$$('myselector').each(function(el){ - > //... - >}); - - some iterations here, $$('myselector') is also an array. - - >$$('myselector').setStyle('color', 'red'); - every element returned by $$('myselector') also accepts methods, in this example every element will be made red. -*/ - -var Elements = new Class({ - - initialize: function(elements){ - return (elements) ? $extend(elements, this) : this; - } - -}); - -Elements.extend = function(props){ - for (var prop in props){ - this.prototype[prop] = props[prop]; - this[prop] = $native.generic(prop); - } -}; - -/* -Section: Utility Functions - -Function: $ - returns the element passed in with all the Element prototypes applied. - -Arguments: - el - a reference to an actual element or a string representing the id of an element - -Example: - >$('myElement') // gets a DOM element by id with all the Element prototypes applied. - >var div = document.getElementById('myElement'); - >$(div) //returns an Element also with all the mootools extentions applied. - - You'll use this when you aren't sure if a variable is an actual element or an id, as - well as just shorthand for document.getElementById(). - -Returns: - a DOM element or false (if no id was found). - -Note: - you need to call $ on an element only once to get all the prototypes. - But its no harm to call it multiple times, as it will detect if it has been already extended. -*/ - -function $(el){ - if (!el) return null; - if (el.htmlElement) return Garbage.collect(el); - /** [Alfresco] Removed */ /* if ([window, document].contains(el)) return el; */ /** [/Alfresco] */ - var type = $type(el); - if (type == 'string'){ - el = document.getElementById(el); - type = (el) ? 'element' : false; - } - if (type != 'element') return null; - if (el.htmlElement) return Garbage.collect(el); - if (['object', 'embed'].contains(el.tagName.toLowerCase())) return el; - $extend(el, Element.prototype); - el.htmlElement = function(){}; - return Garbage.collect(el); -}; - -/* -Function: $$ - Selects, and extends DOM elements. Elements arrays returned with $$ will also accept all the methods. - The return type of element methods run through $$ is always an array. If the return array is only made by elements, - $$ will be applied automatically. - -Arguments: - HTML Collections, arrays of elements, arrays of strings as element ids, elements, strings as selectors. - Any number of the above as arguments are accepted. - -Note: - if you load , $$ will also accept CSS Selectors, otherwise the only selectors supported are tag names. - -Example: - >$$('a') //an array of all anchor tags on the page - >$$('a', 'b') //an array of all anchor and bold tags on the page - >$$('#myElement') //array containing only the element with id = myElement. (only with ) - >$$('#myElement a.myClass') //an array of all anchor tags with the class "myClass" - >//within the DOM element with id "myElement" (only with ) - >$$(myelement, myelement2, 'a', ['myid', myid2, 'myid3'], document.getElementsByTagName('div')) //an array containing: - >// the element referenced as myelement if existing, - >// the element referenced as myelement2 if existing, - >// all the elements with a as tag in the page, - >// the element with id = myid if existing - >// the element with id = myid2 if existing - >// the element with id = myid3 if existing - >// all the elements with div as tag in the page - -Returns: - array - array of all the dom elements matched, extended with <$>. Returns as . -*/ - -document.getElementsBySelector = document.getElementsByTagName; - -function $$(){ - var elements = []; - for (var i = 0, j = arguments.length; i < j; i++){ - var selector = arguments[i]; - switch($type(selector)){ - case 'element': elements.push(selector); - case 'boolean': break; - case false: break; - case 'string': selector = document.getElementsBySelector(selector, true); - default: elements.extend(selector); - } - } - return $$.unique(elements); -}; - -$$.unique = function(array){ - var elements = []; - for (var i = 0, l = array.length; i < l; i++){ - if (array[i].$included) continue; - var element = $(array[i]); - if (element && !element.$included){ - element.$included = true; - elements.push(element); - } - } - for (var n = 0, d = elements.length; n < d; n++) elements[n].$included = null; - return new Elements(elements); -}; - -Elements.Multi = function(property){ - return function(){ - var args = arguments; - var items = []; - var elements = true; - for (var i = 0, j = this.length, returns; i < j; i++){ - returns = this[i][property].apply(this[i], args); - if ($type(returns) != 'element') elements = false; - items.push(returns); - }; - return (elements) ? $$.unique(items) : items; - }; -}; - -Element.extend = function(properties){ - for (var property in properties){ - HTMLElement.prototype[property] = properties[property]; - Element.prototype[property] = properties[property]; - Element[property] = $native.generic(property); - var elementsProperty = (Array.prototype[property]) ? property + 'Elements' : property; - Elements.prototype[elementsProperty] = Elements.Multi(property); - } -}; - -/* -Class: Element - Custom class to allow all of its methods to be used with any DOM element via the dollar function <$>. -*/ - -Element.extend({ - - /* - Property: set - you can set events, styles and properties with this shortcut. same as calling new Element. - */ - - set: function(props){ - for (var prop in props){ - var val = props[prop]; - switch(prop){ - case 'styles': this.setStyles(val); break; - case 'events': if (this.addEvents) this.addEvents(val); break; - case 'properties': this.setProperties(val); break; - default: this.setProperty(prop, val); - } - } - return this; - }, - - inject: function(el, where){ - el = $(el); - switch(where){ - case 'before': el.parentNode.insertBefore(this, el); break; - case 'after': - var next = el.getNext(); - if (!next) el.parentNode.appendChild(this); - else el.parentNode.insertBefore(this, next); - break; - case 'top': - var first = el.firstChild; - if (first){ - el.insertBefore(this, first); - break; - } - default: el.appendChild(this); - } - return this; - }, - - /* - Property: injectBefore - Inserts the Element before the passed element. - - Arguments: - el - an element reference or the id of the element to be injected in. - - Example: - >html: - >
- >
- >js: - >$('mySecondElement').injectBefore('myElement'); - >resulting html: - >
- >
- */ - - injectBefore: function(el){ - return this.inject(el, 'before'); - }, - - /* - Property: injectAfter - Same as , but inserts the element after. - */ - - injectAfter: function(el){ - return this.inject(el, 'after'); - }, - - /* - Property: injectInside - Same as , but inserts the element inside. - */ - - injectInside: function(el){ - return this.inject(el, 'bottom'); - }, - - /* - Property: injectTop - Same as , but inserts the element inside, at the top. - */ - - injectTop: function(el){ - return this.inject(el, 'top'); - }, - - /* - Property: adopt - Inserts the passed elements inside the Element. - - Arguments: - accepts elements references, element ids as string, selectors ($$('stuff')) / array of elements, array of ids as strings and collections. - */ - - adopt: function(){ - var elements = []; - $each(arguments, function(argument){ - elements = elements.concat(argument); - }); - $$(elements).inject(this); - return this; - }, - - /* - Property: remove - Removes the Element from the DOM. - - Example: - >$('myElement').remove() //bye bye - */ - - remove: function(){ - return this.parentNode.removeChild(this); - }, - - /* - Property: clone - Clones the Element and returns the cloned one. - - Arguments: - contents - boolean, when true the Element is cloned with childNodes, default true - - Returns: - the cloned element - - Example: - >var clone = $('myElement').clone().injectAfter('myElement'); - >//clones the Element and append the clone after the Element. - */ - - clone: function(contents){ - var el = $(this.cloneNode(contents !== false)); - if (!el.$events) return el; - el.$events = {}; - for (var type in this.$events) el.$events[type] = { - 'keys': $A(this.$events[type].keys), - 'values': $A(this.$events[type].values) - }; - return el.removeEvents(); - }, - - /* - Property: replaceWith - Replaces the Element with an element passed. - - Arguments: - el - a string representing the element to be injected in (myElementId, or div), or an element reference. - If you pass div or another tag, the element will be created. - - Returns: - the passed in element - - Example: - >$('myOldElement').replaceWith($('myNewElement')); //$('myOldElement') is gone, and $('myNewElement') is in its place. - */ - - replaceWith: function(el){ - el = $(el); - this.parentNode.replaceChild(el, this); - return el; - }, - - /* - Property: appendText - Appends text node to a DOM element. - - Arguments: - text - the text to append. - - Example: - >
hey
- >$('myElement').appendText(' howdy'); //myElement innerHTML is now "hey howdy" - */ - - appendText: function(text){ - this.appendChild(document.createTextNode(text)); - return this; - }, - - /* - Property: hasClass - Tests the Element to see if it has the passed in className. - - Returns: - true - the Element has the class - false - it doesn't - - Arguments: - className - string; the class name to test. - - Example: - >
- >$('myElement').hasClass('testClass'); //returns true - */ - - hasClass: function(className){ - return this.className.contains(className, ' '); - }, - - /* - Property: addClass - Adds the passed in class to the Element, if the element doesnt already have it. - - Arguments: - className - string; the class name to add - - Example: - >
- >$('myElement').addClass('newClass'); //
- */ - - addClass: function(className){ - if (!this.hasClass(className)) this.className = (this.className + ' ' + className).clean(); - return this; - }, - - /* - Property: removeClass - Works like , but removes the class from the element. - */ - - removeClass: function(className){ - this.className = this.className.replace(new RegExp('(^|\\s)' + className + '(?:\\s|$)'), '$1').clean(); - return this; - }, - - /* - Property: toggleClass - Adds or removes the passed in class name to the element, depending on if it's present or not. - - Arguments: - className - the class to add or remove - - Example: - >
- >$('myElement').toggleClass('myClass'); - >
- >$('myElement').toggleClass('myClass'); - >
- */ - - toggleClass: function(className){ - return this.hasClass(className) ? this.removeClass(className) : this.addClass(className); - }, - - /* - Property: setStyle - Sets a css property to the Element. - - Arguments: - property - the property to set - value - the value to which to set it; for numeric values that require "px" you can pass an integer - - Example: - >$('myElement').setStyle('width', '300px'); //the width is now 300px - >$('myElement').setStyle('width', 300); //the width is now 300px - */ - - setStyle: function(property, value){ - switch(property){ - case 'opacity': return this.setOpacity(parseFloat(value)); - case 'float': property = (window.ie) ? 'styleFloat' : 'cssFloat'; - } - property = property.camelCase(); - switch($type(value)){ - case 'number': if (!['zIndex', 'zoom'].contains(property)) value += 'px'; break; - case 'array': value = 'rgb(' + value.join(',') + ')'; - } - this.style[property] = value; - return this; - }, - - /* - Property: setStyles - Applies a collection of styles to the Element. - - Arguments: - source - an object or string containing all the styles to apply. When its a string it overrides old style. - - Examples: - >$('myElement').setStyles({ - > border: '1px solid #000', - > width: 300, - > height: 400 - >}); - - OR - - >$('myElement').setStyles('border: 1px solid #000; width: 300px; height: 400px;'); - */ - - setStyles: function(source){ - switch($type(source)){ - case 'object': Element.setMany(this, 'setStyle', source); break; - case 'string': this.style.cssText = source; - } - return this; - }, - - /* - Property: setOpacity - Sets the opacity of the Element, and sets also visibility == "hidden" if opacity == 0, and visibility = "visible" if opacity > 0. - - Arguments: - opacity - float; Accepts values from 0 to 1. - - Example: - >$('myElement').setOpacity(0.5) //make it 50% transparent - */ - - setOpacity: function(opacity){ - if (opacity == 0){ - if (this.style.visibility != "hidden") this.style.visibility = "hidden"; - } else { - if (this.style.visibility != "visible") this.style.visibility = "visible"; - } - if (!this.currentStyle || !this.currentStyle.hasLayout) this.style.zoom = 1; - if (window.ie) this.style.filter = (opacity == 1) ? '' : "alpha(opacity=" + opacity * 100 + ")"; - this.style.opacity = this.$tmp.opacity = opacity; - return this; - }, - - /* - Property: getStyle - Returns the style of the Element given the property passed in. - - Arguments: - property - the css style property you want to retrieve - - Example: - >$('myElement').getStyle('width'); //returns "400px" - >//but you can also use - >$('myElement').getStyle('width').toInt(); //returns 400 - - Returns: - the style as a string - */ - - getStyle: function(property){ - property = property.camelCase(); - var result = this.style[property]; - if (!$chk(result)){ - if (property == 'opacity') return this.$tmp.opacity; - result = []; - for (var style in Element.Styles){ - if (property == style){ - Element.Styles[style].each(function(s){ - var style = this.getStyle(s); - result.push(parseInt(style) ? style : '0px'); - }, this); - if (property == 'border'){ - var every = result.every(function(bit){ - return (bit == result[0]); - }); - return (every) ? result[0] : false; - } - return result.join(' '); - } - } - if (property.contains('border')){ - if (Element.Styles.border.contains(property)){ - return ['Width', 'Style', 'Color'].map(function(p){ - return this.getStyle(property + p); - }, this).join(' '); - } else if (Element.borderShort.contains(property)){ - return ['Top', 'Right', 'Bottom', 'Left'].map(function(p){ - return this.getStyle('border' + p + property.replace('border', '')); - }, this).join(' '); - } - } - if (document.defaultView) result = document.defaultView.getComputedStyle(this, null).getPropertyValue(property.hyphenate()); - else if (this.currentStyle) result = this.currentStyle[property]; - } - if (window.ie) result = Element.fixStyle(property, result, this); - if (result && property.test(/color/i) && result.contains('rgb')){ - return result.split('rgb').splice(1,4).map(function(color){ - return color.rgbToHex(); - }).join(' '); - } - return result; - }, - - /* - Property: getStyles - Returns an object of styles of the Element for each argument passed in. - Arguments: - properties - strings; any number of style properties - Example: - >$('myElement').getStyles('width','height','padding'); - >//returns an object like: - >{width: "10px", height: "10px", padding: "10px 0px 10px 0px"} - */ - - getStyles: function(){ - return Element.getMany(this, 'getStyle', arguments); - }, - - walk: function(brother, start){ - brother += 'Sibling'; - var el = (start) ? this[start] : this[brother]; - while (el && $type(el) != 'element') el = el[brother]; - return $(el); - }, - - /* - Property: getPrevious - Returns the previousSibling of the Element, excluding text nodes. - - Example: - >$('myElement').getPrevious(); //get the previous DOM element from myElement - - Returns: - the sibling element or undefined if none found. - */ - - getPrevious: function(){ - return this.walk('previous'); - }, - - /* - Property: getNext - Works as Element.getPrevious, but tries to find the nextSibling. - */ - - getNext: function(){ - return this.walk('next'); - }, - - /* - Property: getFirst - Works as , but tries to find the firstChild. - */ - - getFirst: function(){ - return this.walk('next', 'firstChild'); - }, - - /* - Property: getLast - Works as , but tries to find the lastChild. - */ - - getLast: function(){ - return this.walk('previous', 'lastChild'); - }, - - /* - Property: getParent - returns the $(element.parentNode) - */ - - getParent: function(){ - return $(this.parentNode); - }, - - /* - Property: getChildren - returns all the $(element.childNodes), excluding text nodes. Returns as . - */ - - getChildren: function(){ - return $$(this.childNodes); - }, - - /* - Property: hasChild - returns true if the passed in element is a child of the $(element). - */ - - hasChild: function(el){ - return !!$A(this.getElementsByTagName('*')).contains(el); - }, - - /* - Property: getProperty - Gets the an attribute of the Element. - - Arguments: - property - string; the attribute to retrieve - - Example: - >$('myImage').getProperty('src') // returns whatever.gif - - Returns: - the value, or an empty string - */ - - getProperty: function(property){ - var index = Element.Properties[property]; - if (index) return this[index]; - var flag = Element.PropertiesIFlag[property] || 0; - if (!window.ie || flag) return this.getAttribute(property, flag); - var node = this.attributes[property]; - return (node) ? node.nodeValue : null; - }, - - /* - Property: removeProperty - Removes an attribute from the Element - - Arguments: - property - string; the attribute to remove - */ - - removeProperty: function(property){ - var index = Element.Properties[property]; - if (index) this[index] = ''; - else this.removeAttribute(property); - return this; - }, - - /* - Property: getProperties - same as , but for properties - */ - - getProperties: function(){ - return Element.getMany(this, 'getProperty', arguments); - }, - - /* - Property: setProperty - Sets an attribute for the Element. - - Arguments: - property - string; the property to assign the value passed in - value - the value to assign to the property passed in - - Example: - >$('myImage').setProperty('src', 'whatever.gif'); //myImage now points to whatever.gif for its source - */ - - setProperty: function(property, value){ - var index = Element.Properties[property]; - if (index) this[index] = value; - else this.setAttribute(property, value); - return this; - }, - - /* - Property: setProperties - Sets numerous attributes for the Element. - - Arguments: - source - an object with key/value pairs. - - Example: - (start code) - $('myElement').setProperties({ - src: 'whatever.gif', - alt: 'whatever dude' - }); - whatever dude - (end) - */ - - setProperties: function(source){ - return Element.setMany(this, 'setProperty', source); - }, - - /* - Property: setHTML - Sets the innerHTML of the Element. - - Arguments: - html - string; the new innerHTML for the element. - - Example: - >$('myElement').setHTML(newHTML) //the innerHTML of myElement is now = newHTML - */ - - setHTML: function(){ - this.innerHTML = $A(arguments).join(''); - return this; - }, - - /* - Property: setText - Sets the inner text of the Element. - - Arguments: - text - string; the new text content for the element. - - Example: - >$('myElement').setText('some text') //the text of myElement is now = 'some text' - */ - - setText: function(text){ - var tag = this.getTag(); - if (['style', 'script'].contains(tag)){ - if (window.ie){ - if (tag == 'style') this.styleSheet.cssText = text; - else if (tag == 'script') this.setProperty('text', text); - return this; - } else { - this.removeChild(this.firstChild); - return this.appendText(text); - } - } - this[$defined(this.innerText) ? 'innerText' : 'textContent'] = text; - return this; - }, - - /* - Property: getText - Gets the inner text of the Element. - */ - - getText: function(){ - var tag = this.getTag(); - if (['style', 'script'].contains(tag)){ - if (window.ie){ - if (tag == 'style') return this.styleSheet.cssText; - else if (tag == 'script') return this.getProperty('text'); - } else { - return this.innerHTML; - } - } - return ($pick(this.innerText, this.textContent)); - }, - - /* - Property: getTag - Returns the tagName of the element in lower case. - - Example: - >$('myImage').getTag() // returns 'img' - - Returns: - The tag name in lower case - */ - - getTag: function(){ - return this.tagName.toLowerCase(); - }, - - /* - Property: empty - Empties an element of all its children. - - Example: - >$('myDiv').empty() // empties the Div and returns it - - Returns: - The element. - */ - - empty: function(){ - Garbage.trash(this.getElementsByTagName('*')); - return this.setHTML(''); - } - -}); - -Element.fixStyle = function(property, result, element){ - if ($chk(parseInt(result))) return result; - if (['height', 'width'].contains(property)){ - var values = (property == 'width') ? ['left', 'right'] : ['top', 'bottom']; - var size = 0; - values.each(function(value){ - size += element.getStyle('border-' + value + '-width').toInt() + element.getStyle('padding-' + value).toInt(); - }); - return element['offset' + property.capitalize()] - size + 'px'; - } else if (property.test(/border(.+)Width|margin|padding/)){ - return '0px'; - } - return result; -}; - -Element.Styles = {'border': [], 'padding': [], 'margin': []}; -['Top', 'Right', 'Bottom', 'Left'].each(function(direction){ - for (var style in Element.Styles) Element.Styles[style].push(style + direction); -}); - -Element.borderShort = ['borderWidth', 'borderStyle', 'borderColor']; - -Element.getMany = function(el, method, keys){ - var result = {}; - $each(keys, function(key){ - result[key] = el[method](key); - }); - return result; -}; - -Element.setMany = function(el, method, pairs){ - for (var key in pairs) el[method](key, pairs[key]); - return el; -}; - -Element.Properties = new Abstract({ - 'class': 'className', 'for': 'htmlFor', 'colspan': 'colSpan', 'rowspan': 'rowSpan', - 'accesskey': 'accessKey', 'tabindex': 'tabIndex', 'maxlength': 'maxLength', - 'readonly': 'readOnly', 'frameborder': 'frameBorder', 'value': 'value', - 'disabled': 'disabled', 'checked': 'checked', 'multiple': 'multiple', 'selected': 'selected' -}); -Element.PropertiesIFlag = { - 'href': 2, 'src': 2 -}; - -Element.Methods = { - Listeners: { - addListener: function(type, fn){ - if (this.addEventListener) this.addEventListener(type, fn, false); - else this.attachEvent('on' + type, fn); - return this; - }, - - removeListener: function(type, fn){ - if (this.removeEventListener) this.removeEventListener(type, fn, false); - else this.detachEvent('on' + type, fn); - return this; - } - } -}; - -window.extend(Element.Methods.Listeners); -document.extend(Element.Methods.Listeners); -Element.extend(Element.Methods.Listeners); - -var Garbage = { - - elements: [], - - collect: function(el){ - if (!el.$tmp){ - Garbage.elements.push(el); - el.$tmp = {'opacity': 1}; - } - return el; - }, - - trash: function(elements){ - for (var i = 0, j = elements.length, el; i < j; i++){ - if (!(el = elements[i]) || !el.$tmp) continue; - if (el.$events) el.fireEvent('trash').removeEvents(); - for (var p in el.$tmp) el.$tmp[p] = null; - for (var d in Element.prototype) el[d] = null; - Garbage.elements[Garbage.elements.indexOf(el)] = null; - el.htmlElement = el.$tmp = el = null; - } - Garbage.elements.remove(null); - }, - - empty: function(){ - Garbage.collect(window); - Garbage.collect(document); - Garbage.trash(Garbage.elements); - } - -}; - -window.addListener('beforeunload', function(){ - window.addListener('unload', Garbage.empty); - if (window.ie) window.addListener('unload', CollectGarbage); -}); - -/* -Script: Element.Event.js - Contains the Event Class, Element methods to deal with Element events, custom Events, and the Function prototype bindWithEvent. - -License: - MIT-style license. -*/ - -/* -Class: Event - Cross browser methods to manage events. - -Arguments: - event - the event - -Properties: - shift - true if the user pressed the shift - control - true if the user pressed the control - alt - true if the user pressed the alt - meta - true if the user pressed the meta key - wheel - the amount of third button scrolling - code - the keycode of the key pressed - page.x - the x position of the mouse, relative to the full window - page.y - the y position of the mouse, relative to the full window - client.x - the x position of the mouse, relative to the viewport - client.y - the y position of the mouse, relative to the viewport - key - the key pressed as a lowercase string. key also returns 'enter', 'up', 'down', 'left', 'right', 'space', 'backspace', 'delete', 'esc'. Handy for these special keys. - target - the event target - relatedTarget - the event related target - -Example: - (start code) - $('myLink').onkeydown = function(event){ - var event = new Event(event); - //event is now the Event class. - alert(event.key); //returns the lowercase letter pressed - alert(event.shift); //returns true if the key pressed is shift - if (event.key == 's' && event.control) alert('document saved'); - }; - (end) -*/ - -var Event = new Class({ - - initialize: function(event){ - if (event && event.$extended) return event; - this.$extended = true; - event = event || window.event; - this.event = event; - this.type = event.type; - this.target = event.target || event.srcElement; - if (this.target.nodeType == 3) this.target = this.target.parentNode; - this.shift = event.shiftKey; - this.control = event.ctrlKey; - this.alt = event.altKey; - this.meta = event.metaKey; - if (['DOMMouseScroll', 'mousewheel'].contains(this.type)){ - this.wheel = (event.wheelDelta) ? event.wheelDelta / 120 : -(event.detail || 0) / 3; - } else if (this.type.contains('key')){ - this.code = event.which || event.keyCode; - for (var name in Event.keys){ - if (Event.keys[name] == this.code){ - this.key = name; - break; - } - } - if (this.type == 'keydown'){ - var fKey = this.code - 111; - if (fKey > 0 && fKey < 13) this.key = 'f' + fKey; - } - this.key = this.key || String.fromCharCode(this.code).toLowerCase(); - } else if (this.type.test(/(click|mouse|menu)/)){ - this.page = { - 'x': event.pageX || event.clientX + document.documentElement.scrollLeft, - 'y': event.pageY || event.clientY + document.documentElement.scrollTop - }; - this.client = { - 'x': event.pageX ? event.pageX - window.pageXOffset : event.clientX, - 'y': event.pageY ? event.pageY - window.pageYOffset : event.clientY - }; - this.rightClick = (event.which == 3) || (event.button == 2); - switch(this.type){ - case 'mouseover': this.relatedTarget = event.relatedTarget || event.fromElement; break; - case 'mouseout': this.relatedTarget = event.relatedTarget || event.toElement; - } - this.fixRelatedTarget(); - } - return this; - }, - - /* - Property: stop - cross browser method to stop an event - */ - - stop: function(){ - return this.stopPropagation().preventDefault(); - }, - - /* - Property: stopPropagation - cross browser method to stop the propagation of an event - */ - - stopPropagation: function(){ - if (this.event.stopPropagation) this.event.stopPropagation(); - else this.event.cancelBubble = true; - return this; - }, - - /* - Property: preventDefault - cross browser method to prevent the default action of the event - */ - - preventDefault: function(){ - if (this.event.preventDefault) this.event.preventDefault(); - else this.event.returnValue = false; - return this; - } - -}); - -Event.fix = { - - relatedTarget: function(){ - if (this.relatedTarget && this.relatedTarget.nodeType == 3) this.relatedTarget = this.relatedTarget.parentNode; - }, - - relatedTargetGecko: function(){ - try {Event.fix.relatedTarget.call(this);} catch(e){this.relatedTarget = this.target;} - } - -}; - -Event.prototype.fixRelatedTarget = (window.gecko) ? Event.fix.relatedTargetGecko : Event.fix.relatedTarget; - -/* -Property: keys - you can add additional Event keys codes this way: - -Example: - (start code) - Event.keys.whatever = 80; - $(myelement).addEvent(keydown, function(event){ - event = new Event(event); - if (event.key == 'whatever') console.log(whatever key clicked). - }); - (end) -*/ - -Event.keys = new Abstract({ - 'enter': 13, - 'up': 38, - 'down': 40, - 'left': 37, - 'right': 39, - 'esc': 27, - 'space': 32, - 'backspace': 8, - 'tab': 9, - 'delete': 46 -}); - -/* -Class: Element - Custom class to allow all of its methods to be used with any DOM element via the dollar function <$>. -*/ - -Element.Methods.Events = { - - /* - Property: addEvent - Attaches an event listener to a DOM element. - - Arguments: - type - the event to monitor ('click', 'load', etc) without the prefix 'on'. - fn - the function to execute - - Example: - >$('myElement').addEvent('click', function(){alert('clicked!')}); - */ - - addEvent: function(type, fn){ - this.$events = this.$events || {}; - this.$events[type] = this.$events[type] || {'keys': [], 'values': []}; - if (this.$events[type].keys.contains(fn)) return this; - this.$events[type].keys.push(fn); - var realType = type; - var custom = Element.Events[type]; - if (custom){ - if (custom.add) custom.add.call(this, fn); - if (custom.map) fn = custom.map; - if (custom.type) realType = custom.type; - } - if (!this.addEventListener) fn = fn.create({'bind': this, 'event': true}); - this.$events[type].values.push(fn); - return (Element.NativeEvents.contains(realType)) ? this.addListener(realType, fn) : this; - }, - - /* - Property: removeEvent - Works as Element.addEvent, but instead removes the previously added event listener. - */ - - removeEvent: function(type, fn){ - if (!this.$events || !this.$events[type]) return this; - var pos = this.$events[type].keys.indexOf(fn); - if (pos == -1) return this; - var key = this.$events[type].keys.splice(pos,1)[0]; - var value = this.$events[type].values.splice(pos,1)[0]; - var custom = Element.Events[type]; - if (custom){ - if (custom.remove) custom.remove.call(this, fn); - if (custom.type) type = custom.type; - } - return (Element.NativeEvents.contains(type)) ? this.removeListener(type, value) : this; - }, - - /* - Property: addEvents - As , but accepts an object and add multiple events at once. - */ - - addEvents: function(source){ - return Element.setMany(this, 'addEvent', source); - }, - - /* - Property: removeEvents - removes all events of a certain type from an element. if no argument is passed in, removes all events. - - Arguments: - type - string; the event name (e.g. 'click') - */ - - removeEvents: function(type){ - if (!this.$events) return this; - if (!type){ - for (var evType in this.$events) this.removeEvents(evType); - this.$events = null; - } else if (this.$events[type]){ - this.$events[type].keys.each(function(fn){ - this.removeEvent(type, fn); - }, this); - this.$events[type] = null; - } - return this; - }, - - /* - Property: fireEvent - executes all events of the specified type present in the element. - - Arguments: - type - string; the event name (e.g. 'click') - args - array or single object; arguments to pass to the function; if more than one argument, must be an array - delay - (integer) delay (in ms) to wait to execute the event - */ - - fireEvent: function(type, args, delay){ - if (this.$events && this.$events[type]){ - this.$events[type].keys.each(function(fn){ - fn.create({'bind': this, 'delay': delay, 'arguments': args})(); - }, this); - } - return this; - }, - - /* - Property: cloneEvents - Clones all events from an element to this element. - - Arguments: - from - element, copy all events from this element - type - optional, copies only events of this type - */ - - cloneEvents: function(from, type){ - if (!from.$events) return this; - if (!type){ - for (var evType in from.$events) this.cloneEvents(from, evType); - } else if (from.$events[type]){ - from.$events[type].keys.each(function(fn){ - this.addEvent(type, fn); - }, this); - } - return this; - } - -}; - -window.extend(Element.Methods.Events); -document.extend(Element.Methods.Events); -Element.extend(Element.Methods.Events); - -/* Section: Custom Events */ - -Element.Events = new Abstract({ - - /* - Event: mouseenter - In addition to the standard javascript events (load, mouseover, mouseout, click, etc.) contains two custom events - this event fires when the mouse enters the area of the dom element; will not be fired again if the mouse crosses over children of the element (unlike mouseover) - - - Example: - >$(myElement).addEvent('mouseenter', myFunction); - */ - - 'mouseenter': { - type: 'mouseover', - map: function(event){ - event = new Event(event); - if (event.relatedTarget != this && !this.hasChild(event.relatedTarget)) this.fireEvent('mouseenter', event); - } - }, - - /* - Event: mouseleave - this event fires when the mouse exits the area of the dom element; will not be fired again if the mouse crosses over children of the element (unlike mouseout) - - - Example: - >$(myElement).addEvent('mouseleave', myFunction); - */ - - 'mouseleave': { - type: 'mouseout', - map: function(event){ - event = new Event(event); - if (event.relatedTarget != this && !this.hasChild(event.relatedTarget)) this.fireEvent('mouseleave', event); - } - }, - - 'mousewheel': { - type: (window.gecko) ? 'DOMMouseScroll' : 'mousewheel' - } - -}); - -Element.NativeEvents = [ - 'click', 'dblclick', 'mouseup', 'mousedown', //mouse buttons - 'mousewheel', 'DOMMouseScroll', //mouse wheel - 'mouseover', 'mouseout', 'mousemove', //mouse movement - 'keydown', 'keypress', 'keyup', //keys - 'load', 'unload', 'beforeunload', 'resize', 'move', //window - 'focus', 'blur', 'change', 'submit', 'reset', 'select', //forms elements - 'error', 'abort', 'contextmenu', 'scroll' //misc -]; - -/* -Class: Function - A collection of The Function Object prototype methods. -*/ - -Function.extend({ - - /* - Property: bindWithEvent - automatically passes MooTools Event Class. - - Arguments: - bind - optional, the object that the "this" of the function will refer to. - args - optional, an argument to pass to the function; if more than one argument, it must be an array of arguments. - - Returns: - a function with the parameter bind as its "this" and as a pre-passed argument event or window.event, depending on the browser. - - Example: - >function myFunction(event){ - > alert(event.client.x) //returns the coordinates of the mouse.. - >}; - >myElement.addEvent('click', myFunction.bindWithEvent(myElement)); - */ - - bindWithEvent: function(bind, args){ - return this.create({'bind': bind, 'arguments': args, 'event': Event}); - } - -}); - - -/* -Script: Element.Filters.js - add Filters capability to . - -License: - MIT-style license. -*/ - -/* -Class: Elements - A collection of methods to be used with <$$> elements collections. -*/ - -Elements.extend({ - - /* - Property: filterByTag - Filters the collection by a specified tag name. - Returns a new Elements collection, while the original remains untouched. - */ - - filterByTag: function(tag){ - return new Elements(this.filter(function(el){ - return (Element.getTag(el) == tag); - })); - }, - - /* - Property: filterByClass - Filters the collection by a specified class name. - Returns a new Elements collection, while the original remains untouched. - */ - - filterByClass: function(className, nocash){ - var elements = this.filter(function(el){ - return (el.className && el.className.contains(className, ' ')); - }); - return (nocash) ? elements : new Elements(elements); - }, - - /* - Property: filterById - Filters the collection by a specified ID. - Returns a new Elements collection, while the original remains untouched. - */ - - filterById: function(id, nocash){ - var elements = this.filter(function(el){ - return (el.id == id); - }); - return (nocash) ? elements : new Elements(elements); - }, - - /* - Property: filterByAttribute - Filters the collection by a specified attribute. - Returns a new Elements collection, while the original remains untouched. - - Arguments: - name - the attribute name. - operator - optional, the attribute operator. - value - optional, the attribute value, only valid if the operator is specified. - */ - - filterByAttribute: function(name, operator, value, nocash){ - var elements = this.filter(function(el){ - var current = Element.getProperty(el, name); - if (!current) return false; - if (!operator) return true; - switch(operator){ - case '=': return (current == value); - case '*=': return (current.contains(value)); - case '^=': return (current.substr(0, value.length) == value); - case '$=': return (current.substr(current.length - value.length) == value); - case '!=': return (current != value); - case '~=': return current.contains(value, ' '); - } - return false; - }); - return (nocash) ? elements : new Elements(elements); - } - -}); - -/* -Script: Element.Selectors.js - Css Query related functions and extensions - -License: - MIT-style license. -*/ - -/* Section: Utility Functions */ - -/* -Function: $E - Selects a single (i.e. the first found) Element based on the selector passed in and an optional filter element. - Returns as . - -Arguments: - selector - string; the css selector to match - filter - optional; a DOM element to limit the scope of the selector match; defaults to document. - -Example: - >$E('a', 'myElement') //find the first anchor tag inside the DOM element with id 'myElement' - -Returns: - a DOM element - the first element that matches the selector -*/ - -function $E(selector, filter){ - return ($(filter) || document).getElement(selector); -}; - -/* -Function: $ES - Returns a collection of Elements that match the selector passed in limited to the scope of the optional filter. - See Also: for an alternate syntax. - Returns as . - -Returns: - an array of dom elements that match the selector within the filter - -Arguments: - selector - string; css selector to match - filter - optional; a DOM element to limit the scope of the selector match; defaults to document. - -Examples: - >$ES("a") //gets all the anchor tags; synonymous with $$("a") - >$ES('a','myElement') //get all the anchor tags within $('myElement') -*/ - -function $ES(selector, filter){ - return ($(filter) || document).getElementsBySelector(selector); -}; - -$$.shared = { - - 'regexp': /^(\w*|\*)(?:#([\w-]+)|\.([\w-]+))?(?:\[(\w+)(?:([!*^$]?=)["']?([^"'\]]*)["']?)?])?$/, - - 'xpath': { - - getParam: function(items, context, param, i){ - var temp = [context.namespaceURI ? 'xhtml:' : '', param[1]]; - if (param[2]) temp.push('[@id="', param[2], '"]'); - if (param[3]) temp.push('[contains(concat(" ", @class, " "), " ', param[3], ' ")]'); - if (param[4]){ - if (param[5] && param[6]){ - switch(param[5]){ - case '*=': temp.push('[contains(@', param[4], ', "', param[6], '")]'); break; - case '^=': temp.push('[starts-with(@', param[4], ', "', param[6], '")]'); break; - case '$=': temp.push('[substring(@', param[4], ', string-length(@', param[4], ') - ', param[6].length, ' + 1) = "', param[6], '"]'); break; - case '=': temp.push('[@', param[4], '="', param[6], '"]'); break; - case '!=': temp.push('[@', param[4], '!="', param[6], '"]'); - } - } else { - temp.push('[@', param[4], ']'); - } - } - items.push(temp.join('')); - return items; - }, - - getItems: function(items, context, nocash){ - var elements = []; - var xpath = document.evaluate('.//' + items.join('//'), context, $$.shared.resolver, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null); - for (var i = 0, j = xpath.snapshotLength; i < j; i++) elements.push(xpath.snapshotItem(i)); - return (nocash) ? elements : new Elements(elements.map($)); - } - - }, - - 'normal': { - - getParam: function(items, context, param, i){ - if (i == 0){ - if (param[2]){ - var el = context.getElementById(param[2]); - if (!el || ((param[1] != '*') && (Element.getTag(el) != param[1]))) return false; - items = [el]; - } else { - items = $A(context.getElementsByTagName(param[1])); - } - } else { - items = $$.shared.getElementsByTagName(items, param[1]); - if (param[2]) items = Elements.filterById(items, param[2], true); - } - if (param[3]) items = Elements.filterByClass(items, param[3], true); - if (param[4]) items = Elements.filterByAttribute(items, param[4], param[5], param[6], true); - return items; - }, - - getItems: function(items, context, nocash){ - return (nocash) ? items : $$.unique(items); - } - - }, - - resolver: function(prefix){ - return (prefix == 'xhtml') ? 'http://www.w3.org/1999/xhtml' : false; - }, - - getElementsByTagName: function(context, tagName){ - var found = []; - for (var i = 0, j = context.length; i < j; i++) found.extend(context[i].getElementsByTagName(tagName)); - return found; - } - -}; - -$$.shared.method = (window.xpath) ? 'xpath' : 'normal'; - -/* -Class: Element - Custom class to allow all of its methods to be used with any DOM element via the dollar function <$>. -*/ - -Element.Methods.Dom = { - - /* - Property: getElements - Gets all the elements within an element that match the given (single) selector. - Returns as . - - Arguments: - selector - string; the css selector to match - - Examples: - >$('myElement').getElements('a'); // get all anchors within myElement - >$('myElement').getElements('input[name=dialog]') //get all input tags with name 'dialog' - >$('myElement').getElements('input[name$=log]') //get all input tags with names ending with 'log' - - Notes: - Supports these operators in attribute selectors: - - - = : is equal to - - ^= : starts-with - - $= : ends-with - - != : is not equal to - - Xpath is used automatically for compliant browsers. - */ - - getElements: function(selector, nocash){ - var items = []; - selector = selector.trim().split(' '); - for (var i = 0, j = selector.length; i < j; i++){ - var sel = selector[i]; - var param = sel.match($$.shared.regexp); - if (!param) break; - param[1] = param[1] || '*'; - var temp = $$.shared[$$.shared.method].getParam(items, this, param, i); - if (!temp) break; - items = temp; - } - return $$.shared[$$.shared.method].getItems(items, this, nocash); - }, - - /* - Property: getElement - Same as , but returns only the first. Alternate syntax for <$E>, where filter is the Element. - Returns as . - - Arguments: - selector - string; css selector - */ - - getElement: function(selector){ - return $(this.getElements(selector, true)[0] || false); - }, - - /* - Property: getElementsBySelector - Same as , but allows for comma separated selectors, as in css. Alternate syntax for <$$>, where filter is the Element. - Returns as . - - Arguments: - selector - string; css selector - */ - - getElementsBySelector: function(selector, nocash){ - var elements = []; - selector = selector.split(','); - for (var i = 0, j = selector.length; i < j; i++) elements = elements.concat(this.getElements(selector[i], true)); - return (nocash) ? elements : $$.unique(elements); - } - -}; - -Element.extend({ - - /* - Property: getElementById - Targets an element with the specified id found inside the Element. Does not overwrite document.getElementById. - - Arguments: - id - string; the id of the element to find. - */ - - getElementById: function(id){ - var el = document.getElementById(id); - if (!el) return false; - for (var parent = el.parentNode; parent != this; parent = parent.parentNode){ - if (!parent) return false; - } - return el; - }/*compatibility*/, - - getElementsByClassName: function(className){ - return this.getElements('.' + className); - } - - /*end compatibility*/ - -}); - -document.extend(Element.Methods.Dom); -Element.extend(Element.Methods.Dom); - -/* -Script: Element.Form.js - Contains Element prototypes to deal with Forms and their elements. - -License: - MIT-style license. -*/ - -/* -Class: Element - Custom class to allow all of its methods to be used with any DOM element via the dollar function <$>. -*/ - -Element.extend({ - - /* - Property: getValue - Returns the value of the Element, if its tag is textarea, select or input. getValue called on a multiple select will return an array. - */ - - getValue: function(){ - switch(this.getTag()){ - case 'select': - var values = []; - $each(this.options, function(option){ - if (option.selected) values.push($pick(option.value, option.text)); - }); - return (this.multiple) ? values : values[0]; - case 'input': if (!(this.checked && ['checkbox', 'radio'].contains(this.type)) && !['hidden', 'text', 'password'].contains(this.type)) break; - case 'textarea': return this.value; - } - return false; - }, - - getFormElements: function(){ - return $$(this.getElementsByTagName('input'), this.getElementsByTagName('select'), this.getElementsByTagName('textarea')); - }, - - /* - Property: toQueryString - Reads the children inputs of the Element and generates a query string, based on their values. Used internally in - - Example: - (start code) -
- - -
- - - (end) - - Returns: - email=bob@bob.com&zipCode=90210 - */ - - toQueryString: function(){ - var queryString = []; - this.getFormElements().each(function(el){ - var name = el.name; - var value = el.getValue(); - if (value === false || !name || el.disabled) return; - var qs = function(val){ - queryString.push(name + '=' + encodeURIComponent(val)); - }; - if ($type(value) == 'array') value.each(qs); - else qs(value); - }); - return queryString.join('&'); - } - -}); - -/* -Script: Element.Dimensions.js - Contains Element prototypes to deal with Element size and position in space. - -Note: - The functions in this script require n XHTML doctype. - -License: - MIT-style license. -*/ - -/* -Class: Element - Custom class to allow all of its methods to be used with any DOM element via the dollar function <$>. -*/ - -Element.extend({ - - /* - Property: scrollTo - Scrolls the element to the specified coordinated (if the element has an overflow) - - Arguments: - x - the x coordinate - y - the y coordinate - - Example: - >$('myElement').scrollTo(0, 100) - */ - - scrollTo: function(x, y){ - this.scrollLeft = x; - this.scrollTop = y; - }, - - /* - Property: getSize - Return an Object representing the size/scroll values of the element. - - Example: - (start code) - $('myElement').getSize(); - (end) - - Returns: - (start code) - { - 'scroll': {'x': 100, 'y': 100}, - 'size': {'x': 200, 'y': 400}, - 'scrollSize': {'x': 300, 'y': 500} - } - (end) - */ - - getSize: function(){ - return { - 'scroll': {'x': this.scrollLeft, 'y': this.scrollTop}, - 'size': {'x': this.offsetWidth, 'y': this.offsetHeight}, - 'scrollSize': {'x': this.scrollWidth, 'y': this.scrollHeight} - }; - }, - - /* - Property: getPosition - Returns the real offsets of the element. - - Arguments: - overflown - optional, an array of nested scrolling containers for scroll offset calculation, use this if your element is inside any element containing scrollbars - - Example: - >$('element').getPosition(); - - Returns: - >{x: 100, y:500}; - */ - - getPosition: function(overflown){ - overflown = overflown || []; - var el = this, left = 0, top = 0; - do { - left += el.offsetLeft || 0; - top += el.offsetTop || 0; - el = el.offsetParent; - } while (el); - overflown.each(function(element){ - left -= element.scrollLeft || 0; - top -= element.scrollTop || 0; - }); - return {'x': left, 'y': top}; - }, - - /* - Property: getTop - Returns the distance from the top of the window to the Element. - - Arguments: - overflown - optional, an array of nested scrolling containers, see Element::getPosition - */ - - getTop: function(overflown){ - return this.getPosition(overflown).y; - }, - - /* - Property: getLeft - Returns the distance from the left of the window to the Element. - - Arguments: - overflown - optional, an array of nested scrolling containers, see Element::getPosition - */ - - getLeft: function(overflown){ - return this.getPosition(overflown).x; - }, - - /* - Property: getCoordinates - Returns an object with width, height, left, right, top, and bottom, representing the values of the Element - - Arguments: - overflown - optional, an array of nested scrolling containers, see Element::getPosition - - Example: - (start code) - var myValues = $('myElement').getCoordinates(); - (end) - - Returns: - (start code) - { - width: 200, - height: 300, - left: 100, - top: 50, - right: 300, - bottom: 350 - } - (end) - */ - - getCoordinates: function(overflown){ - var position = this.getPosition(overflown); - var obj = { - 'width': this.offsetWidth, - 'height': this.offsetHeight, - 'left': position.x, - 'top': position.y - }; - obj.right = obj.left + obj.width; - obj.bottom = obj.top + obj.height; - return obj; - } - -}); - -/* -Script: Window.DomReady.js - Contains the custom event domready, for window. - -License: - MIT-style license. -*/ - -/* Section: Custom Events */ - -/* -Event: domready - executes a function when the dom tree is loaded, without waiting for images. Only works when called from window. - -Credits: - (c) Dean Edwards/Matthias Miller/John Resig, remastered for MooTools. - -Arguments: - fn - the function to execute when the DOM is ready - -Example: - > window.addEvent('domready', function(){ - > alert('the dom is ready'); - > }); -*/ - -Element.Events.domready = { - - add: function(fn){ - if (window.loaded){ - fn.call(this); - return; - } - var domReady = function(){ - if (window.loaded) return; - window.loaded = true; - window.timer = $clear(window.timer); - this.fireEvent('domready'); - }.bind(this); - if (document.readyState && window.webkit){ - window.timer = function(){ - if (['loaded','complete'].contains(document.readyState)) domReady(); - }.periodical(50); - } else if (document.readyState && window.ie){ - /** [Alfresco] Replaced; taken from mootools 1.2 */ - var readyStateDone = false, - init = function() { - // only fire once - if (!readyStateDone) { - readyStateDone = true; - domReady(); - } - }; - // polling for no errors - (function() { - try { - // throws errors until after ondocumentready - document.documentElement.doScroll('left'); - } catch (e) { - setTimeout(arguments.callee, 20); - return; - } - // no errors, ok to init - init(); - })(); - // trying to always fire before onload - document.onreadystatechange = function() { - if (document.readyState == 'complete') { - document.onreadystatechange = null; - init(); - } - }; - /** [/Alfresco] */ - } else { - window.addListener("load", domReady); - document.addListener("DOMContentLoaded", domReady); - } - } - -}; - -/*compatibility*/ - -window.onDomReady = function(fn){ - return this.addEvent('domready', fn); -}; - -/*end compatibility*/ - -/* -Script: Window.Size.js - Window cross-browser dimensions methods. - -Note: - The Functions in this script require an XHTML doctype. - -License: - MIT-style license. -*/ - -/* -Class: window - Cross browser methods to get various window dimensions. - Warning: All these methods require that the browser operates in strict mode, not quirks mode. -*/ - -window.extend({ - - /* - Property: getWidth - Returns an integer representing the width of the browser window (without the scrollbar). - */ - - getWidth: function(){ - if (this.webkit419) return this.innerWidth; - if (this.opera) return document.body.clientWidth; - return document.documentElement.clientWidth; - }, - - /* - Property: getHeight - Returns an integer representing the height of the browser window (without the scrollbar). - */ - - getHeight: function(){ - if (this.webkit419) return this.innerHeight; - if (this.opera) return document.body.clientHeight; - return document.documentElement.clientHeight; - }, - - /* - Property: getScrollWidth - Returns an integer representing the scrollWidth of the window. - This value is equal to or bigger than . - - See Also: - - */ - - getScrollWidth: function(){ - if (this.ie) return Math.max(document.documentElement.offsetWidth, document.documentElement.scrollWidth); - if (this.webkit) return document.body.scrollWidth; - return document.documentElement.scrollWidth; - }, - - /* - Property: getScrollHeight - Returns an integer representing the scrollHeight of the window. - This value is equal to or bigger than . - - See Also: - - */ - - getScrollHeight: function(){ - if (this.ie) return Math.max(document.documentElement.offsetHeight, document.documentElement.scrollHeight); - if (this.webkit) return document.body.scrollHeight; - return document.documentElement.scrollHeight; - }, - - /* - Property: getScrollLeft - Returns an integer representing the scrollLeft of the window (the number of pixels the window has scrolled from the left). - - See Also: - - */ - - getScrollLeft: function(){ - return this.pageXOffset || document.documentElement.scrollLeft; - }, - - /* - Property: getScrollTop - Returns an integer representing the scrollTop of the window (the number of pixels the window has scrolled from the top). - - See Also: - - */ - - getScrollTop: function(){ - return this.pageYOffset || document.documentElement.scrollTop; - }, - - /* - Property: getSize - Same as - */ - - getSize: function(){ - return { - 'size': {'x': this.getWidth(), 'y': this.getHeight()}, - 'scrollSize': {'x': this.getScrollWidth(), 'y': this.getScrollHeight()}, - 'scroll': {'x': this.getScrollLeft(), 'y': this.getScrollTop()} - }; - }, - - //ignore - getPosition: function(){return {'x': 0, 'y': 0};} - -}); - -/* -Script: Fx.Base.js - Contains , the foundamentals of the MooTools Effects. - -License: - MIT-style license. -*/ - -var Fx = {}; - -/* -Class: Fx.Base - Base class for the Effects. - -Options: - transition - the equation to use for the effect see ; default is - duration - the duration of the effect in ms; 500 is the default. - unit - the unit is 'px' by default (other values include things like 'em' for fonts or '%'). - wait - boolean: to wait or not to wait for a current transition to end before running another of the same instance. defaults to true. - fps - the frames per second for the transition; default is 50 - -Events: - onStart - the function to execute as the effect begins; nothing () by default. - onComplete - the function to execute after the effect has processed; nothing () by default. - onCancel - the function to execute when you manually stop the effect. -*/ - -Fx.Base = new Class({ - - options: { - onStart: Class.empty, - onComplete: Class.empty, - onCancel: Class.empty, - transition: function(p){ - return -(Math.cos(Math.PI * p) - 1) / 2; - }, - duration: 500, - unit: 'px', - wait: true, - fps: 50 - }, - - initialize: function(options){ - this.element = this.element || null; - this.setOptions(options); - if (this.options.initialize) this.options.initialize.call(this); - }, - - step: function(){ - var time = $time(); - if (time < this.time + this.options.duration){ - this.delta = this.options.transition((time - this.time) / this.options.duration); - this.setNow(); - this.increase(); - } else { - this.stop(true); - this.set(this.to); - this.fireEvent('onComplete', this.element, 10); - this.callChain(); - } - }, - - /* - Property: set - Immediately sets the value with no transition. - - Arguments: - to - the point to jump to - - Example: - >var myFx = new Fx.Style('myElement', 'opacity').set(0); //will make it immediately transparent - */ - - set: function(to){ - this.now = to; - this.increase(); - return this; - }, - - setNow: function(){ - this.now = this.compute(this.from, this.to); - }, - - compute: function(from, to){ - return (to - from) * this.delta + from; - }, - - /* - Property: start - Executes an effect from one position to the other. - - Arguments: - from - integer: staring value - to - integer: the ending value - - Examples: - >var myFx = new Fx.Style('myElement', 'opacity').start(0,1); //display a transition from transparent to opaque. - */ - - start: function(from, to){ - if (!this.options.wait) this.stop(); - else if (this.timer) return this; - this.from = from; - this.to = to; - this.change = this.to - this.from; - this.time = $time(); - this.timer = this.step.periodical(Math.round(1000 / this.options.fps), this); - this.fireEvent('onStart', this.element); - return this; - }, - - /* - Property: stop - Stops the transition. - */ - - stop: function(end){ - if (!this.timer) return this; - this.timer = $clear(this.timer); - if (!end) this.fireEvent('onCancel', this.element); - return this; - }/*compatibility*/, - - custom: function(from, to){ - return this.start(from, to); - }, - - clearTimer: function(end){ - return this.stop(end); - } - - /*end compatibility*/ - -}); - -Fx.Base.implement(new Chain, new Events, new Options); - -/* -Script: Fx.CSS.js - Css parsing class for effects. Required by , , . No documentation needed, as its used internally. - -License: - MIT-style license. -*/ - -Fx.CSS = { - - select: function(property, to){ - if (property.test(/color/i)) return this.Color; - var type = $type(to); - if ((type == 'array') || (type == 'string' && to.contains(' '))) return this.Multi; - return this.Single; - }, - - parse: function(el, property, fromTo){ - if (!fromTo.push) fromTo = [fromTo]; - var from = fromTo[0], to = fromTo[1]; - if (!$chk(to)){ - to = from; - from = el.getStyle(property); - } - var css = this.select(property, to); - return {'from': css.parse(from), 'to': css.parse(to), 'css': css}; - } - -}; - -Fx.CSS.Single = { - - parse: function(value){ - return parseFloat(value); - }, - - getNow: function(from, to, fx){ - return fx.compute(from, to); - }, - - getValue: function(value, unit, property){ - if (unit == 'px' && property != 'opacity') value = Math.round(value); - return value + unit; - } - -}; - -Fx.CSS.Multi = { - - parse: function(value){ - return value.push ? value : value.split(' ').map(function(v){ - return parseFloat(v); - }); - }, - - getNow: function(from, to, fx){ - var now = []; - for (var i = 0; i < from.length; i++) now[i] = fx.compute(from[i], to[i]); - return now; - }, - - getValue: function(value, unit, property){ - if (unit == 'px' && property != 'opacity') value = value.map(Math.round); - return value.join(unit + ' ') + unit; - } - -}; - -Fx.CSS.Color = { - - parse: function(value){ - return value.push ? value : value.hexToRgb(true); - }, - - getNow: function(from, to, fx){ - var now = []; - for (var i = 0; i < from.length; i++) now[i] = Math.round(fx.compute(from[i], to[i])); - return now; - }, - - getValue: function(value){ - return 'rgb(' + value.join(',') + ')'; - } - -}; - -/* -Script: Fx.Style.js - Contains - -License: - MIT-style license. -*/ - -/* -Class: Fx.Style - The Style effect, used to transition any css property from one value to another. Includes colors. - Colors must be in hex format. - Inherits methods, properties, options and events from . - -Arguments: - el - the $(element) to apply the style transition to - property - the property to transition - options - the Fx.Base options (see: ) - -Example: - >var marginChange = new Fx.Style('myElement', 'margin-top', {duration:500}); - >marginChange.start(10, 100); -*/ - -Fx.Style = Fx.Base.extend({ - - initialize: function(el, property, options){ - this.element = $(el); - this.property = property; - this.parent(options); - }, - - /* - Property: hide - Same as (0); hides the element immediately without transition. - */ - - hide: function(){ - return this.set(0); - }, - - setNow: function(){ - this.now = this.css.getNow(this.from, this.to, this); - }, - - /* - Property: set - Sets the element's css property (specified at instantiation) to the specified value immediately. - - Example: - (start code) - var marginChange = new Fx.Style('myElement', 'margin-top', {duration:500}); - marginChange.set(10); //margin-top is set to 10px immediately - (end) - */ - - set: function(to){ - this.css = Fx.CSS.select(this.property, to); - return this.parent(this.css.parse(to)); - }, - - /* - Property: start - Displays the transition to the value/values passed in - - Arguments: - from - (integer; optional) the starting position for the transition - to - (integer) the ending position for the transition - - Note: - If you provide only one argument, the transition will use the current css value for its starting value. - - Example: - (start code) - var marginChange = new Fx.Style('myElement', 'margin-top', {duration:500}); - marginChange.start(10); //tries to read current margin top value and goes from current to 10 - (end) - */ - - start: function(from, to){ - if (this.timer && this.options.wait) return this; - var parsed = Fx.CSS.parse(this.element, this.property, [from, to]); - this.css = parsed.css; - return this.parent(parsed.from, parsed.to); - }, - - increase: function(){ - this.element.setStyle(this.property, this.css.getValue(this.now, this.options.unit, this.property)); - } - -}); - -/* -Class: Element - Custom class to allow all of its methods to be used with any DOM element via the dollar function <$>. -*/ - -Element.extend({ - - /* - Property: effect - Applies an to the Element; This a shortcut for . - - Arguments: - property - (string) the css property to alter - options - (object; optional) key/value set of options (see ) - - Example: - >var myEffect = $('myElement').effect('height', {duration: 1000, transition: Fx.Transitions.linear}); - >myEffect.start(10, 100); - >//OR - >$('myElement').effect('height', {duration: 1000, transition: Fx.Transitions.linear}).start(10,100); - */ - - effect: function(property, options){ - return new Fx.Style(this, property, options); - } - -}); - -/* -Script: Fx.Styles.js - Contains - -License: - MIT-style license. -*/ - -/* -Class: Fx.Styles - Allows you to animate multiple css properties at once; - Colors must be in hex format. - Inherits methods, properties, options and events from . - -Arguments: - el - the $(element) to apply the styles transition to - options - the fx options (see: ) - -Example: - (start code) - var myEffects = new Fx.Styles('myElement', {duration: 1000, transition: Fx.Transitions.linear}); - - //height from 10 to 100 and width from 900 to 300 - myEffects.start({ - 'height': [10, 100], - 'width': [900, 300] - }); - - //or height from current height to 100 and width from current width to 300 - myEffects.start({ - 'height': 100, - 'width': 300 - }); - (end) -*/ - -Fx.Styles = Fx.Base.extend({ - - initialize: function(el, options){ - this.element = $(el); - this.parent(options); - }, - - setNow: function(){ - for (var p in this.from) this.now[p] = this.css[p].getNow(this.from[p], this.to[p], this); - }, - - set: function(to){ - var parsed = {}; - this.css = {}; - for (var p in to){ - this.css[p] = Fx.CSS.select(p, to[p]); - parsed[p] = this.css[p].parse(to[p]); - } - return this.parent(parsed); - }, - - /* - Property: start - Executes a transition for any number of css properties in tandem. - - Arguments: - obj - an object containing keys that specify css properties to alter and values that specify either the from/to values (as an array) or just the end value (an integer). - - Example: - see - */ - - start: function(obj){ - if (this.timer && this.options.wait) return this; - this.now = {}; - this.css = {}; - var from = {}, to = {}; - for (var p in obj){ - var parsed = Fx.CSS.parse(this.element, p, obj[p]); - from[p] = parsed.from; - to[p] = parsed.to; - this.css[p] = parsed.css; - } - return this.parent(from, to); - }, - - increase: function(){ - for (var p in this.now) this.element.setStyle(p, this.css[p].getValue(this.now[p], this.options.unit, p)); - } - -}); - -/* -Class: Element - Custom class to allow all of its methods to be used with any DOM element via the dollar function <$>. -*/ - -Element.extend({ - - /* - Property: effects - Applies an to the Element; This a shortcut for . - - Example: - >var myEffects = $(myElement).effects({duration: 1000, transition: Fx.Transitions.Sine.easeInOut}); - >myEffects.start({'height': [10, 100], 'width': [900, 300]}); - */ - - effects: function(options){ - return new Fx.Styles(this, options); - } - -}); - -/* -Script: Fx.Elements.js - Contains - -License: - MIT-style license. -*/ - -/* -Class: Fx.Elements - Fx.Elements allows you to apply any number of styles transitions to a selection of elements. Includes colors (must be in hex format). - Inherits methods, properties, options and events from . - -Arguments: - elements - a collection of elements the effects will be applied to. - options - same as options. -*/ - -Fx.Elements = Fx.Base.extend({ - - initialize: function(elements, options){ - this.elements = $$(elements); - this.parent(options); - }, - - setNow: function(){ - for (var i in this.from){ - var iFrom = this.from[i], iTo = this.to[i], iCss = this.css[i], iNow = this.now[i] = {}; - for (var p in iFrom) iNow[p] = iCss[p].getNow(iFrom[p], iTo[p], this); - } - }, - - set: function(to){ - var parsed = {}; - this.css = {}; - for (var i in to){ - var iTo = to[i], iCss = this.css[i] = {}, iParsed = parsed[i] = {}; - for (var p in iTo){ - iCss[p] = Fx.CSS.select(p, iTo[p]); - iParsed[p] = iCss[p].parse(iTo[p]); - } - } - return this.parent(parsed); - }, - - /* - Property: start - Applies the passed in style transitions to each object named (see example). Each item in the collection is refered to as a numerical string ("1" for instance). The first item is "0", the second "1", etc. - - Example: - (start code) - var myElementsEffects = new Fx.Elements($$('a')); - myElementsEffects.start({ - '0': { //let's change the first element's opacity and width - 'opacity': [0,1], - 'width': [100,200] - }, - '4': { //and the fifth one's opacity - 'opacity': [0.2, 0.5] - } - }); - (end) - */ - - start: function(obj){ - if (this.timer && this.options.wait) return this; - this.now = {}; - this.css = {}; - var from = {}, to = {}; - for (var i in obj){ - var iProps = obj[i], iFrom = from[i] = {}, iTo = to[i] = {}, iCss = this.css[i] = {}; - for (var p in iProps){ - var parsed = Fx.CSS.parse(this.elements[i], p, iProps[p]); - iFrom[p] = parsed.from; - iTo[p] = parsed.to; - iCss[p] = parsed.css; - } - } - return this.parent(from, to); - }, - - increase: function(){ - for (var i in this.now){ - var iNow = this.now[i], iCss = this.css[i]; - for (var p in iNow) this.elements[i].setStyle(p, iCss[p].getValue(iNow[p], this.options.unit, p)); - } - } - -}); - -/* -Script: Fx.Scroll.js - Contains - -License: - MIT-style license. -*/ - -/* -Class: Fx.Scroll - Scroll any element with an overflow, including the window element. - Inherits methods, properties, options and events from . - -Note: - Fx.Scroll requires an XHTML doctype. - -Arguments: - element - the element to scroll - options - optional, see Options below. - -Options: - all the Fx.Base options and events, plus: - offset - the distance for the scrollTo point/element. an Object with x/y properties. - overflown - an array of nested scrolling containers, see -*/ - -Fx.Scroll = Fx.Base.extend({ - - options: { - overflown: [], - offset: {'x': 0, 'y': 0}, - wheelStops: true - }, - - initialize: function(element, options){ - this.now = []; - this.element = $(element); - this.bound = {'stop': this.stop.bind(this, false)}; - this.parent(options); - if (this.options.wheelStops){ - this.addEvent('onStart', function(){ - document.addEvent('mousewheel', this.bound.stop); - }.bind(this)); - this.addEvent('onComplete', function(){ - document.removeEvent('mousewheel', this.bound.stop); - }.bind(this)); - } - }, - - setNow: function(){ - for (var i = 0; i < 2; i++) this.now[i] = this.compute(this.from[i], this.to[i]); - }, - - /* - Property: scrollTo - Scrolls the chosen element to the x/y coordinates. - - Arguments: - x - the x coordinate to scroll the element to - y - the y coordinate to scroll the element to - */ - - scrollTo: function(x, y){ - if (this.timer && this.options.wait) return this; - var el = this.element.getSize(); - var values = {'x': x, 'y': y}; - for (var z in el.size){ - var max = el.scrollSize[z] - el.size[z]; - if ($chk(values[z])) values[z] = ($type(values[z]) == 'number') ? values[z].limit(0, max) : max; - else values[z] = el.scroll[z]; - values[z] += this.options.offset[z]; - } - return this.start([el.scroll.x, el.scroll.y], [values.x, values.y]); - }, - - /* - Property: toTop - Scrolls the chosen element to its maximum top. - */ - - toTop: function(){ - return this.scrollTo(false, 0); - }, - - /* - Property: toBottom - Scrolls the chosen element to its maximum bottom. - */ - - toBottom: function(){ - return this.scrollTo(false, 'full'); - }, - - /* - Property: toLeft - Scrolls the chosen element to its maximum left. - */ - - toLeft: function(){ - return this.scrollTo(0, false); - }, - - /* - Property: toRight - Scrolls the chosen element to its maximum right. - */ - - toRight: function(){ - return this.scrollTo('full', false); - }, - - /* - Property: toElement - Scrolls the specified element to the position the passed in element is found. - - Arguments: - el - the $(element) to scroll the window to - */ - - toElement: function(el){ - var parent = this.element.getPosition(this.options.overflown); - var target = $(el).getPosition(this.options.overflown); - return this.scrollTo(target.x - parent.x, target.y - parent.y); - }, - - increase: function(){ - this.element.scrollTo(this.now[0], this.now[1]); - } - -}); - -/* -Script: Fx.Slide.js - Contains - -License: - MIT-style license. -*/ - -/* -Class: Fx.Slide - The slide effect; slides an element in horizontally or vertically, the contents will fold inside. - Inherits methods, properties, options and events from . - -Note: - Fx.Slide requires an XHTML doctype. - -Options: - mode - set it to vertical or horizontal. Defaults to vertical. - options - all the options - -Example: - (start code) - var mySlider = new Fx.Slide('myElement', {duration: 500}); - mySlider.toggle() //toggle the slider up and down. - (end) -*/ - -Fx.Slide = Fx.Base.extend({ - - options: { - mode: 'vertical' - }, - - initialize: function(el, options){ - this.element = $(el); - this.wrapper = new Element('div', {'styles': $extend(this.element.getStyles('margin'), {'overflow': 'hidden'})}).injectAfter(this.element).adopt(this.element); - this.element.setStyle('margin', 0); - this.setOptions(options); - this.now = []; - this.parent(this.options); - this.open = true; - this.addEvent('onComplete', function(){ - this.open = (this.now[0] === 0); - }); - if (window.webkit419) this.addEvent('onComplete', function(){ - if (this.open) this.element.remove().inject(this.wrapper); - }); - }, - - setNow: function(){ - for (var i = 0; i < 2; i++) this.now[i] = this.compute(this.from[i], this.to[i]); - }, - - vertical: function(){ - this.margin = 'margin-top'; - this.layout = 'height'; - this.offset = this.element.offsetHeight; - }, - - horizontal: function(){ - this.margin = 'margin-left'; - this.layout = 'width'; - this.offset = this.element.offsetWidth; - }, - - /* - Property: slideIn - Slides the elements in view horizontally or vertically. - - Arguments: - mode - (optional, string) 'horizontal' or 'vertical'; defaults to options.mode. - */ - - slideIn: function(mode){ - this[mode || this.options.mode](); - return this.start([this.element.getStyle(this.margin).toInt(), this.wrapper.getStyle(this.layout).toInt()], [0, this.offset]); - }, - - /* - Property: slideOut - Sides the elements out of view horizontally or vertically. - - Arguments: - mode - (optional, string) 'horizontal' or 'vertical'; defaults to options.mode. - */ - - slideOut: function(mode){ - this[mode || this.options.mode](); - return this.start([this.element.getStyle(this.margin).toInt(), this.wrapper.getStyle(this.layout).toInt()], [-this.offset, 0]); - }, - - /* - Property: hide - Hides the element without a transition. - - Arguments: - mode - (optional, string) 'horizontal' or 'vertical'; defaults to options.mode. - */ - - hide: function(mode){ - this[mode || this.options.mode](); - this.open = false; - return this.set([-this.offset, 0]); - }, - - /* - Property: show - Shows the element without a transition. - - Arguments: - mode - (optional, string) 'horizontal' or 'vertical'; defaults to options.mode. - */ - - show: function(mode){ - this[mode || this.options.mode](); - this.open = true; - return this.set([0, this.offset]); - }, - - /* - Property: toggle - Slides in or Out the element, depending on its state - - Arguments: - mode - (optional, string) 'horizontal' or 'vertical'; defaults to options.mode. - - */ - - toggle: function(mode){ - if (this.wrapper.offsetHeight == 0 || this.wrapper.offsetWidth == 0) return this.slideIn(mode); - return this.slideOut(mode); - }, - - increase: function(){ - this.element.setStyle(this.margin, this.now[0] + this.options.unit); - this.wrapper.setStyle(this.layout, this.now[1] + this.options.unit); - } - -}); - -/* -Script: Fx.Transitions.js - Effects transitions, to be used with all the effects. - -License: - MIT-style license. - -Credits: - Easing Equations by Robert Penner, , modified & optimized to be used with mootools. -*/ - -/* -Class: Fx.Transitions - A collection of tweening transitions for use with the classes. - -Example: - >//Elastic.easeOut with default values: - >new Fx.Style('margin', {transition: Fx.Transitions.Elastic.easeOut}); - >//Elastic.easeOut with user-defined value for elasticity. - > var myTransition = new Fx.Transition(Fx.Transitions.Elastic, 3); - >new Fx.Style('margin', {transition: myTransition.easeOut}); - -See also: - http://www.robertpenner.com/easing/ -*/ - -Fx.Transition = function(transition, params){ - params = params || []; - if ($type(params) != 'array') params = [params]; - return $extend(transition, { - easeIn: function(pos){ - return transition(pos, params); - }, - easeOut: function(pos){ - return 1 - transition(1 - pos, params); - }, - easeInOut: function(pos){ - return (pos <= 0.5) ? transition(2 * pos, params) / 2 : (2 - transition(2 * (1 - pos), params)) / 2; - } - }); -}; - -Fx.Transitions = new Abstract({ - - /* - Property: linear - displays a linear transition. - - Graph: - (see Linear.png) - */ - - linear: function(p){ - return p; - } - -}); - -Fx.Transitions.extend = function(transitions){ - for (var transition in transitions){ - Fx.Transitions[transition] = new Fx.Transition(transitions[transition]); - /*compatibility*/ - Fx.Transitions.compat(transition); - /*end compatibility*/ - } -}; - -/*compatibility*/ - -Fx.Transitions.compat = function(transition){ - ['In', 'Out', 'InOut'].each(function(easeType){ - Fx.Transitions[transition.toLowerCase() + easeType] = Fx.Transitions[transition]['ease' + easeType]; - }); -}; - -/*end compatibility*/ - -Fx.Transitions.extend({ - - /* - Property: Quad - displays a quadratic transition. Must be used as Quad.easeIn or Quad.easeOut or Quad.easeInOut - - Graph: - (see Quad.png) - */ - - //auto generated - - /* - Property: Cubic - displays a cubicular transition. Must be used as Cubic.easeIn or Cubic.easeOut or Cubic.easeInOut - - Graph: - (see Cubic.png) - */ - - //auto generated - - /* - Property: Quart - displays a quartetic transition. Must be used as Quart.easeIn or Quart.easeOut or Quart.easeInOut - - Graph: - (see Quart.png) - */ - - //auto generated - - /* - Property: Quint - displays a quintic transition. Must be used as Quint.easeIn or Quint.easeOut or Quint.easeInOut - - Graph: - (see Quint.png) - */ - - //auto generated - - /* - Property: Pow - Used to generate Quad, Cubic, Quart and Quint. - By default is p^6. - - Graph: - (see Pow.png) - */ - - Pow: function(p, x){ - return Math.pow(p, x[0] || 6); - }, - - /* - Property: Expo - displays a exponential transition. Must be used as Expo.easeIn or Expo.easeOut or Expo.easeInOut - - Graph: - (see Expo.png) - */ - - Expo: function(p){ - return Math.pow(2, 8 * (p - 1)); - }, - - /* - Property: Circ - displays a circular transition. Must be used as Circ.easeIn or Circ.easeOut or Circ.easeInOut - - Graph: - (see Circ.png) - */ - - Circ: function(p){ - return 1 - Math.sin(Math.acos(p)); - }, - - - /* - Property: Sine - displays a sineousidal transition. Must be used as Sine.easeIn or Sine.easeOut or Sine.easeInOut - - Graph: - (see Sine.png) - */ - - Sine: function(p){ - return 1 - Math.sin((1 - p) * Math.PI / 2); - }, - - /* - Property: Back - makes the transition go back, then all forth. Must be used as Back.easeIn or Back.easeOut or Back.easeInOut - - Graph: - (see Back.png) - */ - - Back: function(p, x){ - x = x[0] || 1.618; - return Math.pow(p, 2) * ((x + 1) * p - x); - }, - - /* - Property: Bounce - makes the transition bouncy. Must be used as Bounce.easeIn or Bounce.easeOut or Bounce.easeInOut - - Graph: - (see Bounce.png) - */ - - Bounce: function(p){ - var value; - for (var a = 0, b = 1; 1; a += b, b /= 2){ - if (p >= (7 - 4 * a) / 11){ - value = - Math.pow((11 - 6 * a - 11 * p) / 4, 2) + b * b; - break; - } - } - return value; - }, - - /* - Property: Elastic - Elastic curve. Must be used as Elastic.easeIn or Elastic.easeOut or Elastic.easeInOut - - Graph: - (see Elastic.png) - */ - - Elastic: function(p, x){ - return Math.pow(2, 10 * --p) * Math.cos(20 * p * Math.PI * (x[0] || 1) / 3); - } - -}); - -['Quad', 'Cubic', 'Quart', 'Quint'].each(function(transition, i){ - Fx.Transitions[transition] = new Fx.Transition(function(p){ - return Math.pow(p, [i + 2]); - }); - - /*compatibility*/ - Fx.Transitions.compat(transition); - /*end compatibility*/ -}); - -/* -Script: Drag.Base.js - Contains , - -License: - MIT-style license. -*/ - -var Drag = {}; - -/* -Class: Drag.Base - Modify two css properties of an element based on the position of the mouse. - -Note: - Drag.Base requires an XHTML doctype. - -Arguments: - el - the $(element) to apply the transformations to. - options - optional. The options object. - -Options: - handle - the $(element) to act as the handle for the draggable element. defaults to the $(element) itself. - modifiers - an object. see Modifiers Below. - limit - an object, see Limit below. - grid - optional, distance in px for snap-to-grid dragging - snap - optional, the distance you have to drag before the element starts to respond to the drag. defaults to false - - modifiers: - x - string, the style you want to modify when the mouse moves in an horizontal direction. defaults to 'left' - y - string, the style you want to modify when the mouse moves in a vertical direction. defaults to 'top' - - limit: - x - array with start and end limit relative to modifiers.x - y - array with start and end limit relative to modifiers.y - -Events: - onStart - optional, function to execute when the user starts to drag (on mousedown); - onComplete - optional, function to execute when the user completes the drag. - onDrag - optional, function to execute at every step of the drag -*/ - -Drag.Base = new Class({ - - options: { - handle: false, - unit: 'px', - onStart: Class.empty, - onBeforeStart: Class.empty, - onComplete: Class.empty, - onSnap: Class.empty, - onDrag: Class.empty, - limit: false, - modifiers: {x: 'left', y: 'top'}, - grid: false, - snap: 6 - }, - - initialize: function(el, options){ - this.setOptions(options); - this.element = $(el); - this.handle = $(this.options.handle) || this.element; - this.mouse = {'now': {}, 'pos': {}}; - this.value = {'start': {}, 'now': {}}; - this.bound = { - 'start': this.start.bindWithEvent(this), - 'check': this.check.bindWithEvent(this), - 'drag': this.drag.bindWithEvent(this), - 'stop': this.stop.bind(this) - }; - this.attach(); - if (this.options.initialize) this.options.initialize.call(this); - }, - - attach: function(){ - this.handle.addEvent('mousedown', this.bound.start); - return this; - }, - - detach: function(){ - this.handle.removeEvent('mousedown', this.bound.start); - return this; - }, - - start: function(event){ - this.fireEvent('onBeforeStart', this.element); - this.mouse.start = event.page; - var limit = this.options.limit; - this.limit = {'x': [], 'y': []}; - for (var z in this.options.modifiers){ - if (!this.options.modifiers[z]) continue; - this.value.now[z] = this.element.getStyle(this.options.modifiers[z]).toInt(); - this.mouse.pos[z] = event.page[z] - this.value.now[z]; - if (limit && limit[z]){ - for (var i = 0; i < 2; i++){ - if ($chk(limit[z][i])) this.limit[z][i] = ($type(limit[z][i]) == 'function') ? limit[z][i]() : limit[z][i]; - } - } - } - if ($type(this.options.grid) == 'number') this.options.grid = {'x': this.options.grid, 'y': this.options.grid}; - document.addListener('mousemove', this.bound.check); - document.addListener('mouseup', this.bound.stop); - this.fireEvent('onStart', this.element); - event.stop(); - }, - - check: function(event){ - var distance = Math.round(Math.sqrt(Math.pow(event.page.x - this.mouse.start.x, 2) + Math.pow(event.page.y - this.mouse.start.y, 2))); - if (distance > this.options.snap){ - document.removeListener('mousemove', this.bound.check); - document.addListener('mousemove', this.bound.drag); - this.drag(event); - this.fireEvent('onSnap', this.element); - } - event.stop(); - }, - - drag: function(event){ - this.out = false; - this.mouse.now = event.page; - for (var z in this.options.modifiers){ - if (!this.options.modifiers[z]) continue; - this.value.now[z] = this.mouse.now[z] - this.mouse.pos[z]; - if (this.limit[z]){ - if ($chk(this.limit[z][1]) && (this.value.now[z] > this.limit[z][1])){ - this.value.now[z] = this.limit[z][1]; - this.out = true; - } else if ($chk(this.limit[z][0]) && (this.value.now[z] < this.limit[z][0])){ - this.value.now[z] = this.limit[z][0]; - this.out = true; - } - } - if (this.options.grid[z]) this.value.now[z] -= (this.value.now[z] % this.options.grid[z]); - this.element.setStyle(this.options.modifiers[z], this.value.now[z] + this.options.unit); - } - this.fireEvent('onDrag', this.element); - event.stop(); - }, - - stop: function(){ - document.removeListener('mousemove', this.bound.check); - document.removeListener('mousemove', this.bound.drag); - document.removeListener('mouseup', this.bound.stop); - this.fireEvent('onComplete', this.element); - } - -}); - -Drag.Base.implement(new Events, new Options); - -/* -Class: Element - Custom class to allow all of its methods to be used with any DOM element via the dollar function <$>. -*/ - -Element.extend({ - - /* - Property: makeResizable - Makes an element resizable (by dragging) with the supplied options. - - Arguments: - options - see for acceptable options. - */ - - makeResizable: function(options){ - return new Drag.Base(this, $merge({modifiers: {x: 'width', y: 'height'}}, options)); - } - -}); - -/* -Script: Drag.Move.js - Contains , - -License: - MIT-style license. -*/ - -/* -Class: Drag.Move - Extends , has additional functionality for dragging an element, support snapping and droppables. - Drag.move supports either position absolute or relative. If no position is found, absolute will be set. - Inherits methods, properties, options and events from . - -Note: - Drag.Move requires an XHTML doctype. - -Arguments: - el - the $(element) to apply the drag to. - options - optional. see Options below. - -Options: - all the drag.Base options, plus: - container - an element, will fill automatically limiting options based on the $(element) size and position. defaults to false (no limiting) - droppables - an array of elements you can drop your draggable to. - overflown - an array of nested scrolling containers, see Element::getPosition -*/ - -Drag.Move = Drag.Base.extend({ - - options: { - droppables: [], - container: false, - overflown: [] - }, - - initialize: function(el, options){ - this.setOptions(options); - this.element = $(el); - this.droppables = $$(this.options.droppables); - this.container = $(this.options.container); - this.position = {'element': this.element.getStyle('position'), 'container': false}; - if (this.container) this.position.container = this.container.getStyle('position'); - if (!['relative', 'absolute', 'fixed'].contains(this.position.element)) this.position.element = 'absolute'; - var top = this.element.getStyle('top').toInt(); - var left = this.element.getStyle('left').toInt(); - if (this.position.element == 'absolute' && !['relative', 'absolute', 'fixed'].contains(this.position.container)){ - top = $chk(top) ? top : this.element.getTop(this.options.overflown); - left = $chk(left) ? left : this.element.getLeft(this.options.overflown); - } else { - top = $chk(top) ? top : 0; - left = $chk(left) ? left : 0; - } - this.element.setStyles({'top': top, 'left': left, 'position': this.position.element}); - this.parent(this.element); - }, - - start: function(event){ - this.overed = null; - if (this.container){ - var cont = this.container.getCoordinates(); - var el = this.element.getCoordinates(); - if (this.position.element == 'absolute' && !['relative', 'absolute', 'fixed'].contains(this.position.container)){ - this.options.limit = { - 'x': [cont.left, cont.right - el.width], - 'y': [cont.top, cont.bottom - el.height] - }; - } else { - this.options.limit = { - 'y': [0, cont.height - el.height], - 'x': [0, cont.width - el.width] - }; - } - } - this.parent(event); - }, - - drag: function(event){ - this.parent(event); - var overed = this.out ? false : this.droppables.filter(this.checkAgainst, this).getLast(); - if (this.overed != overed){ - if (this.overed) this.overed.fireEvent('leave', [this.element, this]); - this.overed = overed ? overed.fireEvent('over', [this.element, this]) : null; - } - return this; - }, - - checkAgainst: function(el){ - el = el.getCoordinates(this.options.overflown); - var now = this.mouse.now; - return (now.x > el.left && now.x < el.right && now.y < el.bottom && now.y > el.top); - }, - - stop: function(){ - if (this.overed && !this.out) this.overed.fireEvent('drop', [this.element, this]); - else this.element.fireEvent('emptydrop', this); - this.parent(); - return this; - } - -}); - -/* -Class: Element - Custom class to allow all of its methods to be used with any DOM element via the dollar function <$>. -*/ - -Element.extend({ - - /* - Property: makeDraggable - Makes an element draggable with the supplied options. - - Arguments: - options - see and for acceptable options. - */ - - makeDraggable: function(options){ - return new Drag.Move(this, options); - } - -}); - -/* -Script: XHR.js - Contains the basic XMLHttpRequest Class Wrapper. - -License: - MIT-style license. -*/ - -/* -Class: XHR - Basic XMLHttpRequest Wrapper. - -Arguments: - options - an object with options names as keys. See options below. - -Options: - method - 'post' or 'get' - the protocol for the request; optional, defaults to 'post'. - async - boolean: asynchronous option; true uses asynchronous requests. Defaults to true. - encoding - the encoding, defaults to utf-8. - autoCancel - cancels the already running request if another one is sent. defaults to false. - headers - accepts an object, that will be set to request headers. - -Events: - onRequest - function to execute when the XHR request is fired. - onSuccess - function to execute when the XHR request completes. - onStateChange - function to execute when the state of the XMLHttpRequest changes. - onFailure - function to execute when the state of the XMLHttpRequest changes. - -Properties: - running - true if the request is running. - response - object, text and xml as keys. You can access this property in the onSuccess event. - -Example: - >var myXHR = new XHR({method: 'get'}).send('http://site.com/requestHandler.php', 'name=john&lastname=dorian'); -*/ - -var XHR = new Class({ - - options: { - method: 'post', - async: true, - onRequest: Class.empty, - onSuccess: Class.empty, - onFailure: Class.empty, - urlEncoded: true, - encoding: 'utf-8', - autoCancel: false, - headers: {} - }, - - setTransport: function(){ - this.transport = (window.XMLHttpRequest) ? new XMLHttpRequest() : (window.ie ? new ActiveXObject('Microsoft.XMLHTTP') : false); - return this; - }, - - initialize: function(options){ - this.setTransport().setOptions(options); - this.options.isSuccess = this.options.isSuccess || this.isSuccess; - this.headers = {}; - if (this.options.urlEncoded && this.options.method == 'post'){ - var encoding = (this.options.encoding) ? '; charset=' + this.options.encoding : ''; - this.setHeader('Content-type', 'application/x-www-form-urlencoded' + encoding); - } - if (this.options.initialize) this.options.initialize.call(this); - }, - - onStateChange: function(){ - if (this.transport.readyState != 4 || !this.running) return; - this.running = false; - var status = 0; - try {status = this.transport.status;} catch(e){}; - if (this.options.isSuccess.call(this, status)) this.onSuccess(); - else this.onFailure(); - this.transport.onreadystatechange = Class.empty; - }, - - isSuccess: function(status){ - return ((status >= 200) && (status < 300)); - }, - - onSuccess: function(){ - this.response = { - 'text': this.transport.responseText, - 'xml': this.transport.responseXML - }; - this.fireEvent('onSuccess', [this.response.text, this.response.xml]); - this.callChain(); - }, - - onFailure: function(){ - this.fireEvent('onFailure', this.transport); - }, - - /* - Property: setHeader - Add/modify an header for the request. It will not override headers from the options. - - Example: - >var myXhr = new XHR(url, {method: 'get', headers: {'X-Request': 'JSON'}}); - >myXhr.setHeader('Last-Modified','Sat, 1 Jan 2005 05:00:00 GMT'); - */ - - setHeader: function(name, value){ - this.headers[name] = value; - return this; - }, - - /* - Property: send - Opens the XHR connection and sends the data. Data has to be null or a string. - - Example: - >var myXhr = new XHR({method: 'post'}); - >myXhr.send(url, querystring); - > - >var syncXhr = new XHR({async: false, method: 'post'}); - >syncXhr.send(url, null); - > - */ - - send: function(url, data){ - if (this.options.autoCancel) this.cancel(); - else if (this.running) return this; - this.running = true; - if (data && this.options.method == 'get'){ - url = url + (url.contains('?') ? '&' : '?') + data; - data = null; - } - this.transport.open(this.options.method.toUpperCase(), url, this.options.async); - this.transport.onreadystatechange = this.onStateChange.bind(this); - if ((this.options.method == 'post') && this.transport.overrideMimeType) this.setHeader('Connection', 'close'); - $extend(this.headers, this.options.headers); - for (var type in this.headers) try {this.transport.setRequestHeader(type, this.headers[type]);} catch(e){}; - this.fireEvent('onRequest'); - this.transport.send($pick(data, null)); - /** [Alfresco] Added */ if (!this.options.async) this.onStateChange(); /** [/Alfresco] */ - return this; - }, - - /* - Property: cancel - Cancels the running request. No effect if the request is not running. - - Example: - >var myXhr = new XHR({method: 'get'}).send(url); - >myXhr.cancel(); - */ - - cancel: function(){ - if (!this.running) return this; - this.running = false; - this.transport.abort(); - this.transport.onreadystatechange = Class.empty; - this.setTransport(); - this.fireEvent('onCancel'); - return this; - } - -}); - -XHR.implement(new Chain, new Events, new Options); - -/* -Script: Ajax.js - Contains the class. Also contains methods to generate querystings from forms and Objects. - -Credits: - Loosely based on the version from prototype.js - -License: - MIT-style license. -*/ - -/* -Class: Ajax - An Ajax class, For all your asynchronous needs. - Inherits methods, properties, options and events from . - -Arguments: - url - the url pointing to the server-side script. - options - optional, an object containing options. - -Options: - data - you can write parameters here. Can be a querystring, an object or a Form element. - update - $(element) to insert the response text of the XHR into, upon completion of the request. - evalScripts - boolean; default is false. Execute scripts in the response text onComplete. When the response is javascript the whole response is evaluated. - evalResponse - boolean; default is false. Force global evalulation of the whole response, no matter what content-type it is. - -Events: - onComplete - function to execute when the ajax request completes. - -Example: - >var myAjax = new Ajax(url, {method: 'get'}).request(); -*/ - -var Ajax = XHR.extend({ - - options: { - data: null, - update: null, - onComplete: Class.empty, - evalScripts: false, - evalResponse: false - }, - - initialize: function(url, options){ - this.addEvent('onSuccess', this.onComplete); - this.setOptions(options); - /*compatibility*/ - this.options.data = this.options.data || this.options.postBody; - /*end compatibility*/ - if (!['post', 'get'].contains(this.options.method)){ - this._method = '_method=' + this.options.method; - this.options.method = 'post'; - } - this.parent(); - this.setHeader('X-Requested-With', 'XMLHttpRequest'); - this.setHeader('Accept', 'text/javascript, text/html, application/xml, text/xml, */*'); - this.url = url; - }, - - onComplete: function(){ - if (this.options.update) $(this.options.update).empty().setHTML(this.response.text); - if (this.options.evalScripts || this.options.evalResponse) this.evalScripts(); - this.fireEvent('onComplete', [this.response.text, this.response.xml], 20); - }, - - /* - Property: request - Executes the ajax request. - - Example: - >var myAjax = new Ajax(url, {method: 'get'}); - >myAjax.request(); - - OR - - >new Ajax(url, {method: 'get'}).request(); - */ - - request: function(data){ - data = data || this.options.data; - switch($type(data)){ - case 'element': data = $(data).toQueryString(); break; - case 'object': data = Object.toQueryString(data); - } - if (this._method) data = (data) ? [this._method, data].join('&') : this._method; - return this.send(this.url, data); - }, - - /* - Property: evalScripts - Executes scripts in the response text - */ - - evalScripts: function(){ - var script, scripts; - if (this.options.evalResponse || (/(ecma|java)script/).test(this.getHeader('Content-type'))) scripts = this.response.text; - else { - scripts = []; - var regexp = /]*>([\s\S]*?)<\/script>/gi; - while ((script = regexp.exec(this.response.text))) scripts.push(script[1]); - scripts = scripts.join('\n'); - } - if (scripts) (window.execScript) ? window.execScript(scripts) : window.setTimeout(scripts, 0); - }, - - /* - Property: getHeader - Returns the given response header or null - */ - - getHeader: function(name){ - try {return this.transport.getResponseHeader(name);} catch(e){}; - return null; - } - -}); - -/* Section: Object related Functions */ - -/* -Function: Object.toQueryString - Generates a querystring from key/pair values in an object - -Arguments: - source - the object to generate the querystring from. - -Returns: - the query string. - -Example: - >Object.toQueryString({apple: "red", lemon: "yellow"}); //returns "apple=red&lemon=yellow" -*/ - -Object.toQueryString = function(source){ - var queryString = []; - for (var property in source) queryString.push(encodeURIComponent(property) + '=' + encodeURIComponent(source[property])); - return queryString.join('&'); -}; - -/* -Class: Element - Custom class to allow all of its methods to be used with any DOM element via the dollar function <$>. -*/ - -Element.extend({ - - /* - Property: send - Sends a form with an ajax post request - - Arguments: - options - option collection for ajax request. See for the options list. - - Returns: - The Ajax Class Instance - - Example: - (start code) -
- - -
- - (end) - */ - - send: function(options){ - return new Ajax(this.getProperty('action'), $merge({data: this.toQueryString()}, options, {method: 'post'})).request(); - } - -}); - -/* -Script: Cookie.js - A cookie reader/creator - -Credits: - based on the functions by Peter-Paul Koch (http://quirksmode.org) -*/ - -/* -Class: Cookie - Class for creating, getting, and removing cookies. -*/ - -var Cookie = new Abstract({ - - options: { - domain: false, - path: false, - duration: false, - secure: false - }, - - /* - Property: set - Sets a cookie in the browser. - - Arguments: - key - the key (name) for the cookie - value - the value to set, cannot contain semicolons - options - an object representing the Cookie options. See Options below. Default values are stored in Cookie.options. - - Options: - domain - the domain the Cookie belongs to. If you want to share the cookie with pages located on a different domain, you have to set this value. Defaults to the current domain. - path - the path the Cookie belongs to. If you want to share the cookie with pages located in a different path, you have to set this value, for example to "/" to share the cookie with all pages on the domain. Defaults to the current path. - duration - the duration of the Cookie before it expires, in days. - If set to false or 0, the cookie will be a session cookie that expires when the browser is closed. This is default. - secure - Stored cookie information can be accessed only from a secure environment. - - Returns: - An object with the options, the key and the value. You can give it as first parameter to Cookie.remove. - - Example: - >Cookie.set('username', 'Harald'); // session cookie (duration is false), or ... - >Cookie.set('username', 'JackBauer', {duration: 1}); // save this for 1 day - - */ - - set: function(key, value, options){ - options = $merge(this.options, options); - value = encodeURIComponent(value); - if (options.domain) value += '; domain=' + options.domain; - if (options.path) value += '; path=' + options.path; - if (options.duration){ - var date = new Date(); - date.setTime(date.getTime() + options.duration * 24 * 60 * 60 * 1000); - value += '; expires=' + date.toGMTString(); - } - if (options.secure) value += '; secure'; - document.cookie = key + '=' + value; - return $extend(options, {'key': key, 'value': value}); - }, - - /* - Property: get - Gets the value of a cookie. - - Arguments: - key - the name of the cookie you wish to retrieve. - - Returns: - The cookie string value, or false if not found. - - Example: - >Cookie.get("username") //returns JackBauer - */ - - get: function(key){ - var value = document.cookie.match('(?:^|;)\\s*' + key.escapeRegExp() + '=([^;]*)'); - return value ? decodeURIComponent(value[1]) : false; - }, - - /* - Property: remove - Removes a cookie from the browser. - - Arguments: - cookie - the name of the cookie to remove or a previous cookie (for domains) - options - optional. you can also pass the domain and path here. Same as options in - - Examples: - >Cookie.remove('username') //bye-bye JackBauer, cya in 24 hours - > - >var myCookie = Cookie.set('username', 'Aaron', {domain: 'mootools.net'}); // Cookie.set returns an object with all values need to remove the cookie - >Cookie.remove(myCookie); - */ - - remove: function(cookie, options){ - if ($type(cookie) == 'object') this.set(cookie.key, '', $merge(cookie, {duration: -1})); - else this.set(cookie, '', $merge(options, {duration: -1})); - } - -}); - -/* -Script: Json.js - Simple Json parser and Stringyfier, See: - -License: - MIT-style license. -*/ - -/* -Class: Json - Simple Json parser and Stringyfier, See: -*/ - -var Json = { - - /* - Property: toString - Converts an object to a string, to be passed in server-side scripts as a parameter. Although its not normal usage for this class, this method can also be used to convert functions and arrays to strings. - - Arguments: - obj - the object to convert to string - - Returns: - A json string - - Example: - (start code) - Json.toString({apple: 'red', lemon: 'yellow'}); '{"apple":"red","lemon":"yellow"}' - (end) - */ - - toString: function(obj){ - switch($type(obj)){ - case 'string': - return '"' + obj.replace(/(["\\])/g, '\\$1') + '"'; - case 'array': - return '[' + obj.map(Json.toString).join(',') + ']'; - case 'object': - var string = []; - for (var property in obj) string.push(Json.toString(property) + ':' + Json.toString(obj[property])); - return '{' + string.join(',') + '}'; - case 'number': - if (isFinite(obj)) break; - case false: - return 'null'; - } - return String(obj); - }, - - /* - Property: evaluate - converts a json string to an javascript Object. - - Arguments: - str - the string to evaluate. if its not a string, it returns false. - secure - optionally, performs syntax check on json string. Defaults to false. - - Credits: - Json test regexp is by Douglas Crockford . - - Example: - >var myObject = Json.evaluate('{"apple":"red","lemon":"yellow"}'); - >//myObject will become {apple: 'red', lemon: 'yellow'} - */ - - evaluate: function(str, secure){ - return (($type(str) != 'string') || (secure && !str.test(/^("(\\.|[^"\\\n\r])*?"|[,:{}\[\]0-9.\-+Eaeflnr-u \n\r\t])+?$/))) ? null : eval('(' + str + ')'); - } - -}; - -/* -Script: Json.Remote.js - Contains . - -License: - MIT-style license. -*/ - -/* -Class: Json.Remote - Wrapped XHR with automated sending and receiving of Javascript Objects in Json Format. - Inherits methods, properties, options and events from . - -Arguments: - url - the url you want to send your object to. - options - see options - -Example: - this code will send user information based on name/last name - (start code) - var jSonRequest = new Json.Remote("http://site.com/tellMeAge.php", {onComplete: function(person){ - alert(person.age); //is 25 years - alert(person.height); //is 170 cm - alert(person.weight); //is 120 kg - }}).send({'name': 'John', 'lastName': 'Doe'}); - (end) -*/ - -Json.Remote = XHR.extend({ - - initialize: function(url, options){ - this.url = url; - this.addEvent('onSuccess', this.onComplete); - this.parent(options); - this.setHeader('X-Request', 'JSON'); - }, - - send: function(obj){ - return this.parent(this.url, 'json=' + Json.toString(obj)); - }, - - onComplete: function(){ - this.fireEvent('onComplete', [Json.evaluate(this.response.text, this.options.secure)]); - } - -}); - -/* -Script: Assets.js - provides dynamic loading for images, css and javascript files. - -License: - MIT-style license. -*/ - -var Asset = new Abstract({ - - /* - Property: javascript - Injects a javascript file in the page. - - Arguments: - source - the path of the javascript file - properties - some additional attributes you might want to add to the script element - - Example: - > new Asset.javascript('/scripts/myScript.js', {id: 'myScript'}); - */ - - javascript: function(source, properties){ - properties = $merge({ - 'onload': Class.empty - }, properties); - var script = new Element('script', {'src': source}).addEvents({ - 'load': properties.onload, - 'readystatechange': function(){ - if (this.readyState == 'complete') this.fireEvent('load'); - } - }); - delete properties.onload; - return script.setProperties(properties).inject(document.head); - }, - - /* - Property: css - Injects a css file in the page. - - Arguments: - source - the path of the css file - properties - some additional attributes you might want to add to the link element - - Example: - > new Asset.css('/css/myStyle.css', {id: 'myStyle', title: 'myStyle'}); - */ - - css: function(source, properties){ - return new Element('link', $merge({ - 'rel': 'stylesheet', 'media': 'screen', 'type': 'text/css', 'href': source - }, properties)).inject(document.head); - }, - - /* - Property: image - Preloads an image and returns the img element. does not inject it to the page. - - Arguments: - source - the path of the image file - properties - some additional attributes you might want to add to the img element - - Example: - > new Asset.image('/images/myImage.png', {id: 'myImage', title: 'myImage', onload: myFunction}); - - Returns: - the img element. you can inject it anywhere you want with // - */ - - image: function(source, properties){ - properties = $merge({ - 'onload': Class.empty, - 'onabort': Class.empty, - 'onerror': Class.empty - }, properties); - var image = new Image(); - image.src = source; - var element = new Element('img', {'src': source}); - ['load', 'abort', 'error'].each(function(type){ - var event = properties['on' + type]; - delete properties['on' + type]; - element.addEvent(type, function(){ - this.removeEvent(type, arguments.callee); - event.call(this); - }); - }); - if (image.width && image.height) element.fireEvent('load', element, 1); - return element.setProperties(properties); - }, - - /* - Property: images - Preloads an array of images (as strings) and returns an array of img elements. does not inject them to the page. - - Arguments: - sources - array, the paths of the image files - options - object, see below - - Options: - onComplete - a function to execute when all image files are loaded in the browser's cache - onProgress - a function to execute when one image file is loaded in the browser's cache - - Example: - (start code) - new Asset.images(['/images/myImage.png', '/images/myImage2.gif'], { - onComplete: function(){ - alert('all images loaded!'); - } - }); - (end) - - Returns: - the img elements as $$. you can inject them anywhere you want with // - */ - - images: function(sources, options){ - options = $merge({ - onComplete: Class.empty, - onProgress: Class.empty - }, options); - if (!sources.push) sources = [sources]; - var images = []; - var counter = 0; - sources.each(function(source){ - var img = new Asset.image(source, { - 'onload': function(){ - options.onProgress.call(this, counter); - counter++; - if (counter == sources.length) options.onComplete(); - } - }); - images.push(img); - }); - return new Elements(images); - } - -}); - -/* -Script: Hash.js - Contains the class Hash. - -License: - MIT-style license. -*/ - -/* -Class: Hash - It wraps an object that it uses internally as a map. The user must use set(), get(), and remove() to add/change, retrieve and remove values, it must not access the internal object directly. null/undefined values are allowed. - -Note: - Each hash instance has the length property. - -Arguments: - obj - an object to convert into a Hash instance. - -Example: - (start code) - var hash = new Hash({a: 'hi', b: 'world', c: 'howdy'}); - hash.remove('b'); // b is removed. - hash.set('c', 'hello'); - hash.get('c'); // returns 'hello' - hash.length // returns 2 (a and c) - (end) -*/ - -var Hash = new Class({ - - length: 0, - - initialize: function(object){ - this.obj = object || {}; - this.setLength(); - }, - - /* - Property: get - Retrieves a value from the hash. - - Arguments: - key - The key - - Returns: - The value - */ - - get: function(key){ - return (this.hasKey(key)) ? this.obj[key] : null; - }, - - /* - Property: hasKey - Check the presence of a specified key-value pair in the hash. - - Arguments: - key - The key - - Returns: - True if the Hash contains a value for the specified key, otherwise false - */ - - hasKey: function(key){ - return (key in this.obj); - }, - - /* - Property: set - Adds a key-value pair to the hash or replaces a previous value associated with the key. - - Arguments: - key - The key - value - The value - */ - - set: function(key, value){ - if (!this.hasKey(key)) this.length++; - this.obj[key] = value; - return this; - }, - - setLength: function(){ - this.length = 0; - for (var p in this.obj) this.length++; - return this; - }, - - /* - Property: remove - Removes a key-value pair from the hash. - - Arguments: - key - The key - */ - - remove: function(key){ - if (this.hasKey(key)){ - delete this.obj[key]; - this.length--; - } - return this; - }, - - /* - Property: each - Calls a function for each key-value pair. The first argument passed to the function will be the value, the second one will be the key, like $each. - - Arguments: - fn - The function to call for each key-value pair - bind - Optional, the object that will be referred to as "this" in the function - */ - - each: function(fn, bind){ - $each(this.obj, fn, bind); - }, - - /* - Property: extend - Extends the current hash with an object containing key-value pairs. Values for duplicate keys will be replaced by the new ones. - - Arguments: - obj - An object containing key-value pairs - */ - - extend: function(obj){ - $extend(this.obj, obj); - return this.setLength(); - }, - - /* - Property: merge - Merges the current hash with multiple objects. - */ - - merge: function(){ - this.obj = $merge.apply(null, [this.obj].extend(arguments)); - return this.setLength(); - }, - - /* - Property: empty - Empties all hash values properties and values. - */ - - empty: function(){ - this.obj = {}; - this.length = 0; - return this; - }, - - /* - Property: keys - Returns an array containing all the keys, in the same order as the values returned by . - - Returns: - An array containing all the keys of the hash - */ - - keys: function(){ - var keys = []; - for (var property in this.obj) keys.push(property); - return keys; - }, - - /* - Property: values - Returns an array containing all the values, in the same order as the keys returned by . - - Returns: - An array containing all the values of the hash - */ - - values: function(){ - var values = []; - for (var property in this.obj) values.push(this.obj[property]); - return values; - } - -}); - -/* Section: Utility Functions */ - -/* -Function: $H - Shortcut to create a Hash from an Object. -*/ - -function $H(obj){ - return new Hash(obj); -}; - -/* -Script: Hash.Cookie.js - Stores and loads an Hash as a cookie using Json format. -*/ - -/* -Class: Hash.Cookie - Inherits all the methods from , additional methods are save and load. - Hash json string has a limit of 4kb (4096byte), so be careful with your Hash size. - Creating a new instance automatically loads the data from the Cookie into the Hash. - If the Hash is emptied, the cookie is also removed. - -Arguments: - name - the key (name) for the cookie - options - options are identical to and are simply passed along to it. - In addition, it has the autoSave option, to save the cookie at every operation. defaults to true. - -Example: - (start code) - var fruits = new Hash.Cookie('myCookieName', {duration: 3600}); - fruits.extend({ - 'lemon': 'yellow', - 'apple': 'red' - }); - fruits.set('melon', 'green'); - fruits.get('lemon'); // yellow - - // ... on another page ... values load automatically - - var fruits = new Hash.Cookie('myCookieName', {duration: 365}); - fruits.get('melon'); // green - - fruits.erase(); // delete cookie - (end) -*/ - -Hash.Cookie = Hash.extend({ - - initialize: function(name, options){ - this.name = name; - this.options = $extend({'autoSave': true}, options || {}); - this.load(); - }, - - /* - Property: save - Saves the Hash to the cookie. If the hash is empty, removes the cookie. - - Returns: - Returns false when the JSON string cookie is too long (4kb), otherwise true. - - Example: - (start code) - var login = new Hash.Cookie('userstatus', {autoSave: false}); - - login.extend({ - 'username': 'John', - 'credentials': [4, 7, 9] - }); - login.set('last_message', 'User logged in!'); - - login.save(); // finally save the Hash - (end) - */ - - save: function(){ - if (this.length == 0){ - Cookie.remove(this.name, this.options); - return true; - } - var str = Json.toString(this.obj); - if (str.length > 4096) return false; //cookie would be truncated! - Cookie.set(this.name, str, this.options); - return true; - }, - - /* - Property: load - Loads the cookie and assigns it to the Hash. - */ - - load: function(){ - this.obj = Json.evaluate(Cookie.get(this.name), true) || {}; - this.setLength(); - } - -}); - -Hash.Cookie.Methods = {}; -['extend', 'set', 'merge', 'empty', 'remove'].each(function(method){ - Hash.Cookie.Methods[method] = function(){ - Hash.prototype[method].apply(this, arguments); - if (this.options.autoSave) this.save(); - return this; - }; -}); -Hash.Cookie.implement(Hash.Cookie.Methods); - -/* -Script: Color.js - Contains the Color class. - -License: - MIT-style license. -*/ - -/* -Class: Color - Creates a new Color Object, which is an array with some color specific methods. -Arguments: - color - the hex, the RGB array or the HSB array of the color to create. For HSB colors, you need to specify the second argument. - type - a string representing the type of the color to create. needs to be specified if you intend to create the color with HSB values, or an array of HEX values. Can be 'rgb', 'hsb' or 'hex'. - -Example: - (start code) - var black = new Color('#000'); - var purple = new Color([255,0,255]); - // mix black with white and purple, each time at 10% of the new color - var darkpurple = black.mix('#fff', purple, 10); - $('myDiv').setStyle('background-color', darkpurple); - (end) -*/ - -var Color = new Class({ - - initialize: function(color, type){ - type = type || (color.push ? 'rgb' : 'hex'); - var rgb, hsb; - switch(type){ - case 'rgb': - rgb = color; - hsb = rgb.rgbToHsb(); - break; - case 'hsb': - rgb = color.hsbToRgb(); - hsb = color; - break; - default: - rgb = color.hexToRgb(true); - hsb = rgb.rgbToHsb(); - } - rgb.hsb = hsb; - rgb.hex = rgb.rgbToHex(); - return $extend(rgb, Color.prototype); - }, - - /* - Property: mix - Mixes two or more colors with the Color. - - Arguments: - color - a color to mix. you can use as arguments how many colors as you want to mix with the original one. - alpha - if you use a number as the last argument, it will be threated as the amount of the color to mix. - */ - - mix: function(){ - var colors = $A(arguments); - var alpha = ($type(colors[colors.length - 1]) == 'number') ? colors.pop() : 50; - var rgb = this.copy(); - colors.each(function(color){ - color = new Color(color); - for (var i = 0; i < 3; i++) rgb[i] = Math.round((rgb[i] / 100 * (100 - alpha)) + (color[i] / 100 * alpha)); - }); - return new Color(rgb, 'rgb'); - }, - - /* - Property: invert - Inverts the Color. - */ - - invert: function(){ - return new Color(this.map(function(value){ - return 255 - value; - })); - }, - - /* - Property: setHue - Modifies the hue of the Color, and returns a new one. - - Arguments: - value - the hue to set - */ - - setHue: function(value){ - return new Color([value, this.hsb[1], this.hsb[2]], 'hsb'); - }, - - /* - Property: setSaturation - Changes the saturation of the Color, and returns a new one. - - Arguments: - percent - the percentage of the saturation to set - */ - - setSaturation: function(percent){ - return new Color([this.hsb[0], percent, this.hsb[2]], 'hsb'); - }, - - /* - Property: setBrightness - Changes the brightness of the Color, and returns a new one. - - Arguments: - percent - the percentage of the brightness to set - */ - - setBrightness: function(percent){ - return new Color([this.hsb[0], this.hsb[1], percent], 'hsb'); - } - -}); - -/* Section: Utility Functions */ - -/* -Function: $RGB - Shortcut to create a new color, based on red, green, blue values. - -Arguments: - r - (integer) red value (0-255) - g - (integer) green value (0-255) - b - (integer) blue value (0-255) - -*/ - -function $RGB(r, g, b){ - return new Color([r, g, b], 'rgb'); -}; - -/* -Function: $HSB - Shortcut to create a new color, based on hue, saturation, brightness values. - -Arguments: - h - (integer) hue value (0-100) - s - (integer) saturation value (0-100) - b - (integer) brightness value (0-100) -*/ - -function $HSB(h, s, b){ - return new Color([h, s, b], 'hsb'); -}; - -/* -Class: Array - A collection of The Array Object prototype methods. -*/ - -Array.extend({ - - /* - Property: rgbToHsb - Converts a RGB array to an HSB array. - - Returns: - the HSB array. - */ - - rgbToHsb: function(){ - var red = this[0], green = this[1], blue = this[2]; - var hue, saturation, brightness; - var max = Math.max(red, green, blue), min = Math.min(red, green, blue); - var delta = max - min; - brightness = max / 255; - saturation = (max != 0) ? delta / max : 0; - if (saturation == 0){ - hue = 0; - } else { - var rr = (max - red) / delta; - var gr = (max - green) / delta; - var br = (max - blue) / delta; - if (red == max) hue = br - gr; - else if (green == max) hue = 2 + rr - br; - else hue = 4 + gr - rr; - hue /= 6; - if (hue < 0) hue++; - } - return [Math.round(hue * 360), Math.round(saturation * 100), Math.round(brightness * 100)]; - }, - - /* - Property: hsbToRgb - Converts an HSB array to an RGB array. - - Returns: - the RGB array. - */ - - hsbToRgb: function(){ - var br = Math.round(this[2] / 100 * 255); - if (this[1] == 0){ - return [br, br, br]; - } else { - var hue = this[0] % 360; - var f = hue % 60; - var p = Math.round((this[2] * (100 - this[1])) / 10000 * 255); - var q = Math.round((this[2] * (6000 - this[1] * f)) / 600000 * 255); - var t = Math.round((this[2] * (6000 - this[1] * (60 - f))) / 600000 * 255); - switch(Math.floor(hue / 60)){ - case 0: return [br, t, p]; - case 1: return [q, br, p]; - case 2: return [p, br, t]; - case 3: return [p, q, br]; - case 4: return [t, p, br]; - case 5: return [br, p, q]; - } - } - return false; - } - -}); - -/* -Script: Scroller.js - Contains the . - -License: - MIT-style license. -*/ - -/* -Class: Scroller - The Scroller is a class to scroll any element with an overflow (including the window) when the mouse cursor reaches certain buondaries of that element. - You must call its start method to start listening to mouse movements. - -Note: - The Scroller requires an XHTML doctype. - -Arguments: - element - required, the element to scroll. - options - optional, see options below, and options. - -Options: - area - integer, the necessary boundaries to make the element scroll. - velocity - integer, velocity ratio, the modifier for the window scrolling speed. - -Events: - onChange - optionally, when the mouse reaches some boundaries, you can choose to alter some other values, instead of the scrolling offsets. - Automatically passes as parameters x and y values. -*/ - -var Scroller = new Class({ - - options: { - area: 20, - velocity: 1, - onChange: function(x, y){ - this.element.scrollTo(x, y); - } - }, - - initialize: function(element, options){ - this.setOptions(options); - this.element = $(element); - this.mousemover = ([window, document].contains(element)) ? $(document.body) : this.element; - }, - - /* - Property: start - The scroller starts listening to mouse movements. - */ - - start: function(){ - this.coord = this.getCoords.bindWithEvent(this); - this.mousemover.addListener('mousemove', this.coord); - }, - - /* - Property: stop - The scroller stops listening to mouse movements. - */ - - stop: function(){ - this.mousemover.removeListener('mousemove', this.coord); - this.timer = $clear(this.timer); - }, - - getCoords: function(event){ - this.page = (this.element == window) ? event.client : event.page; - if (!this.timer) this.timer = this.scroll.periodical(50, this); - }, - - scroll: function(){ - var el = this.element.getSize(); - var pos = this.element.getPosition(); - - var change = {'x': 0, 'y': 0}; - for (var z in this.page){ - if (this.page[z] < (this.options.area + pos[z]) && el.scroll[z] != 0) - change[z] = (this.page[z] - this.options.area - pos[z]) * this.options.velocity; - else if (this.page[z] + this.options.area > (el.size[z] + pos[z]) && el.scroll[z] + el.size[z] != el.scrollSize[z]) - change[z] = (this.page[z] - el.size[z] + this.options.area - pos[z]) * this.options.velocity; - } - if (change.y || change.x) this.fireEvent('onChange', [el.scroll.x + change.x, el.scroll.y + change.y]); - } - -}); - -Scroller.implement(new Events, new Options); - -/* -Script: Slider.js - Contains - -License: - MIT-style license. -*/ - -/* -Class: Slider - Creates a slider with two elements: a knob and a container. Returns the values. - -Note: - The Slider requires an XHTML doctype. - -Arguments: - element - the knob container - knob - the handle - options - see Options below - -Options: - steps - the number of steps for your slider. - mode - either 'horizontal' or 'vertical'. defaults to horizontal. - offset - relative offset for knob position. default to 0. - -Events: - onChange - a function to fire when the value changes. - onComplete - a function to fire when you're done dragging. - onTick - optionally, you can alter the onTick behavior, for example displaying an effect of the knob moving to the desired position. - Passes as parameter the new position. -*/ - -var Slider = new Class({ - - options: { - onChange: Class.empty, - onComplete: Class.empty, - onTick: function(pos){ - this.knob.setStyle(this.p, pos); - }, - mode: 'horizontal', - steps: 100, - offset: 0 - }, - - initialize: function(el, knob, options){ - this.element = $(el); - this.knob = $(knob); - this.setOptions(options); - this.previousChange = -1; - this.previousEnd = -1; - this.step = -1; - this.element.addEvent('mousedown', this.clickedElement.bindWithEvent(this)); - var mod, offset; - switch(this.options.mode){ - case 'horizontal': - this.z = 'x'; - this.p = 'left'; - mod = {'x': 'left', 'y': false}; - offset = 'offsetWidth'; - break; - case 'vertical': - this.z = 'y'; - this.p = 'top'; - mod = {'x': false, 'y': 'top'}; - offset = 'offsetHeight'; - } - this.max = this.element[offset] - this.knob[offset] + (this.options.offset * 2); - this.half = this.knob[offset]/2; - this.getPos = this.element['get' + this.p.capitalize()].bind(this.element); - this.knob.setStyle('position', 'relative').setStyle(this.p, - this.options.offset); - var lim = {}; - lim[this.z] = [- this.options.offset, this.max - this.options.offset]; - this.drag = new Drag.Base(this.knob, { - limit: lim, - modifiers: mod, - snap: 0, - onStart: function(){ - this.draggedKnob(); - }.bind(this), - onDrag: function(){ - this.draggedKnob(); - }.bind(this), - onComplete: function(){ - this.draggedKnob(); - this.end(); - }.bind(this) - }); - if (this.options.initialize) this.options.initialize.call(this); - }, - - /* - Property: set - The slider will get the step you pass. - - Arguments: - step - one integer - */ - - set: function(step){ - this.step = step.limit(0, this.options.steps); - this.checkStep(); - this.end(); - this.fireEvent('onTick', this.toPosition(this.step)); - return this; - }, - - clickedElement: function(event){ - var position = event.page[this.z] - this.getPos() - this.half; - position = position.limit(-this.options.offset, this.max -this.options.offset); - this.step = this.toStep(position); - this.checkStep(); - this.end(); - this.fireEvent('onTick', position); - }, - - draggedKnob: function(){ - this.step = this.toStep(this.drag.value.now[this.z]); - this.checkStep(); - }, - - checkStep: function(){ - if (this.previousChange != this.step){ - this.previousChange = this.step; - this.fireEvent('onChange', this.step); - } - }, - - end: function(){ - if (this.previousEnd !== this.step){ - this.previousEnd = this.step; - this.fireEvent('onComplete', this.step + ''); - } - }, - - toStep: function(position){ - return Math.round((position + this.options.offset) / this.max * this.options.steps); - }, - - toPosition: function(step){ - return this.max * step / this.options.steps; - } - -}); - -Slider.implement(new Events); -Slider.implement(new Options); - -/* -Script: SmoothScroll.js - Contains - -License: - MIT-style license. -*/ - -/* -Class: SmoothScroll - Auto targets all the anchors in a page and display a smooth scrolling effect upon clicking them. - Inherits methods, properties, options and events from . - -Note: - SmoothScroll requires an XHTML doctype. - -Arguments: - options - the Fx.Scroll options (see: ) plus links, a collection of elements you want your smoothscroll on. Defaults to document.links. - -Example: - >new SmoothScroll(); -*/ - -var SmoothScroll = Fx.Scroll.extend({ - - initialize: function(options){ - this.parent(window, options); - this.links = (this.options.links) ? $$(this.options.links) : $$(document.links); - var location = window.location.href.match(/^[^#]*/)[0] + '#'; - this.links.each(function(link){ - if (link.href.indexOf(location) != 0) return; - var anchor = link.href.substr(location.length); - if (anchor && $(anchor)) this.useLink(link, anchor); - }, this); - if (!window.webkit419) this.addEvent('onComplete', function(){ - window.location.hash = this.anchor; - }); - }, - - useLink: function(link, anchor){ - link.addEvent('click', function(event){ - this.anchor = anchor; - this.toElement(anchor); - event.stop(); - }.bindWithEvent(this)); - } - -}); - -/* -Script: Sortables.js - Contains Class. - -License: - MIT-style license. -*/ - -/* -Class: Sortables - Creates an interface for and drop, resorting of a list. - -Note: - The Sortables require an XHTML doctype. - -Arguments: - list - required, the list that will become sortable. - options - an Object, see options below. - -Options: - handles - a collection of elements to be used for drag handles. defaults to the elements. - -Events: - onStart - function executed when the item starts dragging - onComplete - function executed when the item ends dragging -*/ - -var Sortables = new Class({ - - options: { - handles: false, - onStart: Class.empty, - onComplete: Class.empty, - ghost: true, - snap: 3, - onDragStart: function(element, ghost){ - ghost.setStyle('opacity', 0.7); - element.setStyle('opacity', 0.7); - }, - onDragComplete: function(element, ghost){ - element.setStyle('opacity', 1); - ghost.remove(); - this.trash.remove(); - } - }, - - initialize: function(list, options){ - this.setOptions(options); - this.list = $(list); - this.elements = this.list.getChildren(); - this.handles = (this.options.handles) ? $$(this.options.handles) : this.elements; - this.bound = { - 'start': [], - 'moveGhost': this.moveGhost.bindWithEvent(this) - }; - for (var i = 0, l = this.handles.length; i < l; i++){ - this.bound.start[i] = this.start.bindWithEvent(this, this.elements[i]); - } - this.attach(); - if (this.options.initialize) this.options.initialize.call(this); - this.bound.move = this.move.bindWithEvent(this); - this.bound.end = this.end.bind(this); - }, - - attach: function(){ - this.handles.each(function(handle, i){ - handle.addEvent('mousedown', this.bound.start[i]); - }, this); - }, - - detach: function(){ - this.handles.each(function(handle, i){ - handle.removeEvent('mousedown', this.bound.start[i]); - }, this); - }, - - start: function(event, el){ - this.active = el; - this.coordinates = this.list.getCoordinates(); - if (this.options.ghost){ - var position = el.getPosition(); - this.offset = event.page.y - position.y; - this.trash = new Element('div').inject(document.body); - this.ghost = el.clone().inject(this.trash).setStyles({ - 'position': 'absolute', - 'left': position.x, - 'top': event.page.y - this.offset - }); - document.addListener('mousemove', this.bound.moveGhost); - this.fireEvent('onDragStart', [el, this.ghost]); - } - document.addListener('mousemove', this.bound.move); - document.addListener('mouseup', this.bound.end); - this.fireEvent('onStart', el); - event.stop(); - }, - - moveGhost: function(event){ - var value = event.page.y - this.offset; - value = value.limit(this.coordinates.top, this.coordinates.bottom - this.ghost.offsetHeight); - this.ghost.setStyle('top', value); - event.stop(); - }, - - move: function(event){ - var now = event.page.y; - this.previous = this.previous || now; - var up = ((this.previous - now) > 0); - var prev = this.active.getPrevious(); - var next = this.active.getNext(); - if (prev && up && now < prev.getCoordinates().bottom) this.active.injectBefore(prev); - if (next && !up && now > next.getCoordinates().top) this.active.injectAfter(next); - this.previous = now; - }, - - serialize: function(converter){ - return this.list.getChildren().map(converter || function(el){ - return this.elements.indexOf(el); - }, this); - }, - - end: function(){ - this.previous = null; - document.removeListener('mousemove', this.bound.move); - document.removeListener('mouseup', this.bound.end); - if (this.options.ghost){ - document.removeListener('mousemove', this.bound.moveGhost); - this.fireEvent('onDragComplete', [this.active, this.ghost]); - } - this.fireEvent('onComplete', this.active); - } - -}); - -Sortables.implement(new Events, new Options); - -/* -Script: Tips.js - Tooltips, BubbleTips, whatever they are, they will appear on mouseover - -License: - MIT-style license. - -Credits: - The idea behind Tips.js is based on Bubble Tooltips () by Alessandro Fulcitiniti -*/ - -/* -Class: Tips - Display a tip on any element with a title and/or href. - -Note: - Tips requires an XHTML doctype. - -Arguments: - elements - a collection of elements to apply the tooltips to on mouseover. - options - an object. See options Below. - -Options: - maxTitleChars - the maximum number of characters to display in the title of the tip. defaults to 30. - showDelay - the delay the onShow method is called. (defaults to 100 ms) - hideDelay - the delay the onHide method is called. (defaults to 100 ms) - - className - the prefix for your tooltip classNames. defaults to 'tool'. - - the whole tooltip will have as classname: tool-tip - - the title will have as classname: tool-title - - the text will have as classname: tool-text - - offsets - the distance of your tooltip from the mouse. an Object with x/y properties. - fixed - if set to true, the toolTip will not follow the mouse. - -Events: - onShow - optionally you can alter the default onShow behaviour with this option (like displaying a fade in effect); - onHide - optionally you can alter the default onHide behaviour with this option (like displaying a fade out effect); - -Example: - (start code) - - - (end) - -Note: - The title of the element will always be used as the tooltip body. If you put :: on your title, the text before :: will become the tooltip title. -*/ - -var Tips = new Class({ - - options: { - onShow: function(tip){ - tip.setStyle('visibility', 'visible'); - }, - onHide: function(tip){ - tip.setStyle('visibility', 'hidden'); - }, - maxTitleChars: 30, - showDelay: 100, - hideDelay: 100, - className: 'tool', - offsets: {'x': 16, 'y': 16}, - fixed: false - }, - - initialize: function(elements, options){ - this.setOptions(options); - this.toolTip = new Element('div', { - 'class': this.options.className + '-tip', - 'styles': { - 'position': 'absolute', - 'top': '0', - 'left': '0', - 'visibility': 'hidden' - } - }).inject(document.body); - this.wrapper = new Element('div').inject(this.toolTip); - $$(elements).each(this.build, this); - if (this.options.initialize) this.options.initialize.call(this); - }, - - build: function(el){ - el.$tmp.myTitle = (el.href && el.getTag() == 'a') ? el.href.replace('http://', '') : (el.rel || false); - if (el.title){ - var dual = el.title.split('::'); - if (dual.length > 1){ - el.$tmp.myTitle = dual[0].trim(); - el.$tmp.myText = dual[1].trim(); - } else { - el.$tmp.myText = el.title; - } - el.removeAttribute('title'); - } else { - el.$tmp.myText = false; - } - if (el.$tmp.myTitle && el.$tmp.myTitle.length > this.options.maxTitleChars) el.$tmp.myTitle = el.$tmp.myTitle.substr(0, this.options.maxTitleChars - 1) + "…"; - el.addEvent('mouseenter', function(event){ - this.start(el); - if (!this.options.fixed) this.locate(event); - else this.position(el); - }.bind(this)); - if (!this.options.fixed) el.addEvent('mousemove', this.locate.bindWithEvent(this)); - var end = this.end.bind(this); - el.addEvent('mouseleave', end); - el.addEvent('trash', end); - }, - - start: function(el){ - this.wrapper.empty(); - if (el.$tmp.myTitle){ - this.title = new Element('span').inject(new Element('div', {'class': this.options.className + '-title'}).inject(this.wrapper)).setHTML(el.$tmp.myTitle); - } - if (el.$tmp.myText){ - this.text = new Element('span').inject(new Element('div', {'class': this.options.className + '-text'}).inject(this.wrapper)).setHTML(el.$tmp.myText); - } - $clear(this.timer); - this.timer = this.show.delay(this.options.showDelay, this); - }, - - end: function(event){ - $clear(this.timer); - this.timer = this.hide.delay(this.options.hideDelay, this); - }, - - position: function(element){ - var pos = element.getPosition(); - this.toolTip.setStyles({ - 'left': pos.x + this.options.offsets.x, - 'top': pos.y + this.options.offsets.y - }); - }, - - locate: function(event){ - var win = {'x': window.getWidth(), 'y': window.getHeight()}; - var scroll = {'x': window.getScrollLeft(), 'y': window.getScrollTop()}; - var tip = {'x': this.toolTip.offsetWidth, 'y': this.toolTip.offsetHeight}; - var prop = {'x': 'left', 'y': 'top'}; - for (var z in prop){ - var pos = event.page[z] + this.options.offsets[z]; - if ((pos + tip[z] - scroll[z]) > win[z]) pos = event.page[z] - this.options.offsets[z] - tip[z]; - this.toolTip.setStyle(prop[z], pos); - }; - }, - - show: function(){ - if (this.options.timeout) this.timer = this.hide.delay(this.options.timeout, this); - this.fireEvent('onShow', [this.toolTip]); - }, - - hide: function(){ - this.fireEvent('onHide', [this.toolTip]); - } - -}); - -Tips.implement(new Events, new Options); - -/* -Script: Group.js - For Grouping Classes or Elements Events. The Event added to the Group will fire when all of the events of the items of the group are fired. - -License: - MIT-style license. -*/ - -/* -Class: Group - An "Utility" Class. - -Arguments: - List of Class instances - -Example: - (start code) - xhr1 = new Ajax('data.js', {evalScript: true}); - xhr2 = new Ajax('abstraction.js', {evalScript: true}); - xhr3 = new Ajax('template.js', {evalScript: true}); - - var group = new Group(xhr1, xhr2, xhr3); - group.addEvent('onComplete', function(){ - alert('All Scripts loaded'); - }); - - xhr1.request(); - xhr2.request(); - xhr3.request(); - (end) - -*/ - -var Group = new Class({ - - initialize: function(){ - this.instances = $A(arguments); - this.events = {}; - this.checker = {}; - }, - - /* - Property: addEvent - adds an event to the stack of events of the Class instances. - - Arguments: - type - string; the event name (e.g. 'onComplete') - fn - function to execute when all instances fired this event - */ - - addEvent: function(type, fn){ - this.checker[type] = this.checker[type] || {}; - this.events[type] = this.events[type] || []; - if (this.events[type].contains(fn)) return false; - else this.events[type].push(fn); - this.instances.each(function(instance, i){ - instance.addEvent(type, this.check.bind(this, [type, instance, i])); - }, this); - return this; - }, - - check: function(type, instance, i){ - this.checker[type][i] = true; - var every = this.instances.every(function(current, j){ - return this.checker[type][j] || false; - }, this); - if (!every) return; - this.checker[type] = {}; - this.events[type].each(function(event){ - event.call(this, this.instances, instance); - }, this); - } - -}); - -/* -Script: Accordion.js - Contains - -License: - MIT-style license. -*/ - -/* -Class: Accordion - The Accordion class creates a group of elements that are toggled when their handles are clicked. When one elements toggles in, the others toggles back. - Inherits methods, properties, options and events from . - -Note: - The Accordion requires an XHTML doctype. - -Arguments: - togglers - required, a collection of elements, the elements handlers that will be clickable. - elements - required, a collection of elements the transitions will be applied to. - options - optional, see options below, and options and events. - -Options: - show - integer, the Index of the element to show at start. - display - integer, the Index of the element to show at start (with a transition). defaults to 0. - fixedHeight - integer, if you want the elements to have a fixed height. defaults to false. - fixedWidth - integer, if you want the elements to have a fixed width. defaults to false. - height - boolean, will add a height transition to the accordion if true. defaults to true. - opacity - boolean, will add an opacity transition to the accordion if true. defaults to true. - width - boolean, will add a width transition to the accordion if true. defaults to false, css mastery is required to make this work! - alwaysHide - boolean, will allow to hide all elements if true, instead of always keeping one element shown. defaults to false. - -Events: - onActive - function to execute when an element starts to show - onBackground - function to execute when an element starts to hide -*/ - -var Accordion = Fx.Elements.extend({ - - options: { - onActive: Class.empty, - onBackground: Class.empty, - display: 0, - show: false, - height: true, - width: false, - opacity: true, - fixedHeight: false, - fixedWidth: false, - wait: false, - alwaysHide: false - }, - - initialize: function(){ - var options, togglers, elements, container; - $each(arguments, function(argument, i){ - switch($type(argument)){ - case 'object': options = argument; break; - case 'element': container = $(argument); break; - default: - var temp = $$(argument); - if (!togglers) togglers = temp; - else elements = temp; - } - }); - this.togglers = togglers || []; - this.elements = elements || []; - this.container = $(container); - this.setOptions(options); - this.previous = -1; - if (this.options.alwaysHide) this.options.wait = true; - if ($chk(this.options.show)){ - this.options.display = false; - this.previous = this.options.show; - } - if (this.options.start){ - this.options.display = false; - this.options.show = false; - } - this.effects = {}; - if (this.options.opacity) this.effects.opacity = 'fullOpacity'; - if (this.options.width) this.effects.width = this.options.fixedWidth ? 'fullWidth' : 'offsetWidth'; - if (this.options.height) this.effects.height = this.options.fixedHeight ? 'fullHeight' : 'scrollHeight'; - for (var i = 0, l = this.togglers.length; i < l; i++) this.addSection(this.togglers[i], this.elements[i]); - this.elements.each(function(el, i){ - if (this.options.show === i){ - this.fireEvent('onActive', [this.togglers[i], el]); - } else { - for (var fx in this.effects) el.setStyle(fx, 0); - } - }, this); - this.parent(this.elements); - if ($chk(this.options.display)) this.display(this.options.display); - }, - - /* - Property: addSection - Dynamically adds a new section into the accordion at the specified position. - - Arguments: - toggler - (dom element) the element that toggles the accordion section open. - element - (dom element) the element that stretches open when the toggler is clicked. - pos - (integer) the index where these objects are to be inserted within the accordion. - */ - - addSection: function(toggler, element, pos){ - toggler = $(toggler); - element = $(element); - var test = this.togglers.contains(toggler); - var len = this.togglers.length; - this.togglers.include(toggler); - this.elements.include(element); - if (len && (!test || pos)){ - pos = $pick(pos, len - 1); - toggler.injectBefore(this.togglers[pos]); - element.injectAfter(toggler); - } else if (this.container && !test){ - toggler.inject(this.container); - element.inject(this.container); - } - var idx = this.togglers.indexOf(toggler); - toggler.addEvent('click', this.display.bind(this, idx)); - if (this.options.height) element.setStyles({'padding-top': 0, 'border-top': 'none', 'padding-bottom': 0, 'border-bottom': 'none'}); - if (this.options.width) element.setStyles({'padding-left': 0, 'border-left': 'none', 'padding-right': 0, 'border-right': 'none'}); - element.fullOpacity = 1; - if (this.options.fixedWidth) element.fullWidth = this.options.fixedWidth; - if (this.options.fixedHeight) element.fullHeight = this.options.fixedHeight; - element.setStyle('overflow', 'hidden'); - if (!test){ - for (var fx in this.effects) element.setStyle(fx, 0); - } - return this; - }, - - /* - Property: display - Shows a specific section and hides all others. Useful when triggering an accordion from outside. - - Arguments: - index - integer, the index of the item to show, or the actual element to show. - */ - - display: function(index){ - index = ($type(index) == 'element') ? this.elements.indexOf(index) : index; - if ((this.timer && this.options.wait) || (index === this.previous && !this.options.alwaysHide)) return this; - this.previous = index; - var obj = {}; - this.elements.each(function(el, i){ - obj[i] = {}; - var hide = (i != index) || (this.options.alwaysHide && (el.offsetHeight > 0)); - this.fireEvent(hide ? 'onBackground' : 'onActive', [this.togglers[i], el]); - for (var fx in this.effects) obj[i][fx] = hide ? 0 : el[this.effects[fx]]; - }, this); - return this.start(obj); - }, - - showThisHideOpen: function(index){return this.display(index);} - -}); - -Fx.Accordion = Accordion; \ No newline at end of file diff --git a/source/web/scripts/ajax/tagger.js b/source/web/scripts/ajax/tagger.js index 12503387d4..26958ad576 100644 --- a/source/web/scripts/ajax/tagger.js +++ b/source/web/scripts/ajax/tagger.js @@ -592,7 +592,7 @@ var AlfTagger = new Class( }.bind(this); // execute ajax service call to retrieve list of child nodes as JSON response - new Ajax(getContextPath() + "/wcs/collaboration/tagActions?a=add&t=" + tagName, + new Ajax(getContextPath() + "/wcs/collaboration/tagActions?a=add&t=" + encodeURIComponent(tagName), { method: 'post', headers: {'If-Modified-Since': 'Sat, 1 Jan 2000 00:00:00 GMT'}, diff --git a/source/web/scripts/ajax/xforms.js b/source/web/scripts/ajax/xforms.js index 4f1ff696f2..1912f86be0 100644 --- a/source/web/scripts/ajax/xforms.js +++ b/source/web/scripts/ajax/xforms.js @@ -1006,7 +1006,21 @@ alfresco.xforms.RichTextEditor = alfresco.xforms.Widget.extend({ img.setAttribute("src", urlToReplace + href); } }); - + //ALF-6807 fix + $each(this.widget.getElementsByTagName("a"), + function(a, index) + { + var href = a.getAttribute("href"); + if (href && href.match("^/")) + { + var urlToReplace = alfresco.constants.AVM_WEBAPP_PREFIX; + if (alfresco.constants.AVM_WEBAPP_CONTEXT == "ROOT") + { + urlToReplace = alfresco.constants.AVM_WEBAPP_URL; + } + a.setAttribute("href", urlToReplace + href); + } + }); if (!this.isReadonly()) { this.domNode.onmouseover = this._div_mouseoverHandler.bindAsEventListener(this); diff --git a/source/web/scripts/tiny_mce/classes/AddOnManager.js b/source/web/scripts/tiny_mce/classes/AddOnManager.js index cf99c101bf..1799860ac8 100644 --- a/source/web/scripts/tiny_mce/classes/AddOnManager.js +++ b/source/web/scripts/tiny_mce/classes/AddOnManager.js @@ -5,26 +5,30 @@ * @copyright Copyright © 2004-2008, Moxiecode Systems AB, All rights reserved. */ -(function() { +(function(tinymce) { var Dispatcher = tinymce.util.Dispatcher, each = tinymce.each; - /**#@+ - * @class This class handles the loading of themes/plugins or other add-ons and their language packs. - * @member tinymce.AddOnManager + /** + * This class handles the loading of themes/plugins or other add-ons and their language packs. + * + * @class tinymce.AddOnManager */ tinymce.create('tinymce.AddOnManager', { items : [], urls : {}, lookup : {}, - onAdd : new Dispatcher(this), - /**#@+ - * @method + /** + * Fires when a item is added. + * + * @event onAdd */ + onAdd : new Dispatcher(this), /** * Returns the specified add on by the short name. * + * @method get * @param {String} n Add-on to look for. * @return {tinymce.Theme/tinymce.Plugin} Theme or plugin add-on instance or undefined. */ @@ -35,6 +39,7 @@ /** * Loads a language pack for the specified add-on. * + * @method requireLangPack * @param {String} n Short name of the add-on. */ requireLangPack : function(n) { @@ -53,6 +58,7 @@ /** * Adds a instance of the add-on by it's short name. * + * @method add * @param {String} id Short name/id for the add-on. * @param {tinymce.Theme/tinymce.Plugin} o Theme or plugin to add. * @return {tinymce.Theme/tinymce.Plugin} The same theme or plugin instance that got passed in. @@ -68,6 +74,7 @@ /** * Loads an add-on from a specific url. * + * @method load * @param {String} n Short name of the add-on that gets loaded. * @param {String} u URL to the add-on that will get loaded. * @param {function} cb Optional callback to execute ones the add-on is loaded. @@ -85,11 +92,21 @@ t.urls[n] = u.substring(0, u.lastIndexOf('/')); tinymce.ScriptLoader.add(u, cb, s); } - - /**#@-*/ }); // Create plugin and theme managers tinymce.PluginManager = new tinymce.AddOnManager(); tinymce.ThemeManager = new tinymce.AddOnManager(); -}()); \ No newline at end of file +}(tinymce)); + +/** + * TinyMCE theme class. + * + * @class tinymce.Theme + */ + +/** + * TinyMCE plugin class. + * + * @class tinymce.Plugin + */ diff --git a/source/web/scripts/tiny_mce/classes/CommandManager.js b/source/web/scripts/tiny_mce/classes/CommandManager.js new file mode 100644 index 0000000000..6355630645 --- /dev/null +++ b/source/web/scripts/tiny_mce/classes/CommandManager.js @@ -0,0 +1,54 @@ +/** + * $Id: ControlManager.js 999 2009-02-10 17:42:58Z spocke $ + * + * @author Moxiecode + * @copyright Copyright © 2004-2008, Moxiecode Systems AB, All rights reserved. + */ + +(function(tinymce) { + tinymce.CommandManager = function() { + var execCommands = {}, queryStateCommands = {}, queryValueCommands = {}; + + function add(collection, cmd, func, scope) { + if (typeof(cmd) == 'string') + cmd = [cmd]; + + tinymce.each(cmd, function(cmd) { + collection[cmd.toLowerCase()] = {func : func, scope : scope}; + }); + }; + + tinymce.extend(this, { + add : function(cmd, func, scope) { + add(execCommands, cmd, func, scope); + }, + + addQueryStateHandler : function(cmd, func, scope) { + add(queryStateCommands, cmd, func, scope); + }, + + addQueryValueHandler : function(cmd, func, scope) { + add(queryValueCommands, cmd, func, scope); + }, + + execCommand : function(scope, cmd, ui, value, args) { + if (cmd = execCommands[cmd.toLowerCase()]) { + if (cmd.func.call(scope || cmd.scope, ui, value, args) !== false) + return true; + } + }, + + queryCommandValue : function() { + if (cmd = queryValueCommands[cmd.toLowerCase()]) + return cmd.func.call(scope || cmd.scope, ui, value, args); + }, + + queryCommandState : function() { + if (cmd = queryStateCommands[cmd.toLowerCase()]) + return cmd.func.call(scope || cmd.scope, ui, value, args); + } + }); + }; + + tinymce.GlobalCommands = new tinymce.CommandManager(); +})(tinymce); \ No newline at end of file diff --git a/source/web/scripts/tiny_mce/classes/ControlManager.js b/source/web/scripts/tiny_mce/classes/ControlManager.js index 8ff85c94a8..f9f8744c62 100644 --- a/source/web/scripts/tiny_mce/classes/ControlManager.js +++ b/source/web/scripts/tiny_mce/classes/ControlManager.js @@ -1,17 +1,17 @@ /** - * $Id: ControlManager.js 920 2008-09-09 14:05:33Z spocke $ + * $Id: ControlManager.js 1190 2009-08-12 17:59:29Z spocke $ * * @author Moxiecode * @copyright Copyright © 2004-2008, Moxiecode Systems AB, All rights reserved. */ -(function() { +(function(tinymce) { // Shorten names var DOM = tinymce.DOM, Event = tinymce.dom.Event, each = tinymce.each, extend = tinymce.extend; - /**#@+ - * @class This class is responsible for managing UI control instances. It's both a factory and a collection for the controls. - * @member tinymce.ControlManager + /** + * This class is responsible for managing UI control instances. It's both a factory and a collection for the controls. + * @class tinymce.ControlManager */ tinymce.create('tinymce.ControlManager', { /** @@ -19,6 +19,7 @@ * Consult the Wiki for more details on this class. * * @constructor + * @method ControlManager * @param {tinymce.Editor} ed TinyMCE editor instance to add the control to. * @param {Object} s Optional settings object for the control manager. */ @@ -40,13 +41,10 @@ }); }, - /**#@+ - * @method - */ - /** * Returns a control by id or undefined it it wasn't found. * + * @method get * @param {String} id Control instance name. * @return {tinymce.ui.Control} Control instance or undefined. */ @@ -57,8 +55,9 @@ /** * Sets the active state of a control by id. * + * @method setActive * @param {String} id Control id to set state on. - * @param {bool} s Active state true/false. + * @param {Boolean} s Active state true/false. * @return {tinymce.ui.Control} Control instance that got activated or null if it wasn't found. */ setActive : function(id, s) { @@ -73,8 +72,9 @@ /** * Sets the dsiabled state of a control by id. * + * @method setDisabled * @param {String} id Control id to set state on. - * @param {bool} s Active state true/false. + * @param {Boolean} s Active state true/false. * @return {tinymce.ui.Control} Control instance that got disabled or null if it wasn't found. */ setDisabled : function(id, s) { @@ -89,6 +89,7 @@ /** * Adds a control to the control collection inside the manager. * + * @method add * @param {tinymce.ui.Control} Control instance to add to collection. * @return {tinymce.ui.Control} Control instance that got passed in. */ @@ -108,6 +109,7 @@ * It first ask all plugins for the specified control if the plugins didn't return a control then the default behavior * will be used. * + * @method createControl * @param {String} n Control name to create for example "separator". * @return {tinymce.ui.Control} Control instance that got created and added. */ @@ -138,6 +140,7 @@ /** * Creates a drop menu control instance by id. * + * @method createDropMenu * @param {String} id Unique id for the new dropdown instance. For example "some menu". * @param {Object} s Optional settings object for the control. * @param {Object} cc Optional control class to use instead of the default one. @@ -177,12 +180,17 @@ // Fix for bug #1897785, #1898007 if (tinymce.isIE) { c.onShowMenu.add(function() { + // IE 8 needs focus in order to store away a range with the current collapsed caret location + ed.focus(); + bm = ed.selection.getBookmark(1); }); c.onHideMenu.add(function() { - if (bm) + if (bm) { ed.selection.moveToBookmark(bm); + bm = 0; + } }); } @@ -193,6 +201,7 @@ * Creates a list box control instance by id. A list box is either a native select element or a DOM/JS based list box control. This * depends on the use_native_selects settings state. * + * @method createListBox * @param {String} id Unique id for the new listbox instance. For example "styles". * @param {Object} s Optional settings object for the control. * @param {Object} cc Optional control class to use instead of the default one. @@ -236,7 +245,7 @@ c.onPostRender.add(function(c, n) { // Store bookmark on mousedown Event.add(n, 'mousedown', function() { - ed.bookmark = ed.selection.getBookmark('simple'); + ed.bookmark = ed.selection.getBookmark(1); }); // Restore on focus, since it might be lost @@ -256,6 +265,7 @@ /** * Creates a button control instance by id. * + * @method createButton * @param {String} id Unique id for the new button instance. For example "bold". * @param {Object} s Optional settings object for the control. * @param {Object} cc Optional control class to use instead of the default one. @@ -302,6 +312,7 @@ /** * Creates a menu button control instance by id. * + * @method createMenuButton * @param {String} id Unique id for the new menu button instance. For example "menu1". * @param {Object} s Optional settings object for the control. * @param {Object} cc Optional control class to use instead of the default one. @@ -317,6 +328,7 @@ /** * Creates a split button control instance by id. * + * @method createSplitButton * @param {String} id Unique id for the new split button instance. For example "spellchecker". * @param {Object} s Optional settings object for the control. * @param {Object} cc Optional control class to use instead of the default one. @@ -361,6 +373,7 @@ /** * Creates a color split button control instance by id. * + * @method createColorSplitButton * @param {String} id Unique id for the new color split button instance. For example "forecolor". * @param {Object} s Optional settings object for the control. * @param {Object} cc Optional control class to use instead of the default one. @@ -377,6 +390,9 @@ if (!s.onclick) { s.onclick = function(v) { + if (tinymce.isIE) + bm = ed.selection.getBookmark(1); + ed.execCommand(s.cmd, s.ui || false, v || s.value); }; } @@ -408,6 +424,8 @@ // Fix for bug #1897785, #1898007 if (tinymce.isIE) { c.onShowMenu.add(function() { + // IE 8 needs focus in order to store away a range with the current collapsed caret location + ed.focus(); bm = ed.selection.getBookmark(1); }); @@ -425,6 +443,7 @@ /** * Creates a toolbar container control instance by id. * + * @method createToolbar * @param {String} id Unique id for the new toolbar container control instance. For example "toolbar1". * @param {Object} s Optional settings object for the control. * @param {Object} cc Optional control class to use instead of the default one. @@ -446,6 +465,7 @@ /** * Creates a separator control instance. * + * @method createSeparator * @param {Object} cc Optional control class to use instead of the default one. * @return {tinymce.ui.Control} Control instance that got created and added. */ @@ -458,6 +478,7 @@ /** * Overrides a specific control type with a custom class. * + * @method setControlType * @param {string} n Name of the control to override for example button or dropmenu. * @param {function} c Class reference to use instead of the default one. * @return {function} Same as the class reference. @@ -465,7 +486,12 @@ setControlType : function(n, c) { return this._cls[n.toLowerCase()] = c; }, - + + /** + * Destroy. + * + * @method destroy + */ destroy : function() { each(this.controls, function(c) { c.destroy(); @@ -473,7 +499,5 @@ this.controls = null; } - - /**#@-*/ }); -})(); +})(tinymce); diff --git a/source/web/scripts/tiny_mce/classes/Editor.js b/source/web/scripts/tiny_mce/classes/Editor.js index 605b05b8e6..91304c0e01 100644 --- a/source/web/scripts/tiny_mce/classes/Editor.js +++ b/source/web/scripts/tiny_mce/classes/Editor.js @@ -1,80 +1,391 @@ /** - * $Id: Editor.js 965 2008-11-27 17:23:31Z spocke $ + * $Id: Editor.js 1228 2009-09-17 15:58:45Z spocke $ * * @author Moxiecode * @copyright Copyright © 2004-2008, Moxiecode Systems AB, All rights reserved. */ -(function() { +(function(tinymce) { var DOM = tinymce.DOM, Event = tinymce.dom.Event, extend = tinymce.extend, Dispatcher = tinymce.util.Dispatcher; var each = tinymce.each, isGecko = tinymce.isGecko, isIE = tinymce.isIE, isWebKit = tinymce.isWebKit; var is = tinymce.is, ThemeManager = tinymce.ThemeManager, PluginManager = tinymce.PluginManager, EditorManager = tinymce.EditorManager; var inArray = tinymce.inArray, grep = tinymce.grep, explode = tinymce.explode; - /**#@+ - * @class This class contains the core logic for a TinyMCE editor. - * @member tinymce.Editor + /** + * This class contains the core logic for a TinyMCE editor. + * + * @class tinymce.Editor + * @author Moxiecode + * @example + * // Add a class to all paragraphs in the editor. + * tinyMCE.activeEditor.dom.addClass(tinyMCE.activeEditor.dom.select('p'), 'someclass'); + * + * // Gets the current editors selection as text + * tinyMCE.activeEditor.selection.getContent({format : 'text'}); + * + * // Creates a new editor instance + * var ed = new tinymce.Editor('textareaid', { + * some_setting : 1 + * }); + * + * // Select each item the user clicks on + * ed.onClick.add(function(ed, e) { + * ed.selection.select(e.target); + * }); + * + * ed.render(); */ tinymce.create('tinymce.Editor', { /** * Constructs a editor instance by id. * * @constructor - * @member tinymce.Editor + * @method Editor * @param {String} id Unique id for the editor. * @param {Object} s Optional settings string for the editor. + * @author Moxiecode */ Editor : function(id, s) { var t = this; + /** + * Editor instance id, normally the same as the div/textarea that was replaced. + * + * @property id + * @type String + */ t.id = t.editorId = id; + t.execCommands = {}; t.queryStateCommands = {}; t.queryValueCommands = {}; + + /** + * State to force the editor to return false on a isDirty call. + * + * @property isNotDirty + * @type Boolean + */ + t.isNotDirty = false; + + /** + * Name/Value object containting plugin instances. + * + * @property plugins + * @type Object + */ t.plugins = {}; // Add events to the editor each([ + /** + * Fires before the initialization of the editor. + * + * @event onPreInit + * @param {tinymce.Editor} sender Editor instance. + * @see #onInit + */ 'onPreInit', + + /** + * Fires before the initialization of the editor. + * + * @event onBeforeRenderUI + * @param {tinymce.Editor} sender Editor instance. + */ 'onBeforeRenderUI', + + /** + * Fires after the rendering has completed. + * + * @event onPostRender + * @param {tinymce.Editor} sender Editor instance. + */ 'onPostRender', + + /** + * Fires after the initialization of the editor is done. + * + * @event onInit + * @param {tinymce.Editor} sender Editor instance. + * @see #onPreInit + */ 'onInit', + + /** + * Fires when the editor instance is removed from page. + * + * @event onRemove + * @param {tinymce.Editor} sender Editor instance. + */ 'onRemove', + + /** + * Fires when the editor is activated. + * + * @event onActivate + * @param {tinymce.Editor} sender Editor instance. + */ 'onActivate', + + /** + * Fires when the editor is deactivated. + * + * @event onDeactivate + * @param {tinymce.Editor} sender Editor instance. + */ 'onDeactivate', + + /** + * Fires when something in the body of the editor is clicked. + * + * @event onClick + * @param {tinymce.Editor} sender Editor instance. + * @param {Event} evt W3C DOM Event instance. + */ 'onClick', + + /** + * Fires when a registered event is intercepted. + * + * @event onEvent + * @param {tinymce.Editor} sender Editor instance. + * @param {Event} evt W3C DOM Event instance. + */ 'onEvent', + + /** + * Fires when a mouseup event is intercepted inside the editor. + * + * @event onMouseUp + * @param {tinymce.Editor} sender Editor instance. + * @param {Event} evt W3C DOM Event instance. + */ 'onMouseUp', + + /** + * Fires when a mousedown event is intercepted inside the editor. + * + * @event onMouseDown + * @param {tinymce.Editor} sender Editor instance. + * @param {Event} evt W3C DOM Event instance. + */ 'onMouseDown', + + /** + * Fires when a dblclick event is intercepted inside the editor. + * + * @event onDblClick + * @param {tinymce.Editor} sender Editor instance. + * @param {Event} evt W3C DOM Event instance. + */ 'onDblClick', + + /** + * Fires when a keydown event is intercepted inside the editor. + * + * @event onKeyDown + * @param {tinymce.Editor} sender Editor instance. + * @param {Event} evt W3C DOM Event instance. + */ 'onKeyDown', + + /** + * Fires when a keydown event is intercepted inside the editor. + * + * @event onKeyUp + * @param {tinymce.Editor} sender Editor instance. + * @param {Event} evt W3C DOM Event instance. + */ 'onKeyUp', + + /** + * Fires when a keypress event is intercepted inside the editor. + * + * @event onKeyPress + * @param {tinymce.Editor} sender Editor instance. + * @param {Event} evt W3C DOM Event instance. + */ 'onKeyPress', + + /** + * Fires when a contextmenu event is intercepted inside the editor. + * + * @event onContextMenu + * @param {tinymce.Editor} sender Editor instance. + * @param {Event} evt W3C DOM Event instance. + */ 'onContextMenu', + + /** + * Fires when a form submit event is intercepted. + * + * @event onSubmit + * @param {tinymce.Editor} sender Editor instance. + * @param {Event} evt W3C DOM Event instance. + */ 'onSubmit', + + /** + * Fires when a form reset event is intercepted. + * + * @event onReset + * @param {tinymce.Editor} sender Editor instance. + * @param {Event} evt W3C DOM Event instance. + */ 'onReset', + + /** + * Fires when a paste event is intercepted inside the editor. + * + * @event onPaste + * @param {tinymce.Editor} sender Editor instance. + * @param {Event} evt W3C DOM Event instance. + */ 'onPaste', + + /** + * Fires when the Serializer does a preProcess on the contents. + * + * @event onPreProcess + * @param {tinymce.Editor} sender Editor instance. + * @param {Object} obj PreProcess object. + */ 'onPreProcess', + + /** + * Fires when the Serializer does a postProcess on the contents. + * + * @event onPostProcess + * @param {tinymce.Editor} sender Editor instance. + * @param {Object} obj PreProcess object. + */ 'onPostProcess', + + /** + * Fires before new contents is added to the editor. Using for example setContent. + * + * @event onBeforeSetContent + * @param {tinymce.Editor} sender Editor instance. + */ 'onBeforeSetContent', + + /** + * Fires before contents is extracted from the editor using for example getContent. + * + * @event onBeforeGetContent + * @param {tinymce.Editor} sender Editor instance. + * @param {Event} evt W3C DOM Event instance. + */ 'onBeforeGetContent', + + /** + * Fires after the contents has been added to the editor using for example onSetContent. + * + * @event onSetContent + * @param {tinymce.Editor} sender Editor instance. + */ 'onSetContent', + + /** + * Fires after the contents has been extracted from the editor using for example getContent. + * + * @event onGetContent + * @param {tinymce.Editor} sender Editor instance. + */ 'onGetContent', + + /** + * Fires when the editor gets loaded with contents for example when the load method is executed. + * + * @event onLoadContent + * @param {tinymce.Editor} sender Editor instance. + */ 'onLoadContent', + + /** + * Fires when the editor contents gets saved for example when the save method is executed. + * + * @event onSaveContent + * @param {tinymce.Editor} sender Editor instance. + */ 'onSaveContent', + + /** + * Fires when the user changes node location using the mouse or keyboard. + * + * @event onNodeChange + * @param {tinymce.Editor} sender Editor instance. + */ 'onNodeChange', + + /** + * Fires when a new undo level is added to the editor. + * + * @event onChange + * @param {tinymce.Editor} sender Editor instance. + */ 'onChange', + + /** + * Fires before a command gets executed for example "Bold". + * + * @event onBeforeExecCommand + * @param {tinymce.Editor} sender Editor instance. + */ 'onBeforeExecCommand', + + /** + * Fires after a command is executed for example "Bold". + * + * @event onExecCommand + * @param {tinymce.Editor} sender Editor instance. + */ 'onExecCommand', + + /** + * Fires when the contents is undo:ed. + * + * @event onUndo + * @param {tinymce.Editor} sender Editor instance. + * @param {Event} evt W3C DOM Event instance. + */ 'onUndo', + + /** + * Fires when the contents is redo:ed. + * + * @event onRedo + * @param {tinymce.Editor} sender Editor instance. + * @param {Event} evt W3C DOM Event instance. + */ 'onRedo', + + /** + * Fires when visual aids is enabled/disabled. + * + * @event onVisualAid + * @param {tinymce.Editor} sender Editor instance. + */ 'onVisualAid', + + /** + * Fires when the progress throbber is shown above the editor. + * + * @event onSetProgressState + * @param {tinymce.Editor} sender Editor instance. + */ 'onSetProgressState' ], function(e) { t[e] = new Dispatcher(t); }); - // Default editor config + /** + * Name/value collection with editor settings. + * + * @property settings + * @type Object + */ t.settings = s = extend({ id : id, language : 'en', @@ -109,32 +420,44 @@ apply_source_formatting : 1, directionality : 'ltr', forced_root_block : 'p', - valid_elements : '@[id|class|style|title|dir'; + t.iframeHTML = s.doctype + ''; + + // We only need to override paths if we have to + // IE has a bug where it remove site absolute urls to relative ones if this is specified + if (s.document_base_url != tinymce.documentBaseURL) + t.iframeHTML += ''; + t.iframeHTML += ''; if (tinymce.relaxedDomain) @@ -449,22 +788,18 @@ DOM.get(o.editorContainer).style.display = t.orgDisplay; DOM.get(t.id).style.display = 'none'; - // Safari 2.x requires us to wait for the load event and load a real HTML doc - if (tinymce.isOldWebKit) { - Event.add(n, 'load', t.setupIframe, t); - n.src = tinymce.baseURL + '/plugins/safari/blank.htm'; - } else { - if (!isIE || !tinymce.relaxedDomain) - t.setupIframe(); + if (!isIE || !tinymce.relaxedDomain) + t.setupIframe(); - e = n = o = null; // Cleanup - } + e = n = o = null; // Cleanup }, /** * This method get called by the init method ones the iframe is loaded. * It will fill the iframe with contents, setups DOM and selection objects for the iframe. * This method should not be called directly. + * + * @method setupIframe */ setupIframe : function() { var t = this, s = t.settings, e = DOM.get(t.id), d = t.getDoc(), h, b; @@ -499,8 +834,13 @@ DOM.show(b); } - // Setup objects - t.dom = new tinymce.DOM.DOMUtils(t.getDoc(), { + /** + * DOM instance for the editor. + * + * @property dom + * @type tinymce.dom.DOMUtils + */ + t.dom = new tinymce.dom.DOMUtils(t.getDoc(), { keep_values : true, url_converter : t.convertURL, url_converter_scope : t, @@ -510,26 +850,25 @@ fix_ie_paragraphs : 1 }); - t.serializer = new tinymce.dom.Serializer({ - entity_encoding : s.entity_encoding, - entities : s.entities, + /** + * DOM serializer for the editor. + * + * @property serializer + * @type tinymce.dom.Serializer + */ + t.serializer = new tinymce.dom.Serializer(extend(s, { valid_elements : s.verify_html === false ? '*[*]' : s.valid_elements, - extended_valid_elements : s.extended_valid_elements, - valid_child_elements : s.valid_child_elements, - invalid_elements : s.invalid_elements, - fix_table_elements : s.fix_table_elements, - fix_list_elements : s.fix_list_elements, - fix_content_duplication : s.fix_content_duplication, - convert_fonts_to_spans : s.convert_fonts_to_spans, - font_size_classes : s.font_size_classes, - font_size_style_values : s.font_size_style_values, - apply_source_formatting : s.apply_source_formatting, - remove_linebreaks : s.remove_linebreaks, - element_format : s.element_format, dom : t.dom - }); + })); + /** + * Selection instance for the editor. + * + * @property selection + * @type tinymce.dom.Selection + */ t.selection = new tinymce.dom.Selection(t.dom, t.getWin(), t.serializer); + t.forceBlocks = new tinymce.ForceBlocks(t, { forced_root_block : s.forced_root_block }); @@ -561,9 +900,6 @@ if (s.nowrap) t.getBody().style.whiteSpace = "nowrap"; - if (s.auto_resize) - t.onNodeChange.add(t.resizeToContent, t); - if (s.custom_elements) { function handleCustom(ed, o) { each(explode(s.custom_elements), function(v) { @@ -583,7 +919,7 @@ t.onBeforeSetContent.add(handleCustom); t.onPostProcess.add(function(ed, o) { if (o.set) - handleCustom(ed, o) + handleCustom(ed, o); }); } @@ -700,12 +1036,9 @@ }); } + // Add visual aids when new contents is added t.onSetContent.add(function() { - // Safari needs some time, it will crash the browser when a link is created otherwise - // I think this crash issue is resolved in the latest 3.0.4 - //window.setTimeout(function() { - t.addVisual(t.getBody()); - //}, 1); + t.addVisual(t.getBody()); }); // Remove empty contents @@ -715,15 +1048,35 @@ }); } - if (isGecko && !s.readonly) { - try { - // Design mode must be set here once again to fix a bug where - // Ctrl+A/Delete/Backspace didn't work if the editor was added using mceAddControl then removed then added again - d.designMode = 'Off'; - d.designMode = 'On'; - } catch (ex) { - // Will fail on Gecko if the editor is placed in an hidden container element - // The design mode will be set ones the editor is focused + if (isGecko) { + // Fix gecko link bug, when a link is placed at the end of block elements there is + // no way to move the caret behind the link. This fix adds a bogus br element after the link + function fixLinks(ed, o) { + each(ed.dom.select('a'), function(n) { + var pn = n.parentNode; + + if (ed.dom.isBlock(pn) && pn.lastChild === n) + ed.dom.add(pn, 'br', {'mce_bogus' : 1}); + }); + }; + + t.onExecCommand.add(function(ed, cmd) { + if (cmd === 'CreateLink') + fixLinks(ed); + }); + + t.onSetContent.add(t.selection.onSetContent.add(fixLinks)); + + if (!s.readonly) { + try { + // Design mode must be set here once again to fix a bug where + // Ctrl+A/Delete/Backspace didn't work if the editor was added using mceAddControl then removed then added again + d.designMode = 'Off'; + d.designMode = 'On'; + } catch (ex) { + // Will fail on Gecko if the editor is placed in an hidden container element + // The design mode will be set ones the editor is focused + } } } @@ -765,10 +1118,12 @@ e = null; }, - // #if contentEditable + // #ifdef contentEditable /** * Sets up the contentEditable mode. + * + * @method setupContentEditable */ setupContentEditable : function() { var t = this, s = t.settings, e = t.getElement(); @@ -781,14 +1136,14 @@ s.content_document = s.content_window = null; DOM.hide(e); - e.contentEditable = true; + e.contentEditable = t.getParam('content_editable_state', true); DOM.show(e); if (!s.gecko_spellcheck) t.getDoc().body.spellcheck = 0; // Setup objects - t.dom = new tinymce.DOM.DOMUtils(t.getDoc(), { + t.dom = new tinymce.dom.DOMUtils(t.getDoc(), { keep_values : true, url_converter : t.convertURL, url_converter_scope : t, @@ -848,7 +1203,7 @@ t.addVisual(t.getBody()); }); - t.load({initial : true, format : (s.cleanup_on_startup ? 'html' : 'raw')}); + //t.load({initial : true, format : (s.cleanup_on_startup ? 'html' : 'raw')}); t.startContent = t.getContent({format : 'raw'}); t.undoManager.add({initial : true}); t.initialized = true; @@ -865,6 +1220,11 @@ } if (isIE) { + // Store away selection + t.dom.bind(t.getElement(), 'beforedeactivate', function() { + t.lastSelectionBookmark = t.selection.getBookmark(1); + }); + t.onBeforeExecCommand.add(function(ed, cmd, ui, val, o) { if (!DOM.getParent(ed.selection.getStart(), function(n) {return n == ed.getBody();})) o.terminate = 1; @@ -883,7 +1243,8 @@ * Focuses/activates the editor. This will set this editor as the activeEditor in the EditorManager * it will also place DOM focus inside the editor. * - * @param {bool} sf Skip DOM focus. Just set is as the active editor. + * @method focus + * @param {Boolean} sf Skip DOM focus. Just set is as the active editor. */ focus : function(sf) { var oed, t = this, ce = t.settings.content_editable; @@ -895,11 +1256,19 @@ if (!ce && (!isIE || t.selection.getNode().ownerDocument != t.getDoc())) t.getWin().focus(); - // #if contentEditable + // #ifdef contentEditable // Content editable mode ends here - if (tinymce.isIE && ce) - t.getElement().focus(); + if (ce) { + if (tinymce.isWebKit) + t.getWin().focus(); + else { + if (tinymce.isIE) + t.getElement().setActive(); + else + t.getElement().focus(); + } + } // #endif } @@ -918,6 +1287,7 @@ * Executes a legacy callback. This method is useful to call old 2.x option callbacks. * There new event model is a better way to add callback so this method might be removed in the future. * + * @method execCallback * @param {String} n Name of the callback to execute. * @return {Object} Return value passed from callback function. */ @@ -948,6 +1318,7 @@ * Translates the specified string by replacing variables with language pack items it will also check if there is * a key mathcin the input. * + * @method translate * @param {String} s String to translate by the language pack data. * @return {String} Translated string. */ @@ -965,6 +1336,7 @@ /** * Returns a language pack item by name/key. * + * @method getLang * @param {String} n Name/key to get from the language pack. * @param {String} dv Optional default value to retrive. */ @@ -975,6 +1347,7 @@ /** * Returns a configuration parameter by name. * + * @method getParam * @param {String} n Configruation parameter to retrive. * @param {String} dv Optional default value to return. * @param {String} ty Optional type parameter. @@ -1008,6 +1381,7 @@ * Distpaches out a onNodeChange event to all observers. This method should be called when you * need to update the UI states or element path etc. * + * @method nodeChanged * @param {Object} o Optional object to pass along for the node changed event. */ nodeChanged : function(o) { @@ -1030,6 +1404,7 @@ * of adding buttons without the need to deal with the ControlManager directly. But it's also less * powerfull if you need more control use the ControlManagers factory methods instead. * + * @method addButton * @param {String} n Button name to add. * @param {Object} s Settings object with title, cmd etc. */ @@ -1044,6 +1419,7 @@ * Adds a custom command to the editor, you can also override existing commands with this method. * The command that you add can be executed with execCommand. * + * @method addCommand * @param {String} n Command name to add/override. * @param {function} f Function to execute when the command occurs. * @param {Object} s Optional scope to execute the function in. @@ -1056,6 +1432,7 @@ * Adds a custom query state command to the editor, you can also override existing commands with this method. * The command that you add can be executed with queryCommandState function. * + * @method addQueryStateHandler * @param {String} n Command name to add/override. * @param {function} f Function to execute when the command state retrival occurs. * @param {Object} s Optional scope to execute the function in. @@ -1068,6 +1445,7 @@ * Adds a custom query value command to the editor, you can also override existing commands with this method. * The command that you add can be executed with queryCommandValue function. * + * @method addQueryValueHandler * @param {String} n Command name to add/override. * @param {function} f Function to execute when the command value retrival occurs. * @param {Object} s Optional scope to execute the function in. @@ -1079,11 +1457,12 @@ /** * Adds a keyboard shortcut for some command or function. * + * @method addShortcut * @param {String} pa Shortcut pattern. Like for example: ctrl+alt+o. * @param {String} desc Text description for the command. * @param {String/Function} cmd_func Command name string or function to execute when the key is pressed. * @param {Object} sc Optional scope to execute the function in. - * @return {bool} true/false state if the shortcut was added or not. + * @return {Boolean} true/false state if the shortcut was added or not. */ addShortcut : function(pa, desc, cmd_func, sc) { var t = this, c; @@ -1145,11 +1524,12 @@ * This function will dispatch the execCommand function on each plugin, theme or the execcommand_callback option if none of these * return true it will handle the command as a internal browser command. * + * @method execCommand * @param {String} cmd Command name to execute, for example mceLink or Bold. - * @param {bool} ui True/false state if a UI (dialog) should be presented or not. + * @param {Boolean} ui True/false state if a UI (dialog) should be presented or not. * @param {mixed} val Optional command value, this can be anything. * @param {Object} a Optional arguments object. - * @return {bool} True/false if the command was executed or not. + * @return {Boolean} True/false if the command was executed or not. */ execCommand : function(cmd, ui, val, a) { var t = this, s = 0, o, st; @@ -1192,7 +1572,13 @@ return true; // Theme commands - if (t.theme.execCommand && t.theme.execCommand(cmd, ui, val)) { + if (t.theme && t.theme.execCommand && t.theme.execCommand(cmd, ui, val)) { + t.onExecCommand.dispatch(t, cmd, ui, val, a); + return true; + } + + // Execute global commands + if (tinymce.GlobalCommands.execCommand(t, cmd, ui, val)) { t.onExecCommand.dispatch(t, cmd, ui, val, a); return true; } @@ -1211,8 +1597,9 @@ /** * Returns a command specific state, for example if bold is enabled or not. * + * @method queryCommandState * @param {string} c Command to query state from. - * @return {bool} Command specific state, for example if bold is enabled or not. + * @return {Boolean} Command specific state, for example if bold is enabled or not. */ queryCommandState : function(c) { var t = this, o, s; @@ -1246,6 +1633,7 @@ /** * Returns a command specific value, for example the current font size. * + * @method queryCommandValue * @param {string} c Command to query value from. * @return {Object} Command specific value, for example the current font size. */ @@ -1280,6 +1668,8 @@ /** * Shows the editor and hides any textarea/div that the editor is supposed to replace. + * + * @method show */ show : function() { var t = this; @@ -1291,6 +1681,8 @@ /** * Hides the editor and shows any textarea/div that the editor is supposed to replace. + * + * @method hide */ hide : function() { var t = this, d = t.getDoc(); @@ -1308,7 +1700,8 @@ /** * Returns true/false if the editor is hidden or not. * - * @return {bool} True/false if the editor is hidden or not. + * @method isHidden + * @return {Boolean} True/false if the editor is hidden or not. */ isHidden : function() { return !DOM.isHidden(this.id); @@ -1318,10 +1711,11 @@ * Sets the progress state, this will display a throbber/progess for the editor. * This is ideal for asycronous operations like an AJAX save call. * - * @param {bool} b Boolean state if the progress should be shown or hidden. + * @method setProgressState + * @param {Boolean} b Boolean state if the progress should be shown or hidden. * @param {Number} ti Optional time to wait before the progress gets shown. * @param {Object} o Optional object to pass to the progress observers. - * @return {bool} Same as the input state. + * @return {Boolean} Same as the input state. */ setProgressState : function(b, ti, o) { this.onSetProgressState.dispatch(this, b, ti, o); @@ -1329,20 +1723,12 @@ return b; }, - /** - * Resizes the editor to the current contents width and height. - */ - resizeToContent : function() { - var t = this; - - DOM.setStyle(t.id + "_ifr", 'height', t.getBody().scrollHeight); - }, - /** * Loads contents from the textarea or div element that got converted into an editor instance. * This method will move the contents from that textarea or div into the editor by using setContent * so all events etc that method has will get dispatched as well. * + * @method load * @param {Object} o Optional content object, this gets passed around through the whole load process. * @return {String} HTML string that got set into the editor. */ @@ -1353,6 +1739,7 @@ o = o || {}; o.load = true; + // Double encode existing entities in the value h = t.setContent(is(e.value) ? e.value : e.innerHTML, o); o.element = e; @@ -1370,6 +1757,7 @@ * This method will move the HTML contents from the editor into that textarea or div by getContent * so all events etc that method has will get dispatched as well. * + * @method save * @param {Object} o Optional content object, this gets passed around through the whole save process. * @return {String} HTML string that got set into the textarea/div. */ @@ -1420,6 +1808,7 @@ * Sets the specified content to the editor instance, this will cleanup the content before it gets set using * the different cleanup rules options. * + * @method setContent * @param {String} h Content to set to editor, normally HTML contents but can be other formats as well. * @param {Object} o Optional content object, this gets passed around through the whole set process. * @return {String} HTML string that got set into the editor. @@ -1459,6 +1848,7 @@ * Gets the content from the editor instance, this will cleanup the content before it gets returned using * the different cleanup rules options. * + * @method getContent * @param {Object} o Optional content object, this gets passed around through the whole get process. * @return {String} Cleaned content string, normally HTML contents. */ @@ -1490,7 +1880,8 @@ /** * Returns true/false if the editor is dirty or not. It will get dirty if the user has made modifications to the contents. * - * @return {bool} True/false if the editor is dirty or not. It will get dirty if the user has made modifications to the contents. + * @method isDirty + * @return {Boolean} True/false if the editor is dirty or not. It will get dirty if the user has made modifications to the contents. */ isDirty : function() { var t = this; @@ -1502,6 +1893,7 @@ * Returns the editors container element. The container element wrappes in * all the elements added to the page for the editor. Such as UI, iframe etc. * + * @method getContainer * @return {Element} HTML DOM element for the editor container. */ getContainer : function() { @@ -1517,6 +1909,7 @@ * Returns the editors content area container element. The this element is the one who * holds the iframe or the editable element. * + * @method getContentAreaContainer * @return {Element} HTML DOM element for the editor area container. */ getContentAreaContainer : function() { @@ -1526,6 +1919,7 @@ /** * Returns the target element/textarea that got replaced with a TinyMCE editor instance. * + * @method getElement * @return {Element} HTML DOM element for the replaced element. */ getElement : function() { @@ -1535,6 +1929,7 @@ /** * Returns the iframes window object. * + * @method getWin * @return {Window} Iframe DOM window object. */ getWin : function() { @@ -1553,6 +1948,7 @@ /** * Returns the iframes document object. * + * @method getDoc * @return {Document} Iframe DOM document object. */ getDoc : function() { @@ -1571,6 +1967,7 @@ /** * Returns the iframes body element. * + * @method getBody * @return {Element} Iframe body element. */ getBody : function() { @@ -1582,6 +1979,7 @@ * any other element that has a URL in it. This will be called both by the DOM and HTML * manipulation functions. * + * @method convertURL * @param {string} u URL to convert. * @param {string} n Attribute name src, href etc. * @param {string/HTMLElement} Tag name or HTML DOM element depending on HTML or DOM insert. @@ -1611,6 +2009,7 @@ /** * Adds visual aid for tables, anchors etc so they can be more easily edited inside the editor. * + * @method addVisual * @param {Element} e Optional root element to loop though to find tables etc that needs the visual aid. */ addVisual : function(e) { @@ -1656,6 +2055,8 @@ /** * Removes the editor from the dom and EditorManager collection. + * + * @method remove */ remove : function() { var t = this, e = t.getContainer(); @@ -1678,7 +2079,8 @@ * that could leak memory. This method will be called automatically when the page is unloaded * but you can also call it directly if you know what you are doing. * - * @param {bool} s Optional state if the destroy is an automatic destroy or user called one. + * @method destroy + * @param {Boolean} s Optional state if the destroy is an automatic destroy or user called one. */ destroy : function(s) { var t = this; @@ -1692,7 +2094,7 @@ tinyMCE.onBeforeUnload.remove(t._beforeUnload); // Manual destroy - if (t.theme.destroy) + if (t.theme && t.theme.destroy) t.theme.destroy(); // Destroy controls, selection and dom @@ -1764,55 +2166,37 @@ case 'contextmenu': if (tinymce.isOpera) { // Fake contextmenu on Opera - Event.add(t.getBody(), 'mousedown', function(e) { + t.dom.bind(t.getBody(), 'mousedown', function(e) { if (e.ctrlKey) { e.fakeType = 'contextmenu'; eventHandler(e); } }); } else - Event.add(t.getBody(), k, eventHandler); + t.dom.bind(t.getBody(), k, eventHandler); break; case 'paste': - Event.add(t.getBody(), k, function(e) { - var tx, h, el, r; - - // Get plain text data - if (e.clipboardData) - tx = e.clipboardData.getData('text/plain'); - else if (tinymce.isIE) - tx = t.getWin().clipboardData.getData('Text'); - - // Get HTML data - /*if (tinymce.isIE) { - el = DOM.add(DOM.doc.body, 'div', {style : 'visibility:hidden;overflow:hidden;position:absolute;width:1px;height:1px'}); - r = DOM.doc.body.createTextRange(); - r.moveToElementText(el); - r.execCommand('Paste'); - h = el.innerHTML; - DOM.remove(el); - }*/ - - eventHandler(e, {text : tx, html : h}); + t.dom.bind(t.getBody(), k, function(e) { + eventHandler(e); }); break; case 'submit': case 'reset': - Event.add(t.getElement().form || DOM.getParent(t.id, 'form'), k, eventHandler); + t.dom.bind(t.getElement().form || DOM.getParent(t.id, 'form'), k, eventHandler); break; default: - Event.add(s.content_editable ? t.getBody() : t.getDoc(), k, eventHandler); + t.dom.bind(s.content_editable ? t.getBody() : t.getDoc(), k, eventHandler); } }); - Event.add(s.content_editable ? t.getBody() : (isGecko ? t.getDoc() : t.getWin()), 'focus', function(e) { + t.dom.bind(s.content_editable ? t.getBody() : (isGecko ? t.getDoc() : t.getWin()), 'focus', function(e) { t.focus(true); }); - // #if contentEditable + // #ifdef contentEditable if (s.content_editable && tinymce.isOpera) { // Opera doesn't support focus event for contentEditable elements so we need to fake it @@ -1820,8 +2204,8 @@ t.focus(true); }; - Event.add(t.getBody(), 'click', doFocus); - Event.add(t.getBody(), 'keydown', doFocus); + t.dom.bind(t.getBody(), 'click', doFocus); + t.dom.bind(t.getBody(), 'keydown', doFocus); } // #endif @@ -1839,7 +2223,7 @@ }) });*/ - Event.add(t.getDoc(), 'DOMNodeInserted', function(e) { + t.dom.bind(t.getDoc(), 'DOMNodeInserted', function(e) { var v; e = e.target; @@ -1900,84 +2284,6 @@ t.setContent(t.startContent, {format : 'raw'}); }); - if (t.getParam('tab_focus')) { - function tabCancel(ed, e) { - if (e.keyCode === 9) - return Event.cancel(e); - }; - - function tabHandler(ed, e) { - var x, i, f, el, v; - - function find(d) { - f = DOM.getParent(ed.id, 'form'); - el = f.elements; - - if (f) { - each(el, function(e, i) { - if (e.id == ed.id) { - x = i; - return false; - } - }); - - if (d > 0) { - for (i = x + 1; i < el.length; i++) { - if (el[i].type != 'hidden') - return el[i]; - } - } else { - for (i = x - 1; i >= 0; i--) { - if (el[i].type != 'hidden') - return el[i]; - } - } - } - - return null; - }; - - if (e.keyCode === 9) { - v = explode(ed.getParam('tab_focus')); - - if (v.length == 1) { - v[1] = v[0]; - v[0] = ':prev'; - } - - // Find element to focus - if (e.shiftKey) { - if (v[0] == ':prev') - el = find(-1); - else - el = DOM.get(v[0]); - } else { - if (v[1] == ':next') - el = find(1); - else - el = DOM.get(v[1]); - } - - if (el) { - if (ed = EditorManager.get(el.id || el.name)) - ed.focus(); - else - window.setTimeout(function() {window.focus();el.focus();}, 10); - - return Event.cancel(e); - } - } - }; - - t.onKeyUp.add(tabCancel); - - if (isGecko) { - t.onKeyPress.add(tabHandler); - t.onKeyDown.add(tabCancel); - } else - t.onKeyDown.add(tabHandler); - } - // Add shortcuts if (s.custom_shortcuts) { if (s.custom_undo_redo_keyboard_shortcuts) { @@ -2054,7 +2360,7 @@ if (tinymce.isIE) { // Fix so resize will only update the width and height attributes not the styles of an image // It will also block mceItemNoResize items - Event.add(t.getDoc(), 'controlselect', function(e) { + t.dom.bind(t.getDoc(), 'controlselect', function(e) { var re = t.resizeInfo, cb; e = e.target; @@ -2064,11 +2370,11 @@ return; if (re) - Event.remove(re.node, re.ev, re.cb); + t.dom.unbind(re.node, re.ev, re.cb); if (!t.dom.hasClass(e, 'mceItemNoResize')) { ev = 'resizeend'; - cb = Event.add(e, ev, function(e) { + cb = t.dom.bind(e, ev, function(e) { var v; e = e.target; @@ -2085,7 +2391,7 @@ }); } else { ev = 'resizestart'; - cb = Event.add(e, 'resizestart', Event.cancel, Event); + cb = t.dom.bind(e, 'resizestart', Event.cancel, Event); } re = t.resizeInfo = { @@ -2105,6 +2411,16 @@ } } }); + + /*if (t.dom.boxModel) { + t.getBody().style.height = '100%'; + + Event.add(t.getWin(), 'resize', function(e) { + var docElm = t.getDoc().documentElement; + + docElm.style.height = (docElm.offsetHeight - 10) + 'px'; + }); + }*/ } if (tinymce.isOpera) { @@ -2122,7 +2438,7 @@ // Add undo level on editor blur if (tinymce.isIE) { - Event.add(t.getWin(), 'blur', function(e) { + t.dom.bind(t.getWin(), 'blur', function(e) { var n; // Check added for fullscreen bug @@ -2135,7 +2451,7 @@ } }); } else { - Event.add(t.getDoc(), 'blur', function() { + t.dom.bind(t.getDoc(), 'blur', function() { if (t.selection && !t.removed) addUndo(); }); @@ -2358,7 +2674,5 @@ return s; } - - /**#@-*/ }); -})(); +})(tinymce); diff --git a/source/web/scripts/tiny_mce/classes/EditorCommands.js b/source/web/scripts/tiny_mce/classes/EditorCommands.js index 78ff1bdbfe..d9997dcec3 100644 --- a/source/web/scripts/tiny_mce/classes/EditorCommands.js +++ b/source/web/scripts/tiny_mce/classes/EditorCommands.js @@ -1,17 +1,13 @@ /** - * $Id: EditorCommands.js 958 2008-11-05 13:13:58Z spocke $ + * $Id: EditorCommands.js 1070 2009-04-01 18:03:06Z spocke $ * * @author Moxiecode * @copyright Copyright © 2004-2008, Moxiecode Systems AB, All rights reserved. */ -(function() { +(function(tinymce) { var each = tinymce.each, isIE = tinymce.isIE, isGecko = tinymce.isGecko, isOpera = tinymce.isOpera, isWebKit = tinymce.isWebKit; - function isBlock(n) { - return /^(H[1-6]|HR|P|DIV|ADDRESS|PRE|FORM|TABLE|OL|UL|TD|CAPTION|BLOCKQUOTE|CENTER|DL|DT|DD|DIR|FIELDSET|NOSCRIPT|NOFRAMES|MENU|ISINDEX|SAMP)$/.test(n.nodeName); - }; - /** * This is a internal class and no method in this class should be called directly form the out side. */ @@ -24,23 +20,6 @@ var t = this, ed = t.editor, f; switch (cmd) { - case 'Cut': - case 'Copy': - case 'Paste': - try { - ed.getDoc().execCommand(cmd, ui, val); - } catch (ex) { - if (isGecko) { - ed.windowManager.confirm(ed.getLang('clipboard_msg'), function(s) { - if (s) - window.open('http://www.mozilla.org/editor/midasdemo/securityprefs.html', 'mceExternal'); - }); - } else - ed.windowManager.alert(ed.getLang('clipboard_no_support')); - } - - return true; - // Ignore these case 'mceResetDesignMode': case 'mceBeginUndoLevel': @@ -59,11 +38,6 @@ t.mceJustify(cmd, cmd.substring(7).toLowerCase()); return true; - case 'mceEndUndoLevel': - case 'mceAddUndoLevel': - ed.undoManager.add(); - return true; - default: f = this[cmd]; @@ -85,7 +59,7 @@ iv = parseInt(iv); if (ed.settings.inline_styles && (!this.queryStateInsertUnorderedList() && !this.queryStateInsertOrderedList())) { - each(this._getSelectedBlocks(), function(e) { + each(s.getSelectedBlocks(), function(e) { d.setStyle(e, 'paddingLeft', (parseInt(e.style.paddingLeft || 0) + iv) + iu); }); @@ -112,7 +86,7 @@ iv = parseInt(iv); if (ed.settings.inline_styles && (!this.queryStateInsertUnorderedList() && !this.queryStateInsertOrderedList())) { - each(this._getSelectedBlocks(), function(e) { + each(s.getSelectedBlocks(), function(e) { v = Math.max(0, parseInt(e.style.paddingLeft || 0) - iv); d.setStyle(e, 'paddingLeft', v ? v + iu : ''); }); @@ -123,13 +97,14 @@ ed.getDoc().execCommand('Outdent', false, null); }, +/* mceSetAttribute : function(u, v) { var ed = this.editor, d = ed.dom, e; if (e = d.getParent(ed.selection.getNode(), d.isBlock)) d.setAttrib(e, v.name, v.value); }, - +*/ mceSetContent : function(u, v) { this.editor.setContent(v); }, @@ -148,7 +123,7 @@ }, mceInsertLink : function(u, v) { - var ed = this.editor, s = ed.selection, e = ed.dom.getParent(s.getNode(), 'A'); + var ed = this.editor, s = ed.selection, e = ed.dom.getParent(s.getNode(), 'a'); if (tinymce.is(v, 'string')) v = {href : v}; @@ -161,9 +136,8 @@ if (!e) { ed.execCommand('CreateLink', false, 'javascript:mctmp(0);'); - each(ed.dom.select('a'), function(e) { - if (e.href == 'javascript:mctmp(0);') - set(e); + each(ed.dom.select('a[href=javascript:mctmp(0);]'), function(e) { + set(e); }); } else { if (v.href) @@ -189,8 +163,6 @@ if (!v) { if (s.isCollapsed()) s.select(s.getNode()); - - t.RemoveFormat(); } else { if (ed.settings.convert_fonts_to_spans) t._applyInlineStyle('span', {style : {fontFamily : v}}); @@ -266,11 +238,11 @@ queryValueFontSize : function() { var ed = this.editor, v = 0, p; - if (p = ed.dom.getParent(ed.selection.getNode(), 'SPAN')) + if (p = ed.dom.getParent(ed.selection.getNode(), 'span')) v = p.style.fontSize; if (!v && (isOpera || isWebKit)) { - if (p = ed.dom.getParent(ed.selection.getNode(), 'FONT')) + if (p = ed.dom.getParent(ed.selection.getNode(), 'font')) v = p.size; return v; @@ -282,10 +254,10 @@ queryValueFontName : function() { var ed = this.editor, v = 0, p; - if (p = ed.dom.getParent(ed.selection.getNode(), 'FONT')) + if (p = ed.dom.getParent(ed.selection.getNode(), 'font')) v = p.face; - if (p = ed.dom.getParent(ed.selection.getNode(), 'SPAN')) + if (p = ed.dom.getParent(ed.selection.getNode(), 'span')) v = p.style.fontFamily.replace(/, /g, ',').replace(/[\'\"]/g, '').toLowerCase(); if (!v) @@ -350,7 +322,7 @@ if (rm) v = ''; - each(this._getSelectedBlocks(dom.getParent(se.getStart(), dom.isBlock), dom.getParent(se.getEnd(), dom.isBlock)), function(e) { + each(se.getSelectedBlocks(dom.getParent(se.getStart(), dom.isBlock), dom.getParent(se.getEnd(), dom.isBlock)), function(e) { dom.setAttrib(e, 'align', ''); dom.setStyle(e, 'textAlign', v == 'full' ? 'justify' : v); }); @@ -421,7 +393,7 @@ } } else { function getParent(n) { - return dom.getParent(n, function(n) {return n.nodeType == 1;}); + return dom.getParent(n, '*'); }; sc = r.startContainer; @@ -479,27 +451,6 @@ return null; }, - InsertHorizontalRule : function() { - // Fix for Gecko
issue and IE bug rep(/(.*?)<\/a>/gi,"[url=$1]$2[/url]"); - if (isGecko || isIE) - this.editor.selection.setContent('
'); - else - this.editor.getDoc().execCommand('InsertHorizontalRule', false, ''); - }, - - RemoveFormat : function() { - var t = this, ed = t.editor, s = ed.selection, b; - - // Safari breaks tables - if (isWebKit) - s.setContent(s.getContent({format : 'raw'}).replace(/(<(span|b|i|strong|em|strike) [^>]+>|<(span|b|i|strong|em|strike)>|<\/(span|b|i|strong|em|strike)>|)/g, ''), {format : 'raw'}); - else - ed.getDoc().execCommand('RemoveFormat', false, null); - - t.mceSetStyleInfo(0, {command : 'removeformat'}); - ed.addVisual(); - }, - mceSetStyleInfo : function(u, v) { var t = this, ed = t.editor, d = ed.getDoc(), dom = ed.dom, e, b, s = ed.selection, nn = v.wrapper || 'span', b = s.getBookmark(), re; @@ -529,7 +480,7 @@ else { // Generate wrappers and set styles on them d.execCommand('FontName', false, '__'); - each(isWebKit ? dom.select('span') : dom.select('font'), function(n) { + each(dom.select('span,font'), function(n) { var sp, e; if (dom.getAttrib(n, 'face') == '__' || n.style.fontFamily === '__') { @@ -553,9 +504,7 @@ // Check if it's an old span in a new wrapper if (!dom.getAttrib(n, 'mce_new')) { // Find new wrapper - p = dom.getParent(n, function(n) { - return n.nodeType == 1 && dom.getAttrib(n, 'mce_new'); - }); + p = dom.getParent(n, '*[mce_new]'); if (p) dom.remove(n, 1); @@ -658,26 +607,6 @@ d.execCommand('BackColor', false, val); }, - Undo : function() { - var ed = this.editor; - - if (ed.settings.custom_undo_redo) { - ed.undoManager.undo(); - ed.nodeChanged(); - } else - ed.getDoc().execCommand('Undo', false, null); - }, - - Redo : function() { - var ed = this.editor; - - if (ed.settings.custom_undo_redo) { - ed.undoManager.redo(); - ed.nodeChanged(); - } else - ed.getDoc().execCommand('Redo', false, null); - }, - FormatBlock : function(ui, val) { var t = this, ed = t.editor, s = ed.selection, dom = ed.dom, bl, nb, b; @@ -819,213 +748,15 @@ return !!this.editor.dom.getParent(this.editor.selection.getStart(), function(n) {return n.nodeName === 'BLOCKQUOTE';}); }, - mceBlockQuote : function() { - var t = this, ed = t.editor, s = ed.selection, dom = ed.dom, sb, eb, n, bm, bq, r, bq2, i, nl; - - function getBQ(e) { - return dom.getParent(e, function(n) {return n.nodeName === 'BLOCKQUOTE';}); - }; - - // Get start/end block - sb = dom.getParent(s.getStart(), isBlock); - eb = dom.getParent(s.getEnd(), isBlock); - - // Remove blockquote(s) - if (bq = getBQ(sb)) { - if (sb != eb || sb.childNodes.length > 1 || (sb.childNodes.length == 1 && sb.firstChild.nodeName != 'BR')) - bm = s.getBookmark(); - - // Move all elements after the end block into new bq - if (getBQ(eb)) { - bq2 = bq.cloneNode(false); - - while (n = eb.nextSibling) - bq2.appendChild(n.parentNode.removeChild(n)); - } - - // Add new bq after - if (bq2) - dom.insertAfter(bq2, bq); - - // Move all selected blocks after the current bq - nl = t._getSelectedBlocks(sb, eb); - for (i = nl.length - 1; i >= 0; i--) { - dom.insertAfter(nl[i], bq); - } - - // Empty bq, then remove it - if (/^\s*$/.test(bq.innerHTML)) - dom.remove(bq, 1); // Keep children so boomark restoration works correctly - - // Empty bq, then remote it - if (bq2 && /^\s*$/.test(bq2.innerHTML)) - dom.remove(bq2, 1); // Keep children so boomark restoration works correctly - - if (!bm) { - // Move caret inside empty block element - if (!isIE) { - r = ed.getDoc().createRange(); - r.setStart(sb, 0); - r.setEnd(sb, 0); - s.setRng(r); - } else { - s.select(sb); - s.collapse(0); - - // IE misses the empty block some times element so we must move back the caret - if (dom.getParent(s.getStart(), isBlock) != sb) { - r = s.getRng(); - r.move('character', -1); - r.select(); - } - } - } else - t.editor.selection.moveToBookmark(bm); - - return; - } - - // Since IE can start with a totally empty document we need to add the first bq and paragraph - if (isIE && !sb && !eb) { - t.editor.getDoc().execCommand('Indent'); - n = getBQ(s.getNode()); - n.style.margin = n.dir = ''; // IE adds margin and dir to bq - return; - } - - if (!sb || !eb) - return; - - // If empty paragraph node then do not use bookmark - if (sb != eb || sb.childNodes.length > 1 || (sb.childNodes.length == 1 && sb.firstChild.nodeName != 'BR')) - bm = s.getBookmark(); - - // Move selected block elements into a bq - each(t._getSelectedBlocks(getBQ(s.getStart()), getBQ(s.getEnd())), function(e) { - // Found existing BQ add to this one - if (e.nodeName == 'BLOCKQUOTE' && !bq) { - bq = e; - return; - } - - // No BQ found, create one - if (!bq) { - bq = dom.create('blockquote'); - e.parentNode.insertBefore(bq, e); - } - - // Add children from existing BQ - if (e.nodeName == 'BLOCKQUOTE' && bq) { - n = e.firstChild; - - while (n) { - bq.appendChild(n.cloneNode(true)); - n = n.nextSibling; - } - - dom.remove(e); - return; - } - - // Add non BQ element to BQ - bq.appendChild(dom.remove(e)); - }); - - if (!bm) { - // Move caret inside empty block element - if (!isIE) { - r = ed.getDoc().createRange(); - r.setStart(sb, 0); - r.setEnd(sb, 0); - s.setRng(r); - } else { - s.select(sb); - s.collapse(1); - } - } else - s.moveToBookmark(bm); - }, - _applyInlineStyle : function(na, at, op) { - var t = this, ed = t.editor, dom = ed.dom, bm, lo = {}, kh; + var t = this, ed = t.editor, dom = ed.dom, bm, lo = {}, kh, found; na = na.toUpperCase(); if (op && op.check_classes && at['class']) op.check_classes.push(at['class']); - function replaceFonts() { - var bm; - - each(dom.select(tinymce.isWebKit && !tinymce.isAir ? 'span' : 'font'), function(n) { - if (n.style.fontFamily == 'mceinline' || n.face == 'mceinline') { - if (!bm) - bm = ed.selection.getBookmark(); - - at._mce_new = '1'; - dom.replace(dom.create(na, at), n, 1); - } - }); - - // Remove redundant elements - each(dom.select(na), function(n) { - if (n.getAttribute('_mce_new')) { - function removeStyle(n) { - if (n.nodeType == 1) { - each(at.style, function(v, k) { - dom.setStyle(n, k, ''); - }); - - // Remove spans with the same class or marked classes - if (at['class'] && n.className && op) { - each(op.check_classes, function(c) { - if (dom.hasClass(n, c)) - dom.removeClass(n, c); - }); - } - } - }; - - // Remove specified style information from child elements - each(dom.select(na, n), removeStyle); - - // Remove the specified style information on parent if current node is only child (IE) - if (n.parentNode && n.parentNode.nodeType == 1 && n.parentNode.childNodes.length == 1) - removeStyle(n.parentNode); - - // Remove the child elements style info if a parent already has it - dom.getParent(n.parentNode, function(pn) { - if (pn.nodeType == 1) { - if (at.style) { - each(at.style, function(v, k) { - var sv; - - if (!lo[k] && (sv = dom.getStyle(pn, k))) { - if (sv === v) - dom.setStyle(n, k, ''); - - lo[k] = 1; - } - }); - } - - // Remove spans with the same class or marked classes - if (at['class'] && pn.className && op) { - each(op.check_classes, function(c) { - if (dom.hasClass(pn, c)) - dom.removeClass(n, c); - }); - } - } - - return false; - }); - - n.removeAttribute('_mce_new'); - } - }); - - // Remove empty span elements + function removeEmpty() { each(dom.select(na).reverse(), function(n) { var c = 0; @@ -1041,7 +772,78 @@ if (c == 0) dom.remove(n, 1); }); + }; + function replaceFonts() { + var bm; + + each(dom.select('span,font'), function(n) { + if (n.style.fontFamily == 'mceinline' || n.face == 'mceinline') { + if (!bm) + bm = ed.selection.getBookmark(); + + at._mce_new = '1'; + dom.replace(dom.create(na, at), n, 1); + } + }); + + // Remove redundant elements + each(dom.select(na + '[_mce_new]'), function(n) { + function removeStyle(n) { + if (n.nodeType == 1) { + each(at.style, function(v, k) { + dom.setStyle(n, k, ''); + }); + + // Remove spans with the same class or marked classes + if (at['class'] && n.className && op) { + each(op.check_classes, function(c) { + if (dom.hasClass(n, c)) + dom.removeClass(n, c); + }); + } + } + }; + + // Remove specified style information from child elements + each(dom.select(na, n), removeStyle); + + // Remove the specified style information on parent if current node is only child (IE) + if (n.parentNode && n.parentNode.nodeType == 1 && n.parentNode.childNodes.length == 1) + removeStyle(n.parentNode); + + // Remove the child elements style info if a parent already has it + dom.getParent(n.parentNode, function(pn) { + if (pn.nodeType == 1) { + if (at.style) { + each(at.style, function(v, k) { + var sv; + + if (!lo[k] && (sv = dom.getStyle(pn, k))) { + if (sv === v) + dom.setStyle(n, k, ''); + + lo[k] = 1; + } + }); + } + + // Remove spans with the same class or marked classes + if (at['class'] && pn.className && op) { + each(op.check_classes, function(c) { + if (dom.hasClass(pn, c)) + dom.removeClass(n, c); + }); + } + } + + return false; + }); + + n.removeAttribute('_mce_new'); + }); + + removeEmpty(); ed.selection.moveToBookmark(bm); return !!bm; @@ -1060,6 +862,45 @@ } if (ed.selection.isCollapsed()) { + // IE will format the current word so this code can't be executed on that browser + if (!isIE) { + each(dom.getParents(ed.selection.getNode(), 'span'), function(n) { + each(at.style, function(v, k) { + var kv; + + if (kv = dom.getStyle(n, k)) { + if (kv == v) { + dom.setStyle(n, k, ''); + found = 2; + return false; + } + + found = 1; + return false; + } + }); + + if (found) + return false; + }); + + if (found == 2) { + bm = ed.selection.getBookmark(); + + removeEmpty(); + + ed.selection.moveToBookmark(bm); + + // Node change needs to be detached since the onselect event + // for the select box will run the onclick handler after onselect call. Todo: Add a nicer fix! + window.setTimeout(function() { + ed.nodeChanged(); + }, 1); + + return; + } + } + // Start collecting styles t._pendingStyles = tinymce.extend(t._pendingStyles || {}, at.style); @@ -1088,87 +929,6 @@ ed.onKeyUp.add(kh); } else t._pendingStyles = 0; - }, - -/* - _mceBlockQuote : function() { - var t = this, s = t.editor.selection, b = s.getBookmark(), bq, dom = t.editor.dom; - - function findBQ(e) { - return dom.getParent(e, function(n) {return n.nodeName === 'BLOCKQUOTE';}); - }; - - // Remove blockquote(s) - if (findBQ(s.getStart())) { - each(t._getSelectedBlocks(findBQ(s.getStart()), findBQ(s.getEnd())), function(e) { - // Found BQ lets remove it - if (e.nodeName == 'BLOCKQUOTE') - dom.remove(e, 1); - }); - - t.editor.selection.moveToBookmark(b); - return; - } - - each(t._getSelectedBlocks(findBQ(s.getStart()), findBQ(s.getEnd())), function(e) { - var n; - - // Found existing BQ add to this one - if (e.nodeName == 'BLOCKQUOTE' && !bq) { - bq = e; - return; - } - - // No BQ found, create one - if (!bq) { - bq = dom.create('blockquote'); - e.parentNode.insertBefore(bq, e); - } - - // Add children from existing BQ - if (e.nodeName == 'BLOCKQUOTE' && bq) { - n = e.firstChild; - - while (n) { - bq.appendChild(n.cloneNode(true)); - n = n.nextSibling; - } - - dom.remove(e); - - return; - } - - // Add non BQ element to BQ - bq.appendChild(dom.remove(e)); - }); - - t.editor.selection.moveToBookmark(b); - }, -*/ - _getSelectedBlocks : function(st, en) { - var ed = this.editor, dom = ed.dom, s = ed.selection, sb, eb, n, bl = []; - - sb = dom.getParent(st || s.getStart(), isBlock); - eb = dom.getParent(en || s.getEnd(), isBlock); - - if (sb) - bl.push(sb); - - if (sb && eb && sb != eb) { - n = sb; - - while ((n = n.nextSibling) && n != eb) { - if (isBlock(n)) - bl.push(n); - } - } - - if (eb && sb != eb) - bl.push(eb); - - return bl; } }); -})(); - +})(tinymce); \ No newline at end of file diff --git a/source/web/scripts/tiny_mce/classes/EditorManager.js b/source/web/scripts/tiny_mce/classes/EditorManager.js index deeca15640..7866e9356f 100644 --- a/source/web/scripts/tiny_mce/classes/EditorManager.js +++ b/source/web/scripts/tiny_mce/classes/EditorManager.js @@ -1,31 +1,44 @@ /** - * $Id: EditorManager.js 920 2008-09-09 14:05:33Z spocke $ + * $Id: EditorManager.js 1190 2009-08-12 17:59:29Z spocke $ * * @author Moxiecode * @copyright Copyright © 2004-2008, Moxiecode Systems AB, All rights reserved. */ -(function() { +(function(tinymce) { // Shorten names var each = tinymce.each, extend = tinymce.extend, DOM = tinymce.DOM, Event = tinymce.dom.Event, ThemeManager = tinymce.ThemeManager, PluginManager = tinymce.PluginManager, explode = tinymce.explode; - /**#@+ - * @class This class is used to create multiple editor instances and contain them in a collection. So it's both a factory and a manager for editor instances. + /** + * This class is used to create multiple editor instances and contain them in a collection. So it's both a factory and a manager for editor instances. + * * @static - * @member tinymce.EditorManager + * @class tinymce.EditorManager */ tinymce.create('static tinymce.EditorManager', { - editors : {}, - i18n : {}, - activeEditor : null, - - /**#@+ - * @method + /** + * Collection of editor instances. + * + * @property editors + * @type Object */ + editors : {}, + + i18n : {}, + + /** + * Currently active editor instance. + * + * @property activeEditor + * @type tinymce.Editor + */ + activeEditor : null, /** * Preinitializes the EditorManager class. This method will be called automatically when the page loads and it * will setup some important paths and URIs and attach some document events. + * + * @method preInit */ preInit : function() { var t = this, lo = window.location; @@ -38,14 +51,6 @@ tinymce.baseURL = new tinymce.util.URI(tinymce.documentBaseURL).toAbsolute(tinymce.baseURL); tinymce.EditorManager.baseURI = new tinymce.util.URI(tinymce.baseURL); - // User already specified a document.domain value - if (document.domain && lo.hostname != document.domain) - tinymce.relaxedDomain = document.domain; - - // Setup document domain if tinymce is loaded from other domain - if (!tinymce.relaxedDomain && tinymce.EditorManager.baseURI.host != lo.hostname && lo.hostname) - document.domain = tinymce.relaxedDomain = lo.hostname.replace(/.*\.(.+\..+)$/, '$1'); - // Add before unload listener // This was required since IE was leaking memory if you added and removed beforeunload listeners // with attachEvent/detatchEvent so this only adds one listener and instances can the attach to the onBeforeUnload event @@ -60,6 +65,7 @@ /** * Initializes a set of editors. This method will create a bunch of editors based in the input. * + * @method init * @param {Object} s Settings object to be passed to each editor instance. */ init : function(s) { @@ -102,10 +108,6 @@ if (s.plugins) { pl = explode(s.plugins); - // Load compat2x first - if (tinymce.inArray(pl, 'compat2x') != -1) - PluginManager.load('compat2x', 'plugins/compat2x/editor_plugin' + tinymce.suffix + '.js'); - // Load rest if plugins each(pl, function(v) { if (v && v.charAt(0) != '-' && !PluginManager.urls[v]) { @@ -251,6 +253,7 @@ /** * Returns a editor instance by id. * + * @method get * @param {String} id Editor instance id to return. * @return {tinymce.Editor} Editor instance to return. */ @@ -261,16 +264,20 @@ /** * Returns a editor instance by id. This method was added for compatibility with the 2.x branch. * + * @method getInstanceById * @param {String} id Editor instance id to return. * @return {tinymce.Editor} Editor instance to return. + * @deprecated Use get method instead. + * @see #get */ getInstanceById : function(id) { return this.get(id); }, /** - * Adds an editor instance to the editor colleciton. This will also set it as the active editor. + * Adds an editor instance to the editor collection. This will also set it as the active editor. * + * @method add * @param {tinymce.Editor} e Editor instance to add to the collection. * @return {tinymce.Editor} The same instance that got passed in. */ @@ -284,6 +291,7 @@ /** * Removes a editor instance from the collection. * + * @method remove * @param {tinymce.Editor} e Editor instance to remove. * @return {tinymce.Editor} The editor that got passed in will be return if it was found otherwise null. */ @@ -298,6 +306,8 @@ // Select another editor since the active one was removed if (t.activeEditor == e) { + t._setActive(null); + each(t.editors, function(e) { t._setActive(e); return false; // Break @@ -312,10 +322,11 @@ /** * Executes a specific command on the currently active editor. * + * @method execCommand * @param {String} c Command to perform for example Bold. - * @param {bool} u Optional boolean state if a UI should be presented for the command or not. + * @param {Boolean} u Optional boolean state if a UI should be presented for the command or not. * @param {String} v Optional value parameter like for example an URL to a link. - * @return {bool} true/false if the command was executed or not. + * @return {Boolean} true/false if the command was executed or not. */ execCommand : function(c, u, v) { var t = this, ed = t.get(v), w; @@ -392,11 +403,13 @@ /** * Executes a command on a specific editor by id. This method was added for compatibility with the 2.x branch. * + * @deprecated Use the execCommand method of a editor instance instead. + * @method execInstanceCommand * @param {String} id Editor id to perform the command on. * @param {String} c Command to perform for example Bold. - * @param {bool} u Optional boolean state if a UI should be presented for the command or not. + * @param {Boolean} u Optional boolean state if a UI should be presented for the command or not. * @param {String} v Optional value parameter like for example an URL to a link. - * @return {bool} true/false if the command was executed or not. + * @return {Boolean} true/false if the command was executed or not. */ execInstanceCommand : function(id, c, u, v) { var ed = this.get(id); @@ -409,6 +422,8 @@ /** * Calls the save method on all editor instances in the collection. This can be useful when a form is to be submitted. + * + * @method triggerSave */ triggerSave : function() { each(this.editors, function(e) { @@ -419,6 +434,7 @@ /** * Adds a language pack, this gets called by the loaded language files like en.js. * + * @method addI18n * @param {String} p Prefix for the language items. For example en.myplugin * @param {Object} o Name/Value collection with items to add to the language group. */ @@ -448,12 +464,16 @@ _setActive : function(e) { this.selectedInstance = this.activeEditor = e; } - - /**#@-*/ }); tinymce.EditorManager.preInit(); -})(); +})(tinymce); -// Short for editor manager window.tinyMCE is needed when TinyMCE gets loaded though a XHR call +/** + * Shorter version of tinymce.EditorManager also added for 2.x compatibility. + * + * @member + * @property tinyMCE + * @type tinymce.EditorManager + */ var tinyMCE = window.tinyMCE = tinymce.EditorManager; diff --git a/source/web/scripts/tiny_mce/classes/ForceBlocks.js b/source/web/scripts/tiny_mce/classes/ForceBlocks.js index 3719f3bedf..5e86fc623f 100644 --- a/source/web/scripts/tiny_mce/classes/ForceBlocks.js +++ b/source/web/scripts/tiny_mce/classes/ForceBlocks.js @@ -1,11 +1,11 @@ /** - * $Id: ForceBlocks.js 941 2008-10-23 18:11:02Z spocke $ + * $Id: ForceBlocks.js 1232 2009-09-21 19:04:13Z spocke $ * * @author Moxiecode * @copyright Copyright © 2004-2008, Moxiecode Systems AB, All rights reserved. */ -(function() { +(function(tinymce) { // Shorten names var Event, isIE, isGecko, isOpera, each, extend; @@ -16,6 +16,26 @@ each = tinymce.each; extend = tinymce.extend; + // Checks if the selection/caret is at the end of the specified block element + function isAtEnd(rng, par) { + var rng2 = par.ownerDocument.createRange(); + + rng2.setStart(rng.endContainer, rng.endOffset); + rng2.setEndAfter(par); + + // Get number of characters to the right of the cursor if it's zero then we are at the end and need to merge the next block element + return rng2.cloneContents().textContent.length == 0; + }; + + function isEmpty(n) { + n = n.innerHTML; + + n = n.replace(/<(img|hr|table|input|select|textarea)[ \>]/gi, '-'); // Keep these convert them to - chars + n = n.replace(/<[^>]+>/g, ''); // Remove all tags + + return n.replace(/[ \t\r\n]+/g, '') == ''; + }; + /** * This is a internal class and no method in this class should be called directly form the out side. */ @@ -33,9 +53,8 @@ t.reOpera = new RegExp('(\\u00a0| | )<\/' + elm + '>', 'gi'); t.rePadd = new RegExp(']+)><\\\/p>|]+)\\\/>|]+)>\\s+<\\\/p>|

<\\\/p>||

\\s+<\\\/p>'.replace(/p/g, elm), 'gi'); t.reNbsp2BR1 = new RegExp(']+)>[\\s\\u00a0]+<\\\/p>|

[\\s\\u00a0]+<\\\/p>'.replace(/p/g, elm), 'gi'); - t.reNbsp2BR2 = new RegExp(']+)>( | )<\\\/p>|

( | )<\\\/p>'.replace(/p/g, elm), 'gi'); + t.reNbsp2BR2 = new RegExp('<%p()([^>]+)>( | )<\\\/%p>|<%p>( | )<\\\/%p>'.replace(/%p/g, elm), 'gi'); t.reBR2Nbsp = new RegExp(']+)>\\s*
\\s*<\\\/p>|

\\s*
\\s*<\\\/p>'.replace(/p/g, elm), 'gi'); - t.reTrailBr = new RegExp('\\s*
\\s*<\\\/p>'.replace(/p/g, elm), 'gi'); function padd(ed, o) { if (isOpera) @@ -47,10 +66,8 @@ // Use   instead of BR in padded paragraphs o.content = o.content.replace(t.reNbsp2BR1, '<' + elm + '$1$2>
'); o.content = o.content.replace(t.reNbsp2BR2, '<' + elm + '$1$2>
'); - } else { + } else o.content = o.content.replace(t.reBR2Nbsp, '<' + elm + '$1$2>\u00a0'); - o.content = o.content.replace(t.reTrailBr, ''); - } }; ed.onBeforeSetContent.add(padd); @@ -136,29 +153,47 @@ return ne; }; - // Replaces IE:s auto generated paragraphs with the specified element name - if (isIE && s.element != 'P') { - ed.onKeyPress.add(function(ed, e) { - t.lastElm = ed.selection.getNode().nodeName; - }); - - ed.onKeyUp.add(function(ed, e) { - var bl, sel = ed.selection, n = sel.getNode(), b = ed.getBody(); - - if (b.childNodes.length === 1 && n.nodeName == 'P') { - n = ren(n, s.element); - sel.select(n); - sel.collapse(); - ed.nodeChanged(); - } else if (e.keyCode == 13 && !e.shiftKey && t.lastElm != 'P') { - bl = ed.dom.getParent(n, 'P'); - - if (bl) { - ren(bl, s.element); - ed.nodeChanged(); - } + // Padd empty inline elements within block elements + // For example:

becomes

 

+ ed.onPreProcess.add(function(ed, o) { + each(ed.dom.select('p,h1,h2,h3,h4,h5,h6,div', o.node), function(p) { + if (isEmpty(p)) { + each(ed.dom.select('span,em,strong,b,i', o.node), function(n) { + if (!n.hasChildNodes()) { + n.appendChild(ed.getDoc().createTextNode('\u00a0')); + return false; // Break the loop one padding is enough + } + }); } }); + }); + + // IE specific fixes + if (isIE) { + // Replaces IE:s auto generated paragraphs with the specified element name + if (s.element != 'P') { + ed.onKeyPress.add(function(ed, e) { + t.lastElm = ed.selection.getNode().nodeName; + }); + + ed.onKeyUp.add(function(ed, e) { + var bl, sel = ed.selection, n = sel.getNode(), b = ed.getBody(); + + if (b.childNodes.length === 1 && n.nodeName == 'P') { + n = ren(n, s.element); + sel.select(n); + sel.collapse(); + ed.nodeChanged(); + } else if (e.keyCode == 13 && !e.shiftKey && t.lastElm != 'P') { + bl = ed.dom.getParent(n, 'p'); + + if (bl) { + ren(bl, s.element); + ed.nodeChanged(); + } + } + }); + } } }, @@ -193,7 +228,7 @@ nx = nl[i]; // Is text or non block element - if (nx.nodeType == 3 || (!t.dom.isBlock(nx) && nx.nodeType != 8)) { + if (nx.nodeType === 3 || (!t.dom.isBlock(nx) && nx.nodeType !== 8 && !/^(script|mce:script|style|mce:style)$/i.test(nx.nodeName))) { if (!bl) { // Create new block but ignore whitespace if (nx.nodeType != 3 || /[^\s]/g.test(nx.nodeValue)) { @@ -233,9 +268,11 @@ } } + // Uses replaceChild instead of cloneNode since it removes selected attribute from option elements on IE + // See: http://support.microsoft.com/kb/829907 bl = ed.dom.create(ed.settings.forced_root_block); - bl.appendChild(nx.cloneNode(1)); nx.parentNode.replaceChild(bl, nx); + bl.appendChild(nx); } } else { if (bl.hasChildNodes()) @@ -306,14 +343,6 @@ var t = this, ed = t.editor, dom = ed.dom, d = ed.getDoc(), se = ed.settings, s = ed.selection.getSel(), r = s.getRangeAt(0), b = d.body; var rb, ra, dir, sn, so, en, eo, sb, eb, bn, bef, aft, sc, ec, n, vp = dom.getViewPort(ed.getWin()), y, ch, car; - function isEmpty(n) { - n = n.innerHTML; - n = n.replace(/<(img|hr|table)/gi, '-'); // Keep these convert them to - chars - n = n.replace(/<[^>]+>/g, ''); // Remove all tags - - return n.replace(/[ \t\r\n]+/g, '') == ''; - }; - // If root blocks are forced then use Operas default behavior since it's really good // Removed due to bug: #1853816 // if (se.forced_root_block && isOpera) @@ -342,11 +371,19 @@ // If selection is in empty table cell if (sn === en && /^(TD|TH)$/.test(sn.nodeName)) { - dom.remove(sn.firstChild); // Remove BR + if (sn.firstChild.nodeName == 'BR') + dom.remove(sn.firstChild); // Remove BR // Create two new block elements - ed.dom.add(sn, se.element, null, '
'); - aft = ed.dom.add(sn, se.element, null, '
'); + if (sn.childNodes.length == 0) { + ed.dom.add(sn, se.element, null, '
'); + aft = ed.dom.add(sn, se.element, null, '
'); + } else { + n = sn.innerHTML; + sn.innerHTML = ''; + ed.dom.add(sn, se.element, null, n); + aft = ed.dom.add(sn, se.element, null, '
'); + } // Move caret into the last one r = d.createRange(); @@ -379,23 +416,23 @@ bn = sb ? sb.nodeName : se.element; // Get block name to create // Return inside list use default browser behavior - if (t.dom.getParent(sb, function(n) { return /OL|UL|PRE/.test(n.nodeName); })) + if (t.dom.getParent(sb, 'ol,ul,pre')) return true; // If caption or absolute layers then always generate new blocks within - if (sb && (sb.nodeName == 'CAPTION' || /absolute|relative|static/gi.test(sb.style.position))) { + if (sb && (sb.nodeName == 'CAPTION' || /absolute|relative|fixed/gi.test(dom.getStyle(sb, 'position', 1)))) { bn = se.element; sb = null; } // If caption or absolute layers then always generate new blocks within - if (eb && (eb.nodeName == 'CAPTION' || /absolute|relative|static/gi.test(eb.style.position))) { + if (eb && (eb.nodeName == 'CAPTION' || /absolute|relative|fixed/gi.test(dom.getStyle(sb, 'position', 1)))) { bn = se.element; eb = null; } // Use P instead - if (/(TD|TABLE|TH|CAPTION)/.test(bn) || (sb && bn == "DIV" && /left|right/gi.test(sb.style.cssFloat))) { + if (/(TD|TABLE|TH|CAPTION)/.test(bn) || (sb && bn == "DIV" && /left|right/gi.test(dom.getStyle(sb, 'float', 1)))) { bn = se.element; sb = eb = null; } @@ -408,7 +445,7 @@ aft.removeAttribute('id'); // Is header and cursor is at the end, then force paragraph under - if (/^(H[1-6])$/.test(bn) && sn.nodeValue && so == sn.nodeValue.length) + if (/^(H[1-6])$/.test(bn) && isAtEnd(r, sb)) aft = ed.dom.create(se.element); // Find start chop node @@ -553,7 +590,46 @@ }, backspaceDelete : function(e, bs) { - var t = this, ed = t.editor, b = ed.getBody(), n, se = ed.selection, r = se.getRng(), sc = r.startContainer, n, w, tn; + var t = this, ed = t.editor, b = ed.getBody(), dom = ed.dom, n, se = ed.selection, r = se.getRng(), sc = r.startContainer, n, w, tn; + + /* + var par, rng, nextBlock; + + // Delete key will not merge paragraphs on Gecko so we need to do this manually + // Hitting the delete key at the following caret position doesn't merge the elements

A|

B

+ // This logic will merge them into this:

A|B

+ if (e.keyCode == 46) { + if (r.collapsed) { + par = dom.getParent(sc, 'p,h1,h2,h3,h4,h5,h6,div'); + + if (par) { + rng = dom.createRng(); + + rng.setStart(sc, r.startOffset); + rng.setEndAfter(par); + + // Get number of characters to the right of the cursor if it's zero then we are at the end and need to merge the next block element + if (dom.getOuterHTML(rng.cloneContents()).replace(/<[^>]+>/g, '').length == 0) { + nextBlock = dom.getNext(par, 'p,h1,h2,h3,h4,h5,h6,div'); + + // Copy all children from next sibling block and remove it + if (nextBlock) { + each(nextBlock.childNodes, function(node) { + par.appendChild(node.cloneNode(true)); + }); + + dom.remove(nextBlock); + } + + // Block the default even since the Gecko team might eventually fix this + // We will remove this logic once they do we can't feature detect this one + e.preventDefault(); + return; + } + } + } + } + */ // The caret sometimes gets stuck in Gecko if you delete empty paragraphs // This workaround removes the element by hand and moves the caret to the previous element @@ -617,4 +693,4 @@ }, 1); } }); -})(); +})(tinymce); diff --git a/source/web/scripts/tiny_mce/classes/Formatter.js b/source/web/scripts/tiny_mce/classes/Formatter.js new file mode 100644 index 0000000000..f3ccbe3536 --- /dev/null +++ b/source/web/scripts/tiny_mce/classes/Formatter.js @@ -0,0 +1,1574 @@ +/** + * Formatter.js + * + * Copyright 2009, Moxiecode Systems AB + * Released under LGPL License. + * + * License: http://tinymce.moxiecode.com/license + * Contributing: http://tinymce.moxiecode.com/contributing + */ + +(function(tinymce) { + /** + * Text formatter engine class. This class is used to apply formats like bold, italic, font size + * etc to the current selection or specific nodes. This engine was build to replace the browsers + * default formatting logic for execCommand due to it's inconsistant and buggy behavior. + * + * @class tinymce.Formatter + * @example + * tinymce.activeEditor.formatter.register('mycustomformat', { + * inline : 'span', + * styles : {color : '#ff0000'} + * }); + * + * tinymce.activeEditor.formatter.apply('mycustomformat'); + */ + + /** + * Constructs a new formatter instance. + * + * @constructor Formatter + * @param {tinymce.Editor} ed Editor instance to construct the formatter engine to. + */ + tinymce.Formatter = function(ed) { + var formats = {}, + each = tinymce.each, + dom = ed.dom, + selection = ed.selection, + TreeWalker = tinymce.dom.TreeWalker, + rangeUtils = new tinymce.dom.RangeUtils(dom), + isValid = ed.schema.isValid, + isBlock = dom.isBlock, + forcedRootBlock = ed.settings.forced_root_block, + nodeIndex = dom.nodeIndex, + INVISIBLE_CHAR = '\uFEFF', + MCE_ATTR_RE = /^(src|href|style)$/, + FALSE = false, + TRUE = true, + undefined, + pendingFormats = {apply : [], remove : []}; + + function isArray(obj) { + return obj instanceof Array; + }; + + function getParents(node, selector) { + return dom.getParents(node, selector, dom.getRoot()); + }; + + function isCaretNode(node) { + return node.nodeType === 1 && (node.face === 'mceinline' || node.style.fontFamily === 'mceinline'); + }; + + // Public functions + + /** + * Returns the format by name or all formats if no name is specified. + * + * @method get + * @param {String} name Optional name to retrive by. + * @return {Array/Object} Array/Object with all registred formats or a specific format. + */ + function get(name) { + return name ? formats[name] : formats; + }; + + /** + * Registers a specific format by name. + * + * @method register + * @param {Object/String} name Name of the format for example "bold". + * @param {Object/Array} format Optional format object or array of format variants can only be omitted if the first arg is an object. + */ + function register(name, format) { + if (name) { + if (typeof(name) !== 'string') { + each(name, function(format, name) { + register(name, format); + }); + } else { + // Force format into array and add it to internal collection + format = format.length ? format : [format]; + + each(format, function(format) { + // Set deep to false by default on selector formats this to avoid removing + // alignment on images inside paragraphs when alignment is changed on paragraphs + if (format.deep === undefined) + format.deep = !format.selector; + + // Default to true + if (format.split === undefined) + format.split = !format.selector || format.inline; + + // Default to true + if (format.remove === undefined && format.selector && !format.inline) + format.remove = 'none'; + + // Mark format as a mixed format inline + block level + if (format.selector && format.inline) { + format.mixed = true; + format.block_expand = true; + } + + // Split classes if needed + if (typeof(format.classes) === 'string') + format.classes = format.classes.split(/\s+/); + }); + + formats[name] = format; + } + } + }; + + /** + * Applies the specified format to the current selection or specified node. + * + * @method apply + * @param {String} name Name of format to apply. + * @param {Object} vars Optional list of variables to replace within format before applying it. + * @param {Node} node Optional node to apply the format to defaults to current selection. + */ + function apply(name, vars, node) { + var formatList = get(name), format = formatList[0], bookmark, rng, i; + + /** + * Moves the start to the first suitable text node. + */ + function moveStart(rng) { + var container = rng.startContainer, + offset = rng.startOffset, + walker, node; + + // Move startContainer/startOffset in to a suitable node + if (container.nodeType == 1 || container.nodeValue === "") { + container = container.nodeType == 1 ? container.childNodes[offset] : container; + + // Might fail if the offset is behind the last element in it's container + if (container) { + walker = new TreeWalker(container, container.parentNode); + for (node = walker.current(); node; node = walker.next()) { + if (node.nodeType == 3 && !isWhiteSpaceNode(node)) { + rng.setStart(node, 0); + break; + } + } + } + } + + return rng; + }; + + function setElementFormat(elm, fmt) { + fmt = fmt || format; + + if (elm) { + each(fmt.styles, function(value, name) { + dom.setStyle(elm, name, replaceVars(value, vars)); + }); + + each(fmt.attributes, function(value, name) { + dom.setAttrib(elm, name, replaceVars(value, vars)); + }); + + each(fmt.classes, function(value) { + value = replaceVars(value, vars); + + if (!dom.hasClass(elm, value)) + dom.addClass(elm, value); + }); + } + }; + + function applyRngStyle(rng) { + var newWrappers = [], wrapName, wrapElm; + + // Setup wrapper element + wrapName = format.inline || format.block; + wrapElm = dom.create(wrapName); + setElementFormat(wrapElm); + + rangeUtils.walk(rng, function(nodes) { + var currentWrapElm; + + /** + * Process a list of nodes wrap them. + */ + function process(node) { + var nodeName = node.nodeName.toLowerCase(), parentName = node.parentNode.nodeName.toLowerCase(), found; + + // Stop wrapping on br elements + if (isEq(nodeName, 'br')) { + currentWrapElm = 0; + + // Remove any br elements when we wrap things + if (format.block) + dom.remove(node); + + return; + } + + // If node is wrapper type + if (format.wrapper && matchNode(node, name, vars)) { + currentWrapElm = 0; + return; + } + + // Can we rename the block + if (format.block && !format.wrapper && isTextBlock(nodeName)) { + node = dom.rename(node, wrapName); + setElementFormat(node); + newWrappers.push(node); + currentWrapElm = 0; + return; + } + + // Handle selector patterns + if (format.selector) { + // Look for matching formats + each(formatList, function(format) { + if (dom.is(node, format.selector) && !isCaretNode(node)) { + setElementFormat(node, format); + found = true; + } + }); + + // Continue processing if a selector match wasn't found and a inline element is defined + if (!format.inline || found) { + currentWrapElm = 0; + return; + } + } + + // Is it valid to wrap this item + if (isValid(wrapName, nodeName) && isValid(parentName, wrapName)) { + // Start wrapping + if (!currentWrapElm) { + // Wrap the node + currentWrapElm = wrapElm.cloneNode(FALSE); + node.parentNode.insertBefore(currentWrapElm, node); + newWrappers.push(currentWrapElm); + } + + currentWrapElm.appendChild(node); + } else { + // Start a new wrapper for possible children + currentWrapElm = 0; + + each(tinymce.grep(node.childNodes), process); + + // End the last wrapper + currentWrapElm = 0; + } + }; + + // Process siblings from range + each(nodes, process); + }); + + // Cleanup + each(newWrappers, function(node) { + var childCount; + + function getChildCount(node) { + var count = 0; + + each(node.childNodes, function(node) { + if (!isWhiteSpaceNode(node) && !isBookmarkNode(node)) + count++; + }); + + return count; + }; + + function mergeStyles(node) { + var child, clone; + + each(node.childNodes, function(node) { + if (node.nodeType == 1 && !isBookmarkNode(node) && !isCaretNode(node)) { + child = node; + return FALSE; // break loop + } + }); + + // If child was found and of the same type as the current node + if (child && matchName(child, format)) { + clone = child.cloneNode(FALSE); + setElementFormat(clone); + + dom.replace(clone, node, TRUE); + dom.remove(child, 1); + } + + return clone || node; + }; + + childCount = getChildCount(node); + + // Remove empty nodes + if (childCount === 0) { + dom.remove(node, 1); + return; + } + + if (format.inline || format.wrapper) { + // Merges the current node with it's children of similar type to reduce the number of elements + if (!format.exact && childCount === 1) + node = mergeStyles(node); + + // Remove/merge children + each(formatList, function(format) { + // Merge all children of similar type will move styles from child to parent + // this: text + // will become: text + each(dom.select(format.inline, node), function(child) { + removeFormat(format, vars, child, format.exact ? child : null); + }); + }); + + // Remove child if direct parent is of same type + if (matchNode(node.parentNode, name, vars)) { + dom.remove(node, 1); + node = 0; + return TRUE; + } + + // Look for parent with similar style format + if (format.merge_with_parents) { + dom.getParent(node.parentNode, function(parent) { + if (matchNode(parent, name, vars)) { + dom.remove(node, 1); + node = 0; + return TRUE; + } + }); + } + + // Merge next and previous siblings if they are similar texttext becomes texttext + if (node) { + node = mergeSiblings(getNonWhiteSpaceSibling(node), node); + node = mergeSiblings(node, getNonWhiteSpaceSibling(node, TRUE)); + } + } + }); + }; + + if (format) { + if (node) { + rng = dom.createRng(); + + rng.setStartBefore(node); + rng.setEndAfter(node); + + applyRngStyle(expandRng(rng, formatList)); + } else { + if (!selection.isCollapsed() || !format.inline) { + // Apply formatting to selection + bookmark = selection.getBookmark(); + applyRngStyle(expandRng(selection.getRng(TRUE), formatList)); + + selection.moveToBookmark(bookmark); + selection.setRng(moveStart(selection.getRng(TRUE))); + ed.nodeChanged(); + } else + performCaretAction('apply', name, vars); + } + } + }; + + /** + * Removes the specified format from the current selection or specified node. + * + * @method remove + * @param {String} name Name of format to remove. + * @param {Object} vars Optional list of variables to replace within format before removing it. + * @param {Node} node Optional node to remove the format from defaults to current selection. + */ + function remove(name, vars, node) { + var formatList = get(name), format = formatList[0], bookmark, i, rng; + + /** + * Moves the start to the first suitable text node. + */ + function moveStart(rng) { + var container = rng.startContainer, + offset = rng.startOffset, + walker, node, nodes, tmpNode; + + // Convert text node into index if possible + if (container.nodeType == 3 && offset >= container.nodeValue.length - 1) { + container = container.parentNode; + offset = nodeIndex(container) + 1; + } + + // Move startContainer/startOffset in to a suitable node + if (container.nodeType == 1) { + nodes = container.childNodes; + container = nodes[Math.min(offset, nodes.length - 1)]; + walker = new TreeWalker(container); + + // If offset is at end of the parent node walk to the next one + if (offset > nodes.length - 1) + walker.next(); + + for (node = walker.current(); node; node = walker.next()) { + if (node.nodeType == 3 && !isWhiteSpaceNode(node)) { + // IE has a "neat" feature where it moves the start node into the closest element + // we can avoid this by inserting an element before it and then remove it after we set the selection + tmpNode = dom.create('a', null, INVISIBLE_CHAR); + node.parentNode.insertBefore(tmpNode, node); + + // Set selection and remove tmpNode + rng.setStart(node, 0); + selection.setRng(rng); + dom.remove(tmpNode); + + return; + } + } + } + }; + + // Merges the styles for each node + function process(node) { + var children, i, l; + + // Grab the children first since the nodelist might be changed + children = tinymce.grep(node.childNodes); + + // Process current node + for (i = 0, l = formatList.length; i < l; i++) { + if (removeFormat(formatList[i], vars, node, node)) + break; + } + + // Process the children + if (format.deep) { + for (i = 0, l = children.length; i < l; i++) + process(children[i]); + } + }; + + function findFormatRoot(container) { + var formatRoot; + + // Find format root + each(getParents(container.parentNode).reverse(), function(parent) { + var format; + + // Find format root element + if (!formatRoot && parent.id != '_start' && parent.id != '_end') { + // Is the node matching the format we are looking for + format = matchNode(parent, name, vars); + if (format && format.split !== false) + formatRoot = parent; + } + }); + + return formatRoot; + }; + + function wrapAndSplit(format_root, container, target, split) { + var parent, clone, lastClone, firstClone, i, formatRootParent; + + // Format root found then clone formats and split it + if (format_root) { + formatRootParent = format_root.parentNode; + + for (parent = container.parentNode; parent && parent != formatRootParent; parent = parent.parentNode) { + clone = parent.cloneNode(FALSE); + + for (i = 0; i < formatList.length; i++) { + if (removeFormat(formatList[i], vars, clone, clone)) { + clone = 0; + break; + } + } + + // Build wrapper node + if (clone) { + if (lastClone) + clone.appendChild(lastClone); + + if (!firstClone) + firstClone = clone; + + lastClone = clone; + } + } + + // Never split block elements if the format is mixed + if (split && (!format.mixed || !isBlock(format_root))) + container = dom.split(format_root, container); + + // Wrap container in cloned formats + if (lastClone) { + target.parentNode.insertBefore(lastClone, target); + firstClone.appendChild(target); + } + } + + return container; + }; + + function splitToFormatRoot(container) { + return wrapAndSplit(findFormatRoot(container), container, container, true); + }; + + function unwrap(start) { + var node = dom.get(start ? '_start' : '_end'), + out = node[start ? 'firstChild' : 'lastChild']; + + // If the end is placed within the start the result will be removed + // So this checks if the out node is a bookmark node if it is it + // checks for another more suitable node + if (isBookmarkNode(out)) + out = out[start ? 'firstChild' : 'lastChild']; + + dom.remove(node, true); + + return out; + }; + + function removeRngStyle(rng) { + var startContainer, endContainer; + + rng = expandRng(rng, formatList, TRUE); + + if (format.split) { + startContainer = getContainer(rng, TRUE); + endContainer = getContainer(rng); + + if (startContainer != endContainer) { + // Wrap start/end nodes in span element since these might be cloned/moved + startContainer = wrap(startContainer, 'span', {id : '_start', _mce_type : 'bookmark'}); + endContainer = wrap(endContainer, 'span', {id : '_end', _mce_type : 'bookmark'}); + + // Split start/end + splitToFormatRoot(startContainer); + splitToFormatRoot(endContainer); + + // Unwrap start/end to get real elements again + startContainer = unwrap(TRUE); + endContainer = unwrap(); + } else + startContainer = endContainer = splitToFormatRoot(startContainer); + + // Update range positions since they might have changed after the split operations + rng.startContainer = startContainer.parentNode; + rng.startOffset = nodeIndex(startContainer); + rng.endContainer = endContainer.parentNode; + rng.endOffset = nodeIndex(endContainer) + 1; + } + + // Remove items between start/end + rangeUtils.walk(rng, function(nodes) { + each(nodes, function(node) { + process(node); + }); + }); + }; + + // Handle node + if (node) { + rng = dom.createRng(); + rng.setStartBefore(node); + rng.setEndAfter(node); + removeRngStyle(rng); + return; + } + + if (!selection.isCollapsed() || !format.inline) { + bookmark = selection.getBookmark(); + removeRngStyle(selection.getRng(TRUE)); + selection.moveToBookmark(bookmark); + + // Check if start element still has formatting then we are at: "text|text" and need to move the start into the next text node + if (match(name, vars, selection.getStart())) { + moveStart(selection.getRng(true)); + } + + ed.nodeChanged(); + } else + performCaretAction('remove', name, vars); + }; + + /** + * Toggles the specified format on/off. + * + * @method toggle + * @param {String} name Name of format to apply/remove. + * @param {Object} vars Optional list of variables to replace within format before applying/removing it. + * @param {Node} node Optional node to apply the format to or remove from. Defaults to current selection. + */ + function toggle(name, vars, node) { + if (match(name, vars, node)) + remove(name, vars, node); + else + apply(name, vars, node); + }; + + /** + * Return true/false if the specified node has the specified format. + * + * @method matchNode + * @param {Node} node Node to check the format on. + * @param {String} name Format name to check. + * @param {Object} vars Optional list of variables to replace before checking it. + * @param {Boolean} similar Match format that has similar properties. + * @return {Object} Returns the format object it matches or undefined if it doesn't match. + */ + function matchNode(node, name, vars, similar) { + var formatList = get(name), format, i, classes; + + function matchItems(node, format, item_name) { + var key, value, items = format[item_name], i; + + // Check all items + if (items) { + // Non indexed object + if (items.length === undefined) { + for (key in items) { + if (items.hasOwnProperty(key)) { + if (item_name === 'attributes') + value = dom.getAttrib(node, key); + else + value = getStyle(node, key); + + if (similar && !value && !format.exact) + return; + + if ((!similar || format.exact) && !isEq(value, replaceVars(items[key], vars))) + return; + } + } + } else { + // Only one match needed for indexed arrays + for (i = 0; i < items.length; i++) { + if (item_name === 'attributes' ? dom.getAttrib(node, items[i]) : getStyle(node, items[i])) + return format; + } + } + } + + return format; + }; + + if (formatList && node) { + // Check each format in list + for (i = 0; i < formatList.length; i++) { + format = formatList[i]; + + // Name name, attributes, styles and classes + if (matchName(node, format) && matchItems(node, format, 'attributes') && matchItems(node, format, 'styles')) { + // Match classes + if (classes = format.classes) { + for (i = 0; i < classes.length; i++) { + if (!dom.hasClass(node, classes[i])) + return; + } + } + + return format; + } + } + } + }; + + /** + * Matches the current selection or specified node against the specified format name. + * + * @method match + * @param {String} name Name of format to match. + * @param {Object} vars Optional list of variables to replace before checking it. + * @param {Node} node Optional node to check. + * @return {boolean} true/false if the specified selection/node matches the format. + */ + function match(name, vars, node) { + var startNode, i; + + function matchParents(node) { + // Find first node with similar format settings + node = dom.getParent(node, function(node) { + return !!matchNode(node, name, vars, true); + }); + + // Do an exact check on the similar format element + return matchNode(node, name, vars); + }; + + // Check specified node + if (node) + return matchParents(node); + + // Check pending formats + if (selection.isCollapsed()) { + for (i = pendingFormats.apply.length - 1; i >= 0; i--) { + if (pendingFormats.apply[i].name == name) + return true; + } + + for (i = pendingFormats.remove.length - 1; i >= 0; i--) { + if (pendingFormats.remove[i].name == name) + return false; + } + + return matchParents(selection.getNode()); + } + + // Check selected node + node = selection.getNode(); + if (matchParents(node)) + return TRUE; + + // Check start node if it's different + startNode = selection.getStart(); + if (startNode != node) { + if (matchParents(startNode)) + return TRUE; + } + + return FALSE; + }; + + /** + * Matches the current selection against the array of formats and returns a new array with matching formats. + * + * @method matchAll + * @param {Array} names Name of format to match. + * @param {Object} vars Optional list of variables to replace before checking it. + * @return {Array} Array with matched formats. + */ + function matchAll(names, vars) { + var startElement, matchedFormatNames = [], checkedMap = {}, i, ni, name; + + // If the selection is collapsed then check pending formats + if (selection.isCollapsed()) { + for (ni = 0; ni < names.length; ni++) { + // If the name is to be removed, then stop it from being added + for (i = pendingFormats.remove.length - 1; i >= 0; i--) { + name = names[ni]; + + if (pendingFormats.remove[i].name == name) { + checkedMap[name] = true; + break; + } + } + } + + // If the format is to be applied + for (i = pendingFormats.apply.length - 1; i >= 0; i--) { + for (ni = 0; ni < names.length; ni++) { + name = names[ni]; + + if (!checkedMap[name] && pendingFormats.apply[i].name == name) { + checkedMap[name] = true; + matchedFormatNames.push(name); + } + } + } + } + + // Check start of selection for formats + startElement = selection.getStart(); + dom.getParent(startElement, function(node) { + var i, name; + + for (i = 0; i < names.length; i++) { + name = names[i]; + + if (!checkedMap[name] && matchNode(node, name, vars)) { + checkedMap[name] = true; + matchedFormatNames.push(name); + } + } + }); + + return matchedFormatNames; + }; + + /** + * Returns true/false if the specified format can be applied to the current selection or not. It will currently only check the state for selector formats, it returns true on all other format types. + * + * @method canApply + * @param {String} name Name of format to check. + * @return {boolean} true/false if the specified format can be applied to the current selection/node. + */ + function canApply(name) { + var formatList = get(name), startNode, parents, i, x, selector; + + if (formatList) { + startNode = selection.getStart(); + parents = getParents(startNode); + + for (x = formatList.length - 1; x >= 0; x--) { + selector = formatList[x].selector; + + // Format is not selector based, then always return TRUE + if (!selector) + return TRUE; + + for (i = parents.length - 1; i >= 0; i--) { + if (dom.is(parents[i], selector)) + return TRUE; + } + } + } + + return FALSE; + }; + + // Expose to public + tinymce.extend(this, { + get : get, + register : register, + apply : apply, + remove : remove, + toggle : toggle, + match : match, + matchAll : matchAll, + matchNode : matchNode, + canApply : canApply + }); + + // Private functions + + /** + * Checks if the specified nodes name matches the format inline/block or selector. + * + * @private + * @param {Node} node Node to match against the specified format. + * @param {Object} format Format object o match with. + * @return {boolean} true/false if the format matches. + */ + function matchName(node, format) { + // Check for inline match + if (isEq(node, format.inline)) + return TRUE; + + // Check for block match + if (isEq(node, format.block)) + return TRUE; + + // Check for selector match + if (format.selector) + return dom.is(node, format.selector); + }; + + /** + * Compares two string/nodes regardless of their case. + * + * @private + * @param {String/Node} Node or string to compare. + * @param {String/Node} Node or string to compare. + * @return {boolean} True/false if they match. + */ + function isEq(str1, str2) { + str1 = str1 || ''; + str2 = str2 || ''; + + str1 = '' + (str1.nodeName || str1); + str2 = '' + (str2.nodeName || str2); + + return str1.toLowerCase() == str2.toLowerCase(); + }; + + /** + * Returns the style by name on the specified node. This method modifies the style + * contents to make it more easy to match. This will resolve a few browser issues. + * + * @private + * @param {Node} node to get style from. + * @param {String} name Style name to get. + * @return {String} Style item value. + */ + function getStyle(node, name) { + var styleVal = dom.getStyle(node, name); + + // Force the format to hex + if (name == 'color' || name == 'backgroundColor') + styleVal = dom.toHex(styleVal); + + // Opera will return bold as 700 + if (name == 'fontWeight' && styleVal == 700) + styleVal = 'bold'; + + return '' + styleVal; + }; + + /** + * Replaces variables in the value. The variable format is %var. + * + * @private + * @param {String} value Value to replace variables in. + * @param {Object} vars Name/value array with variables to replace. + * @return {String} New value with replaced variables. + */ + function replaceVars(value, vars) { + if (typeof(value) != "string") + value = value(vars); + else if (vars) { + value = value.replace(/%(\w+)/g, function(str, name) { + return vars[name] || str; + }); + } + + return value; + }; + + function isWhiteSpaceNode(node) { + return node && node.nodeType === 3 && /^([\s\r\n]+|)$/.test(node.nodeValue); + }; + + function wrap(node, name, attrs) { + var wrapper = dom.create(name, attrs); + + node.parentNode.insertBefore(wrapper, node); + wrapper.appendChild(node); + + return wrapper; + }; + + /** + * Expands the specified range like object to depending on format. + * + * For example on block formats it will move the start/end position + * to the beginning of the current block. + * + * @private + * @param {Object} rng Range like object. + * @param {Array} formats Array with formats to expand by. + * @return {Object} Expanded range like object. + */ + function expandRng(rng, format, remove) { + var startContainer = rng.startContainer, + startOffset = rng.startOffset, + endContainer = rng.endContainer, + endOffset = rng.endOffset, sibling, lastIdx; + + // This function walks up the tree if there is no siblings before/after the node + function findParentContainer(container, child_name, sibling_name, root) { + var parent, child; + + root = root || dom.getRoot(); + + for (;;) { + // Check if we can move up are we at root level or body level + parent = container.parentNode; + + // Stop expanding on block elements or root depending on format + if (parent == root || (!format[0].block_expand && isBlock(parent))) + return container; + + for (sibling = parent[child_name]; sibling && sibling != container; sibling = sibling[sibling_name]) { + if (sibling.nodeType == 1 && !isBookmarkNode(sibling)) + return container; + + if (sibling.nodeType == 3 && !isWhiteSpaceNode(sibling)) + return container; + } + + container = container.parentNode; + } + + return container; + }; + + // If index based start position then resolve it + if (startContainer.nodeType == 1 && startContainer.hasChildNodes()) { + lastIdx = startContainer.childNodes.length - 1; + startContainer = startContainer.childNodes[startOffset > lastIdx ? lastIdx : startOffset]; + + if (startContainer.nodeType == 3) + startOffset = 0; + } + + // If index based end position then resolve it + if (endContainer.nodeType == 1 && endContainer.hasChildNodes()) { + lastIdx = endContainer.childNodes.length - 1; + endContainer = endContainer.childNodes[endOffset > lastIdx ? lastIdx : endOffset - 1]; + + if (endContainer.nodeType == 3) + endOffset = endContainer.nodeValue.length; + } + + // Exclude bookmark nodes if possible + if (isBookmarkNode(startContainer.parentNode)) + startContainer = startContainer.parentNode; + + if (isBookmarkNode(startContainer)) + startContainer = startContainer.nextSibling || startContainer; + + if (isBookmarkNode(endContainer.parentNode)) + endContainer = endContainer.parentNode; + + if (isBookmarkNode(endContainer)) + endContainer = endContainer.previousSibling || endContainer; + + // Move start/end point up the tree if the leaves are sharp and if we are in different containers + // Example * becomes !: !

*texttext*

! + // This will reduce the number of wrapper elements that needs to be created + // Move start point up the tree + if (format[0].inline || format[0].block_expand) { + startContainer = findParentContainer(startContainer, 'firstChild', 'nextSibling'); + endContainer = findParentContainer(endContainer, 'lastChild', 'previousSibling'); + } + + // Expand start/end container to matching selector + if (format[0].selector && format[0].expand !== FALSE && !format[0].inline) { + function findSelectorEndPoint(container, sibling_name) { + var parents, i, y; + + if (container.nodeType == 3 && container.nodeValue.length == 0 && container[sibling_name]) + container = container[sibling_name]; + + parents = getParents(container); + for (i = 0; i < parents.length; i++) { + for (y = 0; y < format.length; y++) { + if (dom.is(parents[i], format[y].selector)) + return parents[i]; + } + } + + return container; + }; + + // Find new startContainer/endContainer if there is better one + startContainer = findSelectorEndPoint(startContainer, 'previousSibling'); + endContainer = findSelectorEndPoint(endContainer, 'nextSibling'); + } + + // Expand start/end container to matching block element or text node + if (format[0].block || format[0].selector) { + function findBlockEndPoint(container, sibling_name, sibling_name2) { + var node; + + // Expand to block of similar type + if (!format[0].wrapper) + node = dom.getParent(container, format[0].block); + + // Expand to first wrappable block element or any block element + if (!node) + node = dom.getParent(container.nodeType == 3 ? container.parentNode : container, isBlock); + + // Exclude inner lists from wrapping + if (node && format[0].wrapper) + node = getParents(node, 'ul,ol').reverse()[0] || node; + + // Didn't find a block element look for first/last wrappable element + if (!node) { + node = container; + + while (node[sibling_name] && !isBlock(node[sibling_name])) { + node = node[sibling_name]; + + // Break on BR but include it will be removed later on + // we can't remove it now since we need to check if it can be wrapped + if (isEq(node, 'br')) + break; + } + } + + return node || container; + }; + + // Find new startContainer/endContainer if there is better one + startContainer = findBlockEndPoint(startContainer, 'previousSibling'); + endContainer = findBlockEndPoint(endContainer, 'nextSibling'); + + // Non block element then try to expand up the leaf + if (format[0].block) { + if (!isBlock(startContainer)) + startContainer = findParentContainer(startContainer, 'firstChild', 'nextSibling'); + + if (!isBlock(endContainer)) + endContainer = findParentContainer(endContainer, 'lastChild', 'previousSibling'); + } + } + + // Setup index for startContainer + if (startContainer.nodeType == 1) { + startOffset = nodeIndex(startContainer); + startContainer = startContainer.parentNode; + } + + // Setup index for endContainer + if (endContainer.nodeType == 1) { + endOffset = nodeIndex(endContainer) + 1; + endContainer = endContainer.parentNode; + } + + // Return new range like object + return { + startContainer : startContainer, + startOffset : startOffset, + endContainer : endContainer, + endOffset : endOffset + }; + } + + /** + * Removes the specified format for the specified node. It will also remove the node if it doesn't have + * any attributes if the format specifies it to do so. + * + * @private + * @param {Object} format Format object with items to remove from node. + * @param {Object} vars Name/value object with variables to apply to format. + * @param {Node} node Node to remove the format styles on. + * @param {Node} compare_node Optional compare node, if specified the styles will be compared to that node. + * @return {Boolean} True/false if the node was removed or not. + */ + function removeFormat(format, vars, node, compare_node) { + var i, attrs, stylesModified; + + // Check if node matches format + if (!matchName(node, format)) + return FALSE; + + // Should we compare with format attribs and styles + if (format.remove != 'all') { + // Remove styles + each(format.styles, function(value, name) { + value = replaceVars(value, vars); + + // Indexed array + if (typeof(name) === 'number') { + name = value; + compare_node = 0; + } + + if (!compare_node || isEq(getStyle(compare_node, name), value)) + dom.setStyle(node, name, ''); + + stylesModified = 1; + }); + + // Remove style attribute if it's empty + if (stylesModified && dom.getAttrib(node, 'style') == '') { + node.removeAttribute('style'); + node.removeAttribute('_mce_style'); + } + + // Remove attributes + each(format.attributes, function(value, name) { + var valueOut; + + value = replaceVars(value, vars); + + // Indexed array + if (typeof(name) === 'number') { + name = value; + compare_node = 0; + } + + if (!compare_node || isEq(dom.getAttrib(compare_node, name), value)) { + // Keep internal classes + if (name == 'class') { + value = dom.getAttrib(node, name); + if (value) { + // Build new class value where everything is removed except the internal prefixed classes + valueOut = ''; + each(value.split(/\s+/), function(cls) { + if (/mce\w+/.test(cls)) + valueOut += (valueOut ? ' ' : '') + cls; + }); + + // We got some internal classes left + if (valueOut) { + dom.setAttrib(node, name, valueOut); + return; + } + } + } + + // IE6 has a bug where the attribute doesn't get removed correctly + if (name == "class") + node.removeAttribute('className'); + + // Remove mce prefixed attributes + if (MCE_ATTR_RE.test(name)) + node.removeAttribute('_mce_' + name); + + node.removeAttribute(name); + } + }); + + // Remove classes + each(format.classes, function(value) { + value = replaceVars(value, vars); + + if (!compare_node || dom.hasClass(compare_node, value)) + dom.removeClass(node, value); + }); + + // Check for non internal attributes + attrs = dom.getAttribs(node); + for (i = 0; i < attrs.length; i++) { + if (attrs[i].nodeName.indexOf('_') !== 0) + return FALSE; + } + } + + // Remove the inline child if it's empty for example or + if (format.remove != 'none') { + removeNode(node, format); + return TRUE; + } + }; + + /** + * Removes the node and wrap it's children in paragraphs before doing so or + * appends BR elements to the beginning/end of the block element if forcedRootBlocks is disabled. + * + * If the div in the node below gets removed: + * text
text
text + * + * Output becomes: + * text

text
text + * + * So when the div is removed the result is: + * text
text
text + * + * @private + * @param {Node} node Node to remove + apply BR/P elements to. + * @param {Object} format Format rule. + * @return {Node} Input node. + */ + function removeNode(node, format) { + var parentNode = node.parentNode, rootBlockElm; + + if (format.block) { + if (!forcedRootBlock) { + function find(node, next, inc) { + node = getNonWhiteSpaceSibling(node, next, inc); + + return !node || (node.nodeName == 'BR' || isBlock(node)); + }; + + // Append BR elements if needed before we remove the block + if (isBlock(node) && !isBlock(parentNode)) { + if (!find(node, FALSE) && !find(node.firstChild, TRUE, 1)) + node.insertBefore(dom.create('br'), node.firstChild); + + if (!find(node, TRUE) && !find(node.lastChild, FALSE, 1)) + node.appendChild(dom.create('br')); + } + } else { + // Wrap the block in a forcedRootBlock if we are at the root of document + if (parentNode == dom.getRoot()) { + if (!format.list_block || !isEq(node, format.list_block)) { + each(tinymce.grep(node.childNodes), function(node) { + if (isValid(forcedRootBlock, node.nodeName.toLowerCase())) { + if (!rootBlockElm) + rootBlockElm = wrap(node, forcedRootBlock); + else + rootBlockElm.appendChild(node); + } else + rootBlockElm = 0; + }); + } + } + } + } + + // Never remove nodes that isn't the specified inline element if a selector is specified too + if (format.selector && format.inline && !isEq(format.inline, node)) + return; + + dom.remove(node, 1); + }; + + /** + * Returns the next/previous non whitespace node. + * + * @private + * @param {Node} node Node to start at. + * @param {boolean} next (Optional) Include next or previous node defaults to previous. + * @param {boolean} inc (Optional) Include the current node in checking. Defaults to false. + * @return {Node} Next or previous node or undefined if it wasn't found. + */ + function getNonWhiteSpaceSibling(node, next, inc) { + if (node) { + next = next ? 'nextSibling' : 'previousSibling'; + + for (node = inc ? node : node[next]; node; node = node[next]) { + if (node.nodeType == 1 || !isWhiteSpaceNode(node)) + return node; + } + } + }; + + /** + * Checks if the specified node is a bookmark node or not. + * + * @param {Node} node Node to check if it's a bookmark node or not. + * @return {Boolean} true/false if the node is a bookmark node. + */ + function isBookmarkNode(node) { + return node && node.nodeType == 1 && node.getAttribute('_mce_type') == 'bookmark'; + }; + + /** + * Merges the next/previous sibling element if they match. + * + * @private + * @param {Node} prev Previous node to compare/merge. + * @param {Node} next Next node to compare/merge. + * @return {Node} Next node if we didn't merge and prev node if we did. + */ + function mergeSiblings(prev, next) { + var marker, sibling, tmpSibling; + + /** + * Compares two nodes and checks if it's attributes and styles matches. + * This doesn't compare classes as items since their order is significant. + * + * @private + * @param {Node} node1 First node to compare with. + * @param {Node} node2 Second node to compare with. + * @return {boolean} True/false if the nodes are the same or not. + */ + function compareElements(node1, node2) { + // Not the same name + if (node1.nodeName != node2.nodeName) + return FALSE; + + /** + * Returns all the nodes attributes excluding internal ones, styles and classes. + * + * @private + * @param {Node} node Node to get attributes from. + * @return {Object} Name/value object with attributes and attribute values. + */ + function getAttribs(node) { + var attribs = {}; + + each(dom.getAttribs(node), function(attr) { + var name = attr.nodeName.toLowerCase(); + + // Don't compare internal attributes or style + if (name.indexOf('_') !== 0 && name !== 'style') + attribs[name] = dom.getAttrib(node, name); + }); + + return attribs; + }; + + /** + * Compares two objects checks if it's key + value exists in the other one. + * + * @private + * @param {Object} obj1 First object to compare. + * @param {Object} obj2 Second object to compare. + * @return {boolean} True/false if the objects matches or not. + */ + function compareObjects(obj1, obj2) { + var value, name; + + for (name in obj1) { + // Obj1 has item obj2 doesn't have + if (obj1.hasOwnProperty(name)) { + value = obj2[name]; + + // Obj2 doesn't have obj1 item + if (value === undefined) + return FALSE; + + // Obj2 item has a different value + if (obj1[name] != value) + return FALSE; + + // Delete similar value + delete obj2[name]; + } + } + + // Check if obj 2 has something obj 1 doesn't have + for (name in obj2) { + // Obj2 has item obj1 doesn't have + if (obj2.hasOwnProperty(name)) + return FALSE; + } + + return TRUE; + }; + + // Attribs are not the same + if (!compareObjects(getAttribs(node1), getAttribs(node2))) + return FALSE; + + // Styles are not the same + if (!compareObjects(dom.parseStyle(dom.getAttrib(node1, 'style')), dom.parseStyle(dom.getAttrib(node2, 'style')))) + return FALSE; + + return TRUE; + }; + + // Check if next/prev exists and that they are elements + if (prev && next) { + function findElementSibling(node, sibling_name) { + for (sibling = node; sibling; sibling = sibling[sibling_name]) { + if (sibling.nodeType == 3 && !isWhiteSpaceNode(sibling)) + return node; + + if (sibling.nodeType == 1 && !isBookmarkNode(sibling)) + return sibling; + } + + return node; + }; + + // If previous sibling is empty then jump over it + prev = findElementSibling(prev, 'previousSibling'); + next = findElementSibling(next, 'nextSibling'); + + // Compare next and previous nodes + if (compareElements(prev, next)) { + // Append nodes between + for (sibling = prev.nextSibling; sibling && sibling != next;) { + tmpSibling = sibling; + sibling = sibling.nextSibling; + prev.appendChild(tmpSibling); + } + + // Remove next node + dom.remove(next); + + // Move children into prev node + each(tinymce.grep(next.childNodes), function(node) { + prev.appendChild(node); + }); + + return prev; + } + } + + return next; + }; + + /** + * Returns true/false if the specified node is a text block or not. + * + * @private + * @param {Node} node Node to check. + * @return {boolean} True/false if the node is a text block. + */ + function isTextBlock(name) { + return /^(h[1-6]|p|div|pre|address|dl|dt|dd)$/.test(name); + }; + + function getContainer(rng, start) { + var container, offset, lastIdx; + + container = rng[start ? 'startContainer' : 'endContainer']; + offset = rng[start ? 'startOffset' : 'endOffset']; + + if (container.nodeType == 1) { + lastIdx = container.childNodes.length - 1; + + if (!start && offset) + offset--; + + container = container.childNodes[offset > lastIdx ? lastIdx : offset]; + } + + return container; + }; + + function performCaretAction(type, name, vars) { + var i, currentPendingFormats = pendingFormats[type], + otherPendingFormats = pendingFormats[type == 'apply' ? 'remove' : 'apply']; + + function hasPending() { + return pendingFormats.apply.length || pendingFormats.remove.length; + }; + + function resetPending() { + pendingFormats.apply = []; + pendingFormats.remove = []; + }; + + function perform(caret_node) { + // Apply pending formats + each(pendingFormats.apply.reverse(), function(item) { + apply(item.name, item.vars, caret_node); + }); + + // Remove pending formats + each(pendingFormats.remove.reverse(), function(item) { + remove(item.name, item.vars, caret_node); + }); + + dom.remove(caret_node, 1); + resetPending(); + }; + + // Check if it already exists then ignore it + for (i = currentPendingFormats.length - 1; i >= 0; i--) { + if (currentPendingFormats[i].name == name) + return; + } + + currentPendingFormats.push({name : name, vars : vars}); + + // Check if it's in the other type, then remove it + for (i = otherPendingFormats.length - 1; i >= 0; i--) { + if (otherPendingFormats[i].name == name) + otherPendingFormats.splice(i, 1); + } + + // Pending apply or remove formats + if (hasPending()) { + ed.getDoc().execCommand('FontName', false, 'mceinline'); + pendingFormats.lastRng = selection.getRng(); + + // IE will convert the current word + each(dom.select('font,span'), function(node) { + var bookmark; + + if (isCaretNode(node)) { + bookmark = selection.getBookmark(); + perform(node); + selection.moveToBookmark(bookmark); + ed.nodeChanged(); + } + }); + + // Only register listeners once if we need to + if (!pendingFormats.isListening && hasPending()) { + pendingFormats.isListening = true; + + each('onKeyDown,onKeyUp,onKeyPress,onMouseUp'.split(','), function(event) { + ed[event].addToTop(function(ed, e) { + // Do we have pending formats and is the selection moved has moved + if (hasPending() && !tinymce.dom.RangeUtils.compareRanges(pendingFormats.lastRng, selection.getRng())) { + each(dom.select('font,span'), function(node) { + var textNode, rng; + + // Look for marker + if (isCaretNode(node)) { + textNode = node.firstChild; + + if (textNode) { + perform(node); + + rng = dom.createRng(); + rng.setStart(textNode, textNode.nodeValue.length); + rng.setEnd(textNode, textNode.nodeValue.length); + selection.setRng(rng); + ed.nodeChanged(); + } else + dom.remove(node); + } + }); + + // Always unbind and clear pending styles on keyup + if (e.type == 'keyup' || e.type == 'mouseup') + resetPending(); + } + }); + }); + } + } + }; + }; +})(tinymce); diff --git a/source/web/scripts/tiny_mce/classes/LegacyInput.js b/source/web/scripts/tiny_mce/classes/LegacyInput.js new file mode 100644 index 0000000000..80c170d924 --- /dev/null +++ b/source/web/scripts/tiny_mce/classes/LegacyInput.js @@ -0,0 +1,65 @@ +/** + * LegacyInput.js + * + * Copyright 2009, Moxiecode Systems AB + * Released under LGPL License. + * + * License: http://tinymce.moxiecode.com/license + * Contributing: http://tinymce.moxiecode.com/contributing + */ + +tinymce.onAddEditor.add(function(tinymce, ed) { + var filters, fontSizes, dom, settings = ed.settings; + + if (settings.inline_styles) { + fontSizes = tinymce.explode(settings.font_size_style_values); + + function replaceWithSpan(node, styles) { + tinymce.each(styles, function(value, name) { + if (value) + dom.setStyle(node, name, value); + }); + + dom.rename(node, 'span'); + }; + + filters = { + font : function(dom, node) { + replaceWithSpan(node, { + backgroundColor : node.style.backgroundColor, + color : node.color, + fontFamily : node.face, + fontSize : fontSizes[parseInt(node.size) - 1] + }); + }, + + u : function(dom, node) { + replaceWithSpan(node, { + textDecoration : 'underline' + }); + }, + + strike : function(dom, node) { + replaceWithSpan(node, { + textDecoration : 'line-through' + }); + } + }; + + function convert(editor, params) { + dom = editor.dom; + + if (settings.convert_fonts_to_spans) { + tinymce.each(dom.select('font,u,strike', params.node), function(node) { + filters[node.nodeName.toLowerCase()](ed.dom, node); + }); + } + }; + + ed.onPreProcess.add(convert); + + ed.onInit.add(function() { + ed.selection.onSetContent.add(convert); + }); + } +}); diff --git a/source/web/scripts/tiny_mce/classes/Popup.js b/source/web/scripts/tiny_mce/classes/Popup.js index 5ead12d183..c3f40f305d 100644 --- a/source/web/scripts/tiny_mce/classes/Popup.js +++ b/source/web/scripts/tiny_mce/classes/Popup.js @@ -1,5 +1,5 @@ /** - * $Id: Popup.js 920 2008-09-09 14:05:33Z spocke $ + * $Id: Popup.js 1204 2009-08-19 12:12:07Z spocke $ * * @author Moxiecode * @copyright Copyright © 2004-2008, Moxiecode Systems AB, All rights reserved. @@ -8,34 +8,22 @@ // Some global instances var tinymce = null, tinyMCEPopup, tinyMCE; -/**#@+ - * @class TinyMCE popup/dialog helper class. This gives you easy access to the +/** + * TinyMCE popup/dialog helper class. This gives you easy access to the * parent editor instance and a bunch of other things. It's higly recommended * that you load this script into your dialogs. * * @static - * @member tinyMCEPopup + * @class tinyMCEPopup */ tinyMCEPopup = { - /**#@+ - * @method - */ - /** * Initializes the popup this will be called automatically. + * + * @method init */ init : function() { - var t = this, w, ti, li, q, i, it; - - li = ('' + document.location.search).replace(/^\?/, '').split('&'); - q = {}; - for (i=0; i/langs/_dlg.js lang pack file. + * + * @method requireLangPack */ requireLangPack : function() { - var u = this.getWindowArg('plugin_url') || this.getWindowArg('theme_url'); + var t = this, u = t.getWindowArg('plugin_url') || t.getWindowArg('theme_url'); - if (u && this.editor.settings.language) { - u += '/langs/' + this.editor.settings.language + '_dlg.js'; + if (u && t.editor.settings.language && t.features.translate_i18n !== false) { + u += '/langs/' + t.editor.settings.language + '_dlg.js'; if (!tinymce.ScriptLoader.isDone(u)) { document.write(''); @@ -193,6 +196,7 @@ tinyMCEPopup = { * Executes a color picker on the specified element id. When the user * then selects a color it will be set as the value of the specified element. * + * @method pickColor * @param {DOMEvent} e DOM event object. * @param {string} element_id Element id to be filled with the color value from the picker. */ @@ -215,6 +219,7 @@ tinyMCEPopup = { * Opens a filebrowser/imagebrowser this will set the output value from * the browser as a value on the specified element. * + * @method openBrowser * @param {string} element_id Id of the element to set value in. * @param {string} type Type of browser to open image/file/flash. * @param {string} option Option name to get the file_broswer_callback function name from. @@ -228,6 +233,7 @@ tinyMCEPopup = { * Creates a confirm dialog. Please don't use the blocking behavior of this * native version use the callback method instead then it can be extended. * + * @method confirm * @param {String} t Title for the new confirm dialog. * @param {function} cb Callback function to be executed after the user has selected ok or cancel. * @param {Object} s Optional scope to execute the callback in. @@ -240,6 +246,7 @@ tinyMCEPopup = { * Creates a alert dialog. Please don't use the blocking behavior of this * native version use the callback method instead then it can be extended. * + * @method alert * @param {String} t Title for the new alert dialog. * @param {function} cb Callback function to be executed after the user has selected ok. * @param {Object} s Optional scope to execute the callback in. @@ -250,6 +257,8 @@ tinyMCEPopup = { /** * Closes the current window. + * + * @method close */ close : function() { var t = this; @@ -284,7 +293,12 @@ tinyMCEPopup = { },*/ _onDOMLoaded : function() { - var t = this, ti = document.title, bm, h, nv; + var t = tinyMCEPopup, ti = document.title, bm, h, nv; + + if (t.domLoaded) + return; + + t.domLoaded = 1; // Translate page if (t.features.translate_i18n !== false) { @@ -306,9 +320,13 @@ tinyMCEPopup = { document.body.style.display = ''; // Restore selection in IE when focus is placed on a non textarea or input element of the type text - if (tinymce.isIE) + if (tinymce.isIE) { document.attachEvent('onmouseup', tinyMCEPopup._restoreSelection); + // Add base target element for it since it would fail with modal dialogs + t.dom.add(t.dom.select('head')[0], 'base', {target : '_self'}); + } + t.restoreSelection(); t.resizeToInnerSize(); @@ -374,30 +392,37 @@ tinyMCEPopup = { }, _wait : function() { - var t = this, ti; - - if (tinymce.isIE && document.location.protocol != 'https:') { - // Fake DOMContentLoaded on IE - document.write(' -
@@ -22,7 +21,7 @@ - - + @@ -89,7 +88,7 @@ - @@ -123,7 +122,7 @@ - + @@ -158,7 +157,7 @@ - + @@ -171,7 +170,7 @@ - +
+
+ x px
diff --git a/source/web/scripts/tiny_mce/plugins/advimage/js/image.js b/source/web/scripts/tiny_mce/plugins/advimage/js/image.js index 64fc6f677b..347722661b 100644 --- a/source/web/scripts/tiny_mce/plugins/advimage/js/image.js +++ b/source/web/scripts/tiny_mce/plugins/advimage/js/image.js @@ -272,6 +272,7 @@ var ImageDialog = { cl = tinyMCEPopup.editor.dom.getClasses(); if (cl.length > 0) { + lst.options.length = 0; lst.options[lst.options.length] = new Option(tinyMCEPopup.getLang('not_set'), ''); tinymce.each(cl, function(o) { @@ -285,6 +286,7 @@ var ImageDialog = { var dom = tinyMCEPopup.dom, lst = dom.get(id), v, cl; l = window[l]; + lst.options.length = 0; if (l && l.length > 0) { lst.options[lst.options.length] = new Option('', ''); diff --git a/source/web/scripts/tiny_mce/plugins/advlink/editor_plugin.js b/source/web/scripts/tiny_mce/plugins/advlink/editor_plugin.js index 4899f7b8c6..983fe5a9ca 100644 --- a/source/web/scripts/tiny_mce/plugins/advlink/editor_plugin.js +++ b/source/web/scripts/tiny_mce/plugins/advlink/editor_plugin.js @@ -1 +1 @@ -(function(){tinymce.create('tinymce.plugins.AdvancedLinkPlugin',{init:function(ed,url){this.editor=ed;ed.addCommand('mceAdvLink',function(){var se=ed.selection;if(se.isCollapsed()&&!ed.dom.getParent(se.getNode(),'A'))return;ed.windowManager.open({file:url+'/link.htm',width:480+parseInt(ed.getLang('advlink.delta_width',0)),height:400+parseInt(ed.getLang('advlink.delta_height',0)),inline:1},{plugin_url:url});});ed.addButton('link',{title:'advlink.link_desc',cmd:'mceAdvLink'});ed.addShortcut('ctrl+k','advlink.advlink_desc','mceAdvLink');ed.onNodeChange.add(function(ed,cm,n,co){cm.setDisabled('link',co&&n.nodeName!='A');cm.setActive('link',n.nodeName=='A'&&!n.name);});},getInfo:function(){return{longname:'Advanced link',author:'Moxiecode Systems AB',authorurl:'http://tinymce.moxiecode.com',infourl:'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/advlink',version:tinymce.majorVersion+"."+tinymce.minorVersion};}});tinymce.PluginManager.add('advlink',tinymce.plugins.AdvancedLinkPlugin);})(); \ No newline at end of file +(function(){tinymce.create("tinymce.plugins.AdvancedLinkPlugin",{init:function(a,b){this.editor=a;a.addCommand("mceAdvLink",function(){var c=a.selection;if(c.isCollapsed()&&!a.dom.getParent(c.getNode(),"A")){return}a.windowManager.open({file:b+"/link.htm",width:480+parseInt(a.getLang("advlink.delta_width",0)),height:400+parseInt(a.getLang("advlink.delta_height",0)),inline:1},{plugin_url:b})});a.addButton("link",{title:"advlink.link_desc",cmd:"mceAdvLink"});a.addShortcut("ctrl+k","advlink.advlink_desc","mceAdvLink");a.onNodeChange.add(function(d,c,f,e){c.setDisabled("link",e&&f.nodeName!="A");c.setActive("link",f.nodeName=="A"&&!f.name)})},getInfo:function(){return{longname:"Advanced link",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/advlink",version:tinymce.majorVersion+"."+tinymce.minorVersion}}});tinymce.PluginManager.add("advlink",tinymce.plugins.AdvancedLinkPlugin)})(); \ No newline at end of file diff --git a/source/web/scripts/tiny_mce/plugins/advlink/js/advlink.js b/source/web/scripts/tiny_mce/plugins/advlink/js/advlink.js index a89625014a..bb7922a6e1 100644 --- a/source/web/scripts/tiny_mce/plugins/advlink/js/advlink.js +++ b/source/web/scripts/tiny_mce/plugins/advlink/js/advlink.js @@ -116,7 +116,7 @@ function checkPrefix(n) { if (n.value && Validator.isEmail(n) && !/^\s*mailto:/i.test(n.value) && confirm(tinyMCEPopup.getLang('advlink_dlg.is_email'))) n.value = 'mailto:' + n.value; - if (/^\s*www./i.test(n.value) && confirm(tinyMCEPopup.getLang('advlink_dlg.is_external'))) + if (/^\s*www\./i.test(n.value) && confirm(tinyMCEPopup.getLang('advlink_dlg.is_external'))) n.value = 'http://' + n.value; } @@ -402,6 +402,7 @@ function insertAction() { // Create new anchor elements if (elm == null) { + inst.getDoc().execCommand("unlink", false, null); tinyMCEPopup.execCommand("CreateLink", false, "#mce_temp_url#", {skip_undo : 1}); elementArray = tinymce.grep(inst.dom.select("a"), function(n) {return inst.dom.getAttrib(n, 'href') == '#mce_temp_url#';}); diff --git a/source/web/scripts/tiny_mce/plugins/advlink/link.htm b/source/web/scripts/tiny_mce/plugins/advlink/link.htm index f46e8f8324..cc8b0b87c1 100644 --- a/source/web/scripts/tiny_mce/plugins/advlink/link.htm +++ b/source/web/scripts/tiny_mce/plugins/advlink/link.htm @@ -8,7 +8,6 @@ - @@ -28,7 +27,7 @@ - + @@ -109,9 +108,9 @@ - + - + diff --git a/source/web/scripts/tiny_mce/plugins/xhtmlxtras/cite.htm b/source/web/scripts/tiny_mce/plugins/xhtmlxtras/cite.htm index 7d9eaba4d2..cdfaf4e854 100644 --- a/source/web/scripts/tiny_mce/plugins/xhtmlxtras/cite.htm +++ b/source/web/scripts/tiny_mce/plugins/xhtmlxtras/cite.htm @@ -9,7 +9,6 @@ - diff --git a/source/web/scripts/tiny_mce/plugins/xhtmlxtras/del.htm b/source/web/scripts/tiny_mce/plugins/xhtmlxtras/del.htm index d03c4568aa..f45676e3d4 100644 --- a/source/web/scripts/tiny_mce/plugins/xhtmlxtras/del.htm +++ b/source/web/scripts/tiny_mce/plugins/xhtmlxtras/del.htm @@ -9,7 +9,6 @@ - @@ -31,7 +30,7 @@
@@ -38,25 +37,25 @@ - + - + - + - + @@ -73,7 +72,7 @@
 
 
 
- + - + @@ -260,8 +259,7 @@ - - + diff --git a/source/web/scripts/tiny_mce/plugins/nonbreaking/editor_plugin.js b/source/web/scripts/tiny_mce/plugins/nonbreaking/editor_plugin.js index 4fce503c15..f2dbbff2bb 100644 --- a/source/web/scripts/tiny_mce/plugins/nonbreaking/editor_plugin.js +++ b/source/web/scripts/tiny_mce/plugins/nonbreaking/editor_plugin.js @@ -1 +1 @@ -(function(){tinymce.create('tinymce.plugins.Nonbreaking',{init:function(ed,url){var t=this;t.editor=ed;ed.addCommand('mceNonBreaking',function(){ed.execCommand('mceInsertContent',false,(ed.plugins.visualchars&&ed.plugins.visualchars.state)?'·':' ');});ed.addButton('nonbreaking',{title:'nonbreaking.nonbreaking_desc',cmd:'mceNonBreaking'});if(ed.getParam('nonbreaking_force_tab')){ed.onKeyDown.add(function(ed,e){if(tinymce.isIE&&e.keyCode==9){ed.execCommand('mceNonBreaking');ed.execCommand('mceNonBreaking');ed.execCommand('mceNonBreaking');tinymce.dom.Event.cancel(e);}});}},getInfo:function(){return{longname:'Nonbreaking space',author:'Moxiecode Systems AB',authorurl:'http://tinymce.moxiecode.com',infourl:'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/nonbreaking',version:tinymce.majorVersion+"."+tinymce.minorVersion};}});tinymce.PluginManager.add('nonbreaking',tinymce.plugins.Nonbreaking);})(); \ No newline at end of file +(function(){tinymce.create("tinymce.plugins.Nonbreaking",{init:function(a,b){var c=this;c.editor=a;a.addCommand("mceNonBreaking",function(){a.execCommand("mceInsertContent",false,(a.plugins.visualchars&&a.plugins.visualchars.state)?'·':" ")});a.addButton("nonbreaking",{title:"nonbreaking.nonbreaking_desc",cmd:"mceNonBreaking"});if(a.getParam("nonbreaking_force_tab")){a.onKeyDown.add(function(d,f){if(tinymce.isIE&&f.keyCode==9){d.execCommand("mceNonBreaking");d.execCommand("mceNonBreaking");d.execCommand("mceNonBreaking");tinymce.dom.Event.cancel(f)}})}},getInfo:function(){return{longname:"Nonbreaking space",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/nonbreaking",version:tinymce.majorVersion+"."+tinymce.minorVersion}}});tinymce.PluginManager.add("nonbreaking",tinymce.plugins.Nonbreaking)})(); \ No newline at end of file diff --git a/source/web/scripts/tiny_mce/plugins/noneditable/editor_plugin.js b/source/web/scripts/tiny_mce/plugins/noneditable/editor_plugin.js index 8a1b8f0754..9945cd8580 100644 --- a/source/web/scripts/tiny_mce/plugins/noneditable/editor_plugin.js +++ b/source/web/scripts/tiny_mce/plugins/noneditable/editor_plugin.js @@ -1 +1 @@ -(function(){var Event=tinymce.dom.Event;tinymce.create('tinymce.plugins.NonEditablePlugin',{init:function(ed,url){var t=this,editClass,nonEditClass;t.editor=ed;editClass=ed.getParam("noneditable_editable_class","mceEditable");nonEditClass=ed.getParam("noneditable_noneditable_class","mceNonEditable");ed.onNodeChange.addToTop(function(ed,cm,n){var sc,ec;sc=ed.dom.getParent(ed.selection.getStart(),function(n){return ed.dom.hasClass(n,nonEditClass);});ec=ed.dom.getParent(ed.selection.getEnd(),function(n){return ed.dom.hasClass(n,nonEditClass);});if(sc||ec){t._setDisabled(1);return false;}else t._setDisabled(0);});},getInfo:function(){return{longname:'Non editable elements',author:'Moxiecode Systems AB',authorurl:'http://tinymce.moxiecode.com',infourl:'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/noneditable',version:tinymce.majorVersion+"."+tinymce.minorVersion};},_block:function(ed,e){var k=e.keyCode;if((k>32&&k<41)||(k>111&&k<124))return;return Event.cancel(e);},_setDisabled:function(s){var t=this,ed=t.editor;tinymce.each(ed.controlManager.controls,function(c){c.setDisabled(s);});if(s!==t.disabled){if(s){ed.onKeyDown.addToTop(t._block);ed.onKeyPress.addToTop(t._block);ed.onKeyUp.addToTop(t._block);ed.onPaste.addToTop(t._block);}else{ed.onKeyDown.remove(t._block);ed.onKeyPress.remove(t._block);ed.onKeyUp.remove(t._block);ed.onPaste.remove(t._block);}t.disabled=s;}}});tinymce.PluginManager.add('noneditable',tinymce.plugins.NonEditablePlugin);})(); \ No newline at end of file +(function(){var a=tinymce.dom.Event;tinymce.create("tinymce.plugins.NonEditablePlugin",{init:function(d,e){var f=this,c,b;f.editor=d;c=d.getParam("noneditable_editable_class","mceEditable");b=d.getParam("noneditable_noneditable_class","mceNonEditable");d.onNodeChange.addToTop(function(h,g,k){var j,i;j=h.dom.getParent(h.selection.getStart(),function(l){return h.dom.hasClass(l,b)});i=h.dom.getParent(h.selection.getEnd(),function(l){return h.dom.hasClass(l,b)});if(j||i){f._setDisabled(1);return false}else{f._setDisabled(0)}})},getInfo:function(){return{longname:"Non editable elements",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/noneditable",version:tinymce.majorVersion+"."+tinymce.minorVersion}},_block:function(c,d){var b=d.keyCode;if((b>32&&b<41)||(b>111&&b<124)){return}return a.cancel(d)},_setDisabled:function(d){var c=this,b=c.editor;tinymce.each(b.controlManager.controls,function(e){e.setDisabled(d)});if(d!==c.disabled){if(d){b.onKeyDown.addToTop(c._block);b.onKeyPress.addToTop(c._block);b.onKeyUp.addToTop(c._block);b.onPaste.addToTop(c._block)}else{b.onKeyDown.remove(c._block);b.onKeyPress.remove(c._block);b.onKeyUp.remove(c._block);b.onPaste.remove(c._block)}c.disabled=d}}});tinymce.PluginManager.add("noneditable",tinymce.plugins.NonEditablePlugin)})(); \ No newline at end of file diff --git a/source/web/scripts/tiny_mce/plugins/pagebreak/editor_plugin.js b/source/web/scripts/tiny_mce/plugins/pagebreak/editor_plugin.js index 177ea95baa..a212f69633 100644 --- a/source/web/scripts/tiny_mce/plugins/pagebreak/editor_plugin.js +++ b/source/web/scripts/tiny_mce/plugins/pagebreak/editor_plugin.js @@ -1 +1 @@ -(function(){tinymce.create('tinymce.plugins.PageBreakPlugin',{init:function(ed,url){var pb='',cls='mcePageBreak',sep=ed.getParam('pagebreak_separator',''),pbRE;pbRE=new RegExp(sep.replace(/[\?\.\*\[\]\(\)\{\}\+\^\$\:]/g,function(a){return'\\'+a;}),'g');ed.addCommand('mcePageBreak',function(){ed.execCommand('mceInsertContent',0,pb);});ed.addButton('pagebreak',{title:'pagebreak.desc',cmd:cls});ed.onInit.add(function(){if(ed.settings.content_css!==false)ed.dom.loadCSS(url+"/css/content.css");if(ed.theme.onResolveName){ed.theme.onResolveName.add(function(th,o){if(o.node.nodeName=='IMG'&&ed.dom.hasClass(o.node,cls))o.name='pagebreak';});}});ed.onClick.add(function(ed,e){e=e.target;if(e.nodeName==='IMG'&&ed.dom.hasClass(e,cls))ed.selection.select(e);});ed.onNodeChange.add(function(ed,cm,n){cm.setActive('pagebreak',n.nodeName==='IMG'&&ed.dom.hasClass(n,cls));});ed.onBeforeSetContent.add(function(ed,o){o.content=o.content.replace(pbRE,pb);});ed.onPostProcess.add(function(ed,o){if(o.get)o.content=o.content.replace(/]+>/g,function(im){if(im.indexOf('class="mcePageBreak')!==-1)im=sep;return im;});});},getInfo:function(){return{longname:'PageBreak',author:'Moxiecode Systems AB',authorurl:'http://tinymce.moxiecode.com',infourl:'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/pagebreak',version:tinymce.majorVersion+"."+tinymce.minorVersion};}});tinymce.PluginManager.add('pagebreak',tinymce.plugins.PageBreakPlugin);})(); \ No newline at end of file +(function(){tinymce.create("tinymce.plugins.PageBreakPlugin",{init:function(b,d){var f='',a="mcePageBreak",c=b.getParam("pagebreak_separator",""),e;e=new RegExp(c.replace(/[\?\.\*\[\]\(\)\{\}\+\^\$\:]/g,function(g){return"\\"+g}),"g");b.addCommand("mcePageBreak",function(){b.execCommand("mceInsertContent",0,f)});b.addButton("pagebreak",{title:"pagebreak.desc",cmd:a});b.onInit.add(function(){if(b.settings.content_css!==false){b.dom.loadCSS(d+"/css/content.css")}if(b.theme.onResolveName){b.theme.onResolveName.add(function(g,h){if(h.node.nodeName=="IMG"&&b.dom.hasClass(h.node,a)){h.name="pagebreak"}})}});b.onClick.add(function(g,h){h=h.target;if(h.nodeName==="IMG"&&g.dom.hasClass(h,a)){g.selection.select(h)}});b.onNodeChange.add(function(h,g,i){g.setActive("pagebreak",i.nodeName==="IMG"&&h.dom.hasClass(i,a))});b.onBeforeSetContent.add(function(g,h){h.content=h.content.replace(e,f)});b.onPostProcess.add(function(g,h){if(h.get){h.content=h.content.replace(/]+>/g,function(i){if(i.indexOf('class="mcePageBreak')!==-1){i=c}return i})}})},getInfo:function(){return{longname:"PageBreak",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/pagebreak",version:tinymce.majorVersion+"."+tinymce.minorVersion}}});tinymce.PluginManager.add("pagebreak",tinymce.plugins.PageBreakPlugin)})(); \ No newline at end of file diff --git a/source/web/scripts/tiny_mce/plugins/paste/editor_plugin.js b/source/web/scripts/tiny_mce/plugins/paste/editor_plugin.js index eeeebd5bb7..7b2bbd9b3e 100644 --- a/source/web/scripts/tiny_mce/plugins/paste/editor_plugin.js +++ b/source/web/scripts/tiny_mce/plugins/paste/editor_plugin.js @@ -1 +1 @@ -(function(){var Event=tinymce.dom.Event;tinymce.create('tinymce.plugins.PastePlugin',{init:function(ed,url){var t=this;t.editor=ed;ed.addCommand('mcePasteText',function(ui,v){if(ui){if((ed.getParam('paste_use_dialog',true))||(!tinymce.isIE)){ed.windowManager.open({file:url+'/pastetext.htm',width:450,height:400,inline:1},{plugin_url:url});}else t._insertText(clipboardData.getData("Text"),true);}else t._insertText(v.html,v.linebreaks);});ed.addCommand('mcePasteWord',function(ui,v){if(ui){if((ed.getParam('paste_use_dialog',true))||(!tinymce.isIE)){ed.windowManager.open({file:url+'/pasteword.htm',width:450,height:400,inline:1},{plugin_url:url});}else t._insertText(t._clipboardHTML());}else t._insertWordContent(v);});ed.addCommand('mceSelectAll',function(){ed.execCommand('selectall');});ed.addButton('pastetext',{title:'paste.paste_text_desc',cmd:'mcePasteText',ui:true});ed.addButton('pasteword',{title:'paste.paste_word_desc',cmd:'mcePasteWord',ui:true});ed.addButton('selectall',{title:'paste.selectall_desc',cmd:'mceSelectAll'});if(ed.getParam("paste_auto_cleanup_on_paste",false)){ed.onPaste.add(function(ed,e){return t._handlePasteEvent(e)});}if(!tinymce.isIE&&ed.getParam("paste_auto_cleanup_on_paste",false)){ed.onKeyDown.add(function(ed,e){if(e.ctrlKey&&e.keyCode==86){window.setTimeout(function(){ed.execCommand("mcePasteText",true);},1);Event.cancel(e);}});}},getInfo:function(){return{longname:'Paste text/word',author:'Moxiecode Systems AB',authorurl:'http://tinymce.moxiecode.com',infourl:'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/paste',version:tinymce.majorVersion+"."+tinymce.minorVersion};},_handlePasteEvent:function(e){var html=this._clipboardHTML(),ed=this.editor,sel=ed.selection,r;if(ed&&(r=sel.getRng())&&r.text.length>0)ed.execCommand('delete');if(html&&html.length>0)ed.execCommand('mcePasteWord',false,html);return Event.cancel(e);},_insertText:function(content,bLinebreaks){content=this.editor.dom.encode(content);if(content&&content.length>0){if(!this.editor.selection.isCollapsed())this.editor.execCommand("Delete");if(bLinebreaks){if(this.editor.getParam("paste_create_paragraphs",true)){var rl=this.editor.getParam("paste_replace_list",'\u2122,TM,\u2026,...,\u201c|\u201d,",\u2019,\',\u2013|\u2014|\u2015|\u2212,-').split(',');for(var i=0;i

');content=content.replace(/\r\r/g,'

');content=content.replace(/\n\n/g,'

');if((pos=content.indexOf('

'))!=-1){this.editor.execCommand("Delete");var node=this.editor.selection.getNode();var breakElms=[];do{if(node.nodeType==1){if(node.nodeName=="TD"||node.nodeName=="BODY")break;breakElms[breakElms.length]=node;}}while(node=node.parentNode);var before="",after="

";before+=content.substring(0,pos);for(var i=0;i";after+="<"+breakElms[(breakElms.length-1)-i].nodeName+">";}before+="

";content=before+content.substring(pos+7)+after;}}if(this.editor.getParam("paste_create_linebreaks",true)){content=content.replace(/\r\n/g,'
');content=content.replace(/\r/g,'
');content=content.replace(/\n/g,'
');}}this.editor.execCommand("mceInsertRawHTML",false,content);}},_insertWordContent:function(content){var t=this,ed=t.editor;if(content&&content.length>0){var bull=String.fromCharCode(8226);var middot=String.fromCharCode(183);if(ed.getParam('paste_insert_word_content_callback'))content=ed.execCallback('paste_insert_word_content_callback','before',content);var rl=ed.getParam("paste_replace_list",'\u2122,TM,\u2026,...,\x93|\x94|\u201c|\u201d,",\x60|\x91|\x92|\u2018|\u2019,\',\u2013|\u2014|\u2015|\u2212,-').split(',');for(var i=0;i(.*?)<\/p>','gi'),'

$1

');}content=content.replace(new RegExp('tab-stops: list [0-9]+.0pt">','gi'),'">'+"--list--");content=content.replace(new RegExp(bull+"(.*?)
","gi"),"

"+middot+"$1

");content=content.replace(new RegExp('','gi'),""+bull);content=content.replace(/<\/o:p>/gi,"");content=content.replace(new RegExp('
]+>/g,"");if(this.editor.getParam("paste_remove_spans",true))content=content.replace(/<\/?span[^>]*>/gi,"");if(this.editor.getParam("paste_remove_styles",true))content=content.replace(new RegExp('<(\\w[^>]*) style="([^"]*)"([^>]*)','gi'),"<$1$3");content=content.replace(/<\/?font[^>]*>/gi,"");switch(this.editor.getParam("paste_strip_class_attributes","all")){case"all":content=content.replace(/<(\w[^>]*) class=([^ |>]*)([^>]*)/gi,"<$1$3");break;case"mso":content=content.replace(new RegExp('<(\\w[^>]*) class="?mso([^ |>]*)([^>]*)','gi'),"<$1$3");break;}content=content.replace(new RegExp('href="?'+this._reEscape(""+document.location)+'','gi'),'href="'+this.editor.documentBaseURI.getURI());content=content.replace(/<(\w[^>]*) lang=([^ |>]*)([^>]*)/gi,"<$1$3");content=content.replace(/<\\?\?xml[^>]*>/gi,"");content=content.replace(/<\/?\w+:[^>]*>/gi,"");content=content.replace(/-- page break --\s*

 <\/p>/gi,"");content=content.replace(/-- page break --/gi,"");if(!this.editor.getParam('force_p_newlines')){content=content.replace('','','gi');content=content.replace('

','

','gi');}if(!tinymce.isIE&&!this.editor.getParam('force_p_newlines')){content=content.replace(/<\/?p[^>]*>/gi,"");}content=content.replace(/<\/?div[^>]*>/gi,"");if(this.editor.getParam("paste_convert_middot_lists",true)){var div=ed.dom.create("div",null,content);var className=this.editor.getParam("paste_unindented_list_class","unIndentedList");while(this._convertMiddots(div,"--list--"));while(this._convertMiddots(div,middot,className));while(this._convertMiddots(div,bull));content=div.innerHTML;}if(this.editor.getParam("paste_convert_headers_to_strong",false)){content=content.replace(/ <\/h[1-6]>/gi,'

  

');content=content.replace(//gi,'

');content=content.replace(/<\/h[1-6]>/gi,'

');content=content.replace(/ <\/b>/gi,'  ');content=content.replace(/^( )*/gi,'');}content=content.replace(/--list--/gi,"");if(ed.getParam('paste_insert_word_content_callback'))content=ed.execCallback('paste_insert_word_content_callback','after',content);this.editor.execCommand("mceInsertContent",false,content);if(this.editor.getParam('paste_force_cleanup_wordpaste',true)){var ed=this.editor;window.setTimeout(function(){ed.execCommand("mceCleanup");},1);}}},_reEscape:function(s){var l="?.\\*[](){}+^$:";var o="";for(var i=0;i span.Apple-style-span div",r)[0]||o.select("> span.Apple-style-span",r)[0]||r).innerHTML});a(n,function(r){o.remove(r)});if(k){j.setRng(k)}g({content:q})},0)}}if(c.getParam("paste_auto_cleanup_on_paste",true)){if(tinymce.isOpera||/Firefox\/2/.test(navigator.userAgent)){c.onKeyDown.add(function(h,i){if(((tinymce.isMac?i.metaKey:i.ctrlKey)&&i.keyCode==86)||(i.shiftKey&&i.keyCode==45)){f(i)}})}else{c.onPaste.addToTop(function(h,i){return f(i)})}}if(c.getParam("paste_block_drop")){c.onInit.add(function(){c.dom.bind(c.getBody(),["dragend","dragover","draggesture","dragdrop","drop","drag"],function(h){h.preventDefault();h.stopPropagation();return false})})}e._legacySupport()},getInfo:function(){return{longname:"Paste text/word",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/paste",version:tinymce.majorVersion+"."+tinymce.minorVersion}},_preProcess:function(d,i){var b=this.editor,c=i.content,g,f;function g(h){a(h,function(j){if(j.constructor==RegExp){c=c.replace(j,"")}else{c=c.replace(j[0],j[1])}})}if(/(class=\"?Mso|style=\"[^\"]*\bmso\-|w:WordDocument)/.test(c)||i.wordContent){i.wordContent=true;g([/^\s*( )+/g,/( |]*>)+\s*$/g]);if(b.getParam("paste_convert_middot_lists",true)){g([[//gi,"$&__MCE_ITEM__"],[/(]+:\s*symbol[^>]+>)/gi,"$1__MCE_ITEM__"],[/(]+mso-list:[^>]+>)/gi,"$1__MCE_ITEM__"]])}g([//gi,/<\/?(img|font|meta|link|style|div|v:\w+)[^>]*>/gi,/<\\?\?xml[^>]*>/gi,/<\/?o:[^>]*>/gi,/ (id|name|language|type|on\w+|v:\w+)=\"([^\"]*)\"/gi,/ (id|name|language|type|on\w+|v:\w+)=(\w+)/gi,[/<(\/?)s>/gi,"<$1strike>"],/]+>[\s\S]*?<\/script>/gi,[/ /g,"\u00a0"]]);if(!b.getParam("paste_retain_style_properties")){g([/<\/?(span)[^>]*>/gi])}}f=b.getParam("paste_strip_class_attributes");if(f!="none"){function e(l,h){var k,j="";if(f=="all"){return""}h=tinymce.explode(h," ");for(k=h.length-1;k>=0;k--){if(!/^(Mso)/i.test(h[k])){j+=(!j?"":" ")+h[k]}}return' class="'+j+'"'}g([[/ class=\"([^\"]*)\"/gi,e],[/ class=(\w+)/gi,e]])}if(b.getParam("paste_remove_spans")){g([/<\/?(span)[^>]*>/gi])}i.content=c},_postProcess:function(e,g){var d=this,c=d.editor,f=c.dom,b;if(g.wordContent){a(f.select("a",g.node),function(h){if(!h.href||h.href.indexOf("#_Toc")!=-1){f.remove(h,1)}});if(d.editor.getParam("paste_convert_middot_lists",true)){d._convertLists(e,g)}b=c.getParam("paste_retain_style_properties");if(tinymce.is(b,"string")){b=tinymce.explode(b)}a(f.select("*",g.node),function(l){var m={},j=0,k,n,h;if(b){for(k=0;k0){f.setStyles(l,m)}else{if(l.nodeName=="SPAN"&&!l.className){f.remove(l,true)}}})}if(c.getParam("paste_remove_styles")||(c.getParam("paste_remove_styles_if_webkit")&&tinymce.isWebKit)){a(f.select("*[style]",g.node),function(h){h.removeAttribute("style");h.removeAttribute("mce_style")})}else{if(tinymce.isWebKit){a(f.select("*",g.node),function(h){h.removeAttribute("mce_style")})}}},_convertLists:function(e,c){var g=e.editor.dom,f,j,b=-1,d,k=[],i,h;a(g.select("p",c.node),function(r){var n,s="",q,o,l,m;for(n=r.firstChild;n&&n.nodeType==3;n=n.nextSibling){s+=n.nodeValue}s=r.innerHTML.replace(/<\/?\w+[^>]*>/gi,"").replace(/ /g,"\u00a0");if(/^(__MCE_ITEM__)+[\u2022\u00b7\u00a7\u00d8o]\s*\u00a0*/.test(s)){q="ul"}if(/^__MCE_ITEM__\s*\w+\.\s*\u00a0{2,}/.test(s)){q="ol"}if(q){d=parseFloat(r.style.marginLeft||0);if(d>b){k.push(d)}if(!f||q!=i){f=g.create(q);g.insertAfter(f,r)}else{if(d>b){f=j.appendChild(g.create(q))}else{if(d]*>/gi,"");if(q=="ul"&&/^[\u2022\u00b7\u00a7\u00d8o]/.test(p)){g.remove(t)}else{if(/^[\s\S]*\w+\.( |\u00a0)*\s*/.test(p)){g.remove(t)}}});o=r.innerHTML;if(q=="ul"){o=r.innerHTML.replace(/__MCE_ITEM__/g,"").replace(/^[\u2022\u00b7\u00a7\u00d8o]\s*( |\u00a0)+\s*/,"")}else{o=r.innerHTML.replace(/__MCE_ITEM__/g,"").replace(/^\s*\w+\.( |\u00a0)+\s*/,"")}j=f.appendChild(g.create("li",0,o));g.remove(r);b=d;i=q}else{f=b=0}});h=c.node.innerHTML;if(h.indexOf("__MCE_ITEM__")!=-1){c.node.innerHTML=h.replace(/__MCE_ITEM__/g,"")}},_insertBlockContent:function(h,e,i){var c,g,d=h.selection,m,j,b,k,f;function l(p){var o;if(tinymce.isIE){o=h.getDoc().body.createTextRange();o.moveToElementText(p);o.collapse(false);o.select()}else{d.select(p,1);d.collapse(false)}}this._insert(' ',1);g=e.get("_marker");c=e.getParent(g,"p,h1,h2,h3,h4,h5,h6,ul,ol,th,td");if(c&&!/TD|TH/.test(c.nodeName)){g=e.split(c,g);a(e.create("div",0,i).childNodes,function(o){m=g.parentNode.insertBefore(o.cloneNode(true),g)});l(m)}else{e.setOuterHTML(g,i);d.select(h.getBody(),1);d.collapse(0)}e.remove("_marker");j=d.getStart();b=e.getViewPort(h.getWin());k=h.dom.getPos(j).y;f=j.clientHeight;if(kb.y+b.h){h.getDoc().body.scrollTop=k
   @@ -84,19 +83,19 @@ - + - - + - - + @@ -109,27 +108,27 @@
  
  +   x px
  +   / (c /c = center)
- + - + - + - + - + - + - + - +
diff --git a/source/web/scripts/tiny_mce/plugins/autoresize/editor_plugin.js b/source/web/scripts/tiny_mce/plugins/autoresize/editor_plugin.js new file mode 100644 index 0000000000..220b84ac47 --- /dev/null +++ b/source/web/scripts/tiny_mce/plugins/autoresize/editor_plugin.js @@ -0,0 +1 @@ +(function(){tinymce.create("tinymce.plugins.AutoResizePlugin",{init:function(a,c){var d=this;if(a.getParam("fullscreen_is_enabled")){return}function b(){var h=a.getDoc(),e=h.body,j=h.documentElement,g=tinymce.DOM,i=d.autoresize_min_height,f;f=tinymce.isIE?e.scrollHeight:j.offsetHeight;if(f>d.autoresize_min_height){i=f}g.setStyle(g.get(a.id+"_ifr"),"height",i+"px");if(d.throbbing){a.setProgressState(false);a.setProgressState(true)}}d.editor=a;d.autoresize_min_height=a.getElement().offsetHeight;a.onInit.add(function(f,e){f.setProgressState(true);d.throbbing=true;f.getBody().style.overflowY="hidden"});a.onChange.add(b);a.onSetContent.add(b);a.onPaste.add(b);a.onKeyUp.add(b);a.onPostRender.add(b);a.onLoadContent.add(function(f,e){b();setTimeout(function(){b();f.setProgressState(false);d.throbbing=false},1250)});a.addCommand("mceAutoResize",b)},getInfo:function(){return{longname:"Auto Resize",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/autoresize",version:tinymce.majorVersion+"."+tinymce.minorVersion}}});tinymce.PluginManager.add("autoresize",tinymce.plugins.AutoResizePlugin)})(); \ No newline at end of file diff --git a/source/web/scripts/tiny_mce/plugins/autoresize/editor_plugin_src.js b/source/web/scripts/tiny_mce/plugins/autoresize/editor_plugin_src.js new file mode 100644 index 0000000000..8b2f374e1a --- /dev/null +++ b/source/web/scripts/tiny_mce/plugins/autoresize/editor_plugin_src.js @@ -0,0 +1,114 @@ +/** + * $Id: editor_plugin_src.js 539 2008-01-14 19:08:58Z spocke $ + * + * @author Moxiecode + * @copyright Copyright © 2004-2008, Moxiecode Systems AB, All rights reserved. + */ + +(function() { + /** + * Auto Resize + * + * This plugin automatically resizes the content area to fit its content height. + * It will retain a minimum height, which is the height of the content area when + * it's initialized. + */ + tinymce.create('tinymce.plugins.AutoResizePlugin', { + /** + * Initializes the plugin, this will be executed after the plugin has been created. + * This call is done before the editor instance has finished it's initialization so use the onInit event + * of the editor instance to intercept that event. + * + * @param {tinymce.Editor} ed Editor instance that the plugin is initialized in. + * @param {string} url Absolute URL to where the plugin is located. + */ + init : function(ed, url) { + var t = this; + + if (ed.getParam('fullscreen_is_enabled')) + return; + + /** + * This method gets executed each time the editor needs to resize. + */ + function resize() { + var d = ed.getDoc(), b = d.body, de = d.documentElement, DOM = tinymce.DOM, resizeHeight = t.autoresize_min_height, myHeight; + + // Get height differently depending on the browser used + myHeight = tinymce.isIE ? b.scrollHeight : de.offsetHeight; + + // Don't make it smaller than the minimum height + if (myHeight > t.autoresize_min_height) + resizeHeight = myHeight; + + // Resize content element + DOM.setStyle(DOM.get(ed.id + '_ifr'), 'height', resizeHeight + 'px'); + + // if we're throbbing, we'll re-throb to match the new size + if (t.throbbing) { + ed.setProgressState(false); + ed.setProgressState(true); + } + }; + + t.editor = ed; + + // Define minimum height + t.autoresize_min_height = ed.getElement().offsetHeight; + + // Things to do when the editor is ready + ed.onInit.add(function(ed, l) { + // Show throbber until content area is resized properly + ed.setProgressState(true); + t.throbbing = true; + + // Hide scrollbars + ed.getBody().style.overflowY = "hidden"; + }); + + // Add appropriate listeners for resizing content area + ed.onChange.add(resize); + ed.onSetContent.add(resize); + ed.onPaste.add(resize); + ed.onKeyUp.add(resize); + ed.onPostRender.add(resize); + + ed.onLoadContent.add(function(ed, l) { + resize(); + + // Because the content area resizes when its content CSS loads, + // and we can't easily add a listener to its onload event, + // we'll just trigger a resize after a short loading period + setTimeout(function() { + resize(); + + // Disable throbber + ed.setProgressState(false); + t.throbbing = false; + }, 1250); + }); + + // Register the command so that it can be invoked by using tinyMCE.activeEditor.execCommand('mceExample'); + ed.addCommand('mceAutoResize', resize); + }, + + /** + * Returns information about the plugin as a name/value array. + * The current keys are longname, author, authorurl, infourl and version. + * + * @return {Object} Name/value array containing information about the plugin. + */ + getInfo : function() { + return { + longname : 'Auto Resize', + author : 'Moxiecode Systems AB', + authorurl : 'http://tinymce.moxiecode.com', + infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/autoresize', + version : tinymce.majorVersion + "." + tinymce.minorVersion + }; + } + }); + + // Register plugin + tinymce.PluginManager.add('autoresize', tinymce.plugins.AutoResizePlugin); +})(); \ No newline at end of file diff --git a/source/web/scripts/tiny_mce/plugins/autosave/editor_plugin.js b/source/web/scripts/tiny_mce/plugins/autosave/editor_plugin.js index 01a994ee56..091a063a9c 100644 --- a/source/web/scripts/tiny_mce/plugins/autosave/editor_plugin.js +++ b/source/web/scripts/tiny_mce/plugins/autosave/editor_plugin.js @@ -1 +1 @@ -(function(){tinymce.create('tinymce.plugins.AutoSavePlugin',{init:function(ed,url){var t=this;t.editor=ed;window.onbeforeunload=tinymce.plugins.AutoSavePlugin._beforeUnloadHandler;},getInfo:function(){return{longname:'Auto save',author:'Moxiecode Systems AB',authorurl:'http://tinymce.moxiecode.com',infourl:'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/autosave',version:tinymce.majorVersion+"."+tinymce.minorVersion};},'static':{_beforeUnloadHandler:function(){var msg;tinymce.each(tinyMCE.editors,function(ed){if(ed.getParam("fullscreen_is_enabled"))return;if(ed.isDirty()){msg=ed.getLang("autosave.unload_msg");return false;}});return msg;}}});tinymce.PluginManager.add('autosave',tinymce.plugins.AutoSavePlugin);})(); \ No newline at end of file +(function(){tinymce.create("tinymce.plugins.AutoSavePlugin",{init:function(a,b){var c=this;c.editor=a;window.onbeforeunload=tinymce.plugins.AutoSavePlugin._beforeUnloadHandler},getInfo:function(){return{longname:"Auto save",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/autosave",version:tinymce.majorVersion+"."+tinymce.minorVersion}},"static":{_beforeUnloadHandler:function(){var a;tinymce.each(tinyMCE.editors,function(b){if(b.getParam("fullscreen_is_enabled")){return}if(b.isDirty()){a=b.getLang("autosave.unload_msg");return false}});return a}}});tinymce.PluginManager.add("autosave",tinymce.plugins.AutoSavePlugin)})(); \ No newline at end of file diff --git a/source/web/scripts/tiny_mce/plugins/bbcode/editor_plugin.js b/source/web/scripts/tiny_mce/plugins/bbcode/editor_plugin.js index 88f7ea6509..930fdff0af 100644 --- a/source/web/scripts/tiny_mce/plugins/bbcode/editor_plugin.js +++ b/source/web/scripts/tiny_mce/plugins/bbcode/editor_plugin.js @@ -1 +1 @@ -(function(){tinymce.create('tinymce.plugins.BBCodePlugin',{init:function(ed,url){var t=this,dialect=ed.getParam('bbcode_dialect','punbb').toLowerCase();ed.onBeforeSetContent.add(function(ed,o){o.content=t['_'+dialect+'_bbcode2html'](o.content);});ed.onPostProcess.add(function(ed,o){if(o.set)o.content=t['_'+dialect+'_bbcode2html'](o.content);if(o.get)o.content=t['_'+dialect+'_html2bbcode'](o.content);});},getInfo:function(){return{longname:'BBCode Plugin',author:'Moxiecode Systems AB',authorurl:'http://tinymce.moxiecode.com',infourl:'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/bbcode',version:tinymce.majorVersion+"."+tinymce.minorVersion};},_punbb_html2bbcode:function(s){s=tinymce.trim(s);function rep(re,str){s=s.replace(re,str);};rep(/(.*?)<\/a>/gi,"[url=$1]$2[/url]");rep(/(.*?)<\/font>/gi,"[code][color=$1]$2[/color][/code]");rep(/(.*?)<\/font>/gi,"[quote][color=$1]$2[/color][/quote]");rep(/(.*?)<\/font>/gi,"[code][color=$1]$2[/color][/code]");rep(/(.*?)<\/font>/gi,"[quote][color=$1]$2[/color][/quote]");rep(/(.*?)<\/span>/gi,"[color=$1]$2[/color]");rep(/(.*?)<\/font>/gi,"[color=$1]$2[/color]");rep(/(.*?)<\/span>/gi,"[size=$1]$2[/size]");rep(/(.*?)<\/font>/gi,"$1");rep(//gi,"[img]$1[/img]");rep(/(.*?)<\/span>/gi,"[code]$1[/code]");rep(/(.*?)<\/span>/gi,"[quote]$1[/quote]");rep(/(.*?)<\/strong>/gi,"[code][b]$1[/b][/code]");rep(/(.*?)<\/strong>/gi,"[quote][b]$1[/b][/quote]");rep(/(.*?)<\/em>/gi,"[code][i]$1[/i][/code]");rep(/(.*?)<\/em>/gi,"[quote][i]$1[/i][/quote]");rep(/(.*?)<\/u>/gi,"[code][u]$1[/u][/code]");rep(/(.*?)<\/u>/gi,"[quote][u]$1[/u][/quote]");rep(/<\/(strong|b)>/gi,"[/b]");rep(/<(strong|b)>/gi,"[b]");rep(/<\/(em|i)>/gi,"[/i]");rep(/<(em|i)>/gi,"[i]");rep(/<\/u>/gi,"[/u]");rep(/(.*?)<\/span>/gi,"[u]$1[/u]");rep(//gi,"[u]");rep(/]*>/gi,"[quote]");rep(/<\/blockquote>/gi,"[/quote]");rep(/
/gi,"\n");rep(//gi,"\n");rep(/
/gi,"\n");rep(/

/gi,"");rep(/<\/p>/gi,"\n");rep(/ /gi," ");rep(/"/gi,"\"");rep(/</gi,"<");rep(/>/gi,">");rep(/&/gi,"&");return s;},_punbb_bbcode2html:function(s){s=tinymce.trim(s);function rep(re,str){s=s.replace(re,str);};rep(/\n/gi,"
");rep(/\[b\]/gi,"");rep(/\[\/b\]/gi,"");rep(/\[i\]/gi,"");rep(/\[\/i\]/gi,"");rep(/\[u\]/gi,"");rep(/\[\/u\]/gi,"");rep(/\[url=([^\]]+)\](.*?)\[\/url\]/gi,"$2");rep(/\[url\](.*?)\[\/url\]/gi,"$1");rep(/\[img\](.*?)\[\/img\]/gi,"");rep(/\[color=(.*?)\](.*?)\[\/color\]/gi,"$2");rep(/\[code\](.*?)\[\/code\]/gi,"$1 ");rep(/\[quote.*?\](.*?)\[\/quote\]/gi,"$1 ");return s;}});tinymce.PluginManager.add('bbcode',tinymce.plugins.BBCodePlugin);})(); \ No newline at end of file +(function(){tinymce.create("tinymce.plugins.BBCodePlugin",{init:function(a,b){var d=this,c=a.getParam("bbcode_dialect","punbb").toLowerCase();a.onBeforeSetContent.add(function(e,f){f.content=d["_"+c+"_bbcode2html"](f.content)});a.onPostProcess.add(function(e,f){if(f.set){f.content=d["_"+c+"_bbcode2html"](f.content)}if(f.get){f.content=d["_"+c+"_html2bbcode"](f.content)}})},getInfo:function(){return{longname:"BBCode Plugin",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/bbcode",version:tinymce.majorVersion+"."+tinymce.minorVersion}},_punbb_html2bbcode:function(a){a=tinymce.trim(a);function b(c,d){a=a.replace(c,d)}b(/(.*?)<\/a>/gi,"[url=$1]$2[/url]");b(/(.*?)<\/font>/gi,"[code][color=$1]$2[/color][/code]");b(/(.*?)<\/font>/gi,"[quote][color=$1]$2[/color][/quote]");b(/(.*?)<\/font>/gi,"[code][color=$1]$2[/color][/code]");b(/(.*?)<\/font>/gi,"[quote][color=$1]$2[/color][/quote]");b(/(.*?)<\/span>/gi,"[color=$1]$2[/color]");b(/(.*?)<\/font>/gi,"[color=$1]$2[/color]");b(/(.*?)<\/span>/gi,"[size=$1]$2[/size]");b(/(.*?)<\/font>/gi,"$1");b(//gi,"[img]$1[/img]");b(/(.*?)<\/span>/gi,"[code]$1[/code]");b(/(.*?)<\/span>/gi,"[quote]$1[/quote]");b(/(.*?)<\/strong>/gi,"[code][b]$1[/b][/code]");b(/(.*?)<\/strong>/gi,"[quote][b]$1[/b][/quote]");b(/(.*?)<\/em>/gi,"[code][i]$1[/i][/code]");b(/(.*?)<\/em>/gi,"[quote][i]$1[/i][/quote]");b(/(.*?)<\/u>/gi,"[code][u]$1[/u][/code]");b(/(.*?)<\/u>/gi,"[quote][u]$1[/u][/quote]");b(/<\/(strong|b)>/gi,"[/b]");b(/<(strong|b)>/gi,"[b]");b(/<\/(em|i)>/gi,"[/i]");b(/<(em|i)>/gi,"[i]");b(/<\/u>/gi,"[/u]");b(/(.*?)<\/span>/gi,"[u]$1[/u]");b(//gi,"[u]");b(/]*>/gi,"[quote]");b(/<\/blockquote>/gi,"[/quote]");b(/
/gi,"\n");b(//gi,"\n");b(/
/gi,"\n");b(/

/gi,"");b(/<\/p>/gi,"\n");b(/ /gi," ");b(/"/gi,'"');b(/</gi,"<");b(/>/gi,">");b(/&/gi,"&");return a},_punbb_bbcode2html:function(a){a=tinymce.trim(a);function b(c,d){a=a.replace(c,d)}b(/\n/gi,"
");b(/\[b\]/gi,"");b(/\[\/b\]/gi,"");b(/\[i\]/gi,"");b(/\[\/i\]/gi,"");b(/\[u\]/gi,"");b(/\[\/u\]/gi,"");b(/\[url=([^\]]+)\](.*?)\[\/url\]/gi,'$2');b(/\[url\](.*?)\[\/url\]/gi,'$1');b(/\[img\](.*?)\[\/img\]/gi,'');b(/\[color=(.*?)\](.*?)\[\/color\]/gi,'$2');b(/\[code\](.*?)\[\/code\]/gi,'$1 ');b(/\[quote.*?\](.*?)\[\/quote\]/gi,'$1 ');return a}});tinymce.PluginManager.add("bbcode",tinymce.plugins.BBCodePlugin)})(); \ No newline at end of file diff --git a/source/web/scripts/tiny_mce/plugins/contextmenu/editor_plugin.js b/source/web/scripts/tiny_mce/plugins/contextmenu/editor_plugin.js index f68744d07d..24ee2eb4a0 100644 --- a/source/web/scripts/tiny_mce/plugins/contextmenu/editor_plugin.js +++ b/source/web/scripts/tiny_mce/plugins/contextmenu/editor_plugin.js @@ -1 +1 @@ -(function(){var Event=tinymce.dom.Event,each=tinymce.each,DOM=tinymce.DOM;tinymce.create('tinymce.plugins.ContextMenu',{init:function(ed){var t=this;t.editor=ed;t.onContextMenu=new tinymce.util.Dispatcher(this);ed.onContextMenu.add(function(ed,e){if(!e.ctrlKey){t._getMenu(ed).showMenu(e.clientX,e.clientY);Event.add(ed.getDoc(),'click',hide);Event.cancel(e);}});function hide(){if(t._menu){t._menu.removeAll();t._menu.destroy();Event.remove(ed.getDoc(),'click',hide);}};ed.onMouseDown.add(hide);ed.onKeyDown.add(hide);},getInfo:function(){return{longname:'Contextmenu',author:'Moxiecode Systems AB',authorurl:'http://tinymce.moxiecode.com',infourl:'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/contextmenu',version:tinymce.majorVersion+"."+tinymce.minorVersion};},_getMenu:function(ed){var t=this,m=t._menu,se=ed.selection,col=se.isCollapsed(),el=se.getNode()||ed.getBody(),am,p1,p2;if(m){m.removeAll();m.destroy();}p1=DOM.getPos(ed.getContentAreaContainer());p2=DOM.getPos(ed.getContainer());m=ed.controlManager.createDropMenu('contextmenu',{offset_x:p1.x+ed.getParam('contextmenu_offset_x',0),offset_y:p1.y+ed.getParam('contextmenu_offset_y',0),constrain:1});t._menu=m;m.add({title:'advanced.cut_desc',icon:'cut',cmd:'Cut'}).setDisabled(col);m.add({title:'advanced.copy_desc',icon:'copy',cmd:'Copy'}).setDisabled(col);m.add({title:'advanced.paste_desc',icon:'paste',cmd:'Paste'});if((el.nodeName=='A'&&!ed.dom.getAttrib(el,'name'))||!col){m.addSeparator();m.add({title:'advanced.link_desc',icon:'link',cmd:ed.plugins.advlink?'mceAdvLink':'mceLink',ui:true});m.add({title:'advanced.unlink_desc',icon:'unlink',cmd:'UnLink'});}m.addSeparator();m.add({title:'advanced.image_desc',icon:'image',cmd:ed.plugins.advimage?'mceAdvImage':'mceImage',ui:true});m.addSeparator();am=m.addMenu({title:'contextmenu.align'});am.add({title:'contextmenu.left',icon:'justifyleft',cmd:'JustifyLeft'});am.add({title:'contextmenu.center',icon:'justifycenter',cmd:'JustifyCenter'});am.add({title:'contextmenu.right',icon:'justifyright',cmd:'JustifyRight'});am.add({title:'contextmenu.full',icon:'justifyfull',cmd:'JustifyFull'});t.onContextMenu.dispatch(t,m,el,col);return m;}});tinymce.PluginManager.add('contextmenu',tinymce.plugins.ContextMenu);})(); \ No newline at end of file +(function(){var a=tinymce.dom.Event,c=tinymce.each,b=tinymce.DOM;tinymce.create("tinymce.plugins.ContextMenu",{init:function(d){var f=this;f.editor=d;f.onContextMenu=new tinymce.util.Dispatcher(this);d.onContextMenu.add(function(g,h){if(!h.ctrlKey){f._getMenu(g).showMenu(h.clientX,h.clientY);a.add(g.getDoc(),"click",e);a.cancel(h)}});function e(){if(f._menu){f._menu.removeAll();f._menu.destroy();a.remove(d.getDoc(),"click",e)}}d.onMouseDown.add(e);d.onKeyDown.add(e)},getInfo:function(){return{longname:"Contextmenu",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/contextmenu",version:tinymce.majorVersion+"."+tinymce.minorVersion}},_getMenu:function(h){var l=this,f=l._menu,i=h.selection,e=i.isCollapsed(),d=i.getNode()||h.getBody(),g,k,j;if(f){f.removeAll();f.destroy()}k=b.getPos(h.getContentAreaContainer());j=b.getPos(h.getContainer());f=h.controlManager.createDropMenu("contextmenu",{offset_x:k.x+h.getParam("contextmenu_offset_x",0),offset_y:k.y+h.getParam("contextmenu_offset_y",0),constrain:1});l._menu=f;f.add({title:"advanced.cut_desc",icon:"cut",cmd:"Cut"}).setDisabled(e);f.add({title:"advanced.copy_desc",icon:"copy",cmd:"Copy"}).setDisabled(e);f.add({title:"advanced.paste_desc",icon:"paste",cmd:"Paste"});if((d.nodeName=="A"&&!h.dom.getAttrib(d,"name"))||!e){f.addSeparator();f.add({title:"advanced.link_desc",icon:"link",cmd:h.plugins.advlink?"mceAdvLink":"mceLink",ui:true});f.add({title:"advanced.unlink_desc",icon:"unlink",cmd:"UnLink"})}f.addSeparator();f.add({title:"advanced.image_desc",icon:"image",cmd:h.plugins.advimage?"mceAdvImage":"mceImage",ui:true});f.addSeparator();g=f.addMenu({title:"contextmenu.align"});g.add({title:"contextmenu.left",icon:"justifyleft",cmd:"JustifyLeft"});g.add({title:"contextmenu.center",icon:"justifycenter",cmd:"JustifyCenter"});g.add({title:"contextmenu.right",icon:"justifyright",cmd:"JustifyRight"});g.add({title:"contextmenu.full",icon:"justifyfull",cmd:"JustifyFull"});l.onContextMenu.dispatch(l,f,d,e);return f}});tinymce.PluginManager.add("contextmenu",tinymce.plugins.ContextMenu)})(); \ No newline at end of file diff --git a/source/web/scripts/tiny_mce/plugins/directionality/editor_plugin.js b/source/web/scripts/tiny_mce/plugins/directionality/editor_plugin.js index 6966d80af4..bce8e73995 100644 --- a/source/web/scripts/tiny_mce/plugins/directionality/editor_plugin.js +++ b/source/web/scripts/tiny_mce/plugins/directionality/editor_plugin.js @@ -1 +1 @@ -(function(){tinymce.create('tinymce.plugins.Directionality',{init:function(ed,url){var t=this;t.editor=ed;ed.addCommand('mceDirectionLTR',function(){var e=ed.dom.getParent(ed.selection.getNode(),ed.dom.isBlock);if(e){if(ed.dom.getAttrib(e,"dir")!="ltr")ed.dom.setAttrib(e,"dir","ltr");else ed.dom.setAttrib(e,"dir","");}ed.nodeChanged();});ed.addCommand('mceDirectionRTL',function(){var e=ed.dom.getParent(ed.selection.getNode(),ed.dom.isBlock);if(e){if(ed.dom.getAttrib(e,"dir")!="rtl")ed.dom.setAttrib(e,"dir","rtl");else ed.dom.setAttrib(e,"dir","");}ed.nodeChanged();});ed.addButton('ltr',{title:'directionality.ltr_desc',cmd:'mceDirectionLTR'});ed.addButton('rtl',{title:'directionality.rtl_desc',cmd:'mceDirectionRTL'});ed.onNodeChange.add(t._nodeChange,t);},getInfo:function(){return{longname:'Directionality',author:'Moxiecode Systems AB',authorurl:'http://tinymce.moxiecode.com',infourl:'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/directionality',version:tinymce.majorVersion+"."+tinymce.minorVersion};},_nodeChange:function(ed,cm,n){var dom=ed.dom,dir;n=dom.getParent(n,dom.isBlock);if(!n){cm.setDisabled('ltr',1);cm.setDisabled('rtl',1);return;}dir=dom.getAttrib(n,'dir');cm.setActive('ltr',dir=="ltr");cm.setDisabled('ltr',0);cm.setActive('rtl',dir=="rtl");cm.setDisabled('rtl',0);}});tinymce.PluginManager.add('directionality',tinymce.plugins.Directionality);})(); \ No newline at end of file +(function(){tinymce.create("tinymce.plugins.Directionality",{init:function(a,b){var c=this;c.editor=a;a.addCommand("mceDirectionLTR",function(){var d=a.dom.getParent(a.selection.getNode(),a.dom.isBlock);if(d){if(a.dom.getAttrib(d,"dir")!="ltr"){a.dom.setAttrib(d,"dir","ltr")}else{a.dom.setAttrib(d,"dir","")}}a.nodeChanged()});a.addCommand("mceDirectionRTL",function(){var d=a.dom.getParent(a.selection.getNode(),a.dom.isBlock);if(d){if(a.dom.getAttrib(d,"dir")!="rtl"){a.dom.setAttrib(d,"dir","rtl")}else{a.dom.setAttrib(d,"dir","")}}a.nodeChanged()});a.addButton("ltr",{title:"directionality.ltr_desc",cmd:"mceDirectionLTR"});a.addButton("rtl",{title:"directionality.rtl_desc",cmd:"mceDirectionRTL"});a.onNodeChange.add(c._nodeChange,c)},getInfo:function(){return{longname:"Directionality",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/directionality",version:tinymce.majorVersion+"."+tinymce.minorVersion}},_nodeChange:function(b,a,e){var d=b.dom,c;e=d.getParent(e,d.isBlock);if(!e){a.setDisabled("ltr",1);a.setDisabled("rtl",1);return}c=d.getAttrib(e,"dir");a.setActive("ltr",c=="ltr");a.setDisabled("ltr",0);a.setActive("rtl",c=="rtl");a.setDisabled("rtl",0)}});tinymce.PluginManager.add("directionality",tinymce.plugins.Directionality)})(); \ No newline at end of file diff --git a/source/web/scripts/tiny_mce/plugins/emotions/editor_plugin.js b/source/web/scripts/tiny_mce/plugins/emotions/editor_plugin.js index 87fac106d4..4783bc3716 100644 --- a/source/web/scripts/tiny_mce/plugins/emotions/editor_plugin.js +++ b/source/web/scripts/tiny_mce/plugins/emotions/editor_plugin.js @@ -1 +1 @@ -(function(){tinymce.create('tinymce.plugins.EmotionsPlugin',{init:function(ed,url){ed.addCommand('mceEmotion',function(){ed.windowManager.open({file:url+'/emotions.htm',width:250+parseInt(ed.getLang('emotions.delta_width',0)),height:160+parseInt(ed.getLang('emotions.delta_height',0)),inline:1},{plugin_url:url});});ed.addButton('emotions',{title:'emotions.emotions_desc',cmd:'mceEmotion'});},getInfo:function(){return{longname:'Emotions',author:'Moxiecode Systems AB',authorurl:'http://tinymce.moxiecode.com',infourl:'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/emotions',version:tinymce.majorVersion+"."+tinymce.minorVersion};}});tinymce.PluginManager.add('emotions',tinymce.plugins.EmotionsPlugin);})(); \ No newline at end of file +(function(){tinymce.create("tinymce.plugins.EmotionsPlugin",{init:function(a,b){a.addCommand("mceEmotion",function(){a.windowManager.open({file:b+"/emotions.htm",width:250+parseInt(a.getLang("emotions.delta_width",0)),height:160+parseInt(a.getLang("emotions.delta_height",0)),inline:1},{plugin_url:b})});a.addButton("emotions",{title:"emotions.emotions_desc",cmd:"mceEmotion"})},getInfo:function(){return{longname:"Emotions",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/emotions",version:tinymce.majorVersion+"."+tinymce.minorVersion}}});tinymce.PluginManager.add("emotions",tinymce.plugins.EmotionsPlugin)})(); \ No newline at end of file diff --git a/source/web/scripts/tiny_mce/plugins/emotions/emotions.htm b/source/web/scripts/tiny_mce/plugins/emotions/emotions.htm index 8110ee029a..55a1d72fa7 100644 --- a/source/web/scripts/tiny_mce/plugins/emotions/emotions.htm +++ b/source/web/scripts/tiny_mce/plugins/emotions/emotions.htm @@ -1,10 +1,9 @@ - + {#emotions_dlg.title} -

diff --git a/source/web/scripts/tiny_mce/plugins/example/editor_plugin.js b/source/web/scripts/tiny_mce/plugins/example/editor_plugin.js index cb7010d188..ec1f81ea40 100644 --- a/source/web/scripts/tiny_mce/plugins/example/editor_plugin.js +++ b/source/web/scripts/tiny_mce/plugins/example/editor_plugin.js @@ -1 +1 @@ -(function(){tinymce.PluginManager.requireLangPack('example');tinymce.create('tinymce.plugins.ExamplePlugin',{init:function(ed,url){ed.addCommand('mceExample',function(){ed.windowManager.open({file:url+'/dialog.htm',width:320+parseInt(ed.getLang('example.delta_width',0)),height:120+parseInt(ed.getLang('example.delta_height',0)),inline:1},{plugin_url:url,some_custom_arg:'custom arg'});});ed.addButton('example',{title:'example.desc',cmd:'mceExample',image:url+'/img/example.gif'});ed.onNodeChange.add(function(ed,cm,n){cm.setActive('example',n.nodeName=='IMG');});},createControl:function(n,cm){return null;},getInfo:function(){return{longname:'Example plugin',author:'Some author',authorurl:'http://tinymce.moxiecode.com',infourl:'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/example',version:"1.0"};}});tinymce.PluginManager.add('example',tinymce.plugins.ExamplePlugin);})(); \ No newline at end of file +(function(){tinymce.PluginManager.requireLangPack("example");tinymce.create("tinymce.plugins.ExamplePlugin",{init:function(a,b){a.addCommand("mceExample",function(){a.windowManager.open({file:b+"/dialog.htm",width:320+parseInt(a.getLang("example.delta_width",0)),height:120+parseInt(a.getLang("example.delta_height",0)),inline:1},{plugin_url:b,some_custom_arg:"custom arg"})});a.addButton("example",{title:"example.desc",cmd:"mceExample",image:b+"/img/example.gif"});a.onNodeChange.add(function(d,c,e){c.setActive("example",e.nodeName=="IMG")})},createControl:function(b,a){return null},getInfo:function(){return{longname:"Example plugin",author:"Some author",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/example",version:"1.0"}}});tinymce.PluginManager.add("example",tinymce.plugins.ExamplePlugin)})(); \ No newline at end of file diff --git a/source/web/scripts/tiny_mce/plugins/fullpage/editor_plugin.js b/source/web/scripts/tiny_mce/plugins/fullpage/editor_plugin.js index 727beb574e..8e11bfc474 100644 --- a/source/web/scripts/tiny_mce/plugins/fullpage/editor_plugin.js +++ b/source/web/scripts/tiny_mce/plugins/fullpage/editor_plugin.js @@ -1 +1 @@ -(function(){tinymce.create('tinymce.plugins.FullPagePlugin',{init:function(ed,url){var t=this;t.editor=ed;ed.addCommand('mceFullPageProperties',function(){ed.windowManager.open({file:url+'/fullpage.htm',width:430+parseInt(ed.getLang('fullpage.delta_width',0)),height:495+parseInt(ed.getLang('fullpage.delta_height',0)),inline:1},{plugin_url:url,head_html:t.head});});ed.addButton('fullpage',{title:'fullpage.desc',cmd:'mceFullPageProperties'});ed.onBeforeSetContent.add(t._setContent,t);ed.onSetContent.add(t._setBodyAttribs,t);ed.onGetContent.add(t._getContent,t);},getInfo:function(){return{longname:'Fullpage',author:'Moxiecode Systems AB',authorurl:'http://tinymce.moxiecode.com',infourl:'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/fullpage',version:tinymce.majorVersion+"."+tinymce.minorVersion};},_setBodyAttribs:function(ed,o){var bdattr,i,len,kv,k,v,t,attr=this.head.match(/body(.*?)>/i);if(attr&&attr[1]){bdattr=attr[1].match(/\s*(\w+\s*=\s*".*?"|\w+\s*=\s*'.*?'|\w+\s*=\s*\w+|\w+)\s*/g);if(bdattr){for(i=0,len=bdattr.length;i',sp);t.head=c.substring(0,sp+1);ep=c.indexOf('\n';t.head+=ed.getParam('fullpage_default_doctype','');t.head+='\n\n\n'+ed.getParam('fullpage_default_title','Untitled document')+'\n';if(v=ed.getParam('fullpage_default_encoding'))t.head+='\n';if(v=ed.getParam('fullpage_default_font_family'))st+='font-family: '+v+';';if(v=ed.getParam('fullpage_default_font_size'))st+='font-size: '+v+';';if(v=ed.getParam('fullpage_default_text_color'))st+='color: '+v+';';t.head+='\n\n';t.foot='\n\n';}},_getContent:function(ed,o){var t=this;o.content=tinymce.trim(t.head)+'\n'+tinymce.trim(o.content)+'\n'+tinymce.trim(t.foot);}});tinymce.PluginManager.add('fullpage',tinymce.plugins.FullPagePlugin);})(); \ No newline at end of file +(function(){tinymce.create("tinymce.plugins.FullPagePlugin",{init:function(a,b){var c=this;c.editor=a;a.addCommand("mceFullPageProperties",function(){a.windowManager.open({file:b+"/fullpage.htm",width:430+parseInt(a.getLang("fullpage.delta_width",0)),height:495+parseInt(a.getLang("fullpage.delta_height",0)),inline:1},{plugin_url:b,head_html:c.head})});a.addButton("fullpage",{title:"fullpage.desc",cmd:"mceFullPageProperties"});a.onBeforeSetContent.add(c._setContent,c);a.onSetContent.add(c._setBodyAttribs,c);a.onGetContent.add(c._getContent,c)},getInfo:function(){return{longname:"Fullpage",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/fullpage",version:tinymce.majorVersion+"."+tinymce.minorVersion}},_setBodyAttribs:function(d,a){var l,c,e,g,b,h,j,f=this.head.match(/body(.*?)>/i);if(f&&f[1]){l=f[1].match(/\s*(\w+\s*=\s*".*?"|\w+\s*=\s*'.*?'|\w+\s*=\s*\w+|\w+)\s*/g);if(l){for(c=0,e=l.length;c",a);h.head=f.substring(0,a+1);j=f.indexOf("\n'}h.head+=d.getParam("fullpage_default_doctype",'');h.head+="\n\n\n"+d.getParam("fullpage_default_title","Untitled document")+"\n";if(g=d.getParam("fullpage_default_encoding")){h.head+='\n'}if(g=d.getParam("fullpage_default_font_family")){i+="font-family: "+g+";"}if(g=d.getParam("fullpage_default_font_size")){i+="font-size: "+g+";"}if(g=d.getParam("fullpage_default_text_color")){i+="color: "+g+";"}h.head+="\n\n";h.foot="\n\n"}},_getContent:function(a,c){var b=this;if(!c.source_view||!a.getParam("fullpage_hide_in_source_view")){c.content=tinymce.trim(b.head)+"\n"+tinymce.trim(c.content)+"\n"+tinymce.trim(b.foot)}}});tinymce.PluginManager.add("fullpage",tinymce.plugins.FullPagePlugin)})(); \ No newline at end of file diff --git a/source/web/scripts/tiny_mce/plugins/fullpage/editor_plugin_src.js b/source/web/scripts/tiny_mce/plugins/fullpage/editor_plugin_src.js index 019682d692..c7d5aca367 100644 --- a/source/web/scripts/tiny_mce/plugins/fullpage/editor_plugin_src.js +++ b/source/web/scripts/tiny_mce/plugins/fullpage/editor_plugin_src.js @@ -1,5 +1,5 @@ /** - * $Id: editor_plugin_src.js 920 2008-09-09 14:05:33Z spocke $ + * $Id: editor_plugin_src.js 1029 2009-02-24 22:32:21Z spocke $ * * @author Moxiecode * @copyright Copyright © 2004-2008, Moxiecode Systems AB, All rights reserved. @@ -82,6 +82,9 @@ _setContent : function(ed, o) { var t = this, sp, ep, c = o.content, v, st = ''; + if (o.source_view && ed.getParam('fullpage_hide_in_source_view')) + return; + // Parse out head, body and footer c = c.replace(/<(\/?)BODY/gi, '<$1body'); sp = c.indexOf(' - @@ -26,27 +25,27 @@ - + - + - + - + - + - + - + - + @@ -95,7 +94,7 @@ - +
  
  
  
  
  
  
  
  
  
diff --git a/source/web/scripts/tiny_mce/plugins/fullpage/js/fullpage.js b/source/web/scripts/tiny_mce/plugins/fullpage/js/fullpage.js index 89059ef667..dd3a29cfb1 100644 --- a/source/web/scripts/tiny_mce/plugins/fullpage/js/fullpage.js +++ b/source/web/scripts/tiny_mce/plugins/fullpage/js/fullpage.js @@ -123,7 +123,7 @@ function init() { // Parse xml and doctype xmlVer = getReItem(/<\?\s*?xml.*?version\s*?=\s*?"(.*?)".*?\?>/gi, h, 1); xmlEnc = getReItem(/<\?\s*?xml.*?encoding\s*?=\s*?"(.*?)".*?\?>/gi, h, 1); - docType = getReItem(/<\!DOCTYPE.*?>/gi, h, 0); + docType = getReItem(/<\!DOCTYPE.*?>/gi, h.replace(/\n/g, ''), 0).replace(/ +/g, ' '); f.langcode.value = getReItem(/lang="(.*?)"/gi, h, 1); // Parse title diff --git a/source/web/scripts/tiny_mce/plugins/fullscreen/editor_plugin.js b/source/web/scripts/tiny_mce/plugins/fullscreen/editor_plugin.js index fbcec59e87..dfb3f16ccc 100644 --- a/source/web/scripts/tiny_mce/plugins/fullscreen/editor_plugin.js +++ b/source/web/scripts/tiny_mce/plugins/fullscreen/editor_plugin.js @@ -1 +1 @@ -(function(){var DOM=tinymce.DOM;tinymce.create('tinymce.plugins.FullScreenPlugin',{init:function(ed,url){var t=this,s={},vp;t.editor=ed;ed.addCommand('mceFullScreen',function(){var win,de=DOM.doc.documentElement;if(ed.getParam('fullscreen_is_enabled')){if(ed.getParam('fullscreen_new_window'))closeFullscreen();else{DOM.win.setTimeout(function(){tinymce.dom.Event.remove(DOM.win,'resize',t.resizeFunc);tinyMCE.get(ed.getParam('fullscreen_editor_id')).setContent(ed.getContent({format:'raw'}),{format:'raw'});tinyMCE.remove(ed);DOM.remove('mce_fullscreen_container');de.style.overflow=ed.getParam('fullscreen_html_overflow');DOM.setStyle(DOM.doc.body,'overflow',ed.getParam('fullscreen_overflow'));DOM.win.scrollTo(ed.getParam('fullscreen_scrollx'),ed.getParam('fullscreen_scrolly'));tinyMCE.settings=tinyMCE.oldSettings;},10);}return;}if(ed.getParam('fullscreen_new_window')){win=DOM.win.open(url+"/fullscreen.htm","mceFullScreenPopup","fullscreen=yes,menubar=no,toolbar=no,scrollbars=no,resizable=yes,left=0,top=0,width="+screen.availWidth+",height="+screen.availHeight);try{win.resizeTo(screen.availWidth,screen.availHeight);}catch(e){}}else{tinyMCE.oldSettings=tinyMCE.settings;s.fullscreen_overflow=DOM.getStyle(DOM.doc.body,'overflow',1)||'auto';s.fullscreen_html_overflow=DOM.getStyle(de,'overflow',1);vp=DOM.getViewPort();s.fullscreen_scrollx=vp.x;s.fullscreen_scrolly=vp.y;if(tinymce.isOpera&&s.fullscreen_overflow=='visible')s.fullscreen_overflow='auto';if(tinymce.isIE&&s.fullscreen_overflow=='scroll')s.fullscreen_overflow='auto';if(tinymce.isIE&&(s.fullscreen_html_overflow=='visible'||s.fullscreen_html_overflow=='scroll'))s.fullscreen_html_overflow='auto';if(s.fullscreen_overflow=='0px')s.fullscreen_overflow='';DOM.setStyle(DOM.doc.body,'overflow','hidden');de.style.overflow='hidden';vp=DOM.getViewPort();DOM.win.scrollTo(0,0);if(tinymce.isIE)vp.h-=1;n=DOM.add(DOM.doc.body,'div',{id:'mce_fullscreen_container',style:'position:'+(tinymce.isIE6||(tinymce.isIE&&!DOM.boxModel)?'absolute':'fixed')+';top:0;left:0;width:'+vp.w+'px;height:'+vp.h+'px;z-index:200000;'});DOM.add(n,'div',{id:'mce_fullscreen'});tinymce.each(ed.settings,function(v,n){s[n]=v;});s.id='mce_fullscreen';s.width=n.clientWidth;s.height=n.clientHeight-15;s.fullscreen_is_enabled=true;s.fullscreen_editor_id=ed.id;s.theme_advanced_resizing=false;s.save_onsavecallback=function(){ed.setContent(tinyMCE.get(s.id).getContent({format:'raw'}),{format:'raw'});ed.execCommand('mceSave');};tinymce.each(ed.getParam('fullscreen_settings'),function(v,k){s[k]=v;});if(s.theme_advanced_toolbar_location==='external')s.theme_advanced_toolbar_location='top';t.fullscreenEditor=new tinymce.Editor('mce_fullscreen',s);t.fullscreenEditor.onInit.add(function(){t.fullscreenEditor.setContent(ed.getContent());t.fullscreenEditor.focus();});t.fullscreenEditor.render();tinyMCE.add(t.fullscreenEditor);t.fullscreenElement=new tinymce.dom.Element('mce_fullscreen_container');t.fullscreenElement.update();t.resizeFunc=tinymce.dom.Event.add(DOM.win,'resize',function(){var vp=tinymce.DOM.getViewPort();t.fullscreenEditor.theme.resizeTo(vp.w,vp.h);});}});ed.addButton('fullscreen',{title:'fullscreen.desc',cmd:'mceFullScreen'});ed.onNodeChange.add(function(ed,cm){cm.setActive('fullscreen',ed.getParam('fullscreen_is_enabled'));});},getInfo:function(){return{longname:'Fullscreen',author:'Moxiecode Systems AB',authorurl:'http://tinymce.moxiecode.com',infourl:'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/fullscreen',version:tinymce.majorVersion+"."+tinymce.minorVersion};}});tinymce.PluginManager.add('fullscreen',tinymce.plugins.FullScreenPlugin);})(); \ No newline at end of file +(function(){var a=tinymce.DOM;tinymce.create("tinymce.plugins.FullScreenPlugin",{init:function(c,d){var e=this,f={},b;e.editor=c;c.addCommand("mceFullScreen",function(){var h,i=a.doc.documentElement;if(c.getParam("fullscreen_is_enabled")){if(c.getParam("fullscreen_new_window")){closeFullscreen()}else{a.win.setTimeout(function(){tinymce.dom.Event.remove(a.win,"resize",e.resizeFunc);tinyMCE.get(c.getParam("fullscreen_editor_id")).setContent(c.getContent({format:"raw"}),{format:"raw"});tinyMCE.remove(c);a.remove("mce_fullscreen_container");i.style.overflow=c.getParam("fullscreen_html_overflow");a.setStyle(a.doc.body,"overflow",c.getParam("fullscreen_overflow"));a.win.scrollTo(c.getParam("fullscreen_scrollx"),c.getParam("fullscreen_scrolly"));tinyMCE.settings=tinyMCE.oldSettings},10)}return}if(c.getParam("fullscreen_new_window")){h=a.win.open(d+"/fullscreen.htm","mceFullScreenPopup","fullscreen=yes,menubar=no,toolbar=no,scrollbars=no,resizable=yes,left=0,top=0,width="+screen.availWidth+",height="+screen.availHeight);try{h.resizeTo(screen.availWidth,screen.availHeight)}catch(g){}}else{tinyMCE.oldSettings=tinyMCE.settings;f.fullscreen_overflow=a.getStyle(a.doc.body,"overflow",1)||"auto";f.fullscreen_html_overflow=a.getStyle(i,"overflow",1);b=a.getViewPort();f.fullscreen_scrollx=b.x;f.fullscreen_scrolly=b.y;if(tinymce.isOpera&&f.fullscreen_overflow=="visible"){f.fullscreen_overflow="auto"}if(tinymce.isIE&&f.fullscreen_overflow=="scroll"){f.fullscreen_overflow="auto"}if(tinymce.isIE&&(f.fullscreen_html_overflow=="visible"||f.fullscreen_html_overflow=="scroll")){f.fullscreen_html_overflow="auto"}if(f.fullscreen_overflow=="0px"){f.fullscreen_overflow=""}a.setStyle(a.doc.body,"overflow","hidden");i.style.overflow="hidden";b=a.getViewPort();a.win.scrollTo(0,0);if(tinymce.isIE){b.h-=1}n=a.add(a.doc.body,"div",{id:"mce_fullscreen_container",style:"position:"+(tinymce.isIE6||(tinymce.isIE&&!a.boxModel)?"absolute":"fixed")+";top:0;left:0;width:"+b.w+"px;height:"+b.h+"px;z-index:200000;"});a.add(n,"div",{id:"mce_fullscreen"});tinymce.each(c.settings,function(j,k){f[k]=j});f.id="mce_fullscreen";f.width=n.clientWidth;f.height=n.clientHeight-15;f.fullscreen_is_enabled=true;f.fullscreen_editor_id=c.id;f.theme_advanced_resizing=false;f.save_onsavecallback=function(){c.setContent(tinyMCE.get(f.id).getContent({format:"raw"}),{format:"raw"});c.execCommand("mceSave")};tinymce.each(c.getParam("fullscreen_settings"),function(l,j){f[j]=l});if(f.theme_advanced_toolbar_location==="external"){f.theme_advanced_toolbar_location="top"}e.fullscreenEditor=new tinymce.Editor("mce_fullscreen",f);e.fullscreenEditor.onInit.add(function(){e.fullscreenEditor.setContent(c.getContent());e.fullscreenEditor.focus()});e.fullscreenEditor.render();tinyMCE.add(e.fullscreenEditor);e.fullscreenElement=new tinymce.dom.Element("mce_fullscreen_container");e.fullscreenElement.update();e.resizeFunc=tinymce.dom.Event.add(a.win,"resize",function(){var j=tinymce.DOM.getViewPort();e.fullscreenEditor.theme.resizeTo(j.w,j.h)})}});c.addButton("fullscreen",{title:"fullscreen.desc",cmd:"mceFullScreen"});c.onNodeChange.add(function(h,g){g.setActive("fullscreen",h.getParam("fullscreen_is_enabled"))})},getInfo:function(){return{longname:"Fullscreen",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/fullscreen",version:tinymce.majorVersion+"."+tinymce.minorVersion}}});tinymce.PluginManager.add("fullscreen",tinymce.plugins.FullScreenPlugin)})(); \ No newline at end of file diff --git a/source/web/scripts/tiny_mce/plugins/fullscreen/fullscreen.htm b/source/web/scripts/tiny_mce/plugins/fullscreen/fullscreen.htm index 4b081cac1c..6ec4f26f1c 100644 --- a/source/web/scripts/tiny_mce/plugins/fullscreen/fullscreen.htm +++ b/source/web/scripts/tiny_mce/plugins/fullscreen/fullscreen.htm @@ -96,7 +96,6 @@ // Add onunload tinymce.dom.Event.add(window, "beforeunload", unloadHandler); - diff --git a/source/web/scripts/tiny_mce/plugins/iespell/editor_plugin.js b/source/web/scripts/tiny_mce/plugins/iespell/editor_plugin.js index 06dae75df7..e9cba106c6 100644 --- a/source/web/scripts/tiny_mce/plugins/iespell/editor_plugin.js +++ b/source/web/scripts/tiny_mce/plugins/iespell/editor_plugin.js @@ -1 +1 @@ -(function(){tinymce.create('tinymce.plugins.IESpell',{init:function(ed,url){var t=this,sp;if(!tinymce.isIE)return;t.editor=ed;ed.addCommand('mceIESpell',function(){try{sp=new ActiveXObject("ieSpell.ieSpellExtension");sp.CheckDocumentNode(ed.getDoc().documentElement);}catch(e){if(e.number==-2146827859){ed.windowManager.confirm(ed.getLang("iespell.download"),function(s){if(s)window.open('http://www.iespell.com/download.php','ieSpellDownload','');});}else ed.windowManager.alert("Error Loading ieSpell: Exception "+e.number);}});ed.addButton('iespell',{title:'iespell.iespell_desc',cmd:'mceIESpell'});},getInfo:function(){return{longname:'IESpell (IE Only)',author:'Moxiecode Systems AB',authorurl:'http://tinymce.moxiecode.com',infourl:'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/iespell',version:tinymce.majorVersion+"."+tinymce.minorVersion};}});tinymce.PluginManager.add('iespell',tinymce.plugins.IESpell);})(); \ No newline at end of file +(function(){tinymce.create("tinymce.plugins.IESpell",{init:function(a,b){var c=this,d;if(!tinymce.isIE){return}c.editor=a;a.addCommand("mceIESpell",function(){try{d=new ActiveXObject("ieSpell.ieSpellExtension");d.CheckDocumentNode(a.getDoc().documentElement)}catch(f){if(f.number==-2146827859){a.windowManager.confirm(a.getLang("iespell.download"),function(e){if(e){window.open("http://www.iespell.com/download.php","ieSpellDownload","")}})}else{a.windowManager.alert("Error Loading ieSpell: Exception "+f.number)}}});a.addButton("iespell",{title:"iespell.iespell_desc",cmd:"mceIESpell"})},getInfo:function(){return{longname:"IESpell (IE Only)",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/iespell",version:tinymce.majorVersion+"."+tinymce.minorVersion}}});tinymce.PluginManager.add("iespell",tinymce.plugins.IESpell)})(); \ No newline at end of file diff --git a/source/web/scripts/tiny_mce/plugins/inlinepopups/editor_plugin.js b/source/web/scripts/tiny_mce/plugins/inlinepopups/editor_plugin.js index 5560b6b189..07ea477b7c 100644 --- a/source/web/scripts/tiny_mce/plugins/inlinepopups/editor_plugin.js +++ b/source/web/scripts/tiny_mce/plugins/inlinepopups/editor_plugin.js @@ -1 +1 @@ -(function(){var DOM=tinymce.DOM,Element=tinymce.dom.Element,Event=tinymce.dom.Event,each=tinymce.each,is=tinymce.is;tinymce.create('tinymce.plugins.InlinePopups',{init:function(ed,url){ed.onBeforeRenderUI.add(function(){ed.windowManager=new tinymce.InlineWindowManager(ed);DOM.loadCSS(url+'/skins/'+(ed.settings.inlinepopups_skin||'clearlooks2')+"/window.css");});},getInfo:function(){return{longname:'InlinePopups',author:'Moxiecode Systems AB',authorurl:'http://tinymce.moxiecode.com',infourl:'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/inlinepopups',version:tinymce.majorVersion+"."+tinymce.minorVersion};}});tinymce.create('tinymce.InlineWindowManager:tinymce.WindowManager',{InlineWindowManager:function(ed){var t=this;t.parent(ed);t.zIndex=300000;t.count=0;t.windows={};},open:function(f,p){var t=this,id,opt='',ed=t.editor,dw=0,dh=0,vp,po,mdf,clf,we,w,u;f=f||{};p=p||{};if(!f.inline)return t.parent(f,p);if(!f.type)t.bookmark=ed.selection.getBookmark('simple');id=DOM.uniqueId();vp=DOM.getViewPort();f.width=parseInt(f.width||320);f.height=parseInt(f.height||240)+(tinymce.isIE?8:0);f.min_width=parseInt(f.min_width||150);f.min_height=parseInt(f.min_height||100);f.max_width=parseInt(f.max_width||2000);f.max_height=parseInt(f.max_height||2000);f.left=f.left||Math.round(Math.max(vp.x,vp.x+(vp.w/ 2.0) - (f.width /2.0)));f.top=f.top||Math.round(Math.max(vp.y,vp.y+(vp.h/ 2.0) - (f.height /2.0)));f.movable=f.resizable=true;p.mce_width=f.width;p.mce_height=f.height;p.mce_inline=true;p.mce_window_id=id;p.mce_auto_focus=f.auto_focus;t.features=f;t.params=p;t.onOpen.dispatch(t,f,p);if(f.type){opt+=' mceModal';if(f.type)opt+=' mce'+f.type.substring(0,1).toUpperCase()+f.type.substring(1);f.resizable=false;}if(f.statusbar)opt+=' mceStatusbar';if(f.resizable)opt+=' mceResizable';if(f.minimizable)opt+=' mceMinimizable';if(f.maximizable)opt+=' mceMaximizable';if(f.movable)opt+=' mceMovable';t._addAll(DOM.doc.body,['div',{id:id,'class':ed.settings.inlinepopups_skin||'clearlooks2',style:'width:100px;height:100px'},['div',{id:id+'_wrapper','class':'mceWrapper'+opt},['div',{id:id+'_top','class':'mceTop'},['div',{'class':'mceLeft'}],['div',{'class':'mceCenter'}],['div',{'class':'mceRight'}],['span',{id:id+'_title'},f.title||'']],['div',{id:id+'_middle','class':'mceMiddle'},['div',{id:id+'_left','class':'mceLeft'}],['span',{id:id+'_content'}],['div',{id:id+'_right','class':'mceRight'}]],['div',{id:id+'_bottom','class':'mceBottom'},['div',{'class':'mceLeft'}],['div',{'class':'mceCenter'}],['div',{'class':'mceRight'}],['span',{id:id+'_status'},'Content']],['a',{'class':'mceMove',tabindex:'-1',href:'javascript:;'}],['a',{'class':'mceMin',tabindex:'-1',href:'javascript:;',onmousedown:'return false;'}],['a',{'class':'mceMax',tabindex:'-1',href:'javascript:;',onmousedown:'return false;'}],['a',{'class':'mceMed',tabindex:'-1',href:'javascript:;',onmousedown:'return false;'}],['a',{'class':'mceClose',tabindex:'-1',href:'javascript:;',onmousedown:'return false;'}],['a',{id:id+'_resize_n','class':'mceResize mceResizeN',tabindex:'-1',href:'javascript:;'}],['a',{id:id+'_resize_s','class':'mceResize mceResizeS',tabindex:'-1',href:'javascript:;'}],['a',{id:id+'_resize_w','class':'mceResize mceResizeW',tabindex:'-1',href:'javascript:;'}],['a',{id:id+'_resize_e','class':'mceResize mceResizeE',tabindex:'-1',href:'javascript:;'}],['a',{id:id+'_resize_nw','class':'mceResize mceResizeNW',tabindex:'-1',href:'javascript:;'}],['a',{id:id+'_resize_ne','class':'mceResize mceResizeNE',tabindex:'-1',href:'javascript:;'}],['a',{id:id+'_resize_sw','class':'mceResize mceResizeSW',tabindex:'-1',href:'javascript:;'}],['a',{id:id+'_resize_se','class':'mceResize mceResizeSE',tabindex:'-1',href:'javascript:;'}]]]);DOM.setStyles(id,{top:-10000,left:-10000});if(tinymce.isGecko)DOM.setStyle(id,'overflow','auto');if(!f.type){dw+=DOM.get(id+'_left').clientWidth;dw+=DOM.get(id+'_right').clientWidth;dh+=DOM.get(id+'_top').clientHeight;dh+=DOM.get(id+'_bottom').clientHeight;}DOM.setStyles(id,{top:f.top,left:f.left,width:f.width+dw,height:f.height+dh});u=f.url||f.file;if(u){if(tinymce.relaxedDomain)u+=(u.indexOf('?')==-1?'?':'&')+'mce_rdomain='+tinymce.relaxedDomain;u=tinymce._addVer(u);}if(!f.type){DOM.add(id+'_content','iframe',{id:id+'_ifr',src:'javascript:""',frameBorder:0,style:'border:0;width:10px;height:10px'});DOM.setStyles(id+'_ifr',{width:f.width,height:f.height});DOM.setAttrib(id+'_ifr','src',u);}else{DOM.add(id+'_wrapper','a',{id:id+'_ok','class':'mceButton mceOk',href:'javascript:;',onmousedown:'return false;'},'Ok');if(f.type=='confirm')DOM.add(id+'_wrapper','a',{'class':'mceButton mceCancel',href:'javascript:;',onmousedown:'return false;'},'Cancel');DOM.add(id+'_middle','div',{'class':'mceIcon'});DOM.setHTML(id+'_content',f.content.replace('\n','
'));}mdf=Event.add(id,'mousedown',function(e){var n=e.target,w,vp;w=t.windows[id];t.focus(id);if(n.nodeName=='A'||n.nodeName=='a'){if(n.className=='mceMax'){w.oldPos=w.element.getXY();w.oldSize=w.element.getSize();vp=DOM.getViewPort();vp.w-=2;vp.h-=2;w.element.moveTo(vp.x,vp.y);w.element.resizeTo(vp.w,vp.h);DOM.setStyles(id+'_ifr',{width:vp.w-w.deltaWidth,height:vp.h-w.deltaHeight});DOM.addClass(id+'_wrapper','mceMaximized');}else if(n.className=='mceMed'){w.element.moveTo(w.oldPos.x,w.oldPos.y);w.element.resizeTo(w.oldSize.w,w.oldSize.h);w.iframeElement.resizeTo(w.oldSize.w-w.deltaWidth,w.oldSize.h-w.deltaHeight);DOM.removeClass(id+'_wrapper','mceMaximized');}else if(n.className=='mceMove')return t._startDrag(id,e,n.className);else if(DOM.hasClass(n,'mceResize'))return t._startDrag(id,e,n.className.substring(13));}});clf=Event.add(id,'click',function(e){var n=e.target;t.focus(id);if(n.nodeName=='A'||n.nodeName=='a'){switch(n.className){case'mceClose':t.close(null,id);return Event.cancel(e);case'mceButton mceOk':case'mceButton mceCancel':f.button_func(n.className=='mceButton mceOk');return Event.cancel(e);}}});w=t.windows[id]={id:id,mousedown_func:mdf,click_func:clf,element:new Element(id,{blocker:1,container:ed.getContainer()}),iframeElement:new Element(id+'_ifr'),features:f,deltaWidth:dw,deltaHeight:dh};w.iframeElement.on('focus',function(){t.focus(id);});if(t.count==0&&t.editor.getParam('dialog_type','modal')=='modal'){DOM.add(DOM.doc.body,'div',{id:'mceModalBlocker','class':(t.editor.settings.inlinepopups_skin||'clearlooks2')+'_modalBlocker',style:{zIndex:t.zIndex-1}});DOM.show('mceModalBlocker');}else DOM.setStyle('mceModalBlocker','z-index',t.zIndex-1);if(tinymce.isIE6||/Firefox\/2\./.test(navigator.userAgent)||(tinymce.isIE&&!DOM.boxModel))DOM.setStyles('mceModalBlocker',{position:'absolute',width:vp.w-2,height:vp.h-2});t.focus(id);t._fixIELayout(id,1);if(DOM.get(id+'_ok'))DOM.get(id+'_ok').focus();t.count++;return w;},focus:function(id){var t=this,w;if(w=t.windows[id]){w.zIndex=this.zIndex++;w.element.setStyle('zIndex',w.zIndex);w.element.update();id=id+'_wrapper';DOM.removeClass(t.lastId,'mceFocus');DOM.addClass(id,'mceFocus');t.lastId=id;}},_addAll:function(te,ne){var i,n,t=this,dom=tinymce.DOM;if(is(ne,'string'))te.appendChild(dom.doc.createTextNode(ne));else if(ne.length){te=te.appendChild(dom.create(ne[0],ne[1]));for(i=2;iix){fw=w;ix=w.zIndex;}});if(fw)t.focus(fw.id);}},setTitle:function(w,ti){var e;w=this._findId(w);if(e=DOM.get(w+'_title'))e.innerHTML=DOM.encode(ti);},alert:function(txt,cb,s){var t=this,w;w=t.open({title:t,type:'alert',button_func:function(s){if(cb)cb.call(s||t,s);t.close(null,w.id);},content:DOM.encode(t.editor.getLang(txt,txt)),inline:1,width:400,height:130});},confirm:function(txt,cb,s){var t=this,w;w=t.open({title:t,type:'confirm',button_func:function(s){if(cb)cb.call(s||t,s);t.close(null,w.id);},content:DOM.encode(t.editor.getLang(txt,txt)),inline:1,width:400,height:130});},_findId:function(w){var t=this;if(typeof(w)=='string')return w;each(t.windows,function(wo){var ifr=DOM.get(wo.id+'_ifr');if(ifr&&w==ifr.contentWindow){w=wo.id;return false;}});return w;},_fixIELayout:function(id,s){var w,img;if(!tinymce.isIE6)return;each(['n','s','w','e','nw','ne','sw','se'],function(v){var e=DOM.get(id+'_resize_'+v);DOM.setStyles(e,{width:s?e.clientWidth:'',height:s?e.clientHeight:'',cursor:DOM.getStyle(e,'cursor',1)});DOM.setStyle(id+"_bottom",'bottom','-1px');e=0;});if(w=this.windows[id]){w.element.hide();w.element.show();each(DOM.select('div,a',id),function(e,i){if(e.currentStyle.backgroundImage!='none'){img=new Image();img.src=e.currentStyle.backgroundImage.replace(/url\(\"(.+)\"\)/,'$1');}});DOM.get(id).style.filter='';}}});tinymce.PluginManager.add('inlinepopups',tinymce.plugins.InlinePopups);})(); \ No newline at end of file +(function(){var d=tinymce.DOM,b=tinymce.dom.Element,a=tinymce.dom.Event,e=tinymce.each,c=tinymce.is;tinymce.create("tinymce.plugins.InlinePopups",{init:function(f,g){f.onBeforeRenderUI.add(function(){f.windowManager=new tinymce.InlineWindowManager(f);d.loadCSS(g+"/skins/"+(f.settings.inlinepopups_skin||"clearlooks2")+"/window.css")})},getInfo:function(){return{longname:"InlinePopups",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/inlinepopups",version:tinymce.majorVersion+"."+tinymce.minorVersion}}});tinymce.create("tinymce.InlineWindowManager:tinymce.WindowManager",{InlineWindowManager:function(f){var g=this;g.parent(f);g.zIndex=300000;g.count=0;g.windows={}},open:function(r,j){var y=this,i,k="",q=y.editor,g=0,s=0,h,m,n,o,l,v,x;r=r||{};j=j||{};if(!r.inline){return y.parent(r,j)}if(!r.type){y.bookmark=q.selection.getBookmark(1)}i=d.uniqueId();h=d.getViewPort();r.width=parseInt(r.width||320);r.height=parseInt(r.height||240)+(tinymce.isIE?8:0);r.min_width=parseInt(r.min_width||150);r.min_height=parseInt(r.min_height||100);r.max_width=parseInt(r.max_width||2000);r.max_height=parseInt(r.max_height||2000);r.left=r.left||Math.round(Math.max(h.x,h.x+(h.w/2)-(r.width/2)));r.top=r.top||Math.round(Math.max(h.y,h.y+(h.h/2)-(r.height/2)));r.movable=r.resizable=true;j.mce_width=r.width;j.mce_height=r.height;j.mce_inline=true;j.mce_window_id=i;j.mce_auto_focus=r.auto_focus;y.features=r;y.params=j;y.onOpen.dispatch(y,r,j);if(r.type){k+=" mceModal";if(r.type){k+=" mce"+r.type.substring(0,1).toUpperCase()+r.type.substring(1)}r.resizable=false}if(r.statusbar){k+=" mceStatusbar"}if(r.resizable){k+=" mceResizable"}if(r.minimizable){k+=" mceMinimizable"}if(r.maximizable){k+=" mceMaximizable"}if(r.movable){k+=" mceMovable"}y._addAll(d.doc.body,["div",{id:i,"class":q.settings.inlinepopups_skin||"clearlooks2",style:"width:100px;height:100px"},["div",{id:i+"_wrapper","class":"mceWrapper"+k},["div",{id:i+"_top","class":"mceTop"},["div",{"class":"mceLeft"}],["div",{"class":"mceCenter"}],["div",{"class":"mceRight"}],["span",{id:i+"_title"},r.title||""]],["div",{id:i+"_middle","class":"mceMiddle"},["div",{id:i+"_left","class":"mceLeft"}],["span",{id:i+"_content"}],["div",{id:i+"_right","class":"mceRight"}]],["div",{id:i+"_bottom","class":"mceBottom"},["div",{"class":"mceLeft"}],["div",{"class":"mceCenter"}],["div",{"class":"mceRight"}],["span",{id:i+"_status"},"Content"]],["a",{"class":"mceMove",tabindex:"-1",href:"javascript:;"}],["a",{"class":"mceMin",tabindex:"-1",href:"javascript:;",onmousedown:"return false;"}],["a",{"class":"mceMax",tabindex:"-1",href:"javascript:;",onmousedown:"return false;"}],["a",{"class":"mceMed",tabindex:"-1",href:"javascript:;",onmousedown:"return false;"}],["a",{"class":"mceClose",tabindex:"-1",href:"javascript:;",onmousedown:"return false;"}],["a",{id:i+"_resize_n","class":"mceResize mceResizeN",tabindex:"-1",href:"javascript:;"}],["a",{id:i+"_resize_s","class":"mceResize mceResizeS",tabindex:"-1",href:"javascript:;"}],["a",{id:i+"_resize_w","class":"mceResize mceResizeW",tabindex:"-1",href:"javascript:;"}],["a",{id:i+"_resize_e","class":"mceResize mceResizeE",tabindex:"-1",href:"javascript:;"}],["a",{id:i+"_resize_nw","class":"mceResize mceResizeNW",tabindex:"-1",href:"javascript:;"}],["a",{id:i+"_resize_ne","class":"mceResize mceResizeNE",tabindex:"-1",href:"javascript:;"}],["a",{id:i+"_resize_sw","class":"mceResize mceResizeSW",tabindex:"-1",href:"javascript:;"}],["a",{id:i+"_resize_se","class":"mceResize mceResizeSE",tabindex:"-1",href:"javascript:;"}]]]);d.setStyles(i,{top:-10000,left:-10000});if(tinymce.isGecko){d.setStyle(i,"overflow","auto")}if(!r.type){g+=d.get(i+"_left").clientWidth;g+=d.get(i+"_right").clientWidth;s+=d.get(i+"_top").clientHeight;s+=d.get(i+"_bottom").clientHeight}d.setStyles(i,{top:r.top,left:r.left,width:r.width+g,height:r.height+s});x=r.url||r.file;if(x){if(tinymce.relaxedDomain){x+=(x.indexOf("?")==-1?"?":"&")+"mce_rdomain="+tinymce.relaxedDomain}x=tinymce._addVer(x)}if(!r.type){d.add(i+"_content","iframe",{id:i+"_ifr",src:'javascript:""',frameBorder:0,style:"border:0;width:10px;height:10px"});d.setStyles(i+"_ifr",{width:r.width,height:r.height});d.setAttrib(i+"_ifr","src",x)}else{d.add(i+"_wrapper","a",{id:i+"_ok","class":"mceButton mceOk",href:"javascript:;",onmousedown:"return false;"},"Ok");if(r.type=="confirm"){d.add(i+"_wrapper","a",{"class":"mceButton mceCancel",href:"javascript:;",onmousedown:"return false;"},"Cancel")}d.add(i+"_middle","div",{"class":"mceIcon"});d.setHTML(i+"_content",r.content.replace("\n","
"))}n=a.add(i,"mousedown",function(t){var u=t.target,f,p;f=y.windows[i];y.focus(i);if(u.nodeName=="A"||u.nodeName=="a"){if(u.className=="mceMax"){f.oldPos=f.element.getXY();f.oldSize=f.element.getSize();p=d.getViewPort();p.w-=2;p.h-=2;f.element.moveTo(p.x,p.y);f.element.resizeTo(p.w,p.h);d.setStyles(i+"_ifr",{width:p.w-f.deltaWidth,height:p.h-f.deltaHeight});d.addClass(i+"_wrapper","mceMaximized")}else{if(u.className=="mceMed"){f.element.moveTo(f.oldPos.x,f.oldPos.y);f.element.resizeTo(f.oldSize.w,f.oldSize.h);f.iframeElement.resizeTo(f.oldSize.w-f.deltaWidth,f.oldSize.h-f.deltaHeight);d.removeClass(i+"_wrapper","mceMaximized")}else{if(u.className=="mceMove"){return y._startDrag(i,t,u.className)}else{if(d.hasClass(u,"mceResize")){return y._startDrag(i,t,u.className.substring(13))}}}}}});o=a.add(i,"click",function(f){var p=f.target;y.focus(i);if(p.nodeName=="A"||p.nodeName=="a"){switch(p.className){case"mceClose":y.close(null,i);return a.cancel(f);case"mceButton mceOk":case"mceButton mceCancel":r.button_func(p.className=="mceButton mceOk");return a.cancel(f)}}});v=y.windows[i]={id:i,mousedown_func:n,click_func:o,element:new b(i,{blocker:1,container:q.getContainer()}),iframeElement:new b(i+"_ifr"),features:r,deltaWidth:g,deltaHeight:s};v.iframeElement.on("focus",function(){y.focus(i)});if(y.count==0&&y.editor.getParam("dialog_type","modal")=="modal"){d.add(d.doc.body,"div",{id:"mceModalBlocker","class":(y.editor.settings.inlinepopups_skin||"clearlooks2")+"_modalBlocker",style:{zIndex:y.zIndex-1}});d.show("mceModalBlocker")}else{d.setStyle("mceModalBlocker","z-index",y.zIndex-1)}if(tinymce.isIE6||/Firefox\/2\./.test(navigator.userAgent)||(tinymce.isIE&&!d.boxModel)){d.setStyles("mceModalBlocker",{position:"absolute",left:h.x,top:h.y,width:h.w-2,height:h.h-2})}y.focus(i);y._fixIELayout(i,1);if(d.get(i+"_ok")){d.get(i+"_ok").focus()}y.count++;return v},focus:function(h){var g=this,f;if(f=g.windows[h]){f.zIndex=this.zIndex++;f.element.setStyle("zIndex",f.zIndex);f.element.update();h=h+"_wrapper";d.removeClass(g.lastId,"mceFocus");d.addClass(h,"mceFocus");g.lastId=h}},_addAll:function(k,h){var g,l,f=this,j=tinymce.DOM;if(c(h,"string")){k.appendChild(j.doc.createTextNode(h))}else{if(h.length){k=k.appendChild(j.create(h[0],h[1]));for(g=2;gf){i=m;f=m.zIndex}});if(i){h.focus(i.id)}}},setTitle:function(f,g){var h;f=this._findId(f);if(h=d.get(f+"_title")){h.innerHTML=d.encode(g)}},alert:function(g,f,j){var i=this,h;h=i.open({title:i,type:"alert",button_func:function(k){if(f){f.call(k||i,k)}i.close(null,h.id)},content:d.encode(i.editor.getLang(g,g)),inline:1,width:400,height:130})},confirm:function(g,f,j){var i=this,h;h=i.open({title:i,type:"confirm",button_func:function(k){if(f){f.call(k||i,k)}i.close(null,h.id)},content:d.encode(i.editor.getLang(g,g)),inline:1,width:400,height:130})},_findId:function(f){var g=this;if(typeof(f)=="string"){return f}e(g.windows,function(h){var i=d.get(h.id+"_ifr");if(i&&f==i.contentWindow){f=h.id;return false}});return f},_fixIELayout:function(i,h){var f,g;if(!tinymce.isIE6){return}e(["n","s","w","e","nw","ne","sw","se"],function(j){var k=d.get(i+"_resize_"+j);d.setStyles(k,{width:h?k.clientWidth:"",height:h?k.clientHeight:"",cursor:d.getStyle(k,"cursor",1)});d.setStyle(i+"_bottom","bottom","-1px");k=0});if(f=this.windows[i]){f.element.hide();f.element.show();e(d.select("div,a",i),function(k,j){if(k.currentStyle.backgroundImage!="none"){g=new Image();g.src=k.currentStyle.backgroundImage.replace(/url\(\"(.+)\"\)/,"$1")}});d.get(i).style.filter=""}}});tinymce.PluginManager.add("inlinepopups",tinymce.plugins.InlinePopups)})(); \ No newline at end of file diff --git a/source/web/scripts/tiny_mce/plugins/inlinepopups/editor_plugin_src.js b/source/web/scripts/tiny_mce/plugins/inlinepopups/editor_plugin_src.js index 027a23cdf8..fffca5abff 100644 --- a/source/web/scripts/tiny_mce/plugins/inlinepopups/editor_plugin_src.js +++ b/source/web/scripts/tiny_mce/plugins/inlinepopups/editor_plugin_src.js @@ -1,5 +1,5 @@ /** - * $Id: editor_plugin_src.js 961 2008-11-14 10:31:07Z spocke $ + * $Id: editor_plugin_src.js 1150 2009-06-01 11:50:46Z spocke $ * * @author Moxiecode * @copyright Copyright © 2004-2008, Moxiecode Systems AB, All rights reserved. @@ -50,7 +50,7 @@ // Only store selection if the type is a normal window if (!f.type) - t.bookmark = ed.selection.getBookmark('simple'); + t.bookmark = ed.selection.getBookmark(1); id = DOM.uniqueId(); vp = DOM.getViewPort(); @@ -266,7 +266,7 @@ DOM.setStyle('mceModalBlocker', 'z-index', t.zIndex - 1); if (tinymce.isIE6 || /Firefox\/2\./.test(navigator.userAgent) || (tinymce.isIE && !DOM.boxModel)) - DOM.setStyles('mceModalBlocker', {position : 'absolute', width : vp.w - 2, height : vp.h - 2}); + DOM.setStyles('mceModalBlocker', {position : 'absolute', left : vp.x, top : vp.y, width : vp.w - 2, height : vp.h - 2}); t.focus(id); t._fixIELayout(id, 1); @@ -358,7 +358,7 @@ }); if (tinymce.isIE6 || (tinymce.isIE && !DOM.boxModel)) - DOM.setStyles('mceEventBlocker', {position : 'absolute', width : vp.w - 2, height : vp.h - 2}); + DOM.setStyles('mceEventBlocker', {position : 'absolute', left : vp.x, top : vp.y, width : vp.w - 2, height : vp.h - 2}); eb = new Element('mceEventBlocker'); eb.update(); diff --git a/source/web/scripts/tiny_mce/plugins/insertdatetime/editor_plugin.js b/source/web/scripts/tiny_mce/plugins/insertdatetime/editor_plugin.js index 34d4ceca51..938ce6b17d 100644 --- a/source/web/scripts/tiny_mce/plugins/insertdatetime/editor_plugin.js +++ b/source/web/scripts/tiny_mce/plugins/insertdatetime/editor_plugin.js @@ -1 +1 @@ -(function(){tinymce.create('tinymce.plugins.InsertDateTime',{init:function(ed,url){var t=this;t.editor=ed;ed.addCommand('mceInsertDate',function(){var str=t._getDateTime(new Date(),ed.getParam("plugin_insertdate_dateFormat",ed.getLang('insertdatetime.date_fmt')));ed.execCommand('mceInsertContent',false,str);});ed.addCommand('mceInsertTime',function(){var str=t._getDateTime(new Date(),ed.getParam("plugin_insertdate_timeFormat",ed.getLang('insertdatetime.time_fmt')));ed.execCommand('mceInsertContent',false,str);});ed.addButton('insertdate',{title:'insertdatetime.insertdate_desc',cmd:'mceInsertDate'});ed.addButton('inserttime',{title:'insertdatetime.inserttime_desc',cmd:'mceInsertTime'});},getInfo:function(){return{longname:'Insert date/time',author:'Moxiecode Systems AB',authorurl:'http://tinymce.moxiecode.com',infourl:'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/insertdatetime',version:tinymce.majorVersion+"."+tinymce.minorVersion};},_getDateTime:function(d,fmt){var ed=this.editor;function addZeros(value,len){value=""+value;if(value.length-1){nl[ci].style.zIndex=z[fi];nl[fi].style.zIndex=z[ci];}else{if(z[ci]>0)nl[ci].style.zIndex=z[ci]-1;}}else{for(i=0;iz[ci]){fi=i;break;}}if(fi>-1){nl[ci].style.zIndex=z[fi];nl[fi].style.zIndex=z[ci];}else nl[ci].style.zIndex=z[ci]+1;}ed.execCommand('mceRepaint');},_getParentLayer:function(n){return this.editor.dom.getParent(n,function(n){return n.nodeType==1&&/^(absolute|relative|static)$/i.test(n.style.position);});},_insertLayer:function(){var ed=this.editor,p=ed.dom.getPos(ed.dom.getParent(ed.selection.getNode(),'*'));ed.dom.add(ed.getBody(),'div',{style:{position:'absolute',left:p.x,top:(p.y>20?p.y:20),width:100,height:100},'class':'mceItemVisualAid'},ed.selection.getContent()||ed.getLang('layer.content'));},_toggleAbsolute:function(){var ed=this.editor,le=this._getParentLayer(ed.selection.getNode());if(!le)le=ed.dom.getParent(ed.selection.getNode(),'DIV,P,IMG');if(le){if(le.style.position.toLowerCase()=="absolute"){ed.dom.setStyles(le,{position:'',left:'',top:'',width:'',height:''});ed.dom.removeClass(le,'mceItemVisualAid');}else{if(le.style.left=="")le.style.left=20+'px';if(le.style.top=="")le.style.top=20+'px';if(le.style.width=="")le.style.width=le.width?(le.width+'px'):'100px';if(le.style.height=="")le.style.height=le.height?(le.height+'px'):'100px';le.style.position="absolute";ed.addVisual(ed.getBody());}ed.execCommand('mceRepaint');ed.nodeChanged();}}});tinymce.PluginManager.add('layer',tinymce.plugins.Layer);})(); \ No newline at end of file +(function(){tinymce.create("tinymce.plugins.Layer",{init:function(a,b){var c=this;c.editor=a;a.addCommand("mceInsertLayer",c._insertLayer,c);a.addCommand("mceMoveForward",function(){c._move(1)});a.addCommand("mceMoveBackward",function(){c._move(-1)});a.addCommand("mceMakeAbsolute",function(){c._toggleAbsolute()});a.addButton("moveforward",{title:"layer.forward_desc",cmd:"mceMoveForward"});a.addButton("movebackward",{title:"layer.backward_desc",cmd:"mceMoveBackward"});a.addButton("absolute",{title:"layer.absolute_desc",cmd:"mceMakeAbsolute"});a.addButton("insertlayer",{title:"layer.insertlayer_desc",cmd:"mceInsertLayer"});a.onInit.add(function(){if(tinymce.isIE){a.getDoc().execCommand("2D-Position",false,true)}});a.onNodeChange.add(c._nodeChange,c);a.onVisualAid.add(c._visualAid,c)},getInfo:function(){return{longname:"Layer",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/layer",version:tinymce.majorVersion+"."+tinymce.minorVersion}},_nodeChange:function(b,a,e){var c,d;c=this._getParentLayer(e);d=b.dom.getParent(e,"DIV,P,IMG");if(!d){a.setDisabled("absolute",1);a.setDisabled("moveforward",1);a.setDisabled("movebackward",1)}else{a.setDisabled("absolute",0);a.setDisabled("moveforward",!c);a.setDisabled("movebackward",!c);a.setActive("absolute",c&&c.style.position.toLowerCase()=="absolute")}},_visualAid:function(a,c,b){var d=a.dom;tinymce.each(d.select("div,p",c),function(f){if(/^(absolute|relative|static)$/i.test(f.style.position)){if(b){d.addClass(f,"mceItemVisualAid")}else{d.removeClass(f,"mceItemVisualAid")}}})},_move:function(h){var b=this.editor,f,g=[],e=this._getParentLayer(b.selection.getNode()),c=-1,j=-1,a;a=[];tinymce.walk(b.getBody(),function(d){if(d.nodeType==1&&/^(absolute|relative|static)$/i.test(d.style.position)){a.push(d)}},"childNodes");for(f=0;f-1){a[c].style.zIndex=g[j];a[j].style.zIndex=g[c]}else{if(g[c]>0){a[c].style.zIndex=g[c]-1}}}else{for(f=0;fg[c]){j=f;break}}if(j>-1){a[c].style.zIndex=g[j];a[j].style.zIndex=g[c]}else{a[c].style.zIndex=g[c]+1}}b.execCommand("mceRepaint")},_getParentLayer:function(a){return this.editor.dom.getParent(a,function(b){return b.nodeType==1&&/^(absolute|relative|static)$/i.test(b.style.position)})},_insertLayer:function(){var a=this.editor,b=a.dom.getPos(a.dom.getParent(a.selection.getNode(),"*"));a.dom.add(a.getBody(),"div",{style:{position:"absolute",left:b.x,top:(b.y>20?b.y:20),width:100,height:100},"class":"mceItemVisualAid"},a.selection.getContent()||a.getLang("layer.content"))},_toggleAbsolute:function(){var a=this.editor,b=this._getParentLayer(a.selection.getNode());if(!b){b=a.dom.getParent(a.selection.getNode(),"DIV,P,IMG")}if(b){if(b.style.position.toLowerCase()=="absolute"){a.dom.setStyles(b,{position:"",left:"",top:"",width:"",height:""});a.dom.removeClass(b,"mceItemVisualAid")}else{if(b.style.left==""){b.style.left=20+"px"}if(b.style.top==""){b.style.top=20+"px"}if(b.style.width==""){b.style.width=b.width?(b.width+"px"):"100px"}if(b.style.height==""){b.style.height=b.height?(b.height+"px"):"100px"}b.style.position="absolute";a.addVisual(a.getBody())}a.execCommand("mceRepaint");a.nodeChanged()}}});tinymce.PluginManager.add("layer",tinymce.plugins.Layer)})(); \ No newline at end of file diff --git a/source/web/scripts/tiny_mce/plugins/legacyoutput/editor_plugin.js b/source/web/scripts/tiny_mce/plugins/legacyoutput/editor_plugin.js new file mode 100644 index 0000000000..29d43c5244 --- /dev/null +++ b/source/web/scripts/tiny_mce/plugins/legacyoutput/editor_plugin.js @@ -0,0 +1 @@ +(function(a){a.onAddEditor.addToTop(function(c,b){b.settings.inline_styles=false});a.create("tinymce.plugins.LegacyOutput",{init:function(b){b.onInit.add(function(){var c="p,h1,h2,h3,h4,h5,h6,td,th,div,ul,ol,li,table,img",e=a.explode(b.settings.font_size_style_values),d=b.serializer;b.formatter.register({alignleft:{selector:c,attributes:{align:"left"}},aligncenter:{selector:c,attributes:{align:"center"}},alignright:{selector:c,attributes:{align:"right"}},alignfull:{selector:c,attributes:{align:"full"}},bold:{inline:"b"},italic:{inline:"i"},underline:{inline:"u"},strikethrough:{inline:"strike"},fontname:{inline:"font",attributes:{face:"%value"}},fontsize:{inline:"font",attributes:{size:function(f){return a.inArray(e,f.value)+1}}},forecolor:{inline:"font",styles:{color:"%value"}},hilitecolor:{inline:"font",styles:{backgroundColor:"%value"}}});d._setup();a.each("b,i,u,strike".split(","),function(f){var g=d.rules[f];if(!g){d.addRules(f)}});if(!d.rules.font){d.addRules("font[face|size|color|style]")}a.each(c.split(","),function(f){var h=d.rules[f],g;if(h){a.each(h.attribs,function(j,i){if(i.name=="align"){g=true;return false}});if(!g){h.attribs.push({name:"align"})}}});b.onNodeChange.add(function(g,k){var j,f,h,i;f=g.dom.getParent(g.selection.getNode(),"font");if(f){h=f.face;i=f.size}if(j=k.get("fontselect")){j.select(function(l){return l==h})}if(j=k.get("fontsizeselect")){j.select(function(m){var l=a.inArray(e,m.fontSize);return l+1==i})}})})},getInfo:function(){return{longname:"LegacyOutput",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/legacyoutput",version:a.majorVersion+"."+a.minorVersion}}});a.PluginManager.add("legacyoutput",a.plugins.LegacyOutput)})(tinymce); \ No newline at end of file diff --git a/source/web/scripts/tiny_mce/plugins/legacyoutput/editor_plugin_src.js b/source/web/scripts/tiny_mce/plugins/legacyoutput/editor_plugin_src.js new file mode 100644 index 0000000000..e852da15ea --- /dev/null +++ b/source/web/scripts/tiny_mce/plugins/legacyoutput/editor_plugin_src.js @@ -0,0 +1,136 @@ +/** + * editor_plugin_src.js + * + * Copyright 2009, Moxiecode Systems AB + * Released under LGPL License. + * + * License: http://tinymce.moxiecode.com/license + * Contributing: http://tinymce.moxiecode.com/contributing + * + * This plugin will force TinyMCE to produce deprecated legacy output such as font elements, u elements, align + * attributes and so forth. There are a few cases where these old items might be needed for example in email applications or with Flash + * + * However you should NOT use this plugin if you are building some system that produces web contents such as a CMS. All these elements are + * not apart of the newer specifications for HTML and XHTML. + */ + +(function(tinymce) { + // Override inline_styles setting to force TinyMCE to produce deprecated contents + tinymce.onAddEditor.addToTop(function(tinymce, editor) { + editor.settings.inline_styles = false; + }); + + // Create the legacy ouput plugin + tinymce.create('tinymce.plugins.LegacyOutput', { + init : function(editor) { + editor.onInit.add(function() { + var alignElements = 'p,h1,h2,h3,h4,h5,h6,td,th,div,ul,ol,li,table,img', + fontSizes = tinymce.explode(editor.settings.font_size_style_values), + serializer = editor.serializer; + + // Override some internal formats to produce legacy elements and attributes + editor.formatter.register({ + // Change alignment formats to use the deprecated align attribute + alignleft : {selector : alignElements, attributes : {align : 'left'}}, + aligncenter : {selector : alignElements, attributes : {align : 'center'}}, + alignright : {selector : alignElements, attributes : {align : 'right'}}, + alignfull : {selector : alignElements, attributes : {align : 'full'}}, + + // Change the basic formatting elements to use deprecated element types + bold : {inline : 'b'}, + italic : {inline : 'i'}, + underline : {inline : 'u'}, + strikethrough : {inline : 'strike'}, + + // Change font size and font family to use the deprecated font element + fontname : {inline : 'font', attributes : {face : '%value'}}, + fontsize : { + inline : 'font', + attributes : { + size : function(vars) { + return tinymce.inArray(fontSizes, vars.value) + 1; + } + } + }, + + // Setup font elements for colors as well + forecolor : {inline : 'font', styles : {color : '%value'}}, + hilitecolor : {inline : 'font', styles : {backgroundColor : '%value'}} + }); + + // Force parsing of the serializer rules + serializer._setup(); + + // Check that deprecated elements are allowed if not add them + tinymce.each('b,i,u,strike'.split(','), function(name) { + var rule = serializer.rules[name]; + + if (!rule) + serializer.addRules(name); + }); + + // Add font element if it's missing + if (!serializer.rules["font"]) + serializer.addRules("font[face|size|color|style]"); + + // Add the missing and depreacted align attribute for the serialization engine + tinymce.each(alignElements.split(','), function(name) { + var rule = serializer.rules[name], found; + + if (rule) { + tinymce.each(rule.attribs, function(name, attr) { + if (attr.name == 'align') { + found = true; + return false; + } + }); + + if (!found) + rule.attribs.push({name : 'align'}); + } + }); + + // Listen for the onNodeChange event so that we can do special logic for the font size and font name drop boxes + editor.onNodeChange.add(function(editor, control_manager) { + var control, fontElm, fontName, fontSize; + + // Find font element get it's name and size + fontElm = editor.dom.getParent(editor.selection.getNode(), 'font'); + if (fontElm) { + fontName = fontElm.face; + fontSize = fontElm.size; + } + + // Select/unselect the font name in droplist + if (control = control_manager.get('fontselect')) { + control.select(function(value) { + return value == fontName; + }); + } + + // Select/unselect the font size in droplist + if (control = control_manager.get('fontsizeselect')) { + control.select(function(value) { + var index = tinymce.inArray(fontSizes, value.fontSize); + + return index + 1 == fontSize; + }); + } + }); + }); + }, + + getInfo : function() { + return { + longname : 'LegacyOutput', + author : 'Moxiecode Systems AB', + authorurl : 'http://tinymce.moxiecode.com', + infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/legacyoutput', + version : tinymce.majorVersion + "." + tinymce.minorVersion + }; + } + }); + + // Register plugin + tinymce.PluginManager.add('legacyoutput', tinymce.plugins.LegacyOutput); +})(tinymce); \ No newline at end of file diff --git a/source/web/scripts/tiny_mce/plugins/media/editor_plugin.js b/source/web/scripts/tiny_mce/plugins/media/editor_plugin.js index b226b00d3e..2889be5abe 100644 --- a/source/web/scripts/tiny_mce/plugins/media/editor_plugin.js +++ b/source/web/scripts/tiny_mce/plugins/media/editor_plugin.js @@ -1 +1 @@ -(function(){var each=tinymce.each;tinymce.create('tinymce.plugins.MediaPlugin',{init:function(ed,url){var t=this;t.editor=ed;t.url=url;function isMediaElm(n){return/^(mceItemFlash|mceItemShockWave|mceItemWindowsMedia|mceItemQuickTime|mceItemRealMedia)$/.test(n.className);};ed.onPreInit.add(function(){ed.serializer.addRules('param[name|value|_mce_value]');});ed.addCommand('mceMedia',function(){ed.windowManager.open({file:url+'/media.htm',width:430+parseInt(ed.getLang('media.delta_width',0)),height:470+parseInt(ed.getLang('media.delta_height',0)),inline:1},{plugin_url:url});});ed.addButton('media',{title:'media.desc',cmd:'mceMedia'});ed.onNodeChange.add(function(ed,cm,n){cm.setActive('media',n.nodeName=='IMG'&&isMediaElm(n));});ed.onInit.add(function(){var lo={mceItemFlash:'flash',mceItemShockWave:'shockwave',mceItemWindowsMedia:'windowsmedia',mceItemQuickTime:'quicktime',mceItemRealMedia:'realmedia'};ed.selection.onSetContent.add(function(){t._spansToImgs(ed.getBody());});ed.selection.onBeforeSetContent.add(t._objectsToSpans,t);if(ed.settings.content_css!==false)ed.dom.loadCSS(url+"/css/content.css");if(ed.theme.onResolveName){ed.theme.onResolveName.add(function(th,o){if(o.name=='img'){each(lo,function(v,k){if(ed.dom.hasClass(o.node,k)){o.name=v;o.title=ed.dom.getAttrib(o.node,'title');return false;}});}});}if(ed&&ed.plugins.contextmenu){ed.plugins.contextmenu.onContextMenu.add(function(th,m,e){if(e.nodeName=='IMG'&&/mceItem(Flash|ShockWave|WindowsMedia|QuickTime|RealMedia)/.test(e.className)){m.add({title:'media.edit',icon:'media',cmd:'mceMedia'});}});}});ed.onBeforeSetContent.add(t._objectsToSpans,t);ed.onSetContent.add(function(){t._spansToImgs(ed.getBody());});ed.onPreProcess.add(function(ed,o){var dom=ed.dom;if(o.set){t._spansToImgs(o.node);each(dom.select('IMG',o.node),function(n){var p;if(isMediaElm(n)){p=t._parse(n.title);dom.setAttrib(n,'width',dom.getAttrib(n,'width',p.width||100));dom.setAttrib(n,'height',dom.getAttrib(n,'height',p.height||100));}});}if(o.get){each(dom.select('IMG',o.node),function(n){var ci,cb,mt;if(ed.getParam('media_use_script')){if(isMediaElm(n))n.className=n.className.replace(/mceItem/g,'mceTemp');return;}switch(n.className){case'mceItemFlash':ci='d27cdb6e-ae6d-11cf-96b8-444553540000';cb='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0';mt='application/x-shockwave-flash';break;case'mceItemShockWave':ci='166b1bca-3f9c-11cf-8075-444553540000';cb='http://download.macromedia.com/pub/shockwave/cabs/director/sw.cab#version=8,5,1,0';mt='application/x-director';break;case'mceItemWindowsMedia':ci=ed.getParam('media_wmp6_compatible')?'05589fa1-c356-11ce-bf01-00aa0055595a':'6bf52a52-394a-11d3-b153-00c04f79faa6';cb='http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701';mt='application/x-mplayer2';break;case'mceItemQuickTime':ci='02bf25d5-8c17-4b23-bc80-d3488abddc6b';cb='http://www.apple.com/qtactivex/qtplugin.cab#version=6,0,2,0';mt='video/quicktime';break;case'mceItemRealMedia':ci='cfcdaa03-8be4-11cf-b84b-0020afbbccfa';cb='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0';mt='audio/x-pn-realaudio-plugin';break;}if(ci){dom.replace(t._buildObj({classid:ci,codebase:cb,type:mt},n),n);}});}});ed.onPostProcess.add(function(ed,o){o.content=o.content.replace(/_mce_value=/g,'value=');});if(ed.getParam('media_use_script')){function getAttr(s,n){n=new RegExp(n+'=\"([^\"]+)\"','g').exec(s);return n?ed.dom.decode(n[1]):'';};ed.onPostProcess.add(function(ed,o){o.content=o.content.replace(/]+>/g,function(im){var cl=getAttr(im,'class');if(/^(mceTempFlash|mceTempShockWave|mceTempWindowsMedia|mceTempQuickTime|mceTempRealMedia)$/.test(cl)){at=t._parse(getAttr(im,'title'));at.width=getAttr(im,'width');at.height=getAttr(im,'height');im='';}return im;});});}},getInfo:function(){return{longname:'Media',author:'Moxiecode Systems AB',authorurl:'http://tinymce.moxiecode.com',infourl:'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/media',version:tinymce.majorVersion+"."+tinymce.minorVersion};},_objectsToSpans:function(ed,o){var t=this,h=o.content;h=h.replace(/]*>\s*write(Flash|ShockWave|WindowsMedia|QuickTime|RealMedia)\(\{([^\)]*)\}\);\s*<\/script>/gi,function(a,b,c){var o=t._parse(c);return''});h=h.replace(/]*)>/gi,'');h=h.replace(/]*)\/?>/gi,'');h=h.replace(/]*)>/gi,'');h=h.replace(/<\/(object)([^>]*)>/gi,'');h=h.replace(/<\/embed>/gi,'');h=h.replace(/]*)>/gi,function(a,b){return''});h=h.replace(/\/ class=\"mceItemParam\"><\/span>/gi,'class="mceItemParam">');o.content=h;},_buildObj:function(o,n){var ob,ed=this.editor,dom=ed.dom,p=this._parse(n.title),stc;stc=ed.getParam('media_strict',true)&&o.type=='application/x-shockwave-flash';p.width=o.width=dom.getAttrib(n,'width')||100;p.height=o.height=dom.getAttrib(n,'height')||100;if(p.src)p.src=ed.convertURL(p.src,'src',n);if(stc){ob=dom.create('span',{mce_name:'object',type:'application/x-shockwave-flash',data:p.src,width:o.width,height:o.height});}else{ob=dom.create('span',{mce_name:'object',classid:"clsid:"+o.classid,codebase:o.codebase,width:o.width,height:o.height});}each(p,function(v,k){if(!/^(width|height|codebase|classid|_cx|_cy)$/.test(k)){if(o.type=='application/x-mplayer2'&&k=='src')k='url';if(v)dom.add(ob,'span',{mce_name:'param',name:k,'_mce_value':v});}});if(!stc)dom.add(ob,'span',tinymce.extend({mce_name:'embed',type:o.type},p));return ob;},_spansToImgs:function(p){var t=this,dom=t.editor.dom,im,ci;each(dom.select('span',p),function(n){if(dom.getAttrib(n,'class')=='mceItemObject'){ci=dom.getAttrib(n,"classid").toLowerCase().replace(/\s+/g,'');switch(ci){case'clsid:d27cdb6e-ae6d-11cf-96b8-444553540000':dom.replace(t._createImg('mceItemFlash',n),n);break;case'clsid:166b1bca-3f9c-11cf-8075-444553540000':dom.replace(t._createImg('mceItemShockWave',n),n);break;case'clsid:6bf52a52-394a-11d3-b153-00c04f79faa6':case'clsid:22d6f312-b0f6-11d0-94ab-0080c74c7e95':case'clsid:05589fa1-c356-11ce-bf01-00aa0055595a':dom.replace(t._createImg('mceItemWindowsMedia',n),n);break;case'clsid:02bf25d5-8c17-4b23-bc80-d3488abddc6b':dom.replace(t._createImg('mceItemQuickTime',n),n);break;case'clsid:cfcdaa03-8be4-11cf-b84b-0020afbbccfa':dom.replace(t._createImg('mceItemRealMedia',n),n);break;default:dom.replace(t._createImg('mceItemFlash',n),n);}return;}if(dom.getAttrib(n,'class')=='mceItemEmbed'){switch(dom.getAttrib(n,'type')){case'application/x-shockwave-flash':dom.replace(t._createImg('mceItemFlash',n),n);break;case'application/x-director':dom.replace(t._createImg('mceItemShockWave',n),n);break;case'application/x-mplayer2':dom.replace(t._createImg('mceItemWindowsMedia',n),n);break;case'video/quicktime':dom.replace(t._createImg('mceItemQuickTime',n),n);break;case'audio/x-pn-realaudio-plugin':dom.replace(t._createImg('mceItemRealMedia',n),n);break;default:dom.replace(t._createImg('mceItemFlash',n),n);}}});},_createImg:function(cl,n){var im,dom=this.editor.dom,pa={},ti='',args;args=['id','name','width','height','bgcolor','align','flashvars','src','wmode','allowfullscreen','quality'];im=dom.create('img',{src:this.url+'/img/trans.gif',width:dom.getAttrib(n,'width')||100,height:dom.getAttrib(n,'height')||100,'class':cl});each(args,function(na){var v=dom.getAttrib(n,na);if(v)pa[na]=v;});each(dom.select('span',n),function(n){if(dom.hasClass(n,'mceItemParam'))pa[dom.getAttrib(n,'name')]=dom.getAttrib(n,'_mce_value');});if(pa.movie){pa.src=pa.movie;delete pa.movie;}n=dom.select('.mceItemEmbed',n)[0];if(n){each(args,function(na){var v=dom.getAttrib(n,na);if(v&&!pa[na])pa[na]=v;});}delete pa.width;delete pa.height;im.title=this._serialize(pa);return im;},_parse:function(s){return tinymce.util.JSON.parse('{'+s+'}');},_serialize:function(o){return tinymce.util.JSON.serialize(o).replace(/[{}]/g,'');}});tinymce.PluginManager.add('media',tinymce.plugins.MediaPlugin);})(); \ No newline at end of file +(function(){var a=tinymce.each;tinymce.create("tinymce.plugins.MediaPlugin",{init:function(b,c){var e=this;e.editor=b;e.url=c;function f(g){return/^(mceItemFlash|mceItemShockWave|mceItemWindowsMedia|mceItemQuickTime|mceItemRealMedia)$/.test(g.className)}b.onPreInit.add(function(){b.serializer.addRules("param[name|value|_mce_value]")});b.addCommand("mceMedia",function(){b.windowManager.open({file:c+"/media.htm",width:430+parseInt(b.getLang("media.delta_width",0)),height:470+parseInt(b.getLang("media.delta_height",0)),inline:1},{plugin_url:c})});b.addButton("media",{title:"media.desc",cmd:"mceMedia"});b.onNodeChange.add(function(h,g,i){g.setActive("media",i.nodeName=="IMG"&&f(i))});b.onInit.add(function(){var g={mceItemFlash:"flash",mceItemShockWave:"shockwave",mceItemWindowsMedia:"windowsmedia",mceItemQuickTime:"quicktime",mceItemRealMedia:"realmedia"};b.selection.onSetContent.add(function(){e._spansToImgs(b.getBody())});b.selection.onBeforeSetContent.add(e._objectsToSpans,e);if(b.settings.content_css!==false){b.dom.loadCSS(c+"/css/content.css")}if(b.theme&&b.theme.onResolveName){b.theme.onResolveName.add(function(h,i){if(i.name=="img"){a(g,function(l,j){if(b.dom.hasClass(i.node,j)){i.name=l;i.title=b.dom.getAttrib(i.node,"title");return false}})}})}if(b&&b.plugins.contextmenu){b.plugins.contextmenu.onContextMenu.add(function(i,h,j){if(j.nodeName=="IMG"&&/mceItem(Flash|ShockWave|WindowsMedia|QuickTime|RealMedia)/.test(j.className)){h.add({title:"media.edit",icon:"media",cmd:"mceMedia"})}})}});b.onBeforeSetContent.add(e._objectsToSpans,e);b.onSetContent.add(function(){e._spansToImgs(b.getBody())});b.onPreProcess.add(function(g,i){var h=g.dom;if(i.set){e._spansToImgs(i.node);a(h.select("IMG",i.node),function(k){var j;if(f(k)){j=e._parse(k.title);h.setAttrib(k,"width",h.getAttrib(k,"width",j.width||100));h.setAttrib(k,"height",h.getAttrib(k,"height",j.height||100))}})}if(i.get){a(h.select("IMG",i.node),function(m){var l,j,k;if(g.getParam("media_use_script")){if(f(m)){m.className=m.className.replace(/mceItem/g,"mceTemp")}return}switch(m.className){case"mceItemFlash":l="d27cdb6e-ae6d-11cf-96b8-444553540000";j="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0";k="application/x-shockwave-flash";break;case"mceItemShockWave":l="166b1bca-3f9c-11cf-8075-444553540000";j="http://download.macromedia.com/pub/shockwave/cabs/director/sw.cab#version=8,5,1,0";k="application/x-director";break;case"mceItemWindowsMedia":l=g.getParam("media_wmp6_compatible")?"05589fa1-c356-11ce-bf01-00aa0055595a":"6bf52a52-394a-11d3-b153-00c04f79faa6";j="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701";k="application/x-mplayer2";break;case"mceItemQuickTime":l="02bf25d5-8c17-4b23-bc80-d3488abddc6b";j="http://www.apple.com/qtactivex/qtplugin.cab#version=6,0,2,0";k="video/quicktime";break;case"mceItemRealMedia":l="cfcdaa03-8be4-11cf-b84b-0020afbbccfa";j="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0";k="audio/x-pn-realaudio-plugin";break}if(l){h.replace(e._buildObj({classid:l,codebase:j,type:k},m),m)}})}});b.onPostProcess.add(function(g,h){h.content=h.content.replace(/_mce_value=/g,"value=")});function d(g,h){h=new RegExp(h+'="([^"]+)"',"g").exec(g);return h?b.dom.decode(h[1]):""}b.onPostProcess.add(function(g,h){if(g.getParam("media_use_script")){h.content=h.content.replace(/]+>/g,function(j){var i=d(j,"class");if(/^(mceTempFlash|mceTempShockWave|mceTempWindowsMedia|mceTempQuickTime|mceTempRealMedia)$/.test(i)){at=e._parse(d(j,"title"));at.width=d(j,"width");at.height=d(j,"height");j=' - @@ -52,7 +51,7 @@
 
"; inst.execCommand('mceBeginUndoLevel'); - inst.execCommand('mceInsertContent', false, html); + + // Move table + if (inst.settings.fix_table_elements) { + var bm = inst.selection.getBookmark(), patt = ''; + + inst.execCommand('mceInsertContent', false, '
'); + + tinymce.each('h1,h2,h3,h4,h5,h6,p'.split(','), function(n) { + if (patt) + patt += ','; + + patt += n + ' ._mce_marker'; + }); + + tinymce.each(inst.dom.select(patt), function(n) { + inst.dom.split(inst.dom.getParent(n, 'h1,h2,h3,h4,h5,h6,p'), n); + }); + + dom.setOuterHTML(dom.select('._mce_marker')[0], html); + + inst.selection.moveToBookmark(bm); + } else + inst.execCommand('mceInsertContent', false, html); + inst.addVisual(); inst.execCommand('mceEndUndoLevel'); @@ -295,7 +322,7 @@ function init() { // Update form selectByValue(formObj, 'align', align); - selectByValue(formObj, 'frame', frame); + selectByValue(formObj, 'tframe', frame); selectByValue(formObj, 'rules', rules); selectByValue(formObj, 'class', className, true, true); formObj.cols.value = cols; diff --git a/source/web/scripts/tiny_mce/plugins/table/merge_cells.htm b/source/web/scripts/tiny_mce/plugins/table/merge_cells.htm index 9d34a886b0..25d42eb657 100644 --- a/source/web/scripts/tiny_mce/plugins/table/merge_cells.htm +++ b/source/web/scripts/tiny_mce/plugins/table/merge_cells.htm @@ -6,9 +6,8 @@ - - +
{#table_dlg.merge_cells_title} diff --git a/source/web/scripts/tiny_mce/plugins/table/row.htm b/source/web/scripts/tiny_mce/plugins/table/row.htm index fe75bf6072..07ca13c983 100644 --- a/source/web/scripts/tiny_mce/plugins/table/row.htm +++ b/source/web/scripts/tiny_mce/plugins/table/row.htm @@ -8,10 +8,9 @@ - - +
  • {#table_dlg.general_tab}
  • diff --git a/source/web/scripts/tiny_mce/plugins/table/table.htm b/source/web/scripts/tiny_mce/plugins/table/table.htm index 75136e607e..37e6159706 100644 --- a/source/web/scripts/tiny_mce/plugins/table/table.htm +++ b/source/web/scripts/tiny_mce/plugins/table/table.htm @@ -9,7 +9,6 @@ - @@ -58,7 +57,7 @@
- diff --git a/source/web/scripts/tiny_mce/plugins/template/editor_plugin.js b/source/web/scripts/tiny_mce/plugins/template/editor_plugin.js index 0f7fb01583..ebe3c27d78 100644 --- a/source/web/scripts/tiny_mce/plugins/template/editor_plugin.js +++ b/source/web/scripts/tiny_mce/plugins/template/editor_plugin.js @@ -1 +1 @@ -(function(){var each=tinymce.each;tinymce.create('tinymce.plugins.TemplatePlugin',{init:function(ed,url){var t=this;t.editor=ed;ed.addCommand('mceTemplate',function(ui){ed.windowManager.open({file:url+'/template.htm',width:ed.getParam('template_popup_width',750),height:ed.getParam('template_popup_height',600),inline:1},{plugin_url:url});});ed.addCommand('mceInsertTemplate',t._insertTemplate,t);ed.addButton('template',{title:'template.desc',cmd:'mceTemplate'});ed.onPreProcess.add(function(ed,o){var dom=ed.dom;each(dom.select('div',o.node),function(e){if(dom.hasClass(e,'mceTmpl')){each(dom.select('*',e),function(e){if(dom.hasClass(e,ed.getParam('template_mdate_classes','mdate').replace(/\s+/g,'|')))e.innerHTML=t._getDateTime(new Date(),ed.getParam("template_mdate_format",ed.getLang("template.mdate_format")));});t._replaceVals(e);}});});},getInfo:function(){return{longname:'Template plugin',author:'Moxiecode Systems AB',authorurl:'http://www.moxiecode.com',infourl:'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/template',version:tinymce.majorVersion+"."+tinymce.minorVersion};},_insertTemplate:function(ui,v){var t=this,ed=t.editor,h,el,dom=ed.dom,sel=ed.selection.getContent();h=v.content;each(t.editor.getParam('template_replace_values'),function(v,k){if(typeof(v)!='function')h=h.replace(new RegExp('\\{\\$'+k+'\\}','g'),v);});el=dom.create('div',null,h);n=dom.select('.mceTmpl',el);if(n&&n.length>0){el=dom.create('div',null);el.appendChild(n[0].cloneNode(true));}function hasClass(n,c){return new RegExp('\\b'+c+'\\b','g').test(n.className);};each(dom.select('*',el),function(n){if(hasClass(n,ed.getParam('template_cdate_classes','cdate').replace(/\s+/g,'|')))n.innerHTML=t._getDateTime(new Date(),ed.getParam("template_cdate_format",ed.getLang("template.cdate_format")));if(hasClass(n,ed.getParam('template_mdate_classes','mdate').replace(/\s+/g,'|')))n.innerHTML=t._getDateTime(new Date(),ed.getParam("template_mdate_format",ed.getLang("template.mdate_format")));if(hasClass(n,ed.getParam('template_selected_content_classes','selcontent').replace(/\s+/g,'|')))n.innerHTML=sel;});t._replaceVals(el);ed.execCommand('mceInsertContent',false,el.innerHTML);ed.addVisual();},_replaceVals:function(e){var dom=this.editor.dom,vl=this.editor.getParam('template_replace_values');each(dom.select('*',e),function(e){each(vl,function(v,k){if(dom.hasClass(e,k)){if(typeof(vl[k])=='function')vl[k](e);}});});},_getDateTime:function(d,fmt){if(!fmt)return"";function addZeros(value,len){var i;value=""+value;if(value.length0){c=d.create("div",null);c.appendChild(n[0].cloneNode(true))}function e(l,h){return new RegExp("\\b"+h+"\\b","g").test(l.className)}a(d.select("*",c),function(h){if(e(h,g.getParam("template_cdate_classes","cdate").replace(/\s+/g,"|"))){h.innerHTML=k._getDateTime(new Date(),g.getParam("template_cdate_format",g.getLang("template.cdate_format")))}if(e(h,g.getParam("template_mdate_classes","mdate").replace(/\s+/g,"|"))){h.innerHTML=k._getDateTime(new Date(),g.getParam("template_mdate_format",g.getLang("template.mdate_format")))}if(e(h,g.getParam("template_selected_content_classes","selcontent").replace(/\s+/g,"|"))){h.innerHTML=b}});k._replaceVals(c);g.execCommand("mceInsertContent",false,c.innerHTML);g.addVisual()},_replaceVals:function(c){var d=this.editor.dom,b=this.editor.getParam("template_replace_values");a(d.select("*",c),function(f){a(b,function(g,e){if(d.hasClass(f,e)){if(typeof(b[e])=="function"){b[e](f)}}})})},_getDateTime:function(e,b){if(!b){return""}function c(g,d){var f;g=""+g;if(g.length - diff --git a/source/web/scripts/tiny_mce/plugins/visualchars/editor_plugin.js b/source/web/scripts/tiny_mce/plugins/visualchars/editor_plugin.js index e1e4238a3b..53d31c44fa 100644 --- a/source/web/scripts/tiny_mce/plugins/visualchars/editor_plugin.js +++ b/source/web/scripts/tiny_mce/plugins/visualchars/editor_plugin.js @@ -1 +1 @@ -(function(){tinymce.create('tinymce.plugins.VisualChars',{init:function(ed,url){var t=this;t.editor=ed;ed.addCommand('mceVisualChars',t._toggleVisualChars,t);ed.addButton('visualchars',{title:'visualchars.desc',cmd:'mceVisualChars'});ed.onBeforeGetContent.add(function(ed,o){if(t.state){t.state=true;t._toggleVisualChars();}});},getInfo:function(){return{longname:'Visual characters',author:'Moxiecode Systems AB',authorurl:'http://tinymce.moxiecode.com',infourl:'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/visualchars',version:tinymce.majorVersion+"."+tinymce.minorVersion};},_toggleVisualChars:function(){var t=this,ed=t.editor,nl,i,h,d=ed.getDoc(),b=ed.getBody(),nv,s=ed.selection,bo;t.state=!t.state;ed.controlManager.setActive('visualchars',t.state);if(t.state){nl=[];tinymce.walk(b,function(n){if(n.nodeType==3&&n.nodeValue&&n.nodeValue.indexOf('\u00a0')!=-1)nl.push(n);},'childNodes');for(i=0;i$1');nv=nv.replace(/\u00a0/g,'\u00b7');ed.dom.setOuterHTML(nl[i],nv,d);}}else{nl=tinymce.grep(ed.dom.select('span',b),function(n){return ed.dom.hasClass(n,'mceVisualNbsp');});for(i=0;i$1');j=j.replace(/\u00a0/g,"\u00b7");g.dom.setOuterHTML(a[e],j,k)}}else{a=tinymce.grep(g.dom.select("span",l),function(b){return g.dom.hasClass(b,"mceVisualNbsp")});for(e=0;e0')}}else{tinymce.DOM.add(h,"span",{},'0')}});a.onInit.add(function(e){e.selection.onSetContent.add(function(){c._count(e)});c._count(e)});a.onSetContent.add(function(e){c._count(e)});a.onKeyUp.add(function(f,g){if(g.keyCode==d){return}if(13==g.keyCode||8==d||46==d){c._count(f)}d=g.keyCode})},_count:function(b){var c=this,a=0;if(c.block){return}c.block=1;setTimeout(function(){var d=b.getContent({format:"raw"});if(d){d=d.replace(/<.[^<>]*?>/g," ").replace(/ | /gi," ");d=d.replace(c.cleanre,"");d.replace(c.countre,function(){a++})}tinymce.DOM.setHTML(c.id,a.toString());setTimeout(function(){c.block=0},2000)},1)},getInfo:function(){return{longname:"Word Count plugin",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/wordcount",version:tinymce.majorVersion+"."+tinymce.minorVersion}}});tinymce.PluginManager.add("wordcount",tinymce.plugins.WordCount)})(); \ No newline at end of file diff --git a/source/web/scripts/tiny_mce/plugins/wordcount/editor_plugin_src.js b/source/web/scripts/tiny_mce/plugins/wordcount/editor_plugin_src.js new file mode 100644 index 0000000000..41b78a9ee9 --- /dev/null +++ b/source/web/scripts/tiny_mce/plugins/wordcount/editor_plugin_src.js @@ -0,0 +1,95 @@ +/** + * $Id: editor_plugin_src.js 201 2007-02-12 15:56:56Z spocke $ + * + * @author Moxiecode + * @copyright Copyright © 2004-2008, Moxiecode Systems AB, All rights reserved. + */ + +(function() { + tinymce.create('tinymce.plugins.WordCount', { + block : 0, + id : null, + countre : null, + cleanre : null, + + init : function(ed, url) { + var t = this, last = 0; + + t.countre = ed.getParam('wordcount_countregex', /\S\s+/g); + t.cleanre = ed.getParam('wordcount_cleanregex', /[0-9.(),;:!?%#$¿'"_+=\\/-]*/g); + t.id = ed.id + '-word-count'; + + ed.onPostRender.add(function(ed, cm) { + var row, id; + + // Add it to the specified id or the theme advanced path + id = ed.getParam('wordcount_target_id'); + if (!id) { + row = tinymce.DOM.get(ed.id + '_path_row'); + + if (row) + tinymce.DOM.add(row.parentNode, 'div', {'style': 'float: right'}, ed.getLang('wordcount.words', 'Words: ') + '0'); + } else + tinymce.DOM.add(id, 'span', {}, '0'); + }); + + ed.onInit.add(function(ed) { + ed.selection.onSetContent.add(function() { + t._count(ed); + }); + + t._count(ed); + }); + + ed.onSetContent.add(function(ed) { + t._count(ed); + }); + + ed.onKeyUp.add(function(ed, e) { + if (e.keyCode == last) + return; + + if (13 == e.keyCode || 8 == last || 46 == last) + t._count(ed); + + last = e.keyCode; + }); + }, + + _count : function(ed) { + var t = this, tc = 0; + + // Keep multiple calls from happening at the same time + if (t.block) + return; + + t.block = 1; + + setTimeout(function() { + var tx = ed.getContent({format : 'raw'}); + + if (tx) { + tx = tx.replace(/<.[^<>]*?>/g, ' ').replace(/ | /gi, ' '); // remove html tags and space chars + tx = tx.replace(t.cleanre, ''); // remove numbers and punctuation + tx.replace(t.countre, function() {tc++;}); // count the words + } + + tinymce.DOM.setHTML(t.id, tc.toString()); + + setTimeout(function() {t.block = 0;}, 2000); + }, 1); + }, + + getInfo: function() { + return { + longname : 'Word Count plugin', + author : 'Moxiecode Systems AB', + authorurl : 'http://tinymce.moxiecode.com', + infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/wordcount', + version : tinymce.majorVersion + "." + tinymce.minorVersion + }; + } + }); + + tinymce.PluginManager.add('wordcount', tinymce.plugins.WordCount); +})(); diff --git a/source/web/scripts/tiny_mce/plugins/xhtmlxtras/abbr.htm b/source/web/scripts/tiny_mce/plugins/xhtmlxtras/abbr.htm index 580028432f..3928a17e14 100644 --- a/source/web/scripts/tiny_mce/plugins/xhtmlxtras/abbr.htm +++ b/source/web/scripts/tiny_mce/plugins/xhtmlxtras/abbr.htm @@ -9,7 +9,6 @@ - diff --git a/source/web/scripts/tiny_mce/plugins/xhtmlxtras/acronym.htm b/source/web/scripts/tiny_mce/plugins/xhtmlxtras/acronym.htm index 54e4c9d9ec..4d4ebaac0a 100644 --- a/source/web/scripts/tiny_mce/plugins/xhtmlxtras/acronym.htm +++ b/source/web/scripts/tiny_mce/plugins/xhtmlxtras/acronym.htm @@ -9,7 +9,6 @@ - diff --git a/source/web/scripts/tiny_mce/plugins/xhtmlxtras/attributes.htm b/source/web/scripts/tiny_mce/plugins/xhtmlxtras/attributes.htm index cfbb409ab6..322b468e38 100644 --- a/source/web/scripts/tiny_mce/plugins/xhtmlxtras/attributes.htm +++ b/source/web/scripts/tiny_mce/plugins/xhtmlxtras/attributes.htm @@ -8,7 +8,6 @@ - @@ -36,12 +35,12 @@
::
- +
diff --git a/source/web/scripts/tiny_mce/plugins/xhtmlxtras/editor_plugin.js b/source/web/scripts/tiny_mce/plugins/xhtmlxtras/editor_plugin.js index 00c178e53e..8c7f48e692 100644 --- a/source/web/scripts/tiny_mce/plugins/xhtmlxtras/editor_plugin.js +++ b/source/web/scripts/tiny_mce/plugins/xhtmlxtras/editor_plugin.js @@ -1 +1 @@ -(function(){tinymce.create('tinymce.plugins.XHTMLXtrasPlugin',{init:function(ed,url){ed.addCommand('mceCite',function(){ed.windowManager.open({file:url+'/cite.htm',width:350+parseInt(ed.getLang('xhtmlxtras.cite_delta_width',0)),height:250+parseInt(ed.getLang('xhtmlxtras.cite_delta_height',0)),inline:1},{plugin_url:url});});ed.addCommand('mceAcronym',function(){ed.windowManager.open({file:url+'/acronym.htm',width:350+parseInt(ed.getLang('xhtmlxtras.acronym_delta_width',0)),height:250+parseInt(ed.getLang('xhtmlxtras.acronym_delta_width',0)),inline:1},{plugin_url:url});});ed.addCommand('mceAbbr',function(){ed.windowManager.open({file:url+'/abbr.htm',width:350+parseInt(ed.getLang('xhtmlxtras.abbr_delta_width',0)),height:250+parseInt(ed.getLang('xhtmlxtras.abbr_delta_width',0)),inline:1},{plugin_url:url});});ed.addCommand('mceDel',function(){ed.windowManager.open({file:url+'/del.htm',width:340+parseInt(ed.getLang('xhtmlxtras.del_delta_width',0)),height:310+parseInt(ed.getLang('xhtmlxtras.del_delta_width',0)),inline:1},{plugin_url:url});});ed.addCommand('mceIns',function(){ed.windowManager.open({file:url+'/ins.htm',width:340+parseInt(ed.getLang('xhtmlxtras.ins_delta_width',0)),height:310+parseInt(ed.getLang('xhtmlxtras.ins_delta_width',0)),inline:1},{plugin_url:url});});ed.addCommand('mceAttributes',function(){ed.windowManager.open({file:url+'/attributes.htm',width:380,height:370,inline:1},{plugin_url:url});});ed.addButton('cite',{title:'xhtmlxtras.cite_desc',cmd:'mceCite'});ed.addButton('acronym',{title:'xhtmlxtras.acronym_desc',cmd:'mceAcronym'});ed.addButton('abbr',{title:'xhtmlxtras.abbr_desc',cmd:'mceAbbr'});ed.addButton('del',{title:'xhtmlxtras.del_desc',cmd:'mceDel'});ed.addButton('ins',{title:'xhtmlxtras.ins_desc',cmd:'mceIns'});ed.addButton('attribs',{title:'xhtmlxtras.attribs_desc',cmd:'mceAttributes'});if(tinymce.isIE){function fix(ed,o){if(o.set){o.content=o.content.replace(/]+)>/gi,'');o.content=o.content.replace(/<\/abbr>/gi,'');}};ed.onBeforeSetContent.add(fix);ed.onPostProcess.add(fix);}ed.onNodeChange.add(function(ed,cm,n,co){n=ed.dom.getParent(n,'CITE,ACRONYM,ABBR,DEL,INS');cm.setDisabled('cite',co);cm.setDisabled('acronym',co);cm.setDisabled('abbr',co);cm.setDisabled('del',co);cm.setDisabled('ins',co);cm.setDisabled('attribs',n&&n.nodeName=='BODY');cm.setActive('cite',0);cm.setActive('acronym',0);cm.setActive('abbr',0);cm.setActive('del',0);cm.setActive('ins',0);if(n){do{cm.setDisabled(n.nodeName.toLowerCase(),0);cm.setActive(n.nodeName.toLowerCase(),1);}while(n=n.parentNode);}});},getInfo:function(){return{longname:'XHTML Xtras Plugin',author:'Moxiecode Systems AB',authorurl:'http://tinymce.moxiecode.com',infourl:'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/xhtmlxtras',version:tinymce.majorVersion+"."+tinymce.minorVersion};}});tinymce.PluginManager.add('xhtmlxtras',tinymce.plugins.XHTMLXtrasPlugin);})(); \ No newline at end of file +(function(){tinymce.create("tinymce.plugins.XHTMLXtrasPlugin",{init:function(b,c){b.addCommand("mceCite",function(){b.windowManager.open({file:c+"/cite.htm",width:350+parseInt(b.getLang("xhtmlxtras.cite_delta_width",0)),height:250+parseInt(b.getLang("xhtmlxtras.cite_delta_height",0)),inline:1},{plugin_url:c})});b.addCommand("mceAcronym",function(){b.windowManager.open({file:c+"/acronym.htm",width:350+parseInt(b.getLang("xhtmlxtras.acronym_delta_width",0)),height:250+parseInt(b.getLang("xhtmlxtras.acronym_delta_width",0)),inline:1},{plugin_url:c})});b.addCommand("mceAbbr",function(){b.windowManager.open({file:c+"/abbr.htm",width:350+parseInt(b.getLang("xhtmlxtras.abbr_delta_width",0)),height:250+parseInt(b.getLang("xhtmlxtras.abbr_delta_width",0)),inline:1},{plugin_url:c})});b.addCommand("mceDel",function(){b.windowManager.open({file:c+"/del.htm",width:340+parseInt(b.getLang("xhtmlxtras.del_delta_width",0)),height:310+parseInt(b.getLang("xhtmlxtras.del_delta_width",0)),inline:1},{plugin_url:c})});b.addCommand("mceIns",function(){b.windowManager.open({file:c+"/ins.htm",width:340+parseInt(b.getLang("xhtmlxtras.ins_delta_width",0)),height:310+parseInt(b.getLang("xhtmlxtras.ins_delta_width",0)),inline:1},{plugin_url:c})});b.addCommand("mceAttributes",function(){b.windowManager.open({file:c+"/attributes.htm",width:380,height:370,inline:1},{plugin_url:c})});b.addButton("cite",{title:"xhtmlxtras.cite_desc",cmd:"mceCite"});b.addButton("acronym",{title:"xhtmlxtras.acronym_desc",cmd:"mceAcronym"});b.addButton("abbr",{title:"xhtmlxtras.abbr_desc",cmd:"mceAbbr"});b.addButton("del",{title:"xhtmlxtras.del_desc",cmd:"mceDel"});b.addButton("ins",{title:"xhtmlxtras.ins_desc",cmd:"mceIns"});b.addButton("attribs",{title:"xhtmlxtras.attribs_desc",cmd:"mceAttributes"});if(tinymce.isIE){function a(d,e){if(e.set){e.content=e.content.replace(/]+)>/gi,"");e.content=e.content.replace(/<\/abbr>/gi,"")}}b.onBeforeSetContent.add(a);b.onPostProcess.add(a)}b.onNodeChange.add(function(e,d,g,f){g=e.dom.getParent(g,"CITE,ACRONYM,ABBR,DEL,INS");d.setDisabled("cite",f);d.setDisabled("acronym",f);d.setDisabled("abbr",f);d.setDisabled("del",f);d.setDisabled("ins",f);d.setDisabled("attribs",g&&g.nodeName=="BODY");d.setActive("cite",0);d.setActive("acronym",0);d.setActive("abbr",0);d.setActive("del",0);d.setActive("ins",0);if(g){do{d.setDisabled(g.nodeName.toLowerCase(),0);d.setActive(g.nodeName.toLowerCase(),1)}while(g=g.parentNode)}})},getInfo:function(){return{longname:"XHTML Xtras Plugin",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/xhtmlxtras",version:tinymce.majorVersion+"."+tinymce.minorVersion}}});tinymce.PluginManager.add("xhtmlxtras",tinymce.plugins.XHTMLXtrasPlugin)})(); \ No newline at end of file diff --git a/source/web/scripts/tiny_mce/plugins/xhtmlxtras/ins.htm b/source/web/scripts/tiny_mce/plugins/xhtmlxtras/ins.htm index c0f056ff34..9fa21c4338 100644 --- a/source/web/scripts/tiny_mce/plugins/xhtmlxtras/ins.htm +++ b/source/web/scripts/tiny_mce/plugins/xhtmlxtras/ins.htm @@ -9,7 +9,6 @@ - @@ -31,7 +30,7 @@ - +
diff --git a/source/web/scripts/tiny_mce/plugins/xhtmlxtras/js/element_common.js b/source/web/scripts/tiny_mce/plugins/xhtmlxtras/js/element_common.js index 5cdeb21a46..70f168a6b5 100644 --- a/source/web/scripts/tiny_mce/plugins/xhtmlxtras/js/element_common.js +++ b/source/web/scripts/tiny_mce/plugins/xhtmlxtras/js/element_common.js @@ -224,7 +224,7 @@ function insertInlineElement(en) { var ed = tinyMCEPopup.editor, dom = ed.dom; ed.getDoc().execCommand('FontName', false, 'mceinline'); - tinymce.each(dom.select(tinymce.isWebKit ? 'span' : 'font'), function(n) { + tinymce.each(dom.select('span,font'), function(n) { if (n.style.fontFamily == 'mceinline' || n.face == 'mceinline') dom.replace(dom.create(en, {_mce_new : 1}), n, 1); }); diff --git a/source/web/scripts/tiny_mce/themes/advanced/about.htm b/source/web/scripts/tiny_mce/themes/advanced/about.htm index 4ef2a29c5d..e5df7aa5ac 100644 --- a/source/web/scripts/tiny_mce/themes/advanced/about.htm +++ b/source/web/scripts/tiny_mce/themes/advanced/about.htm @@ -1,4 +1,4 @@ - + {#advanced_dlg.about_title} diff --git a/source/web/scripts/tiny_mce/themes/advanced/anchor.htm b/source/web/scripts/tiny_mce/themes/advanced/anchor.htm index 9e4c0b91ae..42095a1c0c 100644 --- a/source/web/scripts/tiny_mce/themes/advanced/anchor.htm +++ b/source/web/scripts/tiny_mce/themes/advanced/anchor.htm @@ -4,7 +4,6 @@ {#advanced_dlg.anchor_title} - @@ -13,7 +12,7 @@ {#advanced_dlg.anchor_title} - {#advanced_dlg.anchor_name}: + {#advanced_dlg.anchor_name}: diff --git a/source/web/scripts/tiny_mce/themes/advanced/charmap.htm b/source/web/scripts/tiny_mce/themes/advanced/charmap.htm index e4c7344848..f11a38ad8a 100644 --- a/source/web/scripts/tiny_mce/themes/advanced/charmap.htm +++ b/source/web/scripts/tiny_mce/themes/advanced/charmap.htm @@ -1,11 +1,10 @@ - + {#advanced_dlg.charmap_title} - diff --git a/source/web/scripts/tiny_mce/themes/advanced/color_picker.htm b/source/web/scripts/tiny_mce/themes/advanced/color_picker.htm index a8f297c603..cbd6b88dcd 100644 --- a/source/web/scripts/tiny_mce/themes/advanced/color_picker.htm +++ b/source/web/scripts/tiny_mce/themes/advanced/color_picker.htm @@ -5,7 +5,6 @@ - @@ -22,7 +21,7 @@
{#advanced_dlg.colorpicker_picker_title}
- +
diff --git a/source/web/scripts/tiny_mce/themes/advanced/editor_template.js b/source/web/scripts/tiny_mce/themes/advanced/editor_template.js index d72d5425f3..628c793cc7 100644 --- a/source/web/scripts/tiny_mce/themes/advanced/editor_template.js +++ b/source/web/scripts/tiny_mce/themes/advanced/editor_template.js @@ -1 +1 @@ -(function(){var DOM=tinymce.DOM,Event=tinymce.dom.Event,extend=tinymce.extend,each=tinymce.each,Cookie=tinymce.util.Cookie,lastExtID,explode=tinymce.explode;tinymce.ThemeManager.requireLangPack('advanced');tinymce.create('tinymce.themes.AdvancedTheme',{sizes:[8,10,12,14,18,24,36],controls:{bold:['bold_desc','Bold'],italic:['italic_desc','Italic'],underline:['underline_desc','Underline'],strikethrough:['striketrough_desc','Strikethrough'],justifyleft:['justifyleft_desc','JustifyLeft'],justifycenter:['justifycenter_desc','JustifyCenter'],justifyright:['justifyright_desc','JustifyRight'],justifyfull:['justifyfull_desc','JustifyFull'],bullist:['bullist_desc','InsertUnorderedList'],numlist:['numlist_desc','InsertOrderedList'],outdent:['outdent_desc','Outdent'],indent:['indent_desc','Indent'],cut:['cut_desc','Cut'],copy:['copy_desc','Copy'],paste:['paste_desc','Paste'],undo:['undo_desc','Undo'],redo:['redo_desc','Redo'],link:['link_desc','mceLink'],unlink:['unlink_desc','unlink'],image:['image_desc','mceImage'],cleanup:['cleanup_desc','mceCleanup'],help:['help_desc','mceHelp'],code:['code_desc','mceCodeEditor'],hr:['hr_desc','InsertHorizontalRule'],removeformat:['removeformat_desc','RemoveFormat'],sub:['sub_desc','subscript'],sup:['sup_desc','superscript'],forecolor:['forecolor_desc','ForeColor'],forecolorpicker:['forecolor_desc','mceForeColor'],backcolor:['backcolor_desc','HiliteColor'],backcolorpicker:['backcolor_desc','mceBackColor'],charmap:['charmap_desc','mceCharMap'],visualaid:['visualaid_desc','mceToggleVisualAid'],anchor:['anchor_desc','mceInsertAnchor'],newdocument:['newdocument_desc','mceNewDocument'],blockquote:['blockquote_desc','mceBlockQuote']},stateControls:['bold','italic','underline','strikethrough','bullist','numlist','justifyleft','justifycenter','justifyright','justifyfull','sub','sup','blockquote'],init:function(ed,url){var t=this,s,v,o;t.editor=ed;t.url=url;t.onResolveName=new tinymce.util.Dispatcher(this);t.settings=s=extend({theme_advanced_path:true,theme_advanced_toolbar_location:'bottom',theme_advanced_buttons1:"bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,|,styleselect,formatselect",theme_advanced_buttons2:"bullist,numlist,|,outdent,indent,|,undo,redo,|,link,unlink,anchor,image,cleanup,help,code",theme_advanced_buttons3:"hr,removeformat,visualaid,|,sub,sup,|,charmap",theme_advanced_blockformats:"p,address,pre,h1,h2,h3,h4,h5,h6",theme_advanced_toolbar_align:"center",theme_advanced_fonts:"Andale Mono=andale mono,times;Arial=arial,helvetica,sans-serif;Arial Black=arial black,avant garde;Book Antiqua=book antiqua,palatino;Comic Sans MS=comic sans ms,sans-serif;Courier New=courier new,courier;Georgia=georgia,palatino;Helvetica=helvetica;Impact=impact,chicago;Symbol=symbol;Tahoma=tahoma,arial,helvetica,sans-serif;Terminal=terminal,monaco;Times New Roman=times new roman,times;Trebuchet MS=trebuchet ms,geneva;Verdana=verdana,geneva;Webdings=webdings;Wingdings=wingdings,zapf dingbats",theme_advanced_more_colors:1,theme_advanced_row_height:23,theme_advanced_resize_horizontal:1,theme_advanced_resizing_use_cookie:1,theme_advanced_font_sizes:"1,2,3,4,5,6,7",readonly:ed.settings.readonly},ed.settings);if(!s.font_size_style_values)s.font_size_style_values="8pt,10pt,12pt,14pt,18pt,24pt,36pt";if(tinymce.is(s.theme_advanced_font_sizes,'string')){s.font_size_style_values=tinymce.explode(s.font_size_style_values);s.font_size_classes=tinymce.explode(s.font_size_classes||'');o={};ed.settings.theme_advanced_font_sizes=s.theme_advanced_font_sizes;each(ed.getParam('theme_advanced_font_sizes','','hash'),function(v,k){var cl;if(k==v&&v>=1&&v<=7){k=v+' ('+t.sizes[v-1]+'pt)';if(ed.settings.convert_fonts_to_spans){cl=s.font_size_classes[v-1];v=s.font_size_style_values[v-1]||(t.sizes[v-1]+'pt');}}if(/\s*\./.test(v))cl=v.replace(/\./g,'');o[k]=cl?{'class':cl}:{fontSize:v};});s.theme_advanced_font_sizes=o;}if((v=s.theme_advanced_path_location)&&v!='none')s.theme_advanced_statusbar_location=s.theme_advanced_path_location;if(s.theme_advanced_statusbar_location=='none')s.theme_advanced_statusbar_location=0;ed.onInit.add(function(){ed.onNodeChange.add(t._nodeChanged,t);if(ed.settings.content_css!==false)ed.dom.loadCSS(ed.baseURI.toAbsolute("themes/advanced/skins/"+ed.settings.skin+"/content.css"));});ed.onSetProgressState.add(function(ed,b,ti){var co,id=ed.id,tb;if(b){t.progressTimer=setTimeout(function(){co=ed.getContainer();co=co.insertBefore(DOM.create('DIV',{style:'position:relative'}),co.firstChild);tb=DOM.get(ed.id+'_tbl');DOM.add(co,'div',{id:id+'_blocker','class':'mceBlocker',style:{width:tb.clientWidth+2,height:tb.clientHeight+2}});DOM.add(co,'div',{id:id+'_progress','class':'mceProgress',style:{left:tb.clientWidth/ 2, top : tb.clientHeight /2}});},ti||0);}else{DOM.remove(id+'_blocker');DOM.remove(id+'_progress');clearTimeout(t.progressTimer);}});DOM.loadCSS(s.editor_css?ed.documentBaseURI.toAbsolute(s.editor_css):url+"/skins/"+ed.settings.skin+"/ui.css");if(s.skin_variant)DOM.loadCSS(url+"/skins/"+ed.settings.skin+"/ui_"+s.skin_variant+".css");},createControl:function(n,cf){var cd,c;if(c=cf.createControl(n))return c;switch(n){case"styleselect":return this._createStyleSelect();case"formatselect":return this._createBlockFormats();case"fontselect":return this._createFontSelect();case"fontsizeselect":return this._createFontSizeSelect();case"forecolor":return this._createForeColorMenu();case"backcolor":return this._createBackColorMenu();}if((cd=this.controls[n]))return cf.createButton(n,{title:"advanced."+cd[0],cmd:cd[1],ui:cd[2],value:cd[3]});},execCommand:function(cmd,ui,val){var f=this['_'+cmd];if(f){f.call(this,ui,val);return true;}return false;},_importClasses:function(e){var ed=this.editor,c=ed.controlManager.get('styleselect');if(c.getLength()==0){each(ed.dom.getClasses(),function(o){c.add(o['class'],o['class']);});}},_createStyleSelect:function(n){var t=this,ed=t.editor,cf=ed.controlManager,c=cf.createListBox('styleselect',{title:'advanced.style_select',onselect:function(v){if(c.selectedValue===v){ed.execCommand('mceSetStyleInfo',0,{command:'removeformat'});c.select();return false;}else ed.execCommand('mceSetCSSClass',0,v);}});if(c){each(ed.getParam('theme_advanced_styles','','hash'),function(v,k){if(v)c.add(t.editor.translate(k),v);});c.onPostRender.add(function(ed,n){if(!c.NativeListBox){Event.add(n.id+'_text','focus',t._importClasses,t);Event.add(n.id+'_text','mousedown',t._importClasses,t);Event.add(n.id+'_open','focus',t._importClasses,t);Event.add(n.id+'_open','mousedown',t._importClasses,t);}else Event.add(n.id,'focus',t._importClasses,t);});}return c;},_createFontSelect:function(){var c,t=this,ed=t.editor;c=ed.controlManager.createListBox('fontselect',{title:'advanced.fontdefault',cmd:'FontName'});if(c){each(ed.getParam('theme_advanced_fonts',t.settings.theme_advanced_fonts,'hash'),function(v,k){c.add(ed.translate(k),v,{style:v.indexOf('dings')==-1?'font-family:'+v:''});});}return c;},_createFontSizeSelect:function(){var t=this,ed=t.editor,c,i=0,cl=[];c=ed.controlManager.createListBox('fontsizeselect',{title:'advanced.font_size',onselect:function(v){if(v.fontSize)ed.execCommand('FontSize',false,v.fontSize);else{each(t.settings.theme_advanced_font_sizes,function(v,k){if(v['class'])cl.push(v['class']);});ed.editorCommands._applyInlineStyle('span',{'class':v['class']},{check_classes:cl});}}});if(c){each(t.settings.theme_advanced_font_sizes,function(v,k){var fz=v.fontSize;if(fz>=1&&fz<=7)fz=t.sizes[parseInt(fz)-1]+'pt';c.add(k,v,{'style':'font-size:'+fz,'class':'mceFontSize'+(i++)+(' '+(v['class']||''))});});}return c;},_createBlockFormats:function(){var c,fmts={p:'advanced.paragraph',address:'advanced.address',pre:'advanced.pre',h1:'advanced.h1',h2:'advanced.h2',h3:'advanced.h3',h4:'advanced.h4',h5:'advanced.h5',h6:'advanced.h6',div:'advanced.div',blockquote:'advanced.blockquote',code:'advanced.code',dt:'advanced.dt',dd:'advanced.dd',samp:'advanced.samp'},t=this;c=t.editor.controlManager.createListBox('formatselect',{title:'advanced.block',cmd:'FormatBlock'});if(c){each(t.editor.getParam('theme_advanced_blockformats',t.settings.theme_advanced_blockformats,'hash'),function(v,k){c.add(t.editor.translate(k!=v?k:fmts[v]),v,{'class':'mce_formatPreview mce_'+v});});}return c;},_createForeColorMenu:function(){var c,t=this,s=t.settings,o={},v;if(s.theme_advanced_more_colors){o.more_colors_func=function(){t._mceColorPicker(0,{color:c.value,func:function(co){c.setColor(co);}});};}if(v=s.theme_advanced_text_colors)o.colors=v;if(s.theme_advanced_default_foreground_color)o.default_color=s.theme_advanced_default_foreground_color;o.title='advanced.forecolor_desc';o.cmd='ForeColor';o.scope=this;c=t.editor.controlManager.createColorSplitButton('forecolor',o);return c;},_createBackColorMenu:function(){var c,t=this,s=t.settings,o={},v;if(s.theme_advanced_more_colors){o.more_colors_func=function(){t._mceColorPicker(0,{color:c.value,func:function(co){c.setColor(co);}});};}if(v=s.theme_advanced_background_colors)o.colors=v;if(s.theme_advanced_default_background_color)o.default_color=s.theme_advanced_default_background_color;o.title='advanced.backcolor_desc';o.cmd='HiliteColor';o.scope=this;c=t.editor.controlManager.createColorSplitButton('backcolor',o);return c;},renderUI:function(o){var n,ic,tb,t=this,ed=t.editor,s=t.settings,sc,p,nl;n=p=DOM.create('span',{id:ed.id+'_parent','class':'mceEditor '+ed.settings.skin+'Skin'+(s.skin_variant?' '+ed.settings.skin+'Skin'+t._ufirst(s.skin_variant):'')});if(!DOM.boxModel)n=DOM.add(n,'div',{'class':'mceOldBoxModel'});n=sc=DOM.add(n,'table',{id:ed.id+'_tbl','class':'mceLayout',cellSpacing:0,cellPadding:0});n=tb=DOM.add(n,'tbody');switch((s.theme_advanced_layout_manager||'').toLowerCase()){case"rowlayout":ic=t._rowLayout(s,tb,o);break;case"customlayout":ic=ed.execCallback("theme_advanced_custom_layout",s,tb,o,p);break;default:ic=t._simpleLayout(s,tb,o,p);}n=o.targetNode;nl=DOM.stdMode?sc.getElementsByTagName('tr'):sc.rows;DOM.addClass(nl[0],'mceFirst');DOM.addClass(nl[nl.length-1],'mceLast');each(DOM.select('tr',tb),function(n){DOM.addClass(n.firstChild,'mceFirst');DOM.addClass(n.childNodes[n.childNodes.length-1],'mceLast');});if(DOM.get(s.theme_advanced_toolbar_container))DOM.get(s.theme_advanced_toolbar_container).appendChild(p);else DOM.insertAfter(p,n);Event.add(ed.id+'_path_row','click',function(e){e=e.target;if(e.nodeName=='A'){t._sel(e.className.replace(/^.*mcePath_([0-9]+).*$/,'$1'));return Event.cancel(e);}});if(!ed.getParam('accessibility_focus')||ed.getParam('tab_focus'))Event.add(DOM.add(p,'a',{href:'#'},''),'focus',function(){tinyMCE.get(ed.id).focus();});if(s.theme_advanced_toolbar_location=='external')o.deltaHeight=0;t.deltaHeight=o.deltaHeight;o.targetNode=null;return{iframeContainer:ic,editorContainer:ed.id+'_parent',sizeContainer:sc,deltaHeight:o.deltaHeight};},getInfo:function(){return{longname:'Advanced theme',author:'Moxiecode Systems AB',authorurl:'http://tinymce.moxiecode.com',version:tinymce.majorVersion+"."+tinymce.minorVersion}},resizeBy:function(dw,dh){var e=DOM.get(this.editor.id+'_tbl');this.resizeTo(e.clientWidth+dw,e.clientHeight+dh);},resizeTo:function(w,h){var ed=this.editor,s=ed.settings,e=DOM.get(ed.id+'_tbl'),ifr=DOM.get(ed.id+'_ifr'),dh;w=Math.max(s.theme_advanced_resizing_min_width||100,w);h=Math.max(s.theme_advanced_resizing_min_height||100,h);w=Math.min(s.theme_advanced_resizing_max_width||0xFFFF,w);h=Math.min(s.theme_advanced_resizing_max_height||0xFFFF,h);dh=e.clientHeight-ifr.clientHeight;DOM.setStyle(ifr,'height',h-dh);DOM.setStyles(e,{width:w,height:h});},destroy:function(){var id=this.editor.id;Event.clear(id+'_resize');Event.clear(id+'_path_row');Event.clear(id+'_external_close');},_simpleLayout:function(s,tb,o,p){var t=this,ed=t.editor,lo=s.theme_advanced_toolbar_location,sl=s.theme_advanced_statusbar_location,n,ic,etb,c;if(s.readonly){n=DOM.add(tb,'tr');n=ic=DOM.add(n,'td',{'class':'mceIframeContainer'});return ic;}if(lo=='top')t._addToolbars(tb,o);if(lo=='external'){n=c=DOM.create('div',{style:'position:relative'});n=DOM.add(n,'div',{id:ed.id+'_external','class':'mceExternalToolbar'});DOM.add(n,'a',{id:ed.id+'_external_close',href:'javascript:;','class':'mceExternalClose'});n=DOM.add(n,'table',{id:ed.id+'_tblext',cellSpacing:0,cellPadding:0});etb=DOM.add(n,'tbody');if(p.firstChild.className=='mceOldBoxModel')p.firstChild.appendChild(c);else p.insertBefore(c,p.firstChild);t._addToolbars(etb,o);ed.onMouseUp.add(function(){var e=DOM.get(ed.id+'_external');DOM.show(e);DOM.hide(lastExtID);var f=Event.add(ed.id+'_external_close','click',function(){DOM.hide(ed.id+'_external');Event.remove(ed.id+'_external_close','click',f);});DOM.show(e);DOM.setStyle(e,'top',0-DOM.getRect(ed.id+'_tblext').h-1);DOM.hide(e);DOM.show(e);e.style.filter='';lastExtID=ed.id+'_external';e=null;});}if(sl=='top')t._addStatusBar(tb,o);if(!s.theme_advanced_toolbar_container){n=DOM.add(tb,'tr');n=ic=DOM.add(n,'td',{'class':'mceIframeContainer'});}if(lo=='bottom')t._addToolbars(tb,o);if(sl=='bottom')t._addStatusBar(tb,o);return ic;},_rowLayout:function(s,tb,o){var t=this,ed=t.editor,dc,da,cf=ed.controlManager,n,ic,to,a;dc=s.theme_advanced_containers_default_class||'';da=s.theme_advanced_containers_default_align||'center';each(explode(s.theme_advanced_containers||''),function(c,i){var v=s['theme_advanced_container_'+c]||'';switch(v.toLowerCase()){case'mceeditor':n=DOM.add(tb,'tr');n=ic=DOM.add(n,'td',{'class':'mceIframeContainer'});break;case'mceelementpath':t._addStatusBar(tb,o);break;default:a=(s['theme_advanced_container_'+c+'_align']||da).toLowerCase();a='mce'+t._ufirst(a);n=DOM.add(DOM.add(tb,'tr'),'td',{'class':'mceToolbar '+(s['theme_advanced_container_'+c+'_class']||dc)+' '+a||da});to=cf.createToolbar("toolbar"+i);t._addControls(v,to);DOM.setHTML(n,to.renderHTML());o.deltaHeight-=s.theme_advanced_row_height;}});return ic;},_addControls:function(v,tb){var t=this,s=t.settings,di,cf=t.editor.controlManager;if(s.theme_advanced_disable&&!t._disabled){di={};each(explode(s.theme_advanced_disable),function(v){di[v]=1;});t._disabled=di;}else di=t._disabled;each(explode(v),function(n){var c;if(di&&di[n])return;if(n=='tablecontrols'){each(["table","|","row_props","cell_props","|","row_before","row_after","delete_row","|","col_before","col_after","delete_col","|","split_cells","merge_cells"],function(n){n=t.createControl(n,cf);if(n)tb.add(n);});return;}c=t.createControl(n,cf);if(c)tb.add(c);});},_addToolbars:function(c,o){var t=this,i,tb,ed=t.editor,s=t.settings,v,cf=ed.controlManager,di,n,h=[],a;a=s.theme_advanced_toolbar_align.toLowerCase();a='mce'+t._ufirst(a);n=DOM.add(DOM.add(c,'tr'),'td',{'class':'mceToolbar '+a});if(!ed.getParam('accessibility_focus')||ed.getParam('tab_focus'))h.push(DOM.createHTML('a',{href:'#',onfocus:'tinyMCE.get(\''+ed.id+'\').focus();'},''));h.push(DOM.createHTML('a',{href:'#',accesskey:'q',title:ed.getLang("advanced.toolbar_focus")},''));for(i=1;(v=s['theme_advanced_buttons'+i]);i++){tb=cf.createToolbar("toolbar"+i,{'class':'mceToolbarRow'+i});if(s['theme_advanced_buttons'+i+'_add'])v+=','+s['theme_advanced_buttons'+i+'_add'];if(s['theme_advanced_buttons'+i+'_add_before'])v=s['theme_advanced_buttons'+i+'_add_before']+','+v;t._addControls(v,tb);h.push(tb.renderHTML());o.deltaHeight-=s.theme_advanced_row_height;}h.push(DOM.createHTML('a',{href:'#',accesskey:'z',title:ed.getLang("advanced.toolbar_focus"),onfocus:'tinyMCE.getInstanceById(\''+ed.id+'\').focus();'},''));DOM.setHTML(n,h.join(''));},_addStatusBar:function(tb,o){var n,t=this,ed=t.editor,s=t.settings,r,mf,me,td;n=DOM.add(tb,'tr');n=td=DOM.add(n,'td',{'class':'mceStatusbar'});n=DOM.add(n,'div',{id:ed.id+'_path_row'},s.theme_advanced_path?ed.translate('advanced.path')+': ':' ');DOM.add(n,'a',{href:'#',accesskey:'x'});if(s.theme_advanced_resizing&&!tinymce.isOldWebKit){DOM.add(td,'a',{id:ed.id+'_resize',href:'javascript:;',onclick:"return false;",'class':'mceResize'});if(s.theme_advanced_resizing_use_cookie){ed.onPostRender.add(function(){var o=Cookie.getHash("TinyMCE_"+ed.id+"_size"),c=DOM.get(ed.id+'_tbl');if(!o)return;if(s.theme_advanced_resize_horizontal)c.style.width=Math.max(10,o.cw)+'px';c.style.height=Math.max(10,o.ch)+'px';DOM.get(ed.id+'_ifr').style.height=Math.max(10,parseInt(o.ch)+t.deltaHeight)+'px';});}ed.onPostRender.add(function(){Event.add(ed.id+'_resize','mousedown',function(e){var c,p,w,h,n,pa;c=DOM.get(ed.id+'_tbl');w=c.clientWidth;h=c.clientHeight;miw=s.theme_advanced_resizing_min_width||100;mih=s.theme_advanced_resizing_min_height||100;maw=s.theme_advanced_resizing_max_width||0xFFFF;mah=s.theme_advanced_resizing_max_height||0xFFFF;p=DOM.add(DOM.get(ed.id+'_parent'),'div',{'class':'mcePlaceHolder'});DOM.setStyles(p,{width:w,height:h});DOM.hide(c);DOM.show(p);r={x:e.screenX,y:e.screenY,w:w,h:h,dx:null,dy:null};mf=Event.add(DOM.doc,'mousemove',function(e){var w,h;r.dx=e.screenX-r.x;r.dy=e.screenY-r.y;w=Math.max(miw,r.w+r.dx);h=Math.max(mih,r.h+r.dy);w=Math.min(maw,w);h=Math.min(mah,h);if(s.theme_advanced_resize_horizontal)p.style.width=w+'px';p.style.height=h+'px';return Event.cancel(e);});me=Event.add(DOM.doc,'mouseup',function(e){var ifr;Event.remove(DOM.doc,'mousemove',mf);Event.remove(DOM.doc,'mouseup',me);c.style.display='';DOM.remove(p);if(r.dx===null)return;ifr=DOM.get(ed.id+'_ifr');if(s.theme_advanced_resize_horizontal)c.style.width=Math.max(10,r.w+r.dx)+'px';c.style.height=Math.max(10,r.h+r.dy)+'px';ifr.style.height=Math.max(10,ifr.clientHeight+r.dy)+'px';if(s.theme_advanced_resizing_use_cookie){Cookie.setHash("TinyMCE_"+ed.id+"_size",{cw:r.w+r.dx,ch:r.h+r.dy});}});return Event.cancel(e);});});}o.deltaHeight-=21;n=tb=null;},_nodeChanged:function(ed,cm,n,co){var t=this,p,de=0,v,c,s=t.settings,cl,fz,fn;if(s.readonly)return;tinymce.each(t.stateControls,function(c){cm.setActive(c,ed.queryCommandState(t.controls[c][1]));});cm.setActive('visualaid',ed.hasVisual);cm.setDisabled('undo',!ed.undoManager.hasUndo()&&!ed.typing);cm.setDisabled('redo',!ed.undoManager.hasRedo());cm.setDisabled('outdent',!ed.queryCommandState('Outdent'));p=DOM.getParent(n,'A');if(c=cm.get('link')){if(!p||!p.name){c.setDisabled(!p&&co);c.setActive(!!p);}}if(c=cm.get('unlink')){c.setDisabled(!p&&co);c.setActive(!!p&&!p.name);}if(c=cm.get('anchor')){c.setActive(!!p&&p.name);if(tinymce.isWebKit){p=DOM.getParent(n,'IMG');c.setActive(!!p&&DOM.getAttrib(p,'mce_name')=='a');}}p=DOM.getParent(n,'IMG');if(c=cm.get('image'))c.setActive(!!p&&n.className.indexOf('mceItem')==-1);if(c=cm.get('styleselect')){if(n.className){t._importClasses();c.select(n.className);}else c.select();}if(c=cm.get('formatselect')){p=DOM.getParent(n,DOM.isBlock);if(p)c.select(p.nodeName.toLowerCase());}if(ed.settings.convert_fonts_to_spans){ed.dom.getParent(n,function(n){if(n.nodeName==='SPAN'){if(!cl&&n.className)cl=n.className;if(!fz&&n.style.fontSize)fz=n.style.fontSize;if(!fn&&n.style.fontFamily)fn=n.style.fontFamily.replace(/[\"\']+/g,'').replace(/^([^,]+).*/,'$1').toLowerCase();}return false;});if(c=cm.get('fontselect')){c.select(function(v){return v.replace(/^([^,]+).*/,'$1').toLowerCase()==fn;});}if(c=cm.get('fontsizeselect')){c.select(function(v){if(v.fontSize&&v.fontSize===fz)return true;if(v['class']&&v['class']===cl)return true;});}}else{if(c=cm.get('fontselect'))c.select(ed.queryCommandValue('FontName'));if(c=cm.get('fontsizeselect')){v=ed.queryCommandValue('FontSize');c.select(function(iv){return iv.fontSize==v;});}}if(s.theme_advanced_path&&s.theme_advanced_statusbar_location){p=DOM.get(ed.id+'_path')||DOM.add(ed.id+'_path_row','span',{id:ed.id+'_path'});DOM.setHTML(p,'');ed.dom.getParent(n,function(n){var na=n.nodeName.toLowerCase(),u,pi,ti='';if(n.nodeType!=1||n.nodeName==='BR'||(DOM.hasClass(n,'mceItemHidden')||DOM.hasClass(n,'mceItemRemoved')))return;if(v=DOM.getAttrib(n,'mce_name'))na=v;if(tinymce.isIE&&n.scopeName!=='HTML')na=n.scopeName+':'+na;na=na.replace(/mce\:/g,'');switch(na){case'b':na='strong';break;case'i':na='em';break;case'img':if(v=DOM.getAttrib(n,'src'))ti+='src: '+v+' ';break;case'a':if(v=DOM.getAttrib(n,'name')){ti+='name: '+v+' ';na+='#'+v;}if(v=DOM.getAttrib(n,'href'))ti+='href: '+v+' ';break;case'font':if(s.convert_fonts_to_spans)na='span';if(v=DOM.getAttrib(n,'face'))ti+='font: '+v+' ';if(v=DOM.getAttrib(n,'size'))ti+='size: '+v+' ';if(v=DOM.getAttrib(n,'color'))ti+='color: '+v+' ';break;case'span':if(v=DOM.getAttrib(n,'style'))ti+='style: '+v+' ';break;}if(v=DOM.getAttrib(n,'id'))ti+='id: '+v+' ';if(v=n.className){v=v.replace(/(webkit-[\w\-]+|Apple-[\w\-]+|mceItem\w+|mceVisualAid)/g,'');if(v&&v.indexOf('mceItem')==-1){ti+='class: '+v+' ';if(DOM.isBlock(n)||na=='img'||na=='span')na+='.'+v;}}na=na.replace(/(html:)/g,'');na={name:na,node:n,title:ti};t.onResolveName.dispatch(t,na);ti=na.title;na=na.name;pi=DOM.create('a',{'href':"javascript:;",onmousedown:"return false;",title:ti,'class':'mcePath_'+(de++)},na);if(p.hasChildNodes()){p.insertBefore(DOM.doc.createTextNode(' \u00bb '),p.firstChild);p.insertBefore(pi,p.firstChild);}else p.appendChild(pi);},ed.getBody());}},_sel:function(v){this.editor.execCommand('mceSelectNodeDepth',false,v);},_mceInsertAnchor:function(ui,v){var ed=this.editor;ed.windowManager.open({url:tinymce.baseURL+'/themes/advanced/anchor.htm',width:320+parseInt(ed.getLang('advanced.anchor_delta_width',0)),height:90+parseInt(ed.getLang('advanced.anchor_delta_height',0)),inline:true},{theme_url:this.url});},_mceCharMap:function(){var ed=this.editor;ed.windowManager.open({url:tinymce.baseURL+'/themes/advanced/charmap.htm',width:550+parseInt(ed.getLang('advanced.charmap_delta_width',0)),height:250+parseInt(ed.getLang('advanced.charmap_delta_height',0)),inline:true},{theme_url:this.url});},_mceHelp:function(){var ed=this.editor;ed.windowManager.open({url:tinymce.baseURL+'/themes/advanced/about.htm',width:480,height:380,inline:true},{theme_url:this.url});},_mceColorPicker:function(u,v){var ed=this.editor;v=v||{};ed.windowManager.open({url:tinymce.baseURL+'/themes/advanced/color_picker.htm',width:375+parseInt(ed.getLang('advanced.colorpicker_delta_width',0)),height:250+parseInt(ed.getLang('advanced.colorpicker_delta_height',0)),close_previous:false,inline:true},{input_color:v.color,func:v.func,theme_url:this.url});},_mceCodeEditor:function(ui,val){var ed=this.editor;ed.windowManager.open({url:tinymce.baseURL+'/themes/advanced/source_editor.htm',width:parseInt(ed.getParam("theme_advanced_source_editor_width",720)),height:parseInt(ed.getParam("theme_advanced_source_editor_height",580)),inline:true,resizable:true,maximizable:true},{theme_url:this.url});},_mceImage:function(ui,val){var ed=this.editor;if(ed.dom.getAttrib(ed.selection.getNode(),'class').indexOf('mceItem')!=-1)return;ed.windowManager.open({url:tinymce.baseURL+'/themes/advanced/image.htm',width:355+parseInt(ed.getLang('advanced.image_delta_width',0)),height:275+parseInt(ed.getLang('advanced.image_delta_height',0)),inline:true},{theme_url:this.url});},_mceLink:function(ui,val){var ed=this.editor;ed.windowManager.open({url:tinymce.baseURL+'/themes/advanced/link.htm',width:310+parseInt(ed.getLang('advanced.link_delta_width',0)),height:200+parseInt(ed.getLang('advanced.link_delta_height',0)),inline:true},{theme_url:this.url});},_mceNewDocument:function(){var ed=this.editor;ed.windowManager.confirm('advanced.newdocument',function(s){if(s)ed.execCommand('mceSetContent',false,'');});},_mceForeColor:function(){var t=this;this._mceColorPicker(0,{color:t.fgColor,func:function(co){t.fgColor=co;t.editor.execCommand('ForeColor',false,co);}});},_mceBackColor:function(){var t=this;this._mceColorPicker(0,{color:t.bgColor,func:function(co){t.bgColor=co;t.editor.execCommand('HiliteColor',false,co);}});},_ufirst:function(s){return s.substring(0,1).toUpperCase()+s.substring(1);}});tinymce.ThemeManager.add('advanced',tinymce.themes.AdvancedTheme);}()); \ No newline at end of file +(function(e){var d=e.DOM,b=e.dom.Event,h=e.extend,f=e.each,a=e.util.Cookie,g,c=e.explode;e.ThemeManager.requireLangPack("advanced");e.create("tinymce.themes.AdvancedTheme",{sizes:[8,10,12,14,18,24,36],controls:{bold:["bold_desc","Bold"],italic:["italic_desc","Italic"],underline:["underline_desc","Underline"],strikethrough:["striketrough_desc","Strikethrough"],justifyleft:["justifyleft_desc","JustifyLeft"],justifycenter:["justifycenter_desc","JustifyCenter"],justifyright:["justifyright_desc","JustifyRight"],justifyfull:["justifyfull_desc","JustifyFull"],bullist:["bullist_desc","InsertUnorderedList"],numlist:["numlist_desc","InsertOrderedList"],outdent:["outdent_desc","Outdent"],indent:["indent_desc","Indent"],cut:["cut_desc","Cut"],copy:["copy_desc","Copy"],paste:["paste_desc","Paste"],undo:["undo_desc","Undo"],redo:["redo_desc","Redo"],link:["link_desc","mceLink"],unlink:["unlink_desc","unlink"],image:["image_desc","mceImage"],cleanup:["cleanup_desc","mceCleanup"],help:["help_desc","mceHelp"],code:["code_desc","mceCodeEditor"],hr:["hr_desc","InsertHorizontalRule"],removeformat:["removeformat_desc","RemoveFormat"],sub:["sub_desc","subscript"],sup:["sup_desc","superscript"],forecolor:["forecolor_desc","ForeColor"],forecolorpicker:["forecolor_desc","mceForeColor"],backcolor:["backcolor_desc","HiliteColor"],backcolorpicker:["backcolor_desc","mceBackColor"],charmap:["charmap_desc","mceCharMap"],visualaid:["visualaid_desc","mceToggleVisualAid"],anchor:["anchor_desc","mceInsertAnchor"],newdocument:["newdocument_desc","mceNewDocument"],blockquote:["blockquote_desc","mceBlockQuote"]},stateControls:["bold","italic","underline","strikethrough","bullist","numlist","justifyleft","justifycenter","justifyright","justifyfull","sub","sup","blockquote"],init:function(j,k){var l=this,m,i,n;l.editor=j;l.url=k;l.onResolveName=new e.util.Dispatcher(this);l.settings=m=h({theme_advanced_path:true,theme_advanced_toolbar_location:"bottom",theme_advanced_buttons1:"bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,|,styleselect,formatselect",theme_advanced_buttons2:"bullist,numlist,|,outdent,indent,|,undo,redo,|,link,unlink,anchor,image,cleanup,help,code",theme_advanced_buttons3:"hr,removeformat,visualaid,|,sub,sup,|,charmap",theme_advanced_blockformats:"p,address,pre,h1,h2,h3,h4,h5,h6",theme_advanced_toolbar_align:"center",theme_advanced_fonts:"Andale Mono=andale mono,times;Arial=arial,helvetica,sans-serif;Arial Black=arial black,avant garde;Book Antiqua=book antiqua,palatino;Comic Sans MS=comic sans ms,sans-serif;Courier New=courier new,courier;Georgia=georgia,palatino;Helvetica=helvetica;Impact=impact,chicago;Symbol=symbol;Tahoma=tahoma,arial,helvetica,sans-serif;Terminal=terminal,monaco;Times New Roman=times new roman,times;Trebuchet MS=trebuchet ms,geneva;Verdana=verdana,geneva;Webdings=webdings;Wingdings=wingdings,zapf dingbats",theme_advanced_more_colors:1,theme_advanced_row_height:23,theme_advanced_resize_horizontal:1,theme_advanced_resizing_use_cookie:1,theme_advanced_font_sizes:"1,2,3,4,5,6,7",readonly:j.settings.readonly},j.settings);if(!m.font_size_style_values){m.font_size_style_values="8pt,10pt,12pt,14pt,18pt,24pt,36pt"}if(e.is(m.theme_advanced_font_sizes,"string")){m.font_size_style_values=e.explode(m.font_size_style_values);m.font_size_classes=e.explode(m.font_size_classes||"");n={};j.settings.theme_advanced_font_sizes=m.theme_advanced_font_sizes;f(j.getParam("theme_advanced_font_sizes","","hash"),function(q,p){var o;if(p==q&&q>=1&&q<=7){p=q+" ("+l.sizes[q-1]+"pt)";if(j.settings.convert_fonts_to_spans){o=m.font_size_classes[q-1];q=m.font_size_style_values[q-1]||(l.sizes[q-1]+"pt")}}if(/^\s*\./.test(q)){o=q.replace(/\./g,"")}n[p]=o?{"class":o}:{fontSize:q}});m.theme_advanced_font_sizes=n}if((i=m.theme_advanced_path_location)&&i!="none"){m.theme_advanced_statusbar_location=m.theme_advanced_path_location}if(m.theme_advanced_statusbar_location=="none"){m.theme_advanced_statusbar_location=0}j.onInit.add(function(){j.onNodeChange.add(l._nodeChanged,l);if(j.settings.content_css!==false){j.dom.loadCSS(j.baseURI.toAbsolute("themes/advanced/skins/"+j.settings.skin+"/content.css"))}});j.onSetProgressState.add(function(q,o,r){var s,t=q.id,p;if(o){l.progressTimer=setTimeout(function(){s=q.getContainer();s=s.insertBefore(d.create("DIV",{style:"position:relative"}),s.firstChild);p=d.get(q.id+"_tbl");d.add(s,"div",{id:t+"_blocker","class":"mceBlocker",style:{width:p.clientWidth+2,height:p.clientHeight+2}});d.add(s,"div",{id:t+"_progress","class":"mceProgress",style:{left:p.clientWidth/2,top:p.clientHeight/2}})},r||0)}else{d.remove(t+"_blocker");d.remove(t+"_progress");clearTimeout(l.progressTimer)}});d.loadCSS(m.editor_css?j.documentBaseURI.toAbsolute(m.editor_css):k+"/skins/"+j.settings.skin+"/ui.css");if(m.skin_variant){d.loadCSS(k+"/skins/"+j.settings.skin+"/ui_"+m.skin_variant+".css")}},createControl:function(l,i){var j,k;if(k=i.createControl(l)){return k}switch(l){case"styleselect":return this._createStyleSelect();case"formatselect":return this._createBlockFormats();case"fontselect":return this._createFontSelect();case"fontsizeselect":return this._createFontSizeSelect();case"forecolor":return this._createForeColorMenu();case"backcolor":return this._createBackColorMenu()}if((j=this.controls[l])){return i.createButton(l,{title:"advanced."+j[0],cmd:j[1],ui:j[2],value:j[3]})}},execCommand:function(k,j,l){var i=this["_"+k];if(i){i.call(this,j,l);return true}return false},_importClasses:function(j){var i=this.editor,k=i.controlManager.get("styleselect");if(k.getLength()==0){f(i.dom.getClasses(),function(l){k.add(l["class"],l["class"])})}},_createStyleSelect:function(m){var j=this,i=j.editor,k=i.controlManager,l=k.createListBox("styleselect",{title:"advanced.style_select",onselect:function(n){if(l.selectedValue===n){i.execCommand("mceSetStyleInfo",0,{command:"removeformat"});l.select();return false}else{i.execCommand("mceSetCSSClass",0,n)}}});if(l){f(i.getParam("theme_advanced_styles","","hash"),function(o,n){if(o){l.add(j.editor.translate(n),o)}});l.onPostRender.add(function(o,p){if(!l.NativeListBox){b.add(p.id+"_text","focus",j._importClasses,j);b.add(p.id+"_text","mousedown",j._importClasses,j);b.add(p.id+"_open","focus",j._importClasses,j);b.add(p.id+"_open","mousedown",j._importClasses,j)}else{b.add(p.id,"focus",j._importClasses,j)}})}return l},_createFontSelect:function(){var k,j=this,i=j.editor;k=i.controlManager.createListBox("fontselect",{title:"advanced.fontdefault",cmd:"FontName"});if(k){f(i.getParam("theme_advanced_fonts",j.settings.theme_advanced_fonts,"hash"),function(m,l){k.add(i.translate(l),m,{style:m.indexOf("dings")==-1?"font-family:"+m:""})})}return k},_createFontSizeSelect:function(){var m=this,k=m.editor,n,l=0,j=[];n=k.controlManager.createListBox("fontsizeselect",{title:"advanced.font_size",onselect:function(i){if(i.fontSize){k.execCommand("FontSize",false,i.fontSize)}else{f(m.settings.theme_advanced_font_sizes,function(p,o){if(p["class"]){j.push(p["class"])}});k.editorCommands._applyInlineStyle("span",{"class":i["class"]},{check_classes:j})}}});if(n){f(m.settings.theme_advanced_font_sizes,function(o,i){var p=o.fontSize;if(p>=1&&p<=7){p=m.sizes[parseInt(p)-1]+"pt"}n.add(i,o,{style:"font-size:"+p,"class":"mceFontSize"+(l++)+(" "+(o["class"]||""))})})}return n},_createBlockFormats:function(){var k,i={p:"advanced.paragraph",address:"advanced.address",pre:"advanced.pre",h1:"advanced.h1",h2:"advanced.h2",h3:"advanced.h3",h4:"advanced.h4",h5:"advanced.h5",h6:"advanced.h6",div:"advanced.div",blockquote:"advanced.blockquote",code:"advanced.code",dt:"advanced.dt",dd:"advanced.dd",samp:"advanced.samp"},j=this;k=j.editor.controlManager.createListBox("formatselect",{title:"advanced.block",cmd:"FormatBlock"});if(k){f(j.editor.getParam("theme_advanced_blockformats",j.settings.theme_advanced_blockformats,"hash"),function(m,l){k.add(j.editor.translate(l!=m?l:i[m]),m,{"class":"mce_formatPreview mce_"+m})})}return k},_createForeColorMenu:function(){var m,j=this,k=j.settings,l={},i;if(k.theme_advanced_more_colors){l.more_colors_func=function(){j._mceColorPicker(0,{color:m.value,func:function(n){m.setColor(n)}})}}if(i=k.theme_advanced_text_colors){l.colors=i}if(k.theme_advanced_default_foreground_color){l.default_color=k.theme_advanced_default_foreground_color}l.title="advanced.forecolor_desc";l.cmd="ForeColor";l.scope=this;m=j.editor.controlManager.createColorSplitButton("forecolor",l);return m},_createBackColorMenu:function(){var m,j=this,k=j.settings,l={},i;if(k.theme_advanced_more_colors){l.more_colors_func=function(){j._mceColorPicker(0,{color:m.value,func:function(n){m.setColor(n)}})}}if(i=k.theme_advanced_background_colors){l.colors=i}if(k.theme_advanced_default_background_color){l.default_color=k.theme_advanced_default_background_color}l.title="advanced.backcolor_desc";l.cmd="HiliteColor";l.scope=this;m=j.editor.controlManager.createColorSplitButton("backcolor",l);return m},renderUI:function(k){var m,l,q,v=this,r=v.editor,w=v.settings,u,j,i;m=j=d.create("span",{id:r.id+"_parent","class":"mceEditor "+r.settings.skin+"Skin"+(w.skin_variant?" "+r.settings.skin+"Skin"+v._ufirst(w.skin_variant):"")});if(!d.boxModel){m=d.add(m,"div",{"class":"mceOldBoxModel"})}m=u=d.add(m,"table",{id:r.id+"_tbl","class":"mceLayout",cellSpacing:0,cellPadding:0});m=q=d.add(m,"tbody");switch((w.theme_advanced_layout_manager||"").toLowerCase()){case"rowlayout":l=v._rowLayout(w,q,k);break;case"customlayout":l=r.execCallback("theme_advanced_custom_layout",w,q,k,j);break;default:l=v._simpleLayout(w,q,k,j)}m=k.targetNode;i=d.stdMode?u.getElementsByTagName("tr"):u.rows;d.addClass(i[0],"mceFirst");d.addClass(i[i.length-1],"mceLast");f(d.select("tr",q),function(o){d.addClass(o.firstChild,"mceFirst");d.addClass(o.childNodes[o.childNodes.length-1],"mceLast")});if(d.get(w.theme_advanced_toolbar_container)){d.get(w.theme_advanced_toolbar_container).appendChild(j)}else{d.insertAfter(j,m)}b.add(r.id+"_path_row","click",function(n){n=n.target;if(n.nodeName=="A"){v._sel(n.className.replace(/^.*mcePath_([0-9]+).*$/,"$1"));return b.cancel(n)}});if(!r.getParam("accessibility_focus")){b.add(d.add(j,"a",{href:"#"},""),"focus",function(){tinyMCE.get(r.id).focus()})}if(w.theme_advanced_toolbar_location=="external"){k.deltaHeight=0}v.deltaHeight=k.deltaHeight;k.targetNode=null;return{iframeContainer:l,editorContainer:r.id+"_parent",sizeContainer:u,deltaHeight:k.deltaHeight}},getInfo:function(){return{longname:"Advanced theme",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",version:e.majorVersion+"."+e.minorVersion}},resizeBy:function(i,j){var k=d.get(this.editor.id+"_tbl");this.resizeTo(k.clientWidth+i,k.clientHeight+j)},resizeTo:function(i,l){var j=this.editor,k=j.settings,n=d.get(j.id+"_tbl"),o=d.get(j.id+"_ifr"),m;i=Math.max(k.theme_advanced_resizing_min_width||100,i);l=Math.max(k.theme_advanced_resizing_min_height||100,l);i=Math.min(k.theme_advanced_resizing_max_width||65535,i);l=Math.min(k.theme_advanced_resizing_max_height||65535,l);m=n.clientHeight-o.clientHeight;d.setStyle(o,"height",l-m);d.setStyles(n,{width:i,height:l})},destroy:function(){var i=this.editor.id;b.clear(i+"_resize");b.clear(i+"_path_row");b.clear(i+"_external_close")},_simpleLayout:function(y,r,k,i){var x=this,u=x.editor,v=y.theme_advanced_toolbar_location,m=y.theme_advanced_statusbar_location,l,j,q,w;if(y.readonly){l=d.add(r,"tr");l=j=d.add(l,"td",{"class":"mceIframeContainer"});return j}if(v=="top"){x._addToolbars(r,k)}if(v=="external"){l=w=d.create("div",{style:"position:relative"});l=d.add(l,"div",{id:u.id+"_external","class":"mceExternalToolbar"});d.add(l,"a",{id:u.id+"_external_close",href:"javascript:;","class":"mceExternalClose"});l=d.add(l,"table",{id:u.id+"_tblext",cellSpacing:0,cellPadding:0});q=d.add(l,"tbody");if(i.firstChild.className=="mceOldBoxModel"){i.firstChild.appendChild(w)}else{i.insertBefore(w,i.firstChild)}x._addToolbars(q,k);u.onMouseUp.add(function(){var o=d.get(u.id+"_external");d.show(o);d.hide(g);var n=b.add(u.id+"_external_close","click",function(){d.hide(u.id+"_external");b.remove(u.id+"_external_close","click",n)});d.show(o);d.setStyle(o,"top",0-d.getRect(u.id+"_tblext").h-1);d.hide(o);d.show(o);o.style.filter="";g=u.id+"_external";o=null})}if(m=="top"){x._addStatusBar(r,k)}if(!y.theme_advanced_toolbar_container){l=d.add(r,"tr");l=j=d.add(l,"td",{"class":"mceIframeContainer"})}if(v=="bottom"){x._addToolbars(r,k)}if(m=="bottom"){x._addStatusBar(r,k)}return j},_rowLayout:function(w,m,k){var v=this,p=v.editor,u,x,i=p.controlManager,l,j,r,q;u=w.theme_advanced_containers_default_class||"";x=w.theme_advanced_containers_default_align||"center";f(c(w.theme_advanced_containers||""),function(s,o){var n=w["theme_advanced_container_"+s]||"";switch(n.toLowerCase()){case"mceeditor":l=d.add(m,"tr");l=j=d.add(l,"td",{"class":"mceIframeContainer"});break;case"mceelementpath":v._addStatusBar(m,k);break;default:q=(w["theme_advanced_container_"+s+"_align"]||x).toLowerCase();q="mce"+v._ufirst(q);l=d.add(d.add(m,"tr"),"td",{"class":"mceToolbar "+(w["theme_advanced_container_"+s+"_class"]||u)+" "+q||x});r=i.createToolbar("toolbar"+o);v._addControls(n,r);d.setHTML(l,r.renderHTML());k.deltaHeight-=w.theme_advanced_row_height}});return j},_addControls:function(j,i){var k=this,l=k.settings,m,n=k.editor.controlManager;if(l.theme_advanced_disable&&!k._disabled){m={};f(c(l.theme_advanced_disable),function(o){m[o]=1});k._disabled=m}else{m=k._disabled}f(c(j),function(p){var o;if(m&&m[p]){return}if(p=="tablecontrols"){f(["table","|","row_props","cell_props","|","row_before","row_after","delete_row","|","col_before","col_after","delete_col","|","split_cells","merge_cells"],function(q){q=k.createControl(q,n);if(q){i.add(q)}});return}o=k.createControl(p,n);if(o){i.add(o)}})},_addToolbars:function(w,k){var z=this,p,m,r=z.editor,A=z.settings,y,j=r.controlManager,u,l,q=[],x;x=A.theme_advanced_toolbar_align.toLowerCase();x="mce"+z._ufirst(x);l=d.add(d.add(w,"tr"),"td",{"class":"mceToolbar "+x});if(!r.getParam("accessibility_focus")){q.push(d.createHTML("a",{href:"#",onfocus:"tinyMCE.get('"+r.id+"').focus();"},""))}q.push(d.createHTML("a",{href:"#",accesskey:"q",title:r.getLang("advanced.toolbar_focus")},""));for(p=1;(y=A["theme_advanced_buttons"+p]);p++){m=j.createToolbar("toolbar"+p,{"class":"mceToolbarRow"+p});if(A["theme_advanced_buttons"+p+"_add"]){y+=","+A["theme_advanced_buttons"+p+"_add"]}if(A["theme_advanced_buttons"+p+"_add_before"]){y=A["theme_advanced_buttons"+p+"_add_before"]+","+y}z._addControls(y,m);q.push(m.renderHTML());k.deltaHeight-=A.theme_advanced_row_height}q.push(d.createHTML("a",{href:"#",accesskey:"z",title:r.getLang("advanced.toolbar_focus"),onfocus:"tinyMCE.getInstanceById('"+r.id+"').focus();"},""));d.setHTML(l,q.join(""))},_addStatusBar:function(m,j){var k,v=this,p=v.editor,w=v.settings,i,q,u,l;k=d.add(m,"tr");k=l=d.add(k,"td",{"class":"mceStatusbar"});k=d.add(k,"div",{id:p.id+"_path_row"},w.theme_advanced_path?p.translate("advanced.path")+": ":" ");d.add(k,"a",{href:"#",accesskey:"x"});if(w.theme_advanced_resizing){d.add(l,"a",{id:p.id+"_resize",href:"javascript:;",onclick:"return false;","class":"mceResize"});if(w.theme_advanced_resizing_use_cookie){p.onPostRender.add(function(){var n=a.getHash("TinyMCE_"+p.id+"_size"),r=d.get(p.id+"_tbl");if(!n){return}if(w.theme_advanced_resize_horizontal){r.style.width=Math.max(10,n.cw)+"px"}r.style.height=Math.max(10,n.ch)+"px";d.get(p.id+"_ifr").style.height=Math.max(10,parseInt(n.ch)+v.deltaHeight)+"px"})}p.onPostRender.add(function(){b.add(p.id+"_resize","mousedown",function(x){var z,t,o,s,y,r;z=d.get(p.id+"_tbl");o=z.clientWidth;s=z.clientHeight;miw=w.theme_advanced_resizing_min_width||100;mih=w.theme_advanced_resizing_min_height||100;maw=w.theme_advanced_resizing_max_width||65535;mah=w.theme_advanced_resizing_max_height||65535;t=d.add(d.get(p.id+"_parent"),"div",{"class":"mcePlaceHolder"});d.setStyles(t,{width:o,height:s});d.hide(z);d.show(t);i={x:x.screenX,y:x.screenY,w:o,h:s,dx:null,dy:null};q=b.add(d.doc,"mousemove",function(B){var n,A;i.dx=B.screenX-i.x;i.dy=B.screenY-i.y;n=Math.max(miw,i.w+i.dx);A=Math.max(mih,i.h+i.dy);n=Math.min(maw,n);A=Math.min(mah,A);if(w.theme_advanced_resize_horizontal){t.style.width=n+"px"}t.style.height=A+"px";return b.cancel(B)});u=b.add(d.doc,"mouseup",function(n){var A;b.remove(d.doc,"mousemove",q);b.remove(d.doc,"mouseup",u);z.style.display="";d.remove(t);if(i.dx===null){return}A=d.get(p.id+"_ifr");if(w.theme_advanced_resize_horizontal){z.style.width=Math.max(10,i.w+i.dx)+"px"}z.style.height=Math.max(10,i.h+i.dy)+"px";A.style.height=Math.max(10,A.clientHeight+i.dy)+"px";if(w.theme_advanced_resizing_use_cookie){a.setHash("TinyMCE_"+p.id+"_size",{cw:i.w+i.dx,ch:i.h+i.dy})}});return b.cancel(x)})})}j.deltaHeight-=21;k=m=null},_nodeChanged:function(l,u,k,q){var y=this,i,r=0,x,m,z=y.settings,w,j,o;if(z.readonly){return}e.each(y.stateControls,function(n){u.setActive(n,l.queryCommandState(y.controls[n][1]))});u.setActive("visualaid",l.hasVisual);u.setDisabled("undo",!l.undoManager.hasUndo()&&!l.typing);u.setDisabled("redo",!l.undoManager.hasRedo());u.setDisabled("outdent",!l.queryCommandState("Outdent"));i=d.getParent(k,"A");if(m=u.get("link")){if(!i||!i.name){m.setDisabled(!i&&q);m.setActive(!!i)}}if(m=u.get("unlink")){m.setDisabled(!i&&q);m.setActive(!!i&&!i.name)}if(m=u.get("anchor")){m.setActive(!!i&&i.name);if(e.isWebKit){i=d.getParent(k,"IMG");m.setActive(!!i&&d.getAttrib(i,"mce_name")=="a")}}i=d.getParent(k,"IMG");if(m=u.get("image")){m.setActive(!!i&&k.className.indexOf("mceItem")==-1)}if(m=u.get("styleselect")){if(k.className){y._importClasses();m.select(k.className)}else{m.select()}}if(m=u.get("formatselect")){i=d.getParent(k,d.isBlock);if(i){m.select(i.nodeName.toLowerCase())}}if(l.settings.convert_fonts_to_spans){l.dom.getParent(k,function(p){if(p.nodeName==="SPAN"){if(!w&&p.className){w=p.className}if(!j&&p.style.fontSize){j=p.style.fontSize}if(!o&&p.style.fontFamily){o=p.style.fontFamily.replace(/[\"\']+/g,"").replace(/^([^,]+).*/,"$1").toLowerCase()}}return false});if(m=u.get("fontselect")){m.select(function(n){return n.replace(/^([^,]+).*/,"$1").toLowerCase()==o})}if(m=u.get("fontsizeselect")){m.select(function(n){if(n.fontSize&&n.fontSize===j){return true}if(n["class"]&&n["class"]===w){return true}})}}else{if(m=u.get("fontselect")){m.select(l.queryCommandValue("FontName"))}if(m=u.get("fontsizeselect")){x=l.queryCommandValue("FontSize");m.select(function(n){return n.fontSize==x})}}if(z.theme_advanced_path&&z.theme_advanced_statusbar_location){i=d.get(l.id+"_path")||d.add(l.id+"_path_row","span",{id:l.id+"_path"});d.setHTML(i,"");l.dom.getParent(k,function(A){var p=A.nodeName.toLowerCase(),s,v,t="";if(A.nodeType!=1||A.nodeName==="BR"||(d.hasClass(A,"mceItemHidden")||d.hasClass(A,"mceItemRemoved"))){return}if(x=d.getAttrib(A,"mce_name")){p=x}if(e.isIE&&A.scopeName!=="HTML"){p=A.scopeName+":"+p}p=p.replace(/mce\:/g,"");switch(p){case"b":p="strong";break;case"i":p="em";break;case"img":if(x=d.getAttrib(A,"src")){t+="src: "+x+" "}break;case"a":if(x=d.getAttrib(A,"name")){t+="name: "+x+" ";p+="#"+x}if(x=d.getAttrib(A,"href")){t+="href: "+x+" "}break;case"font":if(z.convert_fonts_to_spans){p="span"}if(x=d.getAttrib(A,"face")){t+="font: "+x+" "}if(x=d.getAttrib(A,"size")){t+="size: "+x+" "}if(x=d.getAttrib(A,"color")){t+="color: "+x+" "}break;case"span":if(x=d.getAttrib(A,"style")){t+="style: "+x+" "}break}if(x=d.getAttrib(A,"id")){t+="id: "+x+" "}if(x=A.className){x=x.replace(/(webkit-[\w\-]+|Apple-[\w\-]+|mceItem\w+|mceVisualAid)/g,"");if(x&&x.indexOf("mceItem")==-1){t+="class: "+x+" ";if(d.isBlock(A)||p=="img"||p=="span"){p+="."+x}}}p=p.replace(/(html:)/g,"");p={name:p,node:A,title:t};y.onResolveName.dispatch(y,p);t=p.title;p=p.name;v=d.create("a",{href:"javascript:;",onmousedown:"return false;",title:t,"class":"mcePath_"+(r++)},p);if(i.hasChildNodes()){i.insertBefore(d.doc.createTextNode(" \u00bb "),i.firstChild);i.insertBefore(v,i.firstChild)}else{i.appendChild(v)}},l.getBody())}},_sel:function(i){this.editor.execCommand("mceSelectNodeDepth",false,i)},_mceInsertAnchor:function(k,j){var i=this.editor;i.windowManager.open({url:e.baseURL+"/themes/advanced/anchor.htm",width:320+parseInt(i.getLang("advanced.anchor_delta_width",0)),height:90+parseInt(i.getLang("advanced.anchor_delta_height",0)),inline:true},{theme_url:this.url})},_mceCharMap:function(){var i=this.editor;i.windowManager.open({url:e.baseURL+"/themes/advanced/charmap.htm",width:550+parseInt(i.getLang("advanced.charmap_delta_width",0)),height:250+parseInt(i.getLang("advanced.charmap_delta_height",0)),inline:true},{theme_url:this.url})},_mceHelp:function(){var i=this.editor;i.windowManager.open({url:e.baseURL+"/themes/advanced/about.htm",width:480,height:380,inline:true},{theme_url:this.url})},_mceColorPicker:function(k,j){var i=this.editor;j=j||{};i.windowManager.open({url:e.baseURL+"/themes/advanced/color_picker.htm",width:375+parseInt(i.getLang("advanced.colorpicker_delta_width",0)),height:250+parseInt(i.getLang("advanced.colorpicker_delta_height",0)),close_previous:false,inline:true},{input_color:j.color,func:j.func,theme_url:this.url})},_mceCodeEditor:function(j,k){var i=this.editor;i.windowManager.open({url:e.baseURL+"/themes/advanced/source_editor.htm",width:parseInt(i.getParam("theme_advanced_source_editor_width",720)),height:parseInt(i.getParam("theme_advanced_source_editor_height",580)),inline:true,resizable:true,maximizable:true},{theme_url:this.url})},_mceImage:function(j,k){var i=this.editor;if(i.dom.getAttrib(i.selection.getNode(),"class").indexOf("mceItem")!=-1){return}i.windowManager.open({url:e.baseURL+"/themes/advanced/image.htm",width:355+parseInt(i.getLang("advanced.image_delta_width",0)),height:275+parseInt(i.getLang("advanced.image_delta_height",0)),inline:true},{theme_url:this.url})},_mceLink:function(j,k){var i=this.editor;i.windowManager.open({url:e.baseURL+"/themes/advanced/link.htm",width:310+parseInt(i.getLang("advanced.link_delta_width",0)),height:200+parseInt(i.getLang("advanced.link_delta_height",0)),inline:true},{theme_url:this.url})},_mceNewDocument:function(){var i=this.editor;i.windowManager.confirm("advanced.newdocument",function(j){if(j){i.execCommand("mceSetContent",false,"")}})},_mceForeColor:function(){var i=this;this._mceColorPicker(0,{color:i.fgColor,func:function(j){i.fgColor=j;i.editor.execCommand("ForeColor",false,j)}})},_mceBackColor:function(){var i=this;this._mceColorPicker(0,{color:i.bgColor,func:function(j){i.bgColor=j;i.editor.execCommand("HiliteColor",false,j)}})},_ufirst:function(i){return i.substring(0,1).toUpperCase()+i.substring(1)}});e.ThemeManager.add("advanced",e.themes.AdvancedTheme)}(tinymce)); \ No newline at end of file diff --git a/source/web/scripts/tiny_mce/themes/advanced/editor_template_src.js b/source/web/scripts/tiny_mce/themes/advanced/editor_template_src.js index b3cef0199b..21eb259a20 100644 --- a/source/web/scripts/tiny_mce/themes/advanced/editor_template_src.js +++ b/source/web/scripts/tiny_mce/themes/advanced/editor_template_src.js @@ -1,11 +1,11 @@ /** - * $Id: editor_template_src.js 960 2008-11-12 18:30:32Z spocke $ + * $Id: editor_template_src.js 1045 2009-03-04 20:03:18Z spocke $ * * @author Moxiecode * @copyright Copyright © 2004-2008, Moxiecode Systems AB, All rights reserved. */ -(function() { +(function(tinymce) { var DOM = tinymce.DOM, Event = tinymce.dom.Event, extend = tinymce.extend, each = tinymce.each, Cookie = tinymce.util.Cookie, lastExtID, explode = tinymce.explode; // Tell it to load theme specific language pack(s) @@ -104,7 +104,7 @@ } } - if (/\s*\./.test(v)) + if (/^\s*\./.test(v)) cl = v.replace(/\./g, ''); o[k] = cl ? {'class' : cl} : {fontSize : v}; @@ -440,7 +440,7 @@ } */ - if (!ed.getParam('accessibility_focus') || ed.getParam('tab_focus')) + if (!ed.getParam('accessibility_focus')) Event.add(DOM.add(p, 'a', {href : '#'}, ''), 'focus', function() {tinyMCE.get(ed.id).focus();}); if (s.theme_advanced_toolbar_location == 'external') @@ -655,7 +655,7 @@ n = DOM.add(DOM.add(c, 'tr'), 'td', {'class' : 'mceToolbar ' + a}); - if (!ed.getParam('accessibility_focus') || ed.getParam('tab_focus')) + if (!ed.getParam('accessibility_focus')) h.push(DOM.createHTML('a', {href : '#', onfocus : 'tinyMCE.get(\'' + ed.id + '\').focus();'}, '')); h.push(DOM.createHTML('a', {href : '#', accesskey : 'q', title : ed.getLang("advanced.toolbar_focus")}, '')); @@ -687,10 +687,10 @@ n = DOM.add(tb, 'tr'); n = td = DOM.add(n, 'td', {'class' : 'mceStatusbar'}); - n = DOM.add(n, 'div', {id : ed.id + '_path_row'}, s.theme_advanced_path ? ed.translate('advanced.path') + ': ' : ' '); + n = DOM.add(n, 'div', {id : ed.id + '_path_row'}, s.theme_advanced_path ? ed.translate('advanced.path') + ': ' : ' '); DOM.add(n, 'a', {href : '#', accesskey : 'x'}); - if (s.theme_advanced_resizing && !tinymce.isOldWebKit) { + if (s.theme_advanced_resizing) { DOM.add(td, 'a', {id : ed.id + '_resize', href : 'javascript:;', onclick : "return false;", 'class' : 'mceResize'}); if (s.theme_advanced_resizing_use_cookie) { @@ -1150,4 +1150,4 @@ }); tinymce.ThemeManager.add('advanced', tinymce.themes.AdvancedTheme); -}()); \ No newline at end of file +}(tinymce)); \ No newline at end of file diff --git a/source/web/scripts/tiny_mce/themes/advanced/image.htm b/source/web/scripts/tiny_mce/themes/advanced/image.htm index 6c366469c3..7ec1052ba5 100644 --- a/source/web/scripts/tiny_mce/themes/advanced/image.htm +++ b/source/web/scripts/tiny_mce/themes/advanced/image.htm @@ -6,7 +6,6 @@ - @@ -20,7 +19,7 @@
- +
@@ -33,11 +32,11 @@ - + - + - + - + - + - +
x
diff --git a/source/web/scripts/tiny_mce/themes/advanced/js/link.js b/source/web/scripts/tiny_mce/themes/advanced/js/link.js index 2974878e1e..f67a5bc828 100644 --- a/source/web/scripts/tiny_mce/themes/advanced/js/link.js +++ b/source/web/scripts/tiny_mce/themes/advanced/js/link.js @@ -53,6 +53,7 @@ var LinkDialog = { // Create new anchor elements if (e == null) { + ed.getDoc().execCommand("unlink", false, null); tinyMCEPopup.execCommand("CreateLink", false, "#mce_temp_url#", {skip_undo : 1}); tinymce.each(ed.dom.select("a"), function(n) { @@ -62,8 +63,8 @@ var LinkDialog = { ed.dom.setAttribs(e, { href : f.href.value, title : f.linktitle.value, - target : f.target_list ? f.target_list.options[f.target_list.selectedIndex].value : null, - 'class' : f.class_list ? f.class_list.options[f.class_list.selectedIndex].value : null + target : f.target_list ? getSelectValue(f, "target_list") : null, + 'class' : f.class_list ? getSelectValue(f, "class_list") : null }); } }); @@ -71,8 +72,8 @@ var LinkDialog = { ed.dom.setAttribs(e, { href : f.href.value, title : f.linktitle.value, - target : f.target_list ? f.target_list.options[f.target_list.selectedIndex].value : null, - 'class' : f.class_list ? f.class_list.options[f.class_list.selectedIndex].value : null + target : f.target_list ? getSelectValue(f, "target_list") : null, + 'class' : f.class_list ? getSelectValue(f, "class_list") : null }); } @@ -92,7 +93,7 @@ var LinkDialog = { if (n.value && Validator.isEmail(n) && !/^\s*mailto:/i.test(n.value) && confirm(tinyMCEPopup.getLang('advanced_dlg.link_is_email'))) n.value = 'mailto:' + n.value; - if (/^\s*www./i.test(n.value) && confirm(tinyMCEPopup.getLang('advanced_dlg.link_is_external'))) + if (/^\s*www\./i.test(n.value) && confirm(tinyMCEPopup.getLang('advanced_dlg.link_is_external'))) n.value = 'http://' + n.value; }, diff --git a/source/web/scripts/tiny_mce/themes/advanced/js/source_editor.js b/source/web/scripts/tiny_mce/themes/advanced/js/source_editor.js index af2231cad5..279328614c 100644 --- a/source/web/scripts/tiny_mce/themes/advanced/js/source_editor.js +++ b/source/web/scripts/tiny_mce/themes/advanced/js/source_editor.js @@ -2,7 +2,7 @@ tinyMCEPopup.requireLangPack(); tinyMCEPopup.onInit.add(onLoadInit); function saveContent() { - tinyMCEPopup.editor.setContent(document.getElementById('htmlSource').value); + tinyMCEPopup.editor.setContent(document.getElementById('htmlSource').value, {source_view : true}); tinyMCEPopup.close(); } @@ -13,7 +13,7 @@ function onLoadInit() { if (tinymce.isGecko) document.body.spellcheck = tinyMCEPopup.editor.getParam("gecko_spellcheck"); - document.getElementById('htmlSource').value = tinyMCEPopup.editor.getContent(); + document.getElementById('htmlSource').value = tinyMCEPopup.editor.getContent({source_view : true}); if (tinyMCEPopup.editor.getParam("theme_advanced_source_editor_wrap", true)) { setWrap('soft'); diff --git a/source/web/scripts/tiny_mce/themes/advanced/link.htm b/source/web/scripts/tiny_mce/themes/advanced/link.htm index 286cc92479..a78bd334d5 100644 --- a/source/web/scripts/tiny_mce/themes/advanced/link.htm +++ b/source/web/scripts/tiny_mce/themes/advanced/link.htm @@ -7,7 +7,6 @@ - @@ -22,7 +21,7 @@ - +
@@ -39,7 +38,7 @@ - + diff --git a/source/web/scripts/tiny_mce/themes/advanced/skins/default/dialog.css b/source/web/scripts/tiny_mce/themes/advanced/skins/default/dialog.css index 2c341aae18..873c67e3c4 100644 --- a/source/web/scripts/tiny_mce/themes/advanced/skins/default/dialog.css +++ b/source/web/scripts/tiny_mce/themes/advanced/skins/default/dialog.css @@ -19,6 +19,7 @@ td {font-family:Verdana, Arial, Helvetica, sans-serif; font-size:10px;} textarea {resize:none;outline:none;} a:link, a:visited {color:black;} a:hover {color:#2B6FB6;} +.nowrap {white-space: nowrap} /* Forms */ fieldset {margin:0; padding:4px; border:1px solid #919B9C; font-family:Verdana, Arial; font-size:10px;} @@ -47,6 +48,7 @@ padding-bottom:2px; #cancel {background:url(img/buttons.png) 0 0;} /* Browse */ +a.pickcolor, a.browse {text-decoration:none} a.browse span {display:block; width:20px; height:18px; background:url(../../img/icons.gif) -860px 0; border:1px solid #FFF; margin-left:1px;} .mceOldBoxModel a.browse span {width:22px; height:20px;} a.browse:hover span {border:1px solid #0A246A; background-color:#B2BBD0;} diff --git a/source/web/scripts/tiny_mce/themes/advanced/skins/o2k7/dialog.css b/source/web/scripts/tiny_mce/themes/advanced/skins/o2k7/dialog.css index 8d288e348b..6c37d6fb83 100644 --- a/source/web/scripts/tiny_mce/themes/advanced/skins/o2k7/dialog.css +++ b/source/web/scripts/tiny_mce/themes/advanced/skins/o2k7/dialog.css @@ -19,6 +19,7 @@ td {font-family:Verdana, Arial, Helvetica, sans-serif; font-size:10px;} textarea {resize:none;outline:none;} a:link, a:visited {color:black;} a:hover {color:#2B6FB6;} +.nowrap {white-space: nowrap} /* Forms */ fieldset {margin:0; padding:4px; border:1px solid #919B9C; font-family:Verdana, Arial; font-size:10px;} @@ -47,6 +48,7 @@ padding-bottom:2px; #cancel {background:url(../default/img/buttons.png) 0 0;} /* Browse */ +a.pickcolor, a.browse {text-decoration:none} a.browse span {display:block; width:20px; height:18px; background:url(../../img/icons.gif) -860px 0; border:1px solid #FFF; margin-left:1px;} .mceOldBoxModel a.browse span {width:22px; height:20px;} a.browse:hover span {border:1px solid #0A246A; background-color:#B2BBD0;} diff --git a/source/web/scripts/tiny_mce/themes/advanced/source_editor.htm b/source/web/scripts/tiny_mce/themes/advanced/source_editor.htm index 119a913c93..553e7bb2bc 100644 --- a/source/web/scripts/tiny_mce/themes/advanced/source_editor.htm +++ b/source/web/scripts/tiny_mce/themes/advanced/source_editor.htm @@ -4,7 +4,6 @@ {#advanced_dlg.code_title} - diff --git a/source/web/scripts/tiny_mce/themes/simple/editor_template.js b/source/web/scripts/tiny_mce/themes/simple/editor_template.js index d19fb53f72..ed89abc067 100644 --- a/source/web/scripts/tiny_mce/themes/simple/editor_template.js +++ b/source/web/scripts/tiny_mce/themes/simple/editor_template.js @@ -1 +1 @@ -(function(){var DOM=tinymce.DOM;tinymce.ThemeManager.requireLangPack('simple');tinymce.create('tinymce.themes.SimpleTheme',{init:function(ed,url){var t=this,states=['Bold','Italic','Underline','Strikethrough','InsertUnorderedList','InsertOrderedList'],s=ed.settings;t.editor=ed;ed.onInit.add(function(){ed.onNodeChange.add(function(ed,cm){tinymce.each(states,function(c){cm.get(c.toLowerCase()).setActive(ed.queryCommandState(c));});});ed.dom.loadCSS(url+"/skins/"+s.skin+"/content.css");});DOM.loadCSS((s.editor_css?ed.documentBaseURI.toAbsolute(s.editor_css):'')||url+"/skins/"+s.skin+"/ui.css");},renderUI:function(o){var t=this,n=o.targetNode,ic,tb,ed=t.editor,cf=ed.controlManager,sc;n=DOM.insertAfter(DOM.create('span',{id:ed.id+'_container','class':'mceEditor '+ed.settings.skin+'SimpleSkin'}),n);n=sc=DOM.add(n,'table',{cellPadding:0,cellSpacing:0,'class':'mceLayout'});n=tb=DOM.add(n,'tbody');n=DOM.add(tb,'tr');n=ic=DOM.add(DOM.add(n,'td'),'div',{'class':'mceIframeContainer'});n=DOM.add(DOM.add(tb,'tr',{'class':'last'}),'td',{'class':'mceToolbar mceLast',align:'center'});tb=t.toolbar=cf.createToolbar("tools1");tb.add(cf.createButton('bold',{title:'simple.bold_desc',cmd:'Bold'}));tb.add(cf.createButton('italic',{title:'simple.italic_desc',cmd:'Italic'}));tb.add(cf.createButton('underline',{title:'simple.underline_desc',cmd:'Underline'}));tb.add(cf.createButton('strikethrough',{title:'simple.striketrough_desc',cmd:'Strikethrough'}));tb.add(cf.createSeparator());tb.add(cf.createButton('undo',{title:'simple.undo_desc',cmd:'Undo'}));tb.add(cf.createButton('redo',{title:'simple.redo_desc',cmd:'Redo'}));tb.add(cf.createSeparator());tb.add(cf.createButton('cleanup',{title:'simple.cleanup_desc',cmd:'mceCleanup'}));tb.add(cf.createSeparator());tb.add(cf.createButton('insertunorderedlist',{title:'simple.bullist_desc',cmd:'InsertUnorderedList'}));tb.add(cf.createButton('insertorderedlist',{title:'simple.numlist_desc',cmd:'InsertOrderedList'}));tb.renderTo(n);return{iframeContainer:ic,editorContainer:ed.id+'_container',sizeContainer:sc,deltaHeight:-20};},getInfo:function(){return{longname:'Simple theme',author:'Moxiecode Systems AB',authorurl:'http://tinymce.moxiecode.com',version:tinymce.majorVersion+"."+tinymce.minorVersion}}});tinymce.ThemeManager.add('simple',tinymce.themes.SimpleTheme);})(); \ No newline at end of file +(function(){var a=tinymce.DOM;tinymce.ThemeManager.requireLangPack("simple");tinymce.create("tinymce.themes.SimpleTheme",{init:function(c,d){var e=this,b=["Bold","Italic","Underline","Strikethrough","InsertUnorderedList","InsertOrderedList"],f=c.settings;e.editor=c;c.onInit.add(function(){c.onNodeChange.add(function(h,g){tinymce.each(b,function(i){g.get(i.toLowerCase()).setActive(h.queryCommandState(i))})});c.dom.loadCSS(d+"/skins/"+f.skin+"/content.css")});a.loadCSS((f.editor_css?c.documentBaseURI.toAbsolute(f.editor_css):"")||d+"/skins/"+f.skin+"/ui.css")},renderUI:function(h){var e=this,i=h.targetNode,b,c,d=e.editor,f=d.controlManager,g;i=a.insertAfter(a.create("span",{id:d.id+"_container","class":"mceEditor "+d.settings.skin+"SimpleSkin"}),i);i=g=a.add(i,"table",{cellPadding:0,cellSpacing:0,"class":"mceLayout"});i=c=a.add(i,"tbody");i=a.add(c,"tr");i=b=a.add(a.add(i,"td"),"div",{"class":"mceIframeContainer"});i=a.add(a.add(c,"tr",{"class":"last"}),"td",{"class":"mceToolbar mceLast",align:"center"});c=e.toolbar=f.createToolbar("tools1");c.add(f.createButton("bold",{title:"simple.bold_desc",cmd:"Bold"}));c.add(f.createButton("italic",{title:"simple.italic_desc",cmd:"Italic"}));c.add(f.createButton("underline",{title:"simple.underline_desc",cmd:"Underline"}));c.add(f.createButton("strikethrough",{title:"simple.striketrough_desc",cmd:"Strikethrough"}));c.add(f.createSeparator());c.add(f.createButton("undo",{title:"simple.undo_desc",cmd:"Undo"}));c.add(f.createButton("redo",{title:"simple.redo_desc",cmd:"Redo"}));c.add(f.createSeparator());c.add(f.createButton("cleanup",{title:"simple.cleanup_desc",cmd:"mceCleanup"}));c.add(f.createSeparator());c.add(f.createButton("insertunorderedlist",{title:"simple.bullist_desc",cmd:"InsertUnorderedList"}));c.add(f.createButton("insertorderedlist",{title:"simple.numlist_desc",cmd:"InsertOrderedList"}));c.renderTo(i);return{iframeContainer:b,editorContainer:d.id+"_container",sizeContainer:g,deltaHeight:-20}},getInfo:function(){return{longname:"Simple theme",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",version:tinymce.majorVersion+"."+tinymce.minorVersion}}});tinymce.ThemeManager.add("simple",tinymce.themes.SimpleTheme)})(); \ No newline at end of file diff --git a/source/web/scripts/tiny_mce/tiny_mce.js b/source/web/scripts/tiny_mce/tiny_mce.js index 9a1dc8c028..8c511f385b 100644 --- a/source/web/scripts/tiny_mce/tiny_mce.js +++ b/source/web/scripts/tiny_mce/tiny_mce.js @@ -1 +1 @@ -var tinymce={majorVersion:'3',minorVersion:'2.1.1',releaseDate:'2008-11-27',_init:function(){var t=this,d=document,w=window,na=navigator,ua=na.userAgent,i,nl,n,base,p,v;t.isOpera=w.opera&&opera.buildNumber;t.isWebKit=/WebKit/.test(ua);t.isOldWebKit=t.isWebKit&&!w.getSelection().getRangeAt;t.isIE=!t.isWebKit&&!t.isOpera&&(/MSIE/gi).test(ua)&&(/Explorer/gi).test(na.appName);t.isIE6=t.isIE&&/MSIE [56]/.test(ua);t.isGecko=!t.isWebKit&&/Gecko/.test(ua);t.isMac=ua.indexOf('Mac')!=-1;t.isAir=/adobeair/i.test(ua);if(w.tinyMCEPreInit){t.suffix=tinyMCEPreInit.suffix;t.baseURL=tinyMCEPreInit.base;t.query=tinyMCEPreInit.query;return;}t.suffix='';nl=d.getElementsByTagName('base');for(i=0;i=items.length){for(i=0,l=base.length;i=items.length||base[i]!=items[i]){bp=i+1;break;}}}if(base.length=base.length||base[i]!=items[i]){bp=i+1;break;}}}if(bp==1)return path;for(i=0,l=base.length-(bp-1);i=0;i--){if(path[i].length==0||path[i]==".")continue;if(path[i]=='..'){nb++;continue;}if(nb>0){nb--;continue;}o.push(path[i]);}i=base.length-nb;if(i<=0)return'/'+o.reverse().join('/');return'/'+base.slice(0,i).join('/')+'/'+o.reverse().join('/');},getURI:function(nh){var s,t=this;if(!t.source||nh){s='';if(!nh){if(t.protocol)s+=t.protocol+'://';if(t.userInfo)s+=t.userInfo+'@';if(t.host)s+=t.host;if(t.port)s+=':'+t.port;}if(t.path)s+=t.path;if(t.query)s+='?'+t.query;if(t.anchor)s+='#'+t.anchor;t.source=s;}return t.source;}});})();(function(){var each=tinymce.each;tinymce.create('static tinymce.util.Cookie',{getHash:function(n){var v=this.get(n),h;if(v){each(v.split('&'),function(v){v=v.split('=');h=h||{};h[unescape(v[0])]=unescape(v[1]);});}return h;},setHash:function(n,v,e,p,d,s){var o='';each(v,function(v,k){o+=(!o?'':'&')+escape(k)+'='+escape(v);});this.set(n,o,e,p,d,s);},get:function(n){var c=document.cookie,e,p=n+"=",b;if(!c)return;b=c.indexOf("; "+p);if(b==-1){b=c.indexOf(p);if(b!=0)return null;}else b+=2;e=c.indexOf(";",b);if(e==-1)e=c.length;return unescape(c.substring(b+p.length,e));},set:function(n,v,e,p,d,s){document.cookie=n+"="+escape(v)+((e)?"; expires="+e.toGMTString():"")+((p)?"; path="+escape(p):"")+((d)?"; domain="+d:"")+((s)?"; secure":"");},remove:function(n,p){var d=new Date();d.setTime(d.getTime()-1000);this.set(n,'',d,p,d);}});})();tinymce.create('static tinymce.util.JSON',{serialize:function(o){var i,v,s=tinymce.util.JSON.serialize,t;if(o==null)return'null';t=typeof o;if(t=='string'){v='\bb\tt\nn\ff\rr\""\'\'\\\\';return'"'+o.replace(/([\u0080-\uFFFF\x00-\x1f\"])/g,function(a,b){i=v.indexOf(b);if(i+1)return'\\'+v.charAt(i+1);a=b.charCodeAt().toString(16);return'\\u'+'0000'.substring(a.length)+a;})+'"';}if(t=='object'){if(o instanceof Array){for(i=0,v='[';i0?',':'')+s(o[i]);return v+']';}v='{';for(i in o)v+=typeof o[i]!='function'?(v.length>1?',"':'"')+i+'":'+s(o[i]):'';return v+'}';}return''+o;},parse:function(s){try{return eval('('+s+')');}catch(ex){}}});tinymce.create('static tinymce.util.XHR',{send:function(o){var x,t,w=window,c=0;o.scope=o.scope||this;o.success_scope=o.success_scope||o.scope;o.error_scope=o.error_scope||o.scope;o.async=o.async===false?false:true;o.data=o.data||'';function get(s){x=0;try{x=new ActiveXObject(s);}catch(ex){}return x;};x=w.XMLHttpRequest?new XMLHttpRequest():get('Microsoft.XMLHTTP')||get('Msxml2.XMLHTTP');if(x){if(x.overrideMimeType)x.overrideMimeType(o.content_type);x.open(o.type||(o.data?'POST':'GET'),o.url,o.async);if(o.content_type)x.setRequestHeader('Content-Type',o.content_type);x.send(o.data);function ready(){if(!o.async||x.readyState==4||c++>10000){if(o.success&&c<10000&&x.status==200)o.success.call(o.success_scope,''+x.responseText,x,o);else if(o.error)o.error.call(o.error_scope,c>10000?'TIMED_OUT':'GENERAL',x,o);x=null;}else w.setTimeout(ready,10);};if(!o.async)return ready();t=w.setTimeout(ready,10);}}});(function(){var extend=tinymce.extend,JSON=tinymce.util.JSON,XHR=tinymce.util.XHR;tinymce.create('tinymce.util.JSONRequest',{JSONRequest:function(s){this.settings=extend({},s);this.count=0;},send:function(o){var ecb=o.error,scb=o.success;o=extend(this.settings,o);o.success=function(c,x){c=JSON.parse(c);if(typeof(c)=='undefined'){c={error:'JSON Parse error.'};}if(c.error)ecb.call(o.error_scope||o.scope,c.error,x);else scb.call(o.success_scope||o.scope,c.result);};o.error=function(ty,x){ecb.call(o.error_scope||o.scope,ty,x);};o.data=JSON.serialize({id:o.id||'c'+(this.count++),method:o.method,params:o.params});o.content_type='application/json';XHR.send(o);},'static':{sendRPC:function(o){return new tinymce.util.JSONRequest().send(o);}}});}());(function(){var each=tinymce.each,is=tinymce.is;var isWebKit=tinymce.isWebKit,isIE=tinymce.isIE;tinymce.create('tinymce.dom.DOMUtils',{doc:null,root:null,files:null,listeners:{},pixelStyles:/^(top|left|bottom|right|width|height|borderWidth)$/,cache:{},idPattern:/^#[\w]+$/,elmPattern:/^[\w_*]+$/,elmClassPattern:/^([\w_]*)\.([\w_]+)$/,props:{"for":"htmlFor","class":"className",className:"className",checked:"checked",disabled:"disabled",maxlength:"maxLength",readonly:"readOnly",selected:"selected",value:"value",id:"id",name:"name",type:"type"},DOMUtils:function(d,s){var t=this;t.doc=d;t.win=window;t.files={};t.cssFlicker=false;t.counter=0;t.boxModel=!tinymce.isIE||d.compatMode=="CSS1Compat";t.stdMode=d.documentMode===8;this.settings=s=tinymce.extend({keep_values:false,hex_colors:1,process_html:1},s);if(tinymce.isIE6){try{d.execCommand('BackgroundImageCache',false,true);}catch(e){t.cssFlicker=true;}}tinymce.addUnload(t.destroy,t);},getRoot:function(){var t=this,s=t.settings;return(s&&t.get(s.root_element))||t.doc.body;},getViewPort:function(w){var d,b;w=!w?this.win:w;d=w.document;b=this.boxModel?d.documentElement:d.body;return{x:w.pageXOffset||b.scrollLeft,y:w.pageYOffset||b.scrollTop,w:w.innerWidth||b.clientWidth,h:w.innerHeight||b.clientHeight};},getRect:function(e){var p,t=this,sr;e=t.get(e);p=t.getPos(e);sr=t.getSize(e);return{x:p.x,y:p.y,w:sr.w,h:sr.h};},getSize:function(e){var t=this,w,h;e=t.get(e);w=t.getStyle(e,'width');h=t.getStyle(e,'height');if(w.indexOf('px')===-1)w=0;if(h.indexOf('px')===-1)h=0;return{w:parseInt(w)||e.offsetWidth||e.clientWidth,h:parseInt(h)||e.offsetHeight||e.clientHeight};},getParent:function(n,f,r){var na,se=this.settings;n=this.get(n);if(se.strict_root)r=r||this.getRoot();if(is(f,'string')){na=f.toUpperCase();f=function(n){var s=false;if(n.nodeType==1&&na==='*'){s=true;return false;}each(na.split(','),function(v){if(n.nodeType==1&&((se.strict&&n.nodeName.toUpperCase()==v)||n.nodeName.toUpperCase()==v)){s=true;return false;}});return s;};}while(n){if(n==r)return null;if(f(n))return n;n=n.parentNode;}return null;},get:function(e){var n;if(e&&this.doc&&typeof(e)=='string'){n=e;e=this.doc.getElementById(e);if(e&&e.id!==n)return this.doc.getElementsByName(n)[1];}return e;},select:function(pa,s){var t=this,cs,c,pl,o=[],x,i,l,n,xp;s=t.get(s)||t.doc;if(s.querySelectorAll){if(s!=t.doc){i=s.id;s.id='_mc_tmp';pa='#_mc_tmp '+pa;}l=tinymce.grep(s.querySelectorAll(pa));s.id=i;return l;}if(!t.selectorRe)t.selectorRe=/^([\w\\*]+)?(?:#([\w\\]+))?(?:\.([\w\\\.]+))?(?:\[\@([\w\\]+)([\^\$\*!]?=)([\w\\]+)\])?(?:\:([\w\\]+))?/i;;if(tinymce.isAir){each(tinymce.explode(pa),function(v){if(!(xp=t.cache[v])){xp='';each(v.split(' '),function(v){v=t.selectorRe.exec(v);xp+=v[1]?'//'+v[1]:'//*';if(v[2])xp+="[@id='"+v[2]+"']";if(v[3]){each(v[3].split('.'),function(n){xp+="[@class = '"+n+"' or contains(concat(' ', @class, ' '), ' "+n+" ')]";});}});t.cache[v]=xp;}xp=t.doc.evaluate(xp,s,null,4,null);while(n=xp.iterateNext())o.push(n);});return o;}if(t.settings.strict){function get(s,n){return s.getElementsByTagName(n.toLowerCase());};}else{function get(s,n){return s.getElementsByTagName(n);};}if(t.elmPattern.test(pa)){x=get(s,pa);for(i=0,l=x.length;i=0;i--)cs+='}, '+(i?'n':'s')+');';cs+='})';t.cache[pa]=cs=eval(cs);}cs(isIE?collectIE:collect,s);});each(o,function(n){if(isIE)n.removeAttribute('mce_save');else delete n.mce_save;});return o;},add:function(p,n,a,h,c){var t=this;return this.run(p,function(p){var e,k;e=is(n,'string')?t.doc.createElement(n):n;t.setAttribs(e,a);if(h){if(h.nodeType)e.appendChild(h);else t.setHTML(e,h);}return!c?p.appendChild(e):e;});},create:function(n,a,h){return this.add(this.doc.createElement(n),n,a,h,1);},createHTML:function(n,a,h){var o='',t=this,k;o+='<'+n;for(k in a){if(a.hasOwnProperty(k))o+=' '+k+'="'+t.encode(a[k])+'"';}if(tinymce.is(h))return o+'>'+h+'';return o+' />';},remove:function(n,k){return this.run(n,function(n){var p,g;p=n.parentNode;if(!p)return null;if(k){each(n.childNodes,function(c){p.insertBefore(c.cloneNode(true),n);});}return p.removeChild(n);});},setStyle:function(n,na,v){var t=this;return t.run(n,function(e){var s,i;s=e.style;na=na.replace(/-(\D)/g,function(a,b){return b.toUpperCase();});if(t.pixelStyles.test(na)&&(tinymce.is(v,'number')||/^[\-0-9\.]+$/.test(v)))v+='px';switch(na){case'opacity':if(isIE){s.filter=v===''?'':"alpha(opacity="+(v*100)+")";if(!n.currentStyle||!n.currentStyle.hasLayout)s.display='inline-block';}s[na]=s['-moz-opacity']=s['-khtml-opacity']=v||'';break;case'float':isIE?s.styleFloat=v:s.cssFloat=v;break;default:s[na]=v||'';}if(t.settings.update_styles)t.setAttrib(e,'mce_style');});},getStyle:function(n,na,c){n=this.get(n);if(!n)return false;if(this.doc.defaultView&&c){na=na.replace(/[A-Z]/g,function(a){return'-'+a;});try{return this.doc.defaultView.getComputedStyle(n,null).getPropertyValue(na);}catch(ex){return null;}}na=na.replace(/-(\D)/g,function(a,b){return b.toUpperCase();});if(na=='float')na=isIE?'styleFloat':'cssFloat';if(n.currentStyle&&c)return n.currentStyle[na];return n.style[na];},setStyles:function(e,o){var t=this,s=t.settings,ol;ol=s.update_styles;s.update_styles=0;each(o,function(v,n){t.setStyle(e,n,v);});s.update_styles=ol;if(s.update_styles)t.setAttrib(e,s.cssText);},setAttrib:function(e,n,v){var t=this;if(!e||!n)return;if(t.settings.strict)n=n.toLowerCase();return this.run(e,function(e){var s=t.settings;switch(n){case"style":if(!is(v,'string')){each(v,function(v,n){t.setStyle(e,n,v);});return;}if(s.keep_values){if(v&&!t._isRes(v))e.setAttribute('mce_style',v,2);else e.removeAttribute('mce_style',2);}e.style.cssText=v;break;case"class":e.className=v||'';break;case"src":case"href":if(s.keep_values){if(s.url_converter)v=s.url_converter.call(s.url_converter_scope||t,v,n,e);t.setAttrib(e,'mce_'+n,v,2);}break;case"shape":e.setAttribute('mce_style',v);break;}if(is(v)&&v!==null&&v.length!==0)e.setAttribute(n,''+v,2);else e.removeAttribute(n,2);});},setAttribs:function(e,o){var t=this;return this.run(e,function(e){each(o,function(v,n){t.setAttrib(e,n,v);});});},getAttrib:function(e,n,dv){var v,t=this;e=t.get(e);if(!e||e.nodeType!==1)return false;if(!is(dv))dv='';if(/^(src|href|style|coords|shape)$/.test(n)){v=e.getAttribute("mce_"+n);if(v)return v;}if(isIE&&t.props[n]){v=e[t.props[n]];v=v&&v.nodeValue?v.nodeValue:v;}if(!v)v=e.getAttribute(n,2);if(n==='style'){v=v||e.style.cssText;if(v){v=t.serializeStyle(t.parseStyle(v));if(t.settings.keep_values&&!t._isRes(v))e.setAttribute('mce_style',v);}}if(isWebKit&&n==="class"&&v)v=v.replace(/(apple|webkit)\-[a-z\-]+/gi,'');if(isIE){switch(n){case'rowspan':case'colspan':if(v===1)v='';break;case'size':if(v==='+0'||v===20)v='';break;case'width':case'height':case'vspace':case'checked':case'disabled':case'readonly':if(v===0)v='';break;case'hspace':if(v===-1)v='';break;case'maxlength':case'tabindex':if(v===32768||v===2147483647||v==='32768')v='';break;case'compact':case'noshade':case'nowrap':if(v===65535)return n;return dv;case'shape':v=v.toLowerCase();break;default:if(n.indexOf('on')===0&&v)v=(''+v).replace(/^function\s+anonymous\(\)\s+\{\s+(.*)\s+\}$/,'$1');}}return(v!==undefined&&v!==null&&v!=='')?''+v:dv;},getPos:function(n){var t=this,x=0,y=0,e,d=t.doc,r;n=t.get(n);if(n&&isIE){n=n.getBoundingClientRect();e=t.boxModel?d.documentElement:d.body;x=t.getStyle(t.select('html')[0],'borderWidth');x=(x=='medium'||t.boxModel&&!t.isIE6)&&2||x;n.top+=t.win.self!=t.win.top?2:0;return{x:n.left+e.scrollLeft-x,y:n.top+e.scrollTop-x};}r=n;while(r){x+=r.offsetLeft||0;y+=r.offsetTop||0;r=r.offsetParent;}r=n;while(r){if(!/^table-row|inline.*/i.test(t.getStyle(r,"display",1))){x-=r.scrollLeft||0;y-=r.scrollTop||0;}r=r.parentNode;if(r==d.body)break;}return{x:x,y:y};},parseStyle:function(st){var t=this,s=t.settings,o={};if(!st)return o;function compress(p,s,ot){var t,r,b,l;t=o[p+'-top'+s];if(!t)return;r=o[p+'-right'+s];if(t!=r)return;b=o[p+'-bottom'+s];if(r!=b)return;l=o[p+'-left'+s];if(b!=l)return;o[ot]=l;delete o[p+'-top'+s];delete o[p+'-right'+s];delete o[p+'-bottom'+s];delete o[p+'-left'+s];};function compress2(ta,a,b,c){var t;t=o[a];if(!t)return;t=o[b];if(!t)return;t=o[c];if(!t)return;o[ta]=o[a]+' '+o[b]+' '+o[c];delete o[a];delete o[b];delete o[c];};st=st.replace(/&(#?[a-z0-9]+);/g,'&$1_MCE_SEMI_');each(st.split(';'),function(v){var sv,ur=[];if(v){v=v.replace(/_MCE_SEMI_/g,';');v=v.replace(/url\([^\)]+\)/g,function(v){ur.push(v);return'url('+ur.length+')';});v=v.split(':');sv=tinymce.trim(v[1]);sv=sv.replace(/url\(([^\)]+)\)/g,function(a,b){return ur[parseInt(b)-1];});sv=sv.replace(/rgb\([^\)]+\)/g,function(v){return t.toHex(v);});if(s.url_converter){sv=sv.replace(/url\([\'\"]?([^\)\'\"]+)[\'\"]?\)/g,function(x,c){return'url('+s.url_converter.call(s.url_converter_scope||t,t.decode(c),'style',null)+')';});}o[tinymce.trim(v[0]).toLowerCase()]=sv;}});compress("border","","border");compress("border","-width","border-width");compress("border","-color","border-color");compress("border","-style","border-style");compress("padding","","padding");compress("margin","","margin");compress2('border','border-width','border-style','border-color');if(isIE){if(o.border=='medium none')o.border='';}return o;},serializeStyle:function(o){var s='';each(o,function(v,k){if(k&&v){if(tinymce.isGecko&&k.indexOf('-moz-')===0)return;switch(k){case'color':case'background-color':v=v.toLowerCase();break;}s+=(s?' ':'')+k+': '+v+';';}});return s;},loadCSS:function(u){var t=this,d=t.doc;if(!u)u='';each(u.split(','),function(u){if(t.files[u])return;t.files[u]=true;t.add(t.select('head')[0],'link',{rel:'stylesheet',href:tinymce._addVer(u)});});},addClass:function(e,c){return this.run(e,function(e){var o;if(!c)return 0;if(this.hasClass(e,c))return e.className;o=this.removeClass(e,c);return e.className=(o!=''?(o+' '):'')+c;});},removeClass:function(e,c){var t=this,re;return t.run(e,function(e){var v;if(t.hasClass(e,c)){if(!re)re=new RegExp("(^|\\s+)"+c+"(\\s+|$)","g");v=e.className.replace(re,' ');return e.className=tinymce.trim(v!=' '?v:'');}return e.className;});},hasClass:function(n,c){n=this.get(n);if(!n||!c)return false;return(' '+n.className+' ').indexOf(' '+c+' ')!==-1;},show:function(e){return this.setStyle(e,'display','block');},hide:function(e){return this.setStyle(e,'display','none');},isHidden:function(e){e=this.get(e);return!e||e.style.display=='none'||this.getStyle(e,'display')=='none';},uniqueId:function(p){return(!p?'mce_':p)+(this.counter++);},setHTML:function(e,h){var t=this;return this.run(e,function(e){var x,i,nl,n,p,x;h=t.processHTML(h);if(isIE){function set(){try{e.innerHTML='
'+h;e.removeChild(e.firstChild);}catch(ex){while(e.firstChild)e.firstChild.removeNode();x=t.create('div');x.innerHTML='
'+h;each(x.childNodes,function(n,i){if(i)e.appendChild(n);});}};if(t.settings.fix_ie_paragraphs)h=h.replace(/

<\/p>|]+)><\/p>|/gi,' 

');set();if(t.settings.fix_ie_paragraphs){nl=e.getElementsByTagName("p");for(i=nl.length-1,x=0;i>=0;i--){n=nl[i];if(!n.hasChildNodes()){if(!n.mce_keep){x=1;break;}n.removeAttribute('mce_keep');}}}if(x){h=h.replace(/

]+)>|

/g,'

');h=h.replace(/<\/p>/g,'
');set();if(t.settings.fix_ie_paragraphs){nl=e.getElementsByTagName("DIV");for(i=nl.length-1;i>=0;i--){n=nl[i];if(n.mce_tmp){p=t.doc.createElement('p');n.cloneNode(false).outerHTML.replace(/([a-z0-9\-_]+)=/gi,function(a,b){var v;if(b!=='mce_tmp'){v=n.getAttribute(b);if(!v&&b==='class')v=n.className;p.setAttribute(b,v);}});for(x=0;x|]+)>/gi,'<$1b$2>');h=h.replace(/<(\/?)em>|]+)>/gi,'<$1i$2>');}else if(isIE){h=h.replace(/'/g,''');h=h.replace(/\s+(disabled|checked|readonly|selected)\s*=\s*[\"\']?(false|0)[\"\']?/gi,'');}h=h.replace(/]+)\/>|/gi,'');if(s.keep_values){if(/)/g,'\n');s=s.replace(/^[\r\n]*|[\r\n]*$/g,'');s=s.replace(/^\s*(\/\/\s*|\]\]>|-->|\]\]-->)\s*$/g,'');return s;};h=h.replace(/]+|)>([\s\S]*?)<\/script>/g,function(v,a,b){b=trim(b);if(!a)a=' type="text/javascript"';if(b)b='';return''+b+'';});h=h.replace(/]+|)>([\s\S]*?)<\/style>/g,function(v,a,b){b=trim(b);return''+b+'';});}h=h.replace(//g,'');h=h.replace(/<([\w:]+) [^>]*(src|href|style|shape|coords)[^>]*>/gi,function(a,n){function handle(m,b,c){var u=c;if(a.indexOf('mce_'+b)!=-1)return m;if(b=='style'){if(t._isRes(c))return m;if(s.hex_colors){u=u.replace(/rgb\([^\)]+\)/g,function(v){return t.toHex(v);});}if(s.url_converter){u=u.replace(/url\([\'\"]?([^\)\'\"]+)\)/g,function(x,c){return'url('+t.encode(s.url_converter.call(s.url_converter_scope||t,t.decode(c),b,n))+')';});}}else if(b!='coords'&&b!='shape'){if(s.url_converter)u=t.encode(s.url_converter.call(s.url_converter_scope||t,t.decode(c),b,n));}return' '+b+'="'+c+'" mce_'+b+'="'+u+'"';};a=a.replace(/ (src|href|style|coords|shape)=[\"]([^\"]+)[\"]/gi,handle);a=a.replace(/ (src|href|style|coords|shape)=[\']([^\']+)[\']/gi,handle);return a.replace(/ (src|href|style|coords|shape)=([^\s\"\'>]+)/gi,handle);});}return h;},getOuterHTML:function(e){var d;e=this.get(e);if(!e)return null;if(isIE)return e.outerHTML;d=(e.ownerDocument||this.doc).createElement("body");d.appendChild(e.cloneNode(true));return d.innerHTML;},setOuterHTML:function(e,h,d){var t=this;return this.run(e,function(e){var n,tp;e=t.get(e);d=d||e.ownerDocument||t.doc;if(isIE&&e.nodeType==1)e.outerHTML=h;else{tp=d.createElement("body");tp.innerHTML=h;n=tp.lastChild;while(n){t.insertAfter(n.cloneNode(true),e);n=n.previousSibling;}t.remove(e);}});},decode:function(s){var e,n,v;if(/&[^;]+;/.test(s)){e=this.doc.createElement("div");e.innerHTML=s;n=e.firstChild;v='';if(n){do{v+=n.nodeValue;}while(n.nextSibling);}return v||s;}return s;},encode:function(s){return s?(''+s).replace(/[<>&\"]/g,function(c,b){switch(c){case'&':return'&';case'"':return'"';case'<':return'<';case'>':return'>';}return c;}):s;},insertAfter:function(n,r){var t=this;r=t.get(r);return this.run(n,function(n){var p,ns;p=r.parentNode;ns=r.nextSibling;if(ns)p.insertBefore(n,ns);else p.appendChild(n);return n;});},isBlock:function(n){if(n.nodeType&&n.nodeType!==1)return false;n=n.nodeName||n;return/^(H[1-6]|HR|P|DIV|ADDRESS|PRE|FORM|TABLE|LI|OL|UL|TD|CAPTION|BLOCKQUOTE|CENTER|DL|DT|DD|DIR|FIELDSET|NOSCRIPT|NOFRAMES|MENU|ISINDEX|SAMP)$/.test(n);},replace:function(n,o,k){if(is(o,'array'))n=n.cloneNode(true);return this.run(o,function(o){if(k){each(o.childNodes,function(c){n.appendChild(c.cloneNode(true));});}return o.parentNode.replaceChild(n,o);});},toHex:function(s){var c=/^\s*rgb\s*?\(\s*?([0-9]+)\s*?,\s*?([0-9]+)\s*?,\s*?([0-9]+)\s*?\)\s*$/i.exec(s);function hex(s){s=parseInt(s).toString(16);return s.length>1?s:'0'+s;};if(c){s='#'+hex(c[1])+hex(c[2])+hex(c[3]);return s;}return s;},getClasses:function(){var t=this,cl=[],i,lo={},f=t.settings.class_filter,ov;if(t.classes)return t.classes;function addClasses(s){each(s.imports,function(r){addClasses(r);});each(s.cssRules||s.rules,function(r){switch(r.type||1){case 1:if(r.selectorText){each(r.selectorText.split(','),function(v){v=v.replace(/^\s*|\s*$|^\s\./g,"");if(/\.mce/.test(v)||!/\.[\w\-]+$/.test(v))return;ov=v;v=v.replace(/.*\.([a-z0-9_\-]+).*/i,'$1');if(f&&!(v=f(v,ov)))return;if(!lo[v]){cl.push({'class':v});lo[v]=1;}});}break;case 3:addClasses(r.styleSheet);break;}});};try{each(t.doc.styleSheets,addClasses);}catch(ex){}if(cl.length>0)t.classes=cl;return cl;},run:function(e,f,s){var t=this,o;if(t.doc&&typeof(e)==='string')e=t.get(e);if(!e)return false;s=s||this;if(!e.nodeType&&(e.length||e.length===0)){o=[];each(e,function(e,i){if(e){if(typeof(e)=='string')e=t.doc.getElementById(e);o.push(f.call(s,e,i));}});return o;}return f.call(s,e);},getAttribs:function(n){var o;n=this.get(n);if(!n)return[];if(isIE){o=[];if(n.nodeName=='OBJECT')return n.attributes;n.cloneNode(false).outerHTML.replace(/([a-z0-9\:\-_]+)=/gi,function(a,b){o.push({specified:1,nodeName:b});});return o;}return n.attributes;},destroy:function(s){var t=this;t.win=t.doc=t.root=null;if(!s)tinymce.removeUnload(t.destroy);},_isRes:function(c){return/^(top|left|bottom|right|width|height)/i.test(c)||/;\s*(top|left|bottom|right|width|height)/i.test(c);}});tinymce.DOM=new tinymce.dom.DOMUtils(document,{process_html:0});})();(function(){var each=tinymce.each,DOM=tinymce.DOM,isIE=tinymce.isIE,isWebKit=tinymce.isWebKit,Event;tinymce.create('static tinymce.dom.Event',{inits:[],events:[],add:function(o,n,f,s){var cb,t=this,el=t.events,r;if(o&&o instanceof Array){r=[];each(o,function(o){o=DOM.get(o);r.push(t.add(o,n,f,s));});return r;}o=DOM.get(o);if(!o)return;cb=function(e){e=e||window.event;if(e&&!e.target&&isIE)e.target=e.srcElement;if(!s)return f(e);return f.call(s,e);};if(n=='unload'){tinymce.unloads.unshift({func:cb});return cb;}if(n=='init'){if(t.domLoaded)cb();else t.inits.push(cb);return cb;}el.push({obj:o,name:n,func:f,cfunc:cb,scope:s});t._add(o,n,cb);return f;},remove:function(o,n,f){var t=this,a=t.events,s=false,r;if(o&&o instanceof Array){r=[];each(o,function(o){o=DOM.get(o);r.push(t.remove(o,n,f));});return r;}o=DOM.get(o);each(a,function(e,i){if(e.obj==o&&e.name==n&&(!f||(e.func==f||e.cfunc==f))){a.splice(i,1);t._remove(o,n,e.cfunc);s=true;return false;}});return s;},clear:function(o){var t=this,a=t.events,i,e;if(o){o=DOM.get(o);for(i=a.length-1;i>=0;i--){e=a[i];if(e.obj===o){t._remove(e.obj,e.name,e.cfunc);e.obj=e.cfunc=null;a.splice(i,1);}}}},cancel:function(e){if(!e)return false;this.stop(e);return this.prevent(e);},stop:function(e){if(e.stopPropagation)e.stopPropagation();else e.cancelBubble=true;return false;},prevent:function(e){if(e.preventDefault)e.preventDefault();else e.returnValue=false;return false;},_unload:function(){var t=Event;each(t.events,function(e,i){t._remove(e.obj,e.name,e.cfunc);e.obj=e.cfunc=null;});t.events=[];t=null;},_add:function(o,n,f){if(o.attachEvent)o.attachEvent('on'+n,f);else if(o.addEventListener)o.addEventListener(n,f,false);else o['on'+n]=f;},_remove:function(o,n,f){if(o){try{if(o.detachEvent)o.detachEvent('on'+n,f);else if(o.removeEventListener)o.removeEventListener(n,f,false);else o['on'+n]=null;}catch(ex){}}},_pageInit:function(){var e=Event;if(e.domLoaded)return;e._remove(window,'DOMContentLoaded',e._pageInit);e.domLoaded=true;each(e.inits,function(c){c();});e.inits=[];},_wait:function(){var t;if(window.tinyMCE_GZ&&tinyMCE_GZ.loaded){Event.domLoaded=1;return;}if(isIE&&document.location.protocol!='https:'){document.write('';bi=s.body_id||'tinymce';if(bi.indexOf('=')!=-1){bi=t.getParam('body_id','','hash');bi=bi[t.id]||bi;}bc=s.body_class||'';if(bc.indexOf('=')!=-1){bc=t.getParam('body_class','','hash');bc=bc[t.id]||'';}t.iframeHTML+='';if(tinymce.relaxedDomain){if(isIE||(tinymce.isOpera&&parseFloat(opera.version())>=9.5))u='javascript:(function(){document.open();document.domain="'+document.domain+'";var ed = window.parent.tinyMCE.get("'+t.id+'");document.write(ed.iframeHTML);document.close();ed.setupIframe();})()';else if(tinymce.isOpera)u='javascript:(function(){document.open();document.domain="'+document.domain+'";document.close();ed.setupIframe();})()';}n=DOM.add(o.iframeContainer,'iframe',{id:t.id+"_ifr",src:u||'javascript:""',frameBorder:'0',style:{width:'100%',height:h}});t.contentAreaContainer=o.iframeContainer;DOM.get(o.editorContainer).style.display=t.orgDisplay;DOM.get(t.id).style.display='none';if(tinymce.isOldWebKit){Event.add(n,'load',t.setupIframe,t);n.src=tinymce.baseURL+'/plugins/safari/blank.htm';}else{if(!isIE||!tinymce.relaxedDomain)t.setupIframe();e=n=o=null;}},setupIframe:function(){var t=this,s=t.settings,e=DOM.get(t.id),d=t.getDoc(),h,b;if(!isIE||!tinymce.relaxedDomain){d.open();d.write(t.iframeHTML);d.close();}if(!isIE){try{if(!s.readonly)d.designMode='On';}catch(ex){}}if(isIE){b=t.getBody();DOM.hide(b);if(!s.readonly)b.contentEditable=true;DOM.show(b);}t.dom=new tinymce.DOM.DOMUtils(t.getDoc(),{keep_values:true,url_converter:t.convertURL,url_converter_scope:t,hex_colors:s.force_hex_style_colors,class_filter:s.class_filter,update_styles:1,fix_ie_paragraphs:1});t.serializer=new tinymce.dom.Serializer({entity_encoding:s.entity_encoding,entities:s.entities,valid_elements:s.verify_html===false?'*[*]':s.valid_elements,extended_valid_elements:s.extended_valid_elements,valid_child_elements:s.valid_child_elements,invalid_elements:s.invalid_elements,fix_table_elements:s.fix_table_elements,fix_list_elements:s.fix_list_elements,fix_content_duplication:s.fix_content_duplication,convert_fonts_to_spans:s.convert_fonts_to_spans,font_size_classes:s.font_size_classes,font_size_style_values:s.font_size_style_values,apply_source_formatting:s.apply_source_formatting,remove_linebreaks:s.remove_linebreaks,element_format:s.element_format,dom:t.dom});t.selection=new tinymce.dom.Selection(t.dom,t.getWin(),t.serializer);t.forceBlocks=new tinymce.ForceBlocks(t,{forced_root_block:s.forced_root_block});t.editorCommands=new tinymce.EditorCommands(t);t.serializer.onPreProcess.add(function(se,o){return t.onPreProcess.dispatch(t,o,se);});t.serializer.onPostProcess.add(function(se,o){return t.onPostProcess.dispatch(t,o,se);});t.onPreInit.dispatch(t);if(!s.gecko_spellcheck)t.getBody().spellcheck=0;if(!s.readonly)t._addEvents();t.controlManager.onPostRender.dispatch(t,t.controlManager);t.onPostRender.dispatch(t);if(s.directionality)t.getBody().dir=s.directionality;if(s.nowrap)t.getBody().style.whiteSpace="nowrap";if(s.auto_resize)t.onNodeChange.add(t.resizeToContent,t);if(s.custom_elements){function handleCustom(ed,o){each(explode(s.custom_elements),function(v){var n;if(v.indexOf('~')===0){v=v.substring(1);n='span';}else n='div';o.content=o.content.replace(new RegExp('<('+v+')([^>]*)>','g'),'<'+n+' mce_name="$1"$2>');o.content=o.content.replace(new RegExp('','g'),'');});};t.onBeforeSetContent.add(handleCustom);t.onPostProcess.add(function(ed,o){if(o.set)handleCustom(ed,o)});}if(s.handle_node_change_callback){t.onNodeChange.add(function(ed,cm,n){t.execCallback('handle_node_change_callback',t.id,n,-1,-1,true,t.selection.isCollapsed());});}if(s.save_callback){t.onSaveContent.add(function(ed,o){var h=t.execCallback('save_callback',t.id,o.content,t.getBody());if(h)o.content=h;});}if(s.onchange_callback){t.onChange.add(function(ed,l){t.execCallback('onchange_callback',t,l);});}if(s.convert_newlines_to_brs){t.onBeforeSetContent.add(function(ed,o){if(o.initial)o.content=o.content.replace(/\r?\n/g,'
');});}if(s.fix_nesting&&isIE){t.onBeforeSetContent.add(function(ed,o){o.content=t._fixNesting(o.content);});}if(s.preformatted){t.onPostProcess.add(function(ed,o){o.content=o.content.replace(/^\s*/,'');o.content=o.content.replace(/<\/pre>\s*$/,'');if(o.set)o.content='
'+o.content+'
';});}if(s.verify_css_classes){t.serializer.attribValueFilter=function(n,v){var s,cl;if(n=='class'){if(!t.classesRE){cl=t.dom.getClasses();if(cl.length>0){s='';each(cl,function(o){s+=(s?'|':'')+o['class'];});t.classesRE=new RegExp('('+s+')','gi');}}return!t.classesRE||/(\bmceItem\w+\b|\bmceTemp\w+\b)/g.test(v)||t.classesRE.test(v)?v:'';}return v;};}if(s.convert_fonts_to_spans)t._convertFonts();if(s.inline_styles)t._convertInlineElements();if(s.cleanup_callback){t.onBeforeSetContent.add(function(ed,o){o.content=t.execCallback('cleanup_callback','insert_to_editor',o.content,o);});t.onPreProcess.add(function(ed,o){if(o.set)t.execCallback('cleanup_callback','insert_to_editor_dom',o.node,o);if(o.get)t.execCallback('cleanup_callback','get_from_editor_dom',o.node,o);});t.onPostProcess.add(function(ed,o){if(o.set)o.content=t.execCallback('cleanup_callback','insert_to_editor',o.content,o);if(o.get)o.content=t.execCallback('cleanup_callback','get_from_editor',o.content,o);});}if(s.save_callback){t.onGetContent.add(function(ed,o){if(o.save)o.content=t.execCallback('save_callback',t.id,o.content,t.getBody());});}if(s.handle_event_callback){t.onEvent.add(function(ed,e,o){if(t.execCallback('handle_event_callback',e,ed,o)===false)Event.cancel(e);});}t.onSetContent.add(function(){t.addVisual(t.getBody());});if(s.padd_empty_editor){t.onPostProcess.add(function(ed,o){o.content=o.content.replace(/^(]*>( | |\s|\u00a0|)<\/p>[\r\n]*|
[\r\n]*)$/,'');});}if(isGecko&&!s.readonly){try{d.designMode='Off';d.designMode='On';}catch(ex){}}setTimeout(function(){if(t.removed)return;t.load({initial:true,format:(s.cleanup_on_startup?'html':'raw')});t.startContent=t.getContent({format:'raw'});t.undoManager.add({initial:true});t.initialized=true;t.onInit.dispatch(t);t.execCallback('setupcontent_callback',t.id,t.getBody(),t.getDoc());t.execCallback('init_instance_callback',t);t.focus(true);t.nodeChanged({initial:1});if(s.content_css){tinymce.each(explode(s.content_css),function(u){t.dom.loadCSS(t.documentBaseURI.toAbsolute(u));});}if(s.auto_focus){setTimeout(function(){var ed=EditorManager.get(s.auto_focus);ed.selection.select(ed.getBody(),1);ed.selection.collapse(1);ed.getWin().focus();},100);}},1);e=null;},focus:function(sf){var oed,t=this,ce=t.settings.content_editable;if(!sf){if(!ce&&(!isIE||t.selection.getNode().ownerDocument!=t.getDoc()))t.getWin().focus();}if(EditorManager.activeEditor!=t){if((oed=EditorManager.activeEditor)!=null)oed.onDeactivate.dispatch(oed,t);t.onActivate.dispatch(t,oed);}EditorManager._setActive(t);},execCallback:function(n){var t=this,f=t.settings[n],s;if(!f)return;if(t.callbackLookup&&(s=t.callbackLookup[n])){f=s.func;s=s.scope;}if(is(f,'string')){s=f.replace(/\.\w+$/,'');s=s?tinymce.resolve(s):0;f=tinymce.resolve(f);t.callbackLookup=t.callbackLookup||{};t.callbackLookup[n]={func:f,scope:s};}return f.apply(s||t,Array.prototype.slice.call(arguments,1));},translate:function(s){var c=this.settings.language||'en',i18n=EditorManager.i18n;if(!s)return'';return i18n[c+'.'+s]||s.replace(/{\#([^}]+)\}/g,function(a,b){return i18n[c+'.'+b]||'{#'+b+'}';});},getLang:function(n,dv){return EditorManager.i18n[(this.settings.language||'en')+'.'+n]||(is(dv)?dv:'{#'+n+'}');},getParam:function(n,dv,ty){var tr=tinymce.trim,v=is(this.settings[n])?this.settings[n]:dv,o;if(ty==='hash'){o={};if(is(v,'string')){each(v.indexOf('=')>0?v.split(/[;,](?![^=;,]*(?:[;,]|$))/):v.split(','),function(v){v=v.split('=');if(v.length>1)o[tr(v[0])]=tr(v[1]);else o[tr(v[0])]=tr(v);});}else o=v;return o;}return v;},nodeChanged:function(o){var t=this,s=t.selection,n=s.getNode()||t.getBody();if(t.initialized){t.onNodeChange.dispatch(t,o?o.controlManager||t.controlManager:t.controlManager,isIE&&n.ownerDocument!=t.getDoc()?t.getBody():n,s.isCollapsed(),o);}},addButton:function(n,s){var t=this;t.buttons=t.buttons||{};t.buttons[n]=s;},addCommand:function(n,f,s){this.execCommands[n]={func:f,scope:s||this};},addQueryStateHandler:function(n,f,s){this.queryStateCommands[n]={func:f,scope:s||this};},addQueryValueHandler:function(n,f,s){this.queryValueCommands[n]={func:f,scope:s||this};},addShortcut:function(pa,desc,cmd_func,sc){var t=this,c;if(!t.settings.custom_shortcuts)return false;t.shortcuts=t.shortcuts||{};if(is(cmd_func,'string')){c=cmd_func;cmd_func=function(){t.execCommand(c,false,null);};}if(is(cmd_func,'object')){c=cmd_func;cmd_func=function(){t.execCommand(c[0],c[1],c[2]);};}each(explode(pa),function(pa){var o={func:cmd_func,scope:sc||this,desc:desc,alt:false,ctrl:false,shift:false};each(explode(pa,'+'),function(v){switch(v){case'alt':case'ctrl':case'shift':o[v]=true;break;default:o.charCode=v.charCodeAt(0);o.keyCode=v.toUpperCase().charCodeAt(0);}});t.shortcuts[(o.ctrl?'ctrl':'')+','+(o.alt?'alt':'')+','+(o.shift?'shift':'')+','+o.keyCode]=o;});return true;},execCommand:function(cmd,ui,val,a){var t=this,s=0,o,st;if(!/^(mceAddUndoLevel|mceEndUndoLevel|mceBeginUndoLevel|mceRepaint|SelectAll)$/.test(cmd)&&(!a||!a.skip_focus))t.focus();o={};t.onBeforeExecCommand.dispatch(t,cmd,ui,val,o);if(o.terminate)return false;if(t.execCallback('execcommand_callback',t.id,t.selection.getNode(),cmd,ui,val)){t.onExecCommand.dispatch(t,cmd,ui,val,a);return true;}if(o=t.execCommands[cmd]){st=o.func.call(o.scope,ui,val);if(st!==true){t.onExecCommand.dispatch(t,cmd,ui,val,a);return st;}}each(t.plugins,function(p){if(p.execCommand&&p.execCommand(cmd,ui,val)){t.onExecCommand.dispatch(t,cmd,ui,val,a);s=1;return false;}});if(s)return true;if(t.theme.execCommand&&t.theme.execCommand(cmd,ui,val)){t.onExecCommand.dispatch(t,cmd,ui,val,a);return true;}if(t.editorCommands.execCommand(cmd,ui,val)){t.onExecCommand.dispatch(t,cmd,ui,val,a);return true;}t.getDoc().execCommand(cmd,ui,val);t.onExecCommand.dispatch(t,cmd,ui,val,a);},queryCommandState:function(c){var t=this,o,s;if(t._isHidden())return;if(o=t.queryStateCommands[c]){s=o.func.call(o.scope);if(s!==true)return s;}o=t.editorCommands.queryCommandState(c);if(o!==-1)return o;try{return this.getDoc().queryCommandState(c);}catch(ex){}},queryCommandValue:function(c){var t=this,o,s;if(t._isHidden())return;if(o=t.queryValueCommands[c]){s=o.func.call(o.scope);if(s!==true)return s;}o=t.editorCommands.queryCommandValue(c);if(is(o))return o;try{return this.getDoc().queryCommandValue(c);}catch(ex){}},show:function(){var t=this;DOM.show(t.getContainer());DOM.hide(t.id);t.load();},hide:function(){var t=this,d=t.getDoc();if(isIE&&d)d.execCommand('SelectAll');t.save();DOM.hide(t.getContainer());DOM.setStyle(t.id,'display',t.orgDisplay);},isHidden:function(){return!DOM.isHidden(this.id);},setProgressState:function(b,ti,o){this.onSetProgressState.dispatch(this,b,ti,o);return b;},resizeToContent:function(){var t=this;DOM.setStyle(t.id+"_ifr",'height',t.getBody().scrollHeight);},load:function(o){var t=this,e=t.getElement(),h;if(e){o=o||{};o.load=true;h=t.setContent(is(e.value)?e.value:e.innerHTML,o);o.element=e;if(!o.no_events)t.onLoadContent.dispatch(t,o);o.element=e=null;return h;}},save:function(o){var t=this,e=t.getElement(),h,f;if(!e||!t.initialized)return;o=o||{};o.save=true;if(!o.no_events){t.undoManager.typing=0;t.undoManager.add();}o.element=e;h=o.content=t.getContent(o);if(!o.no_events)t.onSaveContent.dispatch(t,o);h=o.content;if(!/TEXTAREA|INPUT/i.test(e.nodeName)){e.innerHTML=h;if(f=DOM.getParent(t.id,'form')){each(f.elements,function(e){if(e.name==t.id){e.value=h;return false;}});}}else e.value=h;o.element=e=null;return h;},setContent:function(h,o){var t=this;o=o||{};o.format=o.format||'html';o.set=true;o.content=h;if(!o.no_events)t.onBeforeSetContent.dispatch(t,o);if(!tinymce.isIE&&(h.length===0||/^\s+$/.test(h))){o.content=t.dom.setHTML(t.getBody(),'
');o.format='raw';}o.content=t.dom.setHTML(t.getBody(),tinymce.trim(o.content));if(o.format!='raw'&&t.settings.cleanup){o.getInner=true;o.content=t.dom.setHTML(t.getBody(),t.serializer.serialize(t.getBody(),o));}if(!o.no_events)t.onSetContent.dispatch(t,o);return o.content;},getContent:function(o){var t=this,h;o=o||{};o.format=o.format||'html';o.get=true;if(!o.no_events)t.onBeforeGetContent.dispatch(t,o);if(o.format!='raw'&&t.settings.cleanup){o.getInner=true;h=t.serializer.serialize(t.getBody(),o);}else h=t.getBody().innerHTML;h=h.replace(/^\s*|\s*$/g,'');o.content=h;if(!o.no_events)t.onGetContent.dispatch(t,o);return o.content;},isDirty:function(){var t=this;return tinymce.trim(t.startContent)!=tinymce.trim(t.getContent({format:'raw',no_events:1}))&&!t.isNotDirty;},getContainer:function(){var t=this;if(!t.container)t.container=DOM.get(t.editorContainer||t.id+'_parent');return t.container;},getContentAreaContainer:function(){return this.contentAreaContainer;},getElement:function(){return DOM.get(this.settings.content_element||this.id);},getWin:function(){var t=this,e;if(!t.contentWindow){e=DOM.get(t.id+"_ifr");if(e)t.contentWindow=e.contentWindow;}return t.contentWindow;},getDoc:function(){var t=this,w;if(!t.contentDocument){w=t.getWin();if(w)t.contentDocument=w.document;}return t.contentDocument;},getBody:function(){return this.bodyElement||this.getDoc().body;},convertURL:function(u,n,e){var t=this,s=t.settings;if(s.urlconverter_callback)return t.execCallback('urlconverter_callback',u,e,true,n);if(!s.convert_urls||(e&&e.nodeName=='LINK')||u.indexOf('file:')===0)return u;if(s.relative_urls)return t.documentBaseURI.toRelative(u);u=t.documentBaseURI.toAbsolute(u,s.remove_script_host);return u;},addVisual:function(e){var t=this,s=t.settings;e=e||t.getBody();if(!is(t.hasVisual))t.hasVisual=s.visual;each(t.dom.select('table,a',e),function(e){var v;switch(e.nodeName){case'TABLE':v=t.dom.getAttrib(e,'border');if(!v||v=='0'){if(t.hasVisual)t.dom.addClass(e,s.visual_table_class);else t.dom.removeClass(e,s.visual_table_class);}return;case'A':v=t.dom.getAttrib(e,'name');if(v){if(t.hasVisual)t.dom.addClass(e,'mceItemAnchor');else t.dom.removeClass(e,'mceItemAnchor');}return;}});t.onVisualAid.dispatch(t,e,t.hasVisual);},remove:function(){var t=this,e=t.getContainer();t.removed=1;t.hide();t.execCallback('remove_instance_callback',t);t.onRemove.dispatch(t);t.onExecCommand.listeners=[];EditorManager.remove(t);DOM.remove(e);},destroy:function(s){var t=this;if(t.destroyed)return;if(!s){tinymce.removeUnload(t.destroy);tinyMCE.onBeforeUnload.remove(t._beforeUnload);if(t.theme.destroy)t.theme.destroy();t.controlManager.destroy();t.selection.destroy();t.dom.destroy();if(!t.settings.content_editable){Event.clear(t.getWin());Event.clear(t.getDoc());}Event.clear(t.getBody());Event.clear(t.formElement);}if(t.formElement){t.formElement.submit=t.formElement._mceOldSubmit;t.formElement._mceOldSubmit=null;}t.contentAreaContainer=t.formElement=t.container=t.settings.content_element=t.bodyElement=t.contentDocument=t.contentWindow=null;if(t.selection)t.selection=t.selection.win=t.selection.dom=t.selection.dom.doc=null;t.destroyed=1;},_addEvents:function(){var t=this,i,s=t.settings,lo={mouseup:'onMouseUp',mousedown:'onMouseDown',click:'onClick',keyup:'onKeyUp',keydown:'onKeyDown',keypress:'onKeyPress',submit:'onSubmit',reset:'onReset',contextmenu:'onContextMenu',dblclick:'onDblClick',paste:'onPaste'};function eventHandler(e,o){var ty=e.type;if(t.removed)return;if(t.onEvent.dispatch(t,e,o)!==false){t[lo[e.fakeType||e.type]].dispatch(t,e,o);}};each(lo,function(v,k){switch(k){case'contextmenu':if(tinymce.isOpera){Event.add(t.getBody(),'mousedown',function(e){if(e.ctrlKey){e.fakeType='contextmenu';eventHandler(e);}});}else Event.add(t.getBody(),k,eventHandler);break;case'paste':Event.add(t.getBody(),k,function(e){var tx,h,el,r;if(e.clipboardData)tx=e.clipboardData.getData('text/plain');else if(tinymce.isIE)tx=t.getWin().clipboardData.getData('Text');eventHandler(e,{text:tx,html:h});});break;case'submit':case'reset':Event.add(t.getElement().form||DOM.getParent(t.id,'form'),k,eventHandler);break;default:Event.add(s.content_editable?t.getBody():t.getDoc(),k,eventHandler);}});Event.add(s.content_editable?t.getBody():(isGecko?t.getDoc():t.getWin()),'focus',function(e){t.focus(true);});if(tinymce.isGecko){Event.add(t.getDoc(),'DOMNodeInserted',function(e){var v;e=e.target;if(e.nodeType===1&&e.nodeName==='IMG'&&(v=e.getAttribute('mce_src')))e.src=t.documentBaseURI.toAbsolute(v);});}if(isGecko){function setOpts(){var t=this,d=t.getDoc(),s=t.settings;if(isGecko&&!s.readonly){if(t._isHidden()){try{if(!s.content_editable)d.designMode='On';}catch(ex){}}try{d.execCommand("styleWithCSS",0,false);}catch(ex){if(!t._isHidden())try{d.execCommand("useCSS",0,true);}catch(ex){}}if(!s.table_inline_editing)try{d.execCommand('enableInlineTableEditing',false,false);}catch(ex){}if(!s.object_resizing)try{d.execCommand('enableObjectResizing',false,false);}catch(ex){}}};t.onBeforeExecCommand.add(setOpts);t.onMouseDown.add(setOpts);}t.onMouseUp.add(t.nodeChanged);t.onClick.add(t.nodeChanged);t.onKeyUp.add(function(ed,e){var c=e.keyCode;if((c>=33&&c<=36)||(c>=37&&c<=40)||c==13||c==45||c==46||c==8||(tinymce.isMac&&(c==91||c==93))||e.ctrlKey)t.nodeChanged();});t.onReset.add(function(){t.setContent(t.startContent,{format:'raw'});});if(t.getParam('tab_focus')){function tabCancel(ed,e){if(e.keyCode===9)return Event.cancel(e);};function tabHandler(ed,e){var x,i,f,el,v;function find(d){f=DOM.getParent(ed.id,'form');el=f.elements;if(f){each(el,function(e,i){if(e.id==ed.id){x=i;return false;}});if(d>0){for(i=x+1;i=0;i--){if(el[i].type!='hidden')return el[i];}}}return null;};if(e.keyCode===9){v=explode(ed.getParam('tab_focus'));if(v.length==1){v[1]=v[0];v[0]=':prev';}if(e.shiftKey){if(v[0]==':prev')el=find(-1);else el=DOM.get(v[0]);}else{if(v[1]==':next')el=find(1);else el=DOM.get(v[1]);}if(el){if(ed=EditorManager.get(el.id||el.name))ed.focus();else window.setTimeout(function(){window.focus();el.focus();},10);return Event.cancel(e);}}};t.onKeyUp.add(tabCancel);if(isGecko){t.onKeyPress.add(tabHandler);t.onKeyDown.add(tabCancel);}else t.onKeyDown.add(tabHandler);}if(s.custom_shortcuts){if(s.custom_undo_redo_keyboard_shortcuts){t.addShortcut('ctrl+z',t.getLang('undo_desc'),'Undo');t.addShortcut('ctrl+y',t.getLang('redo_desc'),'Redo');}if(isGecko){t.addShortcut('ctrl+b',t.getLang('bold_desc'),'Bold');t.addShortcut('ctrl+i',t.getLang('italic_desc'),'Italic');t.addShortcut('ctrl+u',t.getLang('underline_desc'),'Underline');}for(i=1;i<=6;i++)t.addShortcut('ctrl+'+i,'',['FormatBlock',false,'']);t.addShortcut('ctrl+7','',['FormatBlock',false,'

']);t.addShortcut('ctrl+8','',['FormatBlock',false,'

']);t.addShortcut('ctrl+9','',['FormatBlock',false,'
']);function find(e){var v=null;if(!e.altKey&&!e.ctrlKey&&!e.metaKey)return v;each(t.shortcuts,function(o){if(tinymce.isMac&&o.ctrl!=e.metaKey)return;else if(!tinymce.isMac&&o.ctrl!=e.ctrlKey)return;if(o.alt!=e.altKey)return;if(o.shift!=e.shiftKey)return;if(e.keyCode==o.keyCode||(e.charCode&&e.charCode==o.charCode)){v=o;return false;}});return v;};t.onKeyUp.add(function(ed,e){var o=find(e);if(o)return Event.cancel(e);});t.onKeyPress.add(function(ed,e){var o=find(e);if(o)return Event.cancel(e);});t.onKeyDown.add(function(ed,e){var o=find(e);if(o){o.func.call(o.scope);return Event.cancel(e);}});}if(tinymce.isIE){Event.add(t.getDoc(),'controlselect',function(e){var re=t.resizeInfo,cb;e=e.target;if(e.nodeName!=='IMG')return;if(re)Event.remove(re.node,re.ev,re.cb);if(!t.dom.hasClass(e,'mceItemNoResize')){ev='resizeend';cb=Event.add(e,ev,function(e){var v;e=e.target;if(v=t.dom.getStyle(e,'width')){t.dom.setAttrib(e,'width',v.replace(/[^0-9%]+/g,''));t.dom.setStyle(e,'width','');}if(v=t.dom.getStyle(e,'height')){t.dom.setAttrib(e,'height',v.replace(/[^0-9%]+/g,''));t.dom.setStyle(e,'height','');}});}else{ev='resizestart';cb=Event.add(e,'resizestart',Event.cancel,Event);}re=t.resizeInfo={node:e,ev:ev,cb:cb};});t.onKeyDown.add(function(ed,e){switch(e.keyCode){case 8:if(t.selection.getRng().item){t.selection.getRng().item(0).removeNode();return Event.cancel(e);}}});}if(tinymce.isOpera){t.onClick.add(function(ed,e){Event.prevent(e);});}if(s.custom_undo_redo){function addUndo(){t.undoManager.typing=0;t.undoManager.add();};if(tinymce.isIE){Event.add(t.getWin(),'blur',function(e){var n;if(t.selection){n=t.selection.getNode();if(!t.removed&&n.ownerDocument&&n.ownerDocument!=t.getDoc())addUndo();}});}else{Event.add(t.getDoc(),'blur',function(){if(t.selection&&!t.removed)addUndo();});}t.onMouseDown.add(addUndo);t.onKeyUp.add(function(ed,e){if((e.keyCode>=33&&e.keyCode<=36)||(e.keyCode>=37&&e.keyCode<=40)||e.keyCode==13||e.keyCode==45||e.ctrlKey){t.undoManager.typing=0;t.undoManager.add();}});t.onKeyDown.add(function(ed,e){if((e.keyCode>=33&&e.keyCode<=36)||(e.keyCode>=37&&e.keyCode<=40)||e.keyCode==13||e.keyCode==45){if(t.undoManager.typing){t.undoManager.add();t.undoManager.typing=0;}return;}if(!t.undoManager.typing){t.undoManager.add();t.undoManager.typing=1;}});}},_convertInlineElements:function(){var t=this,s=t.settings,dom=t.dom,v,e,na,st,sp;function convert(ed,o){if(!s.inline_styles)return;if(o.get){each(t.dom.select('table,u,strike',o.node),function(n){switch(n.nodeName){case'TABLE':if(v=dom.getAttrib(n,'height')){dom.setStyle(n,'height',v);dom.setAttrib(n,'height','');}break;case'U':case'STRIKE':n.style.textDecoration=n.nodeName=='U'?'underline':'line-through';dom.setAttrib(n,'mce_style','');dom.setAttrib(n,'mce_name','span');break;}});}else if(o.set){each(t.dom.select('table,span',o.node).reverse(),function(n){if(n.nodeName=='TABLE'){if(v=dom.getStyle(n,'height'))dom.setAttrib(n,'height',v.replace(/[^0-9%]+/g,''));}else{if(n.style.textDecoration=='underline')na='u';else if(n.style.textDecoration=='line-through')na='strike';else na='';if(na){n.style.textDecoration='';dom.setAttrib(n,'mce_style','');e=dom.create(na,{style:dom.getAttrib(n,'style')});dom.replace(e,n,1);}}});}};t.onPreProcess.add(convert);if(!s.cleanup_on_startup){t.onSetContent.add(function(ed,o){if(o.initial)convert(t,{node:t.getBody(),set:1});});}},_convertFonts:function(){var t=this,s=t.settings,dom=t.dom,fz,fzn,sl,cl;if(!s.inline_styles)return;fz=[8,10,12,14,18,24,36];fzn=['xx-small','x-small','small','medium','large','x-large','xx-large'];if(sl=s.font_size_style_values)sl=explode(sl);if(cl=s.font_size_classes)cl=explode(cl);function process(no){var n,sp,nl,x;if(!s.inline_styles)return;nl=t.dom.select('font',no);for(x=nl.length-1;x>=0;x--){n=nl[x];sp=dom.create('span',{style:dom.getAttrib(n,'style'),'class':dom.getAttrib(n,'class')});dom.setStyles(sp,{fontFamily:dom.getAttrib(n,'face'),color:dom.getAttrib(n,'color'),backgroundColor:n.style.backgroundColor});if(n.size){if(sl)dom.setStyle(sp,'fontSize',sl[parseInt(n.size)-1]);else dom.setAttrib(sp,'class',cl[parseInt(n.size)-1]);}dom.setAttrib(sp,'mce_style','');dom.replace(sp,n,1);}};t.onPreProcess.add(function(ed,o){if(o.get)process(o.node);});t.onSetContent.add(function(ed,o){if(o.initial)process(o.node);});},_isHidden:function(){var s;if(!isGecko)return 0;s=this.selection.getSel();return(!s||!s.rangeCount||s.rangeCount==0);},_fixNesting:function(s){var d=[],i;s=s.replace(/<(\/)?([^\s>]+)[^>]*?>/g,function(a,b,c){var e;if(b==='/'){if(!d.length)return'';if(c!==d[d.length-1].tag){for(i=d.length-1;i>=0;i--){if(d[i].tag===c){d[i].close=1;break;}}return'';}else{d.pop();if(d.length&&d[d.length-1].close){a=a+'';d.pop();}}}else{if(/^(br|hr|input|meta|img|link|param)$/i.test(c))return a;if(/\/>$/.test(a))return a;d.push({tag:c});}return a;});for(i=d.length-1;i>=0;i--)s+='';return s;}});})();(function(){var each=tinymce.each,isIE=tinymce.isIE,isGecko=tinymce.isGecko,isOpera=tinymce.isOpera,isWebKit=tinymce.isWebKit;function isBlock(n){return/^(H[1-6]|HR|P|DIV|ADDRESS|PRE|FORM|TABLE|OL|UL|TD|CAPTION|BLOCKQUOTE|CENTER|DL|DT|DD|DIR|FIELDSET|NOSCRIPT|NOFRAMES|MENU|ISINDEX|SAMP)$/.test(n.nodeName);};tinymce.create('tinymce.EditorCommands',{EditorCommands:function(ed){this.editor=ed;},execCommand:function(cmd,ui,val){var t=this,ed=t.editor,f;switch(cmd){case'Cut':case'Copy':case'Paste':try{ed.getDoc().execCommand(cmd,ui,val);}catch(ex){if(isGecko){ed.windowManager.confirm(ed.getLang('clipboard_msg'),function(s){if(s)window.open('http://www.mozilla.org/editor/midasdemo/securityprefs.html','mceExternal');});}else ed.windowManager.alert(ed.getLang('clipboard_no_support'));}return true;case'mceResetDesignMode':case'mceBeginUndoLevel':return true;case'unlink':t.UnLink();return true;case'JustifyLeft':case'JustifyCenter':case'JustifyRight':case'JustifyFull':t.mceJustify(cmd,cmd.substring(7).toLowerCase());return true;case'mceEndUndoLevel':case'mceAddUndoLevel':ed.undoManager.add();return true;default:f=this[cmd];if(f){f.call(this,ui,val);return true;}}return false;},Indent:function(){var ed=this.editor,d=ed.dom,s=ed.selection,e,iv,iu;iv=ed.settings.indentation;iu=/[a-z%]+$/i.exec(iv);iv=parseInt(iv);if(ed.settings.inline_styles&&(!this.queryStateInsertUnorderedList()&&!this.queryStateInsertOrderedList())){each(this._getSelectedBlocks(),function(e){d.setStyle(e,'paddingLeft',(parseInt(e.style.paddingLeft||0)+iv)+iu);});return;}ed.getDoc().execCommand('Indent',false,null);if(isIE){d.getParent(s.getNode(),function(n){if(n.nodeName=='BLOCKQUOTE'){n.dir=n.style.cssText='';}});}},Outdent:function(){var ed=this.editor,d=ed.dom,s=ed.selection,e,v,iv,iu;iv=ed.settings.indentation;iu=/[a-z%]+$/i.exec(iv);iv=parseInt(iv);if(ed.settings.inline_styles&&(!this.queryStateInsertUnorderedList()&&!this.queryStateInsertOrderedList())){each(this._getSelectedBlocks(),function(e){v=Math.max(0,parseInt(e.style.paddingLeft||0)-iv);d.setStyle(e,'paddingLeft',v?v+iu:'');});return;}ed.getDoc().execCommand('Outdent',false,null);},mceSetAttribute:function(u,v){var ed=this.editor,d=ed.dom,e;if(e=d.getParent(ed.selection.getNode(),d.isBlock))d.setAttrib(e,v.name,v.value);},mceSetContent:function(u,v){this.editor.setContent(v);},mceToggleVisualAid:function(){var ed=this.editor;ed.hasVisual=!ed.hasVisual;ed.addVisual();},mceReplaceContent:function(u,v){var s=this.editor.selection;s.setContent(v.replace(/\{\$selection\}/g,s.getContent({format:'text'})));},mceInsertLink:function(u,v){var ed=this.editor,s=ed.selection,e=ed.dom.getParent(s.getNode(),'A');if(tinymce.is(v,'string'))v={href:v};function set(e){each(v,function(v,k){ed.dom.setAttrib(e,k,v);});};if(!e){ed.execCommand('CreateLink',false,'javascript:mctmp(0);');each(ed.dom.select('a'),function(e){if(e.href=='javascript:mctmp(0);')set(e);});}else{if(v.href)set(e);else ed.dom.remove(e,1);}},UnLink:function(){var ed=this.editor,s=ed.selection;if(s.isCollapsed())s.select(s.getNode());ed.getDoc().execCommand('unlink',false,null);s.collapse(0);},FontName:function(u,v){var t=this,ed=t.editor,s=ed.selection,e;if(!v){if(s.isCollapsed())s.select(s.getNode());t.RemoveFormat();}else{if(ed.settings.convert_fonts_to_spans)t._applyInlineStyle('span',{style:{fontFamily:v}});else ed.getDoc().execCommand('FontName',false,v);}},FontSize:function(u,v){var ed=this.editor,s=ed.settings,fc,fs;if(s.convert_fonts_to_spans&&v>=1&&v<=7){fs=tinymce.explode(s.font_size_style_values);fc=tinymce.explode(s.font_size_classes);if(fc)v=fc[v-1]||v;else v=fs[v-1]||v;}if(v>=1&&v<=7)ed.getDoc().execCommand('FontSize',false,v);else this._applyInlineStyle('span',{style:{fontSize:v}});},queryCommandValue:function(c){var f=this['queryValue'+c];if(f)return f.call(this,c);return false;},queryCommandState:function(cmd){var f;switch(cmd){case'JustifyLeft':case'JustifyCenter':case'JustifyRight':case'JustifyFull':return this.queryStateJustify(cmd,cmd.substring(7).toLowerCase());default:if(f=this['queryState'+cmd])return f.call(this,cmd);}return-1;},_queryState:function(c){try{return this.editor.getDoc().queryCommandState(c);}catch(ex){}},_queryVal:function(c){try{return this.editor.getDoc().queryCommandValue(c);}catch(ex){}},queryValueFontSize:function(){var ed=this.editor,v=0,p;if(p=ed.dom.getParent(ed.selection.getNode(),'SPAN'))v=p.style.fontSize;if(!v&&(isOpera||isWebKit)){if(p=ed.dom.getParent(ed.selection.getNode(),'FONT'))v=p.size;return v;}return v||this._queryVal('FontSize');},queryValueFontName:function(){var ed=this.editor,v=0,p;if(p=ed.dom.getParent(ed.selection.getNode(),'FONT'))v=p.face;if(p=ed.dom.getParent(ed.selection.getNode(),'SPAN'))v=p.style.fontFamily.replace(/, /g,',').replace(/[\'\"]/g,'').toLowerCase();if(!v)v=this._queryVal('FontName');return v;},mceJustify:function(c,v){var ed=this.editor,se=ed.selection,n=se.getNode(),nn=n.nodeName,bl,nb,dom=ed.dom,rm;if(ed.settings.inline_styles&&this.queryStateJustify(c,v))rm=1;bl=dom.getParent(n,ed.dom.isBlock);if(nn=='IMG'){if(v=='full')return;if(rm){if(v=='center')dom.setStyle(bl||n.parentNode,'textAlign','');dom.setStyle(n,'float','');this.mceRepaint();return;}if(v=='center'){if(bl&&/^(TD|TH)$/.test(bl.nodeName))bl=0;if(!bl||bl.childNodes.length>1){nb=dom.create('p');nb.appendChild(n.cloneNode(false));if(bl)dom.insertAfter(nb,bl);else dom.insertAfter(nb,n);dom.remove(n);n=nb.firstChild;bl=nb;}dom.setStyle(bl,'textAlign',v);dom.setStyle(n,'float','');}else{dom.setStyle(n,'float',v);dom.setStyle(bl||n.parentNode,'textAlign','');}this.mceRepaint();return;}if(ed.settings.inline_styles&&ed.settings.forced_root_block){if(rm)v='';each(this._getSelectedBlocks(dom.getParent(se.getStart(),dom.isBlock),dom.getParent(se.getEnd(),dom.isBlock)),function(e){dom.setAttrib(e,'align','');dom.setStyle(e,'textAlign',v=='full'?'justify':v);});return;}else if(!rm)ed.getDoc().execCommand(c,false,null);if(ed.settings.inline_styles){if(rm){dom.getParent(ed.selection.getNode(),function(n){if(n.style&&n.style.textAlign)dom.setStyle(n,'textAlign','');});return;}each(dom.select('*'),function(n){var v=n.align;if(v){if(v=='full')v='justify';dom.setStyle(n,'textAlign',v);dom.setAttrib(n,'align','');}});}},mceSetCSSClass:function(u,v){this.mceSetStyleInfo(0,{command:'setattrib',name:'class',value:v});},getSelectedElement:function(){var t=this,ed=t.editor,dom=ed.dom,se=ed.selection,r=se.getRng(),r1,r2,sc,ec,so,eo,e,sp,ep,re;if(se.isCollapsed()||r.item)return se.getNode();re=ed.settings.merge_styles_invalid_parents;if(tinymce.is(re,'string'))re=new RegExp(re,'i');if(isIE){r1=r.duplicate();r1.collapse(true);sc=r1.parentElement();r2=r.duplicate();r2.collapse(false);ec=r2.parentElement();if(sc!=ec){r1.move('character',1);sc=r1.parentElement();}if(sc==ec){r1=r.duplicate();r1.moveToElementText(sc);if(r1.compareEndPoints('StartToStart',r)==0&&r1.compareEndPoints('EndToEnd',r)==0)return re&&re.test(sc.nodeName)?null:sc;}}else{function getParent(n){return dom.getParent(n,function(n){return n.nodeType==1;});};sc=r.startContainer;ec=r.endContainer;so=r.startOffset;eo=r.endOffset;if(!r.collapsed){if(sc==ec){if(so-eo<2){if(sc.hasChildNodes()){sp=sc.childNodes[so];return re&&re.test(sp.nodeName)?null:sp;}}}}if(sc.nodeType!=3||ec.nodeType!=3)return null;if(so==0){sp=getParent(sc);if(sp&&sp.firstChild!=sc)sp=null;}if(so==sc.nodeValue.length){e=sc.nextSibling;if(e&&e.nodeType==1)sp=sc.nextSibling;}if(eo==0){e=ec.previousSibling;if(e&&e.nodeType==1)ep=e;}if(eo==ec.nodeValue.length){ep=getParent(ec);if(ep&&ep.lastChild!=ec)ep=null;}if(sp==ep)return re&&sp&&re.test(sp.nodeName)?null:sp;}return null;},InsertHorizontalRule:function(){if(isGecko||isIE)this.editor.selection.setContent('
');else this.editor.getDoc().execCommand('InsertHorizontalRule',false,'');},RemoveFormat:function(){var t=this,ed=t.editor,s=ed.selection,b;if(isWebKit)s.setContent(s.getContent({format:'raw'}).replace(/(<(span|b|i|strong|em|strike) [^>]+>|<(span|b|i|strong|em|strike)>|<\/(span|b|i|strong|em|strike)>|)/g,''),{format:'raw'});else ed.getDoc().execCommand('RemoveFormat',false,null);t.mceSetStyleInfo(0,{command:'removeformat'});ed.addVisual();},mceSetStyleInfo:function(u,v){var t=this,ed=t.editor,d=ed.getDoc(),dom=ed.dom,e,b,s=ed.selection,nn=v.wrapper||'span',b=s.getBookmark(),re;function set(n,e){if(n.nodeType==1){switch(v.command){case'setattrib':return dom.setAttrib(n,v.name,v.value);case'setstyle':return dom.setStyle(n,v.name,v.value);case'removeformat':return dom.setAttrib(n,'class','');}}};re=ed.settings.merge_styles_invalid_parents;if(tinymce.is(re,'string'))re=new RegExp(re,'i');if((e=t.getSelectedElement())&&!ed.settings.force_span_wrappers)set(e,1);else{d.execCommand('FontName',false,'__');each(isWebKit?dom.select('span'):dom.select('font'),function(n){var sp,e;if(dom.getAttrib(n,'face')=='__'||n.style.fontFamily==='__'){sp=dom.create(nn,{mce_new:'1'});set(sp);each(n.childNodes,function(n){sp.appendChild(n.cloneNode(true));});dom.replace(sp,n);}});}each(dom.select(nn).reverse(),function(n){var p=n.parentNode;if(!dom.getAttrib(n,'mce_new')){p=dom.getParent(n,function(n){return n.nodeType==1&&dom.getAttrib(n,'mce_new');});if(p)dom.remove(n,1);}});each(dom.select(nn).reverse(),function(n){var p=n.parentNode;if(!p||!dom.getAttrib(n,'mce_new'))return;if(ed.settings.force_span_wrappers&&p.nodeName!='SPAN')return;if(p.nodeName==nn.toUpperCase()&&p.childNodes.length==1)return dom.remove(p,1);if(n.nodeType==1&&(!re||!re.test(p.nodeName))&&p.childNodes.length==1){set(p);dom.setAttrib(n,'class','');}});each(dom.select(nn).reverse(),function(n){if(dom.getAttrib(n,'mce_new')||(dom.getAttribs(n).length<=1&&n.className==='')){if(!dom.getAttrib(n,'class')&&!dom.getAttrib(n,'style'))return dom.remove(n,1);dom.setAttrib(n,'mce_new','');}});s.moveToBookmark(b);},queryStateJustify:function(c,v){var ed=this.editor,n=ed.selection.getNode(),dom=ed.dom;if(n&&n.nodeName=='IMG'){if(dom.getStyle(n,'float')==v)return 1;return n.parentNode.style.textAlign==v;}n=dom.getParent(ed.selection.getStart(),function(n){return n.nodeType==1&&n.style.textAlign;});if(v=='full')v='justify';if(ed.settings.inline_styles)return(n&&n.style.textAlign==v);return this._queryState(c);},ForeColor:function(ui,v){var ed=this.editor;if(ed.settings.convert_fonts_to_spans){this._applyInlineStyle('span',{style:{color:v}});return;}else ed.getDoc().execCommand('ForeColor',false,v);},HiliteColor:function(ui,val){var t=this,ed=t.editor,d=ed.getDoc();if(ed.settings.convert_fonts_to_spans){this._applyInlineStyle('span',{style:{backgroundColor:val}});return;}function set(s){if(!isGecko)return;try{d.execCommand("styleWithCSS",0,s);}catch(ex){d.execCommand("useCSS",0,!s);}};if(isGecko||isOpera){set(true);d.execCommand('hilitecolor',false,val);set(false);}else d.execCommand('BackColor',false,val);},Undo:function(){var ed=this.editor;if(ed.settings.custom_undo_redo){ed.undoManager.undo();ed.nodeChanged();}else ed.getDoc().execCommand('Undo',false,null);},Redo:function(){var ed=this.editor;if(ed.settings.custom_undo_redo){ed.undoManager.redo();ed.nodeChanged();}else ed.getDoc().execCommand('Redo',false,null);},FormatBlock:function(ui,val){var t=this,ed=t.editor,s=ed.selection,dom=ed.dom,bl,nb,b;function isBlock(n){return/^(P|DIV|H[1-6]|ADDRESS|BLOCKQUOTE|PRE)$/.test(n.nodeName);};bl=dom.getParent(s.getNode(),function(n){return isBlock(n);});if(bl){if((isIE&&isBlock(bl.parentNode))||bl.nodeName=='DIV'){nb=ed.dom.create(val);each(dom.getAttribs(bl),function(v){dom.setAttrib(nb,v.nodeName,dom.getAttrib(bl,v.nodeName));});b=s.getBookmark();dom.replace(nb,bl,1);s.moveToBookmark(b);ed.nodeChanged();return;}}val=ed.settings.forced_root_block?(val||'

'):val;if(val.indexOf('<')==-1)val='<'+val+'>';if(tinymce.isGecko)val=val.replace(/<(div|blockquote|code|dt|dd|dl|samp)>/gi,'$1');ed.getDoc().execCommand('FormatBlock',false,val);},mceCleanup:function(){var ed=this.editor,s=ed.selection,b=s.getBookmark();ed.setContent(ed.getContent());s.moveToBookmark(b);},mceRemoveNode:function(ui,val){var ed=this.editor,s=ed.selection,b,n=val||s.getNode();if(n==ed.getBody())return;b=s.getBookmark();ed.dom.remove(n,1);s.moveToBookmark(b);ed.nodeChanged();},mceSelectNodeDepth:function(ui,val){var ed=this.editor,s=ed.selection,c=0;ed.dom.getParent(s.getNode(),function(n){if(n.nodeType==1&&c++==val){s.select(n);ed.nodeChanged();return false;}},ed.getBody());},mceSelectNode:function(u,v){this.editor.selection.select(v);},mceInsertContent:function(ui,val){this.editor.selection.setContent(val);},mceInsertRawHTML:function(ui,val){var ed=this.editor;ed.selection.setContent('tiny_mce_marker');ed.setContent(ed.getContent().replace(/tiny_mce_marker/g,val));},mceRepaint:function(){var s,b,e=this.editor;if(tinymce.isGecko){try{s=e.selection;b=s.getBookmark(true);if(s.getSel())s.getSel().selectAllChildren(e.getBody());s.collapse(true);s.moveToBookmark(b);}catch(ex){}}},queryStateUnderline:function(){var ed=this.editor,n=ed.selection.getNode();if(n&&n.nodeName=='A')return false;return this._queryState('Underline');},queryStateOutdent:function(){var ed=this.editor,n;if(ed.settings.inline_styles){if((n=ed.dom.getParent(ed.selection.getStart(),ed.dom.isBlock))&&parseInt(n.style.paddingLeft)>0)return true;if((n=ed.dom.getParent(ed.selection.getEnd(),ed.dom.isBlock))&&parseInt(n.style.paddingLeft)>0)return true;}return this.queryStateInsertUnorderedList()||this.queryStateInsertOrderedList()||(!ed.settings.inline_styles&&!!ed.dom.getParent(ed.selection.getNode(),'BLOCKQUOTE'));},queryStateInsertUnorderedList:function(){return this.editor.dom.getParent(this.editor.selection.getNode(),'UL');},queryStateInsertOrderedList:function(){return this.editor.dom.getParent(this.editor.selection.getNode(),'OL');},queryStatemceBlockQuote:function(){return!!this.editor.dom.getParent(this.editor.selection.getStart(),function(n){return n.nodeName==='BLOCKQUOTE';});},mceBlockQuote:function(){var t=this,ed=t.editor,s=ed.selection,dom=ed.dom,sb,eb,n,bm,bq,r,bq2,i,nl;function getBQ(e){return dom.getParent(e,function(n){return n.nodeName==='BLOCKQUOTE';});};sb=dom.getParent(s.getStart(),isBlock);eb=dom.getParent(s.getEnd(),isBlock);if(bq=getBQ(sb)){if(sb!=eb||sb.childNodes.length>1||(sb.childNodes.length==1&&sb.firstChild.nodeName!='BR'))bm=s.getBookmark();if(getBQ(eb)){bq2=bq.cloneNode(false);while(n=eb.nextSibling)bq2.appendChild(n.parentNode.removeChild(n));}if(bq2)dom.insertAfter(bq2,bq);nl=t._getSelectedBlocks(sb,eb);for(i=nl.length-1;i>=0;i--){dom.insertAfter(nl[i],bq);}if(/^\s*$/.test(bq.innerHTML))dom.remove(bq,1);if(bq2&&/^\s*$/.test(bq2.innerHTML))dom.remove(bq2,1);if(!bm){if(!isIE){r=ed.getDoc().createRange();r.setStart(sb,0);r.setEnd(sb,0);s.setRng(r);}else{s.select(sb);s.collapse(0);if(dom.getParent(s.getStart(),isBlock)!=sb){r=s.getRng();r.move('character',-1);r.select();}}}else t.editor.selection.moveToBookmark(bm);return;}if(isIE&&!sb&&!eb){t.editor.getDoc().execCommand('Indent');n=getBQ(s.getNode());n.style.margin=n.dir='';return;}if(!sb||!eb)return;if(sb!=eb||sb.childNodes.length>1||(sb.childNodes.length==1&&sb.firstChild.nodeName!='BR'))bm=s.getBookmark();each(t._getSelectedBlocks(getBQ(s.getStart()),getBQ(s.getEnd())),function(e){if(e.nodeName=='BLOCKQUOTE'&&!bq){bq=e;return;}if(!bq){bq=dom.create('blockquote');e.parentNode.insertBefore(bq,e);}if(e.nodeName=='BLOCKQUOTE'&&bq){n=e.firstChild;while(n){bq.appendChild(n.cloneNode(true));n=n.nextSibling;}dom.remove(e);return;}bq.appendChild(dom.remove(e));});if(!bm){if(!isIE){r=ed.getDoc().createRange();r.setStart(sb,0);r.setEnd(sb,0);s.setRng(r);}else{s.select(sb);s.collapse(1);}}else s.moveToBookmark(bm);},_applyInlineStyle:function(na,at,op){var t=this,ed=t.editor,dom=ed.dom,bm,lo={},kh;na=na.toUpperCase();if(op&&op.check_classes&&at['class'])op.check_classes.push(at['class']);function replaceFonts(){var bm;each(dom.select(tinymce.isWebKit&&!tinymce.isAir?'span':'font'),function(n){if(n.style.fontFamily=='mceinline'||n.face=='mceinline'){if(!bm)bm=ed.selection.getBookmark();at._mce_new='1';dom.replace(dom.create(na,at),n,1);}});each(dom.select(na),function(n){if(n.getAttribute('_mce_new')){function removeStyle(n){if(n.nodeType==1){each(at.style,function(v,k){dom.setStyle(n,k,'');});if(at['class']&&n.className&&op){each(op.check_classes,function(c){if(dom.hasClass(n,c))dom.removeClass(n,c);});}}};each(dom.select(na,n),removeStyle);if(n.parentNode&&n.parentNode.nodeType==1&&n.parentNode.childNodes.length==1)removeStyle(n.parentNode);dom.getParent(n.parentNode,function(pn){if(pn.nodeType==1){if(at.style){each(at.style,function(v,k){var sv;if(!lo[k]&&(sv=dom.getStyle(pn,k))){if(sv===v)dom.setStyle(n,k,'');lo[k]=1;}});}if(at['class']&&pn.className&&op){each(op.check_classes,function(c){if(dom.hasClass(pn,c))dom.removeClass(n,c);});}}return false;});n.removeAttribute('_mce_new');}});each(dom.select(na).reverse(),function(n){var c=0;each(dom.getAttribs(n),function(an){if(an.nodeName.substring(0,1)!='_'&&dom.getAttrib(n,an.nodeName)!=''){c++;}});if(c==0)dom.remove(n,1);});ed.selection.moveToBookmark(bm);return!!bm;};ed.focus();ed.getDoc().execCommand('FontName',false,'mceinline');replaceFonts();if(kh=t._applyInlineStyle.keyhandler){ed.onKeyUp.remove(kh);ed.onKeyPress.remove(kh);ed.onKeyDown.remove(kh);ed.onSetContent.remove(t._applyInlineStyle.chandler);}if(ed.selection.isCollapsed()){t._pendingStyles=tinymce.extend(t._pendingStyles||{},at.style);t._applyInlineStyle.chandler=ed.onSetContent.add(function(){delete t._pendingStyles;});t._applyInlineStyle.keyhandler=kh=function(e){if(t._pendingStyles){at.style=t._pendingStyles;delete t._pendingStyles;}if(replaceFonts()){ed.onKeyDown.remove(t._applyInlineStyle.keyhandler);ed.onKeyPress.remove(t._applyInlineStyle.keyhandler);}if(e.type=='keyup')ed.onKeyUp.remove(t._applyInlineStyle.keyhandler);};ed.onKeyDown.add(kh);ed.onKeyPress.add(kh);ed.onKeyUp.add(kh);}else t._pendingStyles=0;},_getSelectedBlocks:function(st,en){var ed=this.editor,dom=ed.dom,s=ed.selection,sb,eb,n,bl=[];sb=dom.getParent(st||s.getStart(),isBlock);eb=dom.getParent(en||s.getEnd(),isBlock);if(sb)bl.push(sb);if(sb&&eb&&sb!=eb){n=sb;while((n=n.nextSibling)&&n!=eb){if(isBlock(n))bl.push(n);}}if(eb&&sb!=eb)bl.push(eb);return bl;}});})();tinymce.create('tinymce.UndoManager',{index:0,data:null,typing:0,UndoManager:function(ed){var t=this,Dispatcher=tinymce.util.Dispatcher;t.editor=ed;t.data=[];t.onAdd=new Dispatcher(this);t.onUndo=new Dispatcher(this);t.onRedo=new Dispatcher(this);},add:function(l){var t=this,i,ed=t.editor,b,s=ed.settings,la;l=l||{};l.content=l.content||ed.getContent({format:'raw',no_events:1});l.content=l.content.replace(/^\s*|\s*$/g,'');la=t.data[t.index>0&&(t.index==0||t.index==t.data.length)?t.index-1:t.index];if(!l.initial&&la&&l.content==la.content)return null;if(s.custom_undo_redo_levels){if(t.data.length>s.custom_undo_redo_levels){for(i=0;i0){if(t.index==t.data.length&&t.index>1){i=t.index;t.typing=0;if(!t.add())t.index=i;--t.index;}l=t.data[--t.index];ed.setContent(l.content,{format:'raw'});ed.selection.moveToBookmark(l.bookmark);t.onUndo.dispatch(t,l);}return l;},redo:function(){var t=this,ed=t.editor,l=null;if(t.index','gi');t.rePadd=new RegExp(']+)><\\\/p>|]+)\\\/>|]+)>\\s+<\\\/p>|

<\\\/p>||

\\s+<\\\/p>'.replace(/p/g,elm),'gi');t.reNbsp2BR1=new RegExp(']+)>[\\s\\u00a0]+<\\\/p>|

[\\s\\u00a0]+<\\\/p>'.replace(/p/g,elm),'gi');t.reNbsp2BR2=new RegExp(']+)>( | )<\\\/p>|

( | )<\\\/p>'.replace(/p/g,elm),'gi');t.reBR2Nbsp=new RegExp(']+)>\\s*
\\s*<\\\/p>|

\\s*
\\s*<\\\/p>'.replace(/p/g,elm),'gi');t.reTrailBr=new RegExp('\\s*
\\s*<\\\/p>'.replace(/p/g,elm),'gi');function padd(ed,o){if(isOpera)o.content=o.content.replace(t.reOpera,'');o.content=o.content.replace(t.rePadd,'<'+elm+'$1$2$3$4$5$6>\u00a0');if(!isIE&&!isOpera&&o.set){o.content=o.content.replace(t.reNbsp2BR1,'<'+elm+'$1$2>
');o.content=o.content.replace(t.reNbsp2BR2,'<'+elm+'$1$2>
');}else{o.content=o.content.replace(t.reBR2Nbsp,'<'+elm+'$1$2>\u00a0');o.content=o.content.replace(t.reTrailBr,'');}};ed.onBeforeSetContent.add(padd);ed.onPostProcess.add(padd);if(s.forced_root_block){ed.onInit.add(t.forceRoots,t);ed.onSetContent.add(t.forceRoots,t);ed.onBeforeGetContent.add(t.forceRoots,t);}},setup:function(){var t=this,ed=t.editor,s=ed.settings;if(s.forced_root_block){ed.onKeyUp.add(t.forceRoots,t);ed.onPreProcess.add(t.forceRoots,t);}if(s.force_br_newlines){if(isIE){ed.onKeyPress.add(function(ed,e){var n,s=ed.selection;if(e.keyCode==13&&s.getNode().nodeName!='LI'){s.setContent('
',{format:'raw'});n=ed.dom.get('__');n.removeAttribute('id');s.select(n);s.collapse();return Event.cancel(e);}});}return;}if(!isIE&&s.force_p_newlines){ed.onKeyPress.add(function(ed,e){if(e.keyCode==13&&!e.shiftKey){if(!t.insertPara(e))Event.cancel(e);}});if(isGecko){ed.onKeyDown.add(function(ed,e){if((e.keyCode==8||e.keyCode==46)&&!e.shiftKey)t.backspaceDelete(e,e.keyCode==8);});}}function ren(rn,na){var ne=ed.dom.create(na);each(rn.attributes,function(a){if(a.specified&&a.nodeValue)ne.setAttribute(a.nodeName.toLowerCase(),a.nodeValue);});each(rn.childNodes,function(n){ne.appendChild(n.cloneNode(true));});rn.parentNode.replaceChild(ne,rn);return ne;};if(isIE&&s.element!='P'){ed.onKeyPress.add(function(ed,e){t.lastElm=ed.selection.getNode().nodeName;});ed.onKeyUp.add(function(ed,e){var bl,sel=ed.selection,n=sel.getNode(),b=ed.getBody();if(b.childNodes.length===1&&n.nodeName=='P'){n=ren(n,s.element);sel.select(n);sel.collapse();ed.nodeChanged();}else if(e.keyCode==13&&!e.shiftKey&&t.lastElm!='P'){bl=ed.dom.getParent(n,'P');if(bl){ren(bl,s.element);ed.nodeChanged();}}});}},find:function(n,t,s){var ed=this.editor,w=ed.getDoc().createTreeWalker(n,4,null,false),c=-1;while(n=w.nextNode()){c++;if(t==0&&n==s)return c;if(t==1&&c==s)return n;}return-1;},forceRoots:function(ed,e){var t=this,ed=t.editor,b=ed.getBody(),d=ed.getDoc(),se=ed.selection,s=se.getSel(),r=se.getRng(),si=-2,ei,so,eo,tr,c=-0xFFFFFF;var nx,bl,bp,sp,le,nl=b.childNodes,i,n,eid;for(i=nl.length-1;i>=0;i--){nx=nl[i];if(nx.nodeType==3||(!t.dom.isBlock(nx)&&nx.nodeType!=8)){if(!bl){if(nx.nodeType!=3||/[^\s]/g.test(nx.nodeValue)){if(si==-2&&r){if(!isIE){if(r.startContainer.nodeType==1&&(n=r.startContainer.childNodes[r.startOffset])&&n.nodeType==1){eid=n.getAttribute("id");n.setAttribute("id","__mce");}else{if(ed.dom.getParent(r.startContainer,function(e){return e===b;})){so=r.startOffset;eo=r.endOffset;si=t.find(b,0,r.startContainer);ei=t.find(b,0,r.endContainer);}}}else{tr=d.body.createTextRange();tr.moveToElementText(b);tr.collapse(1);bp=tr.move('character',c)*-1;tr=r.duplicate();tr.collapse(1);sp=tr.move('character',c)*-1;tr=r.duplicate();tr.collapse(0);le=(tr.move('character',c)*-1)-sp;si=sp-bp;ei=le;}}bl=ed.dom.create(ed.settings.forced_root_block);bl.appendChild(nx.cloneNode(1));nx.parentNode.replaceChild(bl,nx);}}else{if(bl.hasChildNodes())bl.insertBefore(nx,bl.firstChild);else bl.appendChild(nx);}}else bl=null;}if(si!=-2){if(!isIE){bl=b.getElementsByTagName(ed.settings.element)[0];r=d.createRange();if(si!=-1)r.setStart(t.find(b,1,si),so);else r.setStart(bl,0);if(ei!=-1)r.setEnd(t.find(b,1,ei),eo);else r.setEnd(bl,0);if(s){s.removeAllRanges();s.addRange(r);}}else{try{r=s.createRange();r.moveToElementText(b);r.collapse(1);r.moveStart('character',si);r.moveEnd('character',ei);r.select();}catch(ex){}}}else if(!isIE&&(n=ed.dom.get('__mce'))){if(eid)n.setAttribute('id',eid);else n.removeAttribute('id');r=d.createRange();r.setStartBefore(n);r.setEndBefore(n);se.setRng(r);}},getParentBlock:function(n){var d=this.dom;return d.getParent(n,d.isBlock);},insertPara:function(e){var t=this,ed=t.editor,dom=ed.dom,d=ed.getDoc(),se=ed.settings,s=ed.selection.getSel(),r=s.getRangeAt(0),b=d.body;var rb,ra,dir,sn,so,en,eo,sb,eb,bn,bef,aft,sc,ec,n,vp=dom.getViewPort(ed.getWin()),y,ch,car;function isEmpty(n){n=n.innerHTML;n=n.replace(/<(img|hr|table)/gi,'-');n=n.replace(/<[^>]+>/g,'');return n.replace(/[ \t\r\n]+/g,'')=='';};rb=d.createRange();rb.setStart(s.anchorNode,s.anchorOffset);rb.collapse(true);ra=d.createRange();ra.setStart(s.focusNode,s.focusOffset);ra.collapse(true);dir=rb.compareBoundaryPoints(rb.START_TO_END,ra)<0;sn=dir?s.anchorNode:s.focusNode;so=dir?s.anchorOffset:s.focusOffset;en=dir?s.focusNode:s.anchorNode;eo=dir?s.focusOffset:s.anchorOffset;if(sn===en&&/^(TD|TH)$/.test(sn.nodeName)){dom.remove(sn.firstChild);ed.dom.add(sn,se.element,null,'
');aft=ed.dom.add(sn,se.element,null,'
');r=d.createRange();r.selectNodeContents(aft);r.collapse(1);ed.selection.setRng(r);return false;}if(sn==b&&en==b&&b.firstChild&&ed.dom.isBlock(b.firstChild)){sn=en=sn.firstChild;so=eo=0;rb=d.createRange();rb.setStart(sn,0);ra=d.createRange();ra.setStart(en,0);}sn=sn.nodeName=="HTML"?d.body:sn;sn=sn.nodeName=="BODY"?sn.firstChild:sn;en=en.nodeName=="HTML"?d.body:en;en=en.nodeName=="BODY"?en.firstChild:en;sb=t.getParentBlock(sn);eb=t.getParentBlock(en);bn=sb?sb.nodeName:se.element;if(t.dom.getParent(sb,function(n){return/OL|UL|PRE/.test(n.nodeName);}))return true;if(sb&&(sb.nodeName=='CAPTION'||/absolute|relative|static/gi.test(sb.style.position))){bn=se.element;sb=null;}if(eb&&(eb.nodeName=='CAPTION'||/absolute|relative|static/gi.test(eb.style.position))){bn=se.element;eb=null;}if(/(TD|TABLE|TH|CAPTION)/.test(bn)||(sb&&bn=="DIV"&&/left|right/gi.test(sb.style.cssFloat))){bn=se.element;sb=eb=null;}bef=(sb&&sb.nodeName==bn)?sb.cloneNode(0):ed.dom.create(bn);aft=(eb&&eb.nodeName==bn)?eb.cloneNode(0):ed.dom.create(bn);aft.removeAttribute('id');if(/^(H[1-6])$/.test(bn)&&sn.nodeValue&&so==sn.nodeValue.length)aft=ed.dom.create(se.element);n=sc=sn;do{if(n==b||n.nodeType==9||t.dom.isBlock(n)||/(TD|TABLE|TH|CAPTION)/.test(n.nodeName))break;sc=n;}while((n=n.previousSibling?n.previousSibling:n.parentNode));n=ec=en;do{if(n==b||n.nodeType==9||t.dom.isBlock(n)||/(TD|TABLE|TH|CAPTION)/.test(n.nodeName))break;ec=n;}while((n=n.nextSibling?n.nextSibling:n.parentNode));if(sc.nodeName==bn)rb.setStart(sc,0);else rb.setStartBefore(sc);rb.setEnd(sn,so);bef.appendChild(rb.cloneContents()||d.createTextNode(''));try{ra.setEndAfter(ec);}catch(ex){}ra.setStart(en,eo);aft.appendChild(ra.cloneContents()||d.createTextNode(''));r=d.createRange();if(!sc.previousSibling&&sc.parentNode.nodeName==bn){r.setStartBefore(sc.parentNode);}else{if(rb.startContainer.nodeName==bn&&rb.startOffset==0)r.setStartBefore(rb.startContainer);else r.setStart(rb.startContainer,rb.startOffset);}if(!ec.nextSibling&&ec.parentNode.nodeName==bn)r.setEndAfter(ec.parentNode);else r.setEnd(ra.endContainer,ra.endOffset);r.deleteContents();if(isOpera)ed.getWin().scrollTo(0,vp.y);if(bef.firstChild&&bef.firstChild.nodeName==bn)bef.innerHTML=bef.firstChild.innerHTML;if(aft.firstChild&&aft.firstChild.nodeName==bn)aft.innerHTML=aft.firstChild.innerHTML;if(isEmpty(bef))bef.innerHTML='
';function appendStyles(e,en){var nl=[],nn,n,i;e.innerHTML='';if(se.keep_styles){n=en;do{if(/^(SPAN|STRONG|B|EM|I|FONT|STRIKE|U)$/.test(n.nodeName)){nn=n.cloneNode(false);dom.setAttrib(nn,'id','');nl.push(nn);}}while(n=n.parentNode);}if(nl.length>0){for(i=nl.length-1,nn=e;i>=0;i--)nn=nn.appendChild(nl[i]);nl[0].innerHTML=isOpera?' ':'
';return nl[0];}else e.innerHTML=isOpera?' ':'
';};if(isEmpty(aft))car=appendStyles(aft,en);if(isOpera&&parseFloat(opera.version())<9.5){r.insertNode(bef);r.insertNode(aft);}else{r.insertNode(aft);r.insertNode(bef);}aft.normalize();bef.normalize();function first(n){return d.createTreeWalker(n,NodeFilter.SHOW_TEXT,null,false).nextNode()||n;};r=d.createRange();r.selectNodeContents(isGecko?first(car||aft):car||aft);r.collapse(1);s.removeAllRanges();s.addRange(r);y=ed.dom.getPos(aft).y;ch=aft.clientHeight;if(yvp.y+vp.h){ed.getWin().scrollTo(0,y=c.length){for(e=0,b=g.length;e=c.length||g[e]!=c[e]){f=e+1;break}}}if(g.length=g.length||g[e]!=c[e]){f=e+1;break}}}if(f==1){return h}for(e=0,b=g.length-(f-1);e=0;c--){if(f[c].length==0||f[c]=="."){continue}if(f[c]==".."){b++;continue}if(b>0){b--;continue}h.push(f[c])}c=e.length-b;if(c<=0){g=h.reverse().join("/")}else{g=e.slice(0,c).join("/")+"/"+h.reverse().join("/")}if(g.indexOf("/")!==0){g="/"+g}if(d&&g.lastIndexOf("/")!==g.length-1){g+=d}return g},getURI:function(d){var c,b=this;if(!b.source||d){c="";if(!d){if(b.protocol){c+=b.protocol+"://"}if(b.userInfo){c+=b.userInfo+"@"}if(b.host){c+=b.host}if(b.port){c+=":"+b.port}}if(b.path){c+=b.path}if(b.query){c+="?"+b.query}if(b.anchor){c+="#"+b.anchor}b.source=c}return b.source}})})();(function(){var a=tinymce.each;tinymce.create("static tinymce.util.Cookie",{getHash:function(d){var b=this.get(d),c;if(b){a(b.split("&"),function(e){e=e.split("=");c=c||{};c[unescape(e[0])]=unescape(e[1])})}return c},setHash:function(j,b,g,f,i,c){var h="";a(b,function(e,d){h+=(!h?"":"&")+escape(d)+"="+escape(e)});this.set(j,h,g,f,i,c)},get:function(i){var h=document.cookie,g,f=i+"=",d;if(!h){return}d=h.indexOf("; "+f);if(d==-1){d=h.indexOf(f);if(d!=0){return null}}else{d+=2}g=h.indexOf(";",d);if(g==-1){g=h.length}return unescape(h.substring(d+f.length,g))},set:function(i,b,g,f,h,c){document.cookie=i+"="+escape(b)+((g)?"; expires="+g.toGMTString():"")+((f)?"; path="+escape(f):"")+((h)?"; domain="+h:"")+((c)?"; secure":"")},remove:function(e,b){var c=new Date();c.setTime(c.getTime()-1000);this.set(e,"",c,b,c)}})})();tinymce.create("static tinymce.util.JSON",{serialize:function(e){var c,a,d=tinymce.util.JSON.serialize,b;if(e==null){return"null"}b=typeof e;if(b=="string"){a="\bb\tt\nn\ff\rr\"\"''\\\\";return'"'+e.replace(/([\u0080-\uFFFF\x00-\x1f\"])/g,function(g,f){c=a.indexOf(f);if(c+1){return"\\"+a.charAt(c+1)}g=f.charCodeAt().toString(16);return"\\u"+"0000".substring(g.length)+g})+'"'}if(b=="object"){if(e.hasOwnProperty&&e instanceof Array){for(c=0,a="[";c0?",":"")+d(e[c])}return a+"]"}a="{";for(c in e){a+=typeof e[c]!="function"?(a.length>1?',"':'"')+c+'":'+d(e[c]):""}return a+"}"}return""+e},parse:function(s){try{return eval("("+s+")")}catch(ex){}}});tinymce.create("static tinymce.util.XHR",{send:function(g){var a,e,b=window,h=0;g.scope=g.scope||this;g.success_scope=g.success_scope||g.scope;g.error_scope=g.error_scope||g.scope;g.async=g.async===false?false:true;g.data=g.data||"";function d(i){a=0;try{a=new ActiveXObject(i)}catch(c){}return a}a=b.XMLHttpRequest?new XMLHttpRequest():d("Microsoft.XMLHTTP")||d("Msxml2.XMLHTTP");if(a){if(a.overrideMimeType){a.overrideMimeType(g.content_type)}a.open(g.type||(g.data?"POST":"GET"),g.url,g.async);if(g.content_type){a.setRequestHeader("Content-Type",g.content_type)}a.setRequestHeader("X-Requested-With","XMLHttpRequest");a.send(g.data);function f(){if(!g.async||a.readyState==4||h++>10000){if(g.success&&h<10000&&a.status==200){g.success.call(g.success_scope,""+a.responseText,a,g)}else{if(g.error){g.error.call(g.error_scope,h>10000?"TIMED_OUT":"GENERAL",a,g)}}a=null}else{b.setTimeout(f,10)}}if(!g.async){return f()}e=b.setTimeout(f,10)}}});(function(){var c=tinymce.extend,b=tinymce.util.JSON,a=tinymce.util.XHR;tinymce.create("tinymce.util.JSONRequest",{JSONRequest:function(d){this.settings=c({},d);this.count=0},send:function(f){var e=f.error,d=f.success;f=c(this.settings,f);f.success=function(h,g){h=b.parse(h);if(typeof(h)=="undefined"){h={error:"JSON Parse error."}}if(h.error){e.call(f.error_scope||f.scope,h.error,g)}else{d.call(f.success_scope||f.scope,h.result)}};f.error=function(h,g){e.call(f.error_scope||f.scope,h,g)};f.data=b.serialize({id:f.id||"c"+(this.count++),method:f.method,params:f.params});f.content_type="application/json";a.send(f)},"static":{sendRPC:function(d){return new tinymce.util.JSONRequest().send(d)}}})}());(function(c){var e=c.each,b=c.is;var d=c.isWebKit,a=c.isIE;c.create("tinymce.dom.DOMUtils",{doc:null,root:null,files:null,pixelStyles:/^(top|left|bottom|right|width|height|borderWidth)$/,props:{"for":"htmlFor","class":"className",className:"className",checked:"checked",disabled:"disabled",maxlength:"maxLength",readonly:"readOnly",selected:"selected",value:"value",id:"id",name:"name",type:"type"},DOMUtils:function(i,g){var f=this;f.doc=i;f.win=window;f.files={};f.cssFlicker=false;f.counter=0;f.boxModel=!c.isIE||i.compatMode=="CSS1Compat";f.stdMode=i.documentMode===8;f.settings=g=c.extend({keep_values:false,hex_colors:1,process_html:1},g);if(c.isIE6){try{i.execCommand("BackgroundImageCache",false,true)}catch(h){f.cssFlicker=true}}c.addUnload(f.destroy,f)},getRoot:function(){var f=this,g=f.settings;return(g&&f.get(g.root_element))||f.doc.body},getViewPort:function(g){var h,f;g=!g?this.win:g;h=g.document;f=this.boxModel?h.documentElement:h.body;return{x:g.pageXOffset||f.scrollLeft,y:g.pageYOffset||f.scrollTop,w:g.innerWidth||f.clientWidth,h:g.innerHeight||f.clientHeight}},getRect:function(i){var h,f=this,g;i=f.get(i);h=f.getPos(i);g=f.getSize(i);return{x:h.x,y:h.y,w:g.w,h:g.h}},getSize:function(j){var g=this,f,i;j=g.get(j);f=g.getStyle(j,"width");i=g.getStyle(j,"height");if(f.indexOf("px")===-1){f=0}if(i.indexOf("px")===-1){i=0}return{w:parseInt(f)||j.offsetWidth||j.clientWidth,h:parseInt(i)||j.offsetHeight||j.clientHeight}},getParent:function(i,h,g){return this.getParents(i,h,g,false)},getParents:function(p,k,i,m){var h=this,g,j=h.settings,l=[];p=h.get(p);m=m===undefined;if(j.strict_root){i=i||h.getRoot()}if(b(k,"string")){g=k;if(k==="*"){k=function(f){return f.nodeType==1}}else{k=function(f){return h.is(f,g)}}}while(p){if(p==i||!p.nodeType||p.nodeType===9){break}if(!k||k(p)){if(m){l.push(p)}else{return p}}p=p.parentNode}return m?l:null},get:function(f){var g;if(f&&this.doc&&typeof(f)=="string"){g=f;f=this.doc.getElementById(f);if(f&&f.id!==g){return this.doc.getElementsByName(g)[1]}}return f},getNext:function(g,f){return this._findSib(g,f,"nextSibling")},getPrev:function(g,f){return this._findSib(g,f,"previousSibling")},select:function(h,g){var f=this;return c.dom.Sizzle(h,f.get(g)||f.get(f.settings.root_element)||f.doc,[])},is:function(g,f){return c.dom.Sizzle.matches(f,g.nodeType?[g]:g).length>0},add:function(j,l,f,i,k){var g=this;return this.run(j,function(n){var m,h;m=b(l,"string")?g.doc.createElement(l):l;g.setAttribs(m,f);if(i){if(i.nodeType){m.appendChild(i)}else{g.setHTML(m,i)}}return !k?n.appendChild(m):m})},create:function(i,f,g){return this.add(this.doc.createElement(i),i,f,g,1)},createHTML:function(m,f,j){var l="",i=this,g;l+="<"+m;for(g in f){if(f.hasOwnProperty(g)){l+=" "+g+'="'+i.encode(f[g])+'"'}}if(c.is(j)){return l+">"+j+""}return l+" />"},remove:function(h,f){var g=this;return this.run(h,function(m){var l,k,j;l=m.parentNode;if(!l){return null}if(f){for(j=m.childNodes.length-1;j>=0;j--){g.insertAfter(m.childNodes[j],m)}}if(g.fixPsuedoLeaks){l=m.cloneNode(true);f="IELeakGarbageBin";k=g.get(f)||g.add(g.doc.body,"div",{id:f,style:"display:none"});k.appendChild(m);k.innerHTML="";return l}return l.removeChild(m)})},setStyle:function(i,f,g){var h=this;return h.run(i,function(l){var k,j;k=l.style;f=f.replace(/-(\D)/g,function(n,m){return m.toUpperCase()});if(h.pixelStyles.test(f)&&(c.is(g,"number")||/^[\-0-9\.]+$/.test(g))){g+="px"}switch(f){case"opacity":if(a){k.filter=g===""?"":"alpha(opacity="+(g*100)+")";if(!i.currentStyle||!i.currentStyle.hasLayout){k.display="inline-block"}}k[f]=k["-moz-opacity"]=k["-khtml-opacity"]=g||"";break;case"float":a?k.styleFloat=g:k.cssFloat=g;break;default:k[f]=g||""}if(h.settings.update_styles){h.setAttrib(l,"mce_style")}})},getStyle:function(i,f,h){i=this.get(i);if(!i){return false}if(this.doc.defaultView&&h){f=f.replace(/[A-Z]/g,function(j){return"-"+j});try{return this.doc.defaultView.getComputedStyle(i,null).getPropertyValue(f)}catch(g){return null}}f=f.replace(/-(\D)/g,function(k,j){return j.toUpperCase()});if(f=="float"){f=a?"styleFloat":"cssFloat"}if(i.currentStyle&&h){return i.currentStyle[f]}return i.style[f]},setStyles:function(i,j){var g=this,h=g.settings,f;f=h.update_styles;h.update_styles=0;e(j,function(k,l){g.setStyle(i,l,k)});h.update_styles=f;if(h.update_styles){g.setAttrib(i,h.cssText)}},setAttrib:function(h,i,f){var g=this;if(!h||!i){return}if(g.settings.strict){i=i.toLowerCase()}return this.run(h,function(k){var j=g.settings;switch(i){case"style":if(!b(f,"string")){e(f,function(l,m){g.setStyle(k,m,l)});return}if(j.keep_values){if(f&&!g._isRes(f)){k.setAttribute("mce_style",f,2)}else{k.removeAttribute("mce_style",2)}}k.style.cssText=f;break;case"class":k.className=f||"";break;case"src":case"href":if(j.keep_values){if(j.url_converter){f=j.url_converter.call(j.url_converter_scope||g,f,i,k)}g.setAttrib(k,"mce_"+i,f,2)}break;case"shape":k.setAttribute("mce_style",f);break}if(b(f)&&f!==null&&f.length!==0){k.setAttribute(i,""+f,2)}else{k.removeAttribute(i,2)}})},setAttribs:function(g,h){var f=this;return this.run(g,function(i){e(h,function(j,k){f.setAttrib(i,k,j)})})},getAttrib:function(i,j,h){var f,g=this;i=g.get(i);if(!i||i.nodeType!==1){return false}if(!b(h)){h=""}if(/^(src|href|style|coords|shape)$/.test(j)){f=i.getAttribute("mce_"+j);if(f){return f}}if(a&&g.props[j]){f=i[g.props[j]];f=f&&f.nodeValue?f.nodeValue:f}if(!f){f=i.getAttribute(j,2)}if(/^(checked|compact|declare|defer|disabled|ismap|multiple|nohref|noshade|nowrap|readonly|selected)$/.test(j)){if(i[g.props[j]]===true&&f===""){return j}return f?j:""}if(i.nodeName==="FORM"&&i.getAttributeNode(j)){return i.getAttributeNode(j).nodeValue}if(j==="style"){f=f||i.style.cssText;if(f){f=g.serializeStyle(g.parseStyle(f));if(g.settings.keep_values&&!g._isRes(f)){i.setAttribute("mce_style",f)}}}if(d&&j==="class"&&f){f=f.replace(/(apple|webkit)\-[a-z\-]+/gi,"")}if(a){switch(j){case"rowspan":case"colspan":if(f===1){f=""}break;case"size":if(f==="+0"||f===20||f===0){f=""}break;case"width":case"height":case"vspace":case"checked":case"disabled":case"readonly":if(f===0){f=""}break;case"hspace":if(f===-1){f=""}break;case"maxlength":case"tabindex":if(f===32768||f===2147483647||f==="32768"){f=""}break;case"multiple":case"compact":case"noshade":case"nowrap":if(f===65535){return j}return h;case"shape":f=f.toLowerCase();break;default:if(j.indexOf("on")===0&&f){f=(""+f).replace(/^function\s+\w+\(\)\s+\{\s+(.*)\s+\}$/,"$1")}}}return(f!==undefined&&f!==null&&f!=="")?""+f:h},getPos:function(m,i){var g=this,f=0,l=0,j,k=g.doc,h;m=g.get(m);i=i||k.body;if(m){if(a&&!g.stdMode){m=m.getBoundingClientRect();j=g.boxModel?k.documentElement:k.body;f=g.getStyle(g.select("html")[0],"borderWidth");f=(f=="medium"||g.boxModel&&!g.isIE6)&&2||f;m.top+=g.win.self!=g.win.top?2:0;return{x:m.left+j.scrollLeft-f,y:m.top+j.scrollTop-f}}h=m;while(h&&h!=i&&h.nodeType){f+=h.offsetLeft||0;l+=h.offsetTop||0;h=h.offsetParent}h=m.parentNode;while(h&&h!=i&&h.nodeType){f-=h.scrollLeft||0;l-=h.scrollTop||0;h=h.parentNode}}return{x:f,y:l}},parseStyle:function(h){var i=this,j=i.settings,k={};if(!h){return k}function f(w,q,v){var o,u,m,n;o=k[w+"-top"+q];if(!o){return}u=k[w+"-right"+q];if(o!=u){return}m=k[w+"-bottom"+q];if(u!=m){return}n=k[w+"-left"+q];if(m!=n){return}k[v]=n;delete k[w+"-top"+q];delete k[w+"-right"+q];delete k[w+"-bottom"+q];delete k[w+"-left"+q]}function g(n,m,l,p){var o;o=k[m];if(!o){return}o=k[l];if(!o){return}o=k[p];if(!o){return}k[n]=k[m]+" "+k[l]+" "+k[p];delete k[m];delete k[l];delete k[p]}h=h.replace(/&(#?[a-z0-9]+);/g,"&$1_MCE_SEMI_");e(h.split(";"),function(m){var l,n=[];if(m){m=m.replace(/_MCE_SEMI_/g,";");m=m.replace(/url\([^\)]+\)/g,function(o){n.push(o);return"url("+n.length+")"});m=m.split(":");l=c.trim(m[1]);l=l.replace(/url\(([^\)]+)\)/g,function(p,o){return n[parseInt(o)-1]});l=l.replace(/rgb\([^\)]+\)/g,function(o){return i.toHex(o)});if(j.url_converter){l=l.replace(/url\([\'\"]?([^\)\'\"]+)[\'\"]?\)/g,function(o,p){return"url("+j.url_converter.call(j.url_converter_scope||i,i.decode(p),"style",null)+")"})}k[c.trim(m[0]).toLowerCase()]=l}});f("border","","border");f("border","-width","border-width");f("border","-color","border-color");f("border","-style","border-style");f("padding","","padding");f("margin","","margin");g("border","border-width","border-style","border-color");if(a){if(k.border=="medium none"){k.border=""}}return k},serializeStyle:function(g){var f="";e(g,function(i,h){if(h&&i){if(c.isGecko&&h.indexOf("-moz-")===0){return}switch(h){case"color":case"background-color":i=i.toLowerCase();break}f+=(f?" ":"")+h+": "+i+";"}});return f},loadCSS:function(f){var h=this,i=h.doc,g;if(!f){f=""}g=h.select("head")[0];e(f.split(","),function(j){var k;if(h.files[j]){return}h.files[j]=true;k=h.create("link",{rel:"stylesheet",href:c._addVer(j)});if(a&&i.documentMode){k.onload=function(){i.recalc();k.onload=null}}g.appendChild(k)})},addClass:function(f,g){return this.run(f,function(h){var i;if(!g){return 0}if(this.hasClass(h,g)){return h.className}i=this.removeClass(h,g);return h.className=(i!=""?(i+" "):"")+g})},removeClass:function(h,i){var f=this,g;return f.run(h,function(k){var j;if(f.hasClass(k,i)){if(!g){g=new RegExp("(^|\\s+)"+i+"(\\s+|$)","g")}j=k.className.replace(g," ");return k.className=c.trim(j!=" "?j:"")}return k.className})},hasClass:function(g,f){g=this.get(g);if(!g||!f){return false}return(" "+g.className+" ").indexOf(" "+f+" ")!==-1},show:function(f){return this.setStyle(f,"display","block")},hide:function(f){return this.setStyle(f,"display","none")},isHidden:function(f){f=this.get(f);return !f||f.style.display=="none"||this.getStyle(f,"display")=="none"},uniqueId:function(f){return(!f?"mce_":f)+(this.counter++)},setHTML:function(i,g){var f=this;return this.run(i,function(m){var h,k,j,q,l,h;g=f.processHTML(g);if(a){function o(){try{m.innerHTML="
"+g;m.removeChild(m.firstChild)}catch(n){while(m.firstChild){m.firstChild.removeNode()}h=f.create("div");h.innerHTML="
"+g;e(h.childNodes,function(r,p){if(p){m.appendChild(r)}})}}if(f.settings.fix_ie_paragraphs){g=g.replace(/

<\/p>|]+)><\/p>|/gi,' 

')}o();if(f.settings.fix_ie_paragraphs){j=m.getElementsByTagName("p");for(k=j.length-1,h=0;k>=0;k--){q=j[k];if(!q.hasChildNodes()){if(!q.mce_keep){h=1;break}q.removeAttribute("mce_keep")}}}if(h){g=g.replace(/

]+)>|

/ig,'

');g=g.replace(/<\/p>/g,"
");o();if(f.settings.fix_ie_paragraphs){j=m.getElementsByTagName("DIV");for(k=j.length-1;k>=0;k--){q=j[k];if(q.mce_tmp){l=f.doc.createElement("p");q.cloneNode(false).outerHTML.replace(/([a-z0-9\-_]+)=/gi,function(p,n){var r;if(n!=="mce_tmp"){r=q.getAttribute(n);if(!r&&n==="class"){r=q.className}l.setAttribute(n,r)}});for(h=0;h|]+)>/gi,"<$1b$2>");j=j.replace(/<(\/?)em>|]+)>/gi,"<$1i$2>")}else{if(a){j=j.replace(/'/g,"'");j=j.replace(/\s+(disabled|checked|readonly|selected)\s*=\s*[\"\']?(false|0)[\"\']?/gi,"")}}j=j.replace(/]+)\/>|/gi,"");if(i.keep_values){if(/)/g,"\n");h=h.replace(/^[\r\n]*|[\r\n]*$/g,"");h=h.replace(/^\s*(\/\/\s*|\]\]>|-->|\]\]-->)\s*$/g,"");return h}j=j.replace(/]+|)>([\s\S]*?)<\/script>/gi,function(h,m,l){if(!m){m=' type="text/javascript"'}m=m.replace(/src=\"([^\"]+)\"?/i,function(n,o){if(i.url_converter){o=g.encode(i.url_converter.call(i.url_converter_scope||g,g.decode(o),"src","script"))}return'mce_src="'+o+'"'});if(c.trim(l)){k.push(f(l));l=""}return""+l+""});j=j.replace(/]+|)>([\s\S]*?)<\/style>/gi,function(h,m,l){if(l){k.push(f(l));l=""}return""+l+""});j=j.replace(/]+|)>([\s\S]*?)<\/noscript>/g,function(h,m,l){return""})}j=j.replace(//g,"");j=j.replace(/<([\w:]+) [^>]*(checked|compact|declare|defer|disabled|ismap|multiple|nohref|noshade|nowrap|readonly|selected)[^>]*>/gi,function(l){function h(o,m,n){if(n==="false"||n==="0"){return""}return" "+m+'="'+m+'"'}l=l.replace(/ (checked|compact|declare|defer|disabled|ismap|multiple|nohref|noshade|nowrap|readonly|selected)=[\"]([^\"]+)[\"]/gi,h);l=l.replace(/ (checked|compact|declare|defer|disabled|ismap|multiple|nohref|noshade|nowrap|readonly|selected)=[\']([^\']+)[\']/gi,h);l=l.replace(/ (checked|compact|declare|defer|disabled|ismap|multiple|nohref|noshade|nowrap|readonly|selected)=([^\s\"\'>]+)/gi,h);l=l.replace(/ (checked|compact|declare|defer|disabled|ismap|multiple|nohref|noshade|nowrap|readonly|selected)([\s>])/gi,' $1="$1"$2');return l});j=j.replace(/<([\w:]+) [^>]*(src|href|style|shape|coords)[^>]*>/gi,function(h,m){function l(o,n,q){var p=q;if(h.indexOf("mce_"+n)!=-1){return o}if(n=="style"){if(g._isRes(q)){return o}p=g.encode(g.serializeStyle(g.parseStyle(p)))}else{if(n!="coords"&&n!="shape"){if(i.url_converter){p=g.encode(i.url_converter.call(i.url_converter_scope||g,g.decode(q),n,m))}}}return" "+n+'="'+q+'" mce_'+n+'="'+p+'"'}h=h.replace(/ (src|href|style|coords|shape)=[\"]([^\"]+)[\"]/gi,l);h=h.replace(/ (src|href|style|coords|shape)=[\']([^\']+)[\']/gi,l);return h.replace(/ (src|href|style|coords|shape)=([^\s\"\'>]+)/gi,l)});j=j.replace(/MCE_SCRIPT:([0-9]+)/g,function(l,h){return k[h]})}return j},getOuterHTML:function(f){var g;f=this.get(f);if(!f){return null}if(f.outerHTML!==undefined){return f.outerHTML}g=(f.ownerDocument||this.doc).createElement("body");g.appendChild(f.cloneNode(true));return g.innerHTML},setOuterHTML:function(j,g,k){var f=this;function i(m,l,p){var q,o;o=p.createElement("body");o.innerHTML=l;q=o.lastChild;while(q){f.insertAfter(q.cloneNode(true),m);q=q.previousSibling}f.remove(m)}return this.run(j,function(l){l=f.get(l);if(l.nodeType==1){k=k||l.ownerDocument||f.doc;if(a){try{if(a&&l.nodeType==1){l.outerHTML=g}else{i(l,g,k)}}catch(h){i(l,g,k)}}else{i(l,g,k)}}})},decode:function(g){var h,i,f;if(/&[^;]+;/.test(g)){h=this.doc.createElement("div");h.innerHTML=g;i=h.firstChild;f="";if(i){do{f+=i.nodeValue}while(i.nextSibling)}return f||g}return g},encode:function(f){return f?(""+f).replace(/[<>&\"]/g,function(h,g){switch(h){case"&":return"&";case'"':return""";case"<":return"<";case">":return">"}return h}):f},insertAfter:function(h,g){var f=this;g=f.get(g);return this.run(h,function(k){var j,i;j=g.parentNode;i=g.nextSibling;if(i){j.insertBefore(k,i)}else{j.appendChild(k)}return k})},isBlock:function(f){if(f.nodeType&&f.nodeType!==1){return false}f=f.nodeName||f;return/^(H[1-6]|HR|P|DIV|ADDRESS|PRE|FORM|TABLE|LI|OL|UL|TH|TBODY|TR|TD|CAPTION|BLOCKQUOTE|CENTER|DL|DT|DD|DIR|FIELDSET|NOSCRIPT|NOFRAMES|MENU|ISINDEX|SAMP)$/.test(f)},replace:function(i,h,f){var g=this;if(b(h,"array")){i=i.cloneNode(true)}return g.run(h,function(j){if(f){e(j.childNodes,function(k){i.appendChild(k.cloneNode(true))})}if(g.fixPsuedoLeaks&&j.nodeType===1){j.parentNode.insertBefore(i,j);g.remove(j);return i}return j.parentNode.replaceChild(i,j)})},findCommonAncestor:function(h,f){var i=h,g;while(i){g=f;while(g&&i!=g){g=g.parentNode}if(i==g){break}i=i.parentNode}if(!i&&h.ownerDocument){return h.ownerDocument.documentElement}return i},toHex:function(f){var h=/^\s*rgb\s*?\(\s*?([0-9]+)\s*?,\s*?([0-9]+)\s*?,\s*?([0-9]+)\s*?\)\s*$/i.exec(f);function g(i){i=parseInt(i).toString(16);return i.length>1?i:"0"+i}if(h){f="#"+g(h[1])+g(h[2])+g(h[3]);return f}return f},getClasses:function(){var l=this,g=[],k,m={},n=l.settings.class_filter,j;if(l.classes){return l.classes}function o(f){e(f.imports,function(i){o(i)});e(f.cssRules||f.rules,function(i){switch(i.type||1){case 1:if(i.selectorText){e(i.selectorText.split(","),function(p){p=p.replace(/^\s*|\s*$|^\s\./g,"");if(/\.mce/.test(p)||!/\.[\w\-]+$/.test(p)){return}j=p;p=p.replace(/.*\.([a-z0-9_\-]+).*/i,"$1");if(n&&!(p=n(p,j))){return}if(!m[p]){g.push({"class":p});m[p]=1}})}break;case 3:o(i.styleSheet);break}})}try{e(l.doc.styleSheets,o)}catch(h){}if(g.length>0){l.classes=g}return g},run:function(j,i,h){var g=this,k;if(g.doc&&typeof(j)==="string"){j=g.get(j)}if(!j){return false}h=h||this;if(!j.nodeType&&(j.length||j.length===0)){k=[];e(j,function(l,f){if(l){if(typeof(l)=="string"){l=g.doc.getElementById(l)}k.push(i.call(h,l,f))}});return k}return i.call(h,j)},getAttribs:function(g){var f;g=this.get(g);if(!g){return[]}if(a){f=[];if(g.nodeName=="OBJECT"){return g.attributes}if(g.nodeName==="OPTION"&&this.getAttrib(g,"selected")){f.push({specified:1,nodeName:"selected"})}g.cloneNode(false).outerHTML.replace(/<\/?[\w:]+ ?|=[\"][^\"]+\"|=\'[^\']+\'|=\w+|>/gi,"").replace(/[\w:]+/gi,function(h){f.push({specified:1,nodeName:h})});return f}return g.attributes},destroy:function(g){var f=this;if(f.events){f.events.destroy()}f.win=f.doc=f.root=f.events=null;if(!g){c.removeUnload(f.destroy)}},createRng:function(){var f=this.doc;return f.createRange?f.createRange():new c.dom.Range(this)},split:function(l,k,o){var p=this,f=p.createRng(),m,j,n;function g(r,q){r=r[q];if(r&&r[q]&&r[q].nodeType==1&&i(r[q])){p.remove(r[q])}}function i(q){q=p.getOuterHTML(q);q=q.replace(/<(img|hr|table)/gi,"-");q=q.replace(/<[^>]+>/g,"");return q.replace(/[ \t\r\n]+| | /g,"")==""}function h(r){var q=0;while(r.previousSibling){q++;r=r.previousSibling}return q}if(l&&k){f.setStart(l.parentNode,h(l));f.setEnd(k.parentNode,h(k));m=f.extractContents();f=p.createRng();f.setStart(k.parentNode,h(k)+1);f.setEnd(l.parentNode,h(l)+1);j=f.extractContents();n=l.parentNode;g(m,"lastChild");if(!i(m)){n.insertBefore(m,l)}if(o){n.replaceChild(o,k)}else{n.insertBefore(k,l)}g(j,"firstChild");if(!i(j)){n.insertBefore(j,l)}p.remove(l);return o||k}},bind:function(j,f,i,h){var g=this;if(!g.events){g.events=new c.dom.EventUtils()}return g.events.add(j,f,i,h||this)},unbind:function(i,f,h){var g=this;if(!g.events){g.events=new c.dom.EventUtils()}return g.events.remove(i,f,h)},_findSib:function(j,g,h){var i=this,k=g;if(j){if(b(k,"string")){k=function(f){return i.is(f,g)}}for(j=j[h];j;j=j[h]){if(k(j)){return j}}}return null},_isRes:function(f){return/^(top|left|bottom|right|width|height)/i.test(f)||/;\s*(top|left|bottom|right|width|height)/i.test(f)}});c.DOM=new c.dom.DOMUtils(document,{process_html:0})})(tinymce);(function(f){var h=0,c=1,e=2,d=tinymce.extend;function g(m,k){var j,l;if(m.parentNode!=k){return -1}for(l=k.firstChild,j=0;l!=m;l=l.nextSibling){j++}return j}function b(k){var j=0;while(k.previousSibling){j++;k=k.previousSibling}return j}function i(j,k){var l;if(j.nodeType==3){return j}if(k<0){return j}l=j.firstChild;while(l!=null&&k>0){--k;l=l.nextSibling}if(l!=null){return l}return j}function a(k){var j=k.doc;d(this,{dom:k,startContainer:j,startOffset:0,endContainer:j,endOffset:0,collapsed:true,commonAncestorContainer:j,START_TO_START:0,START_TO_END:1,END_TO_END:2,END_TO_START:3})}d(a.prototype,{setStart:function(k,j){this._setEndPoint(true,k,j)},setEnd:function(k,j){this._setEndPoint(false,k,j)},setStartBefore:function(j){this.setStart(j.parentNode,b(j))},setStartAfter:function(j){this.setStart(j.parentNode,b(j)+1)},setEndBefore:function(j){this.setEnd(j.parentNode,b(j))},setEndAfter:function(j){this.setEnd(j.parentNode,b(j)+1)},collapse:function(k){var j=this;if(k){j.endContainer=j.startContainer;j.endOffset=j.startOffset}else{j.startContainer=j.endContainer;j.startOffset=j.endOffset}j.collapsed=true},selectNode:function(j){this.setStartBefore(j);this.setEndAfter(j)},selectNodeContents:function(j){this.setStart(j,0);this.setEnd(j,j.nodeType===1?j.childNodes.length:j.nodeValue.length)},compareBoundaryPoints:function(m,n){var l=this,p=l.startContainer,o=l.startOffset,k=l.endContainer,j=l.endOffset;if(m===0){return l._compareBoundaryPoints(p,o,p,o)}if(m===1){return l._compareBoundaryPoints(p,o,k,j)}if(m===2){return l._compareBoundaryPoints(k,j,k,j)}if(m===3){return l._compareBoundaryPoints(k,j,p,o)}},deleteContents:function(){this._traverse(e)},extractContents:function(){return this._traverse(h)},cloneContents:function(){return this._traverse(c)},insertNode:function(m){var j=this,l,k;if(m.nodeType===3||m.nodeType===4){l=j.startContainer.splitText(j.startOffset);j.startContainer.parentNode.insertBefore(m,l)}else{if(j.startContainer.childNodes.length>0){k=j.startContainer.childNodes[j.startOffset]}j.startContainer.insertBefore(m,k)}},surroundContents:function(l){var j=this,k=j.extractContents();j.insertNode(l);l.appendChild(k);j.selectNode(l)},cloneRange:function(){var j=this;return d(new a(j.dom),{startContainer:j.startContainer,startOffset:j.startOffset,endContainer:j.endContainer,endOffset:j.endOffset,collapsed:j.collapsed,commonAncestorContainer:j.commonAncestorContainer})},_isCollapsed:function(){return(this.startContainer==this.endContainer&&this.startOffset==this.endOffset)},_compareBoundaryPoints:function(m,p,k,o){var q,l,j,r,t,s;if(m==k){if(p==o){return 0}else{if(p0){l.collapse(k)}}l.collapsed=l._isCollapsed();l.commonAncestorContainer=l.dom.findCommonAncestor(l.startContainer,l.endContainer)},_traverse:function(r){var s=this,q,m=0,v=0,k,o,l,n,j,u;if(s.startContainer==s.endContainer){return s._traverseSameContainer(r)}for(q=s.endContainer,k=q.parentNode;k!=null;q=k,k=k.parentNode){if(k==s.startContainer){return s._traverseCommonStartContainer(q,r)}++m}for(q=s.startContainer,k=q.parentNode;k!=null;q=k,k=k.parentNode){if(k==s.endContainer){return s._traverseCommonEndContainer(q,r)}++v}o=v-m;l=s.startContainer;while(o>0){l=l.parentNode;o--}n=s.endContainer;while(o<0){n=n.parentNode;o++}for(j=l.parentNode,u=n.parentNode;j!=u;j=j.parentNode,u=u.parentNode){l=j;n=u}return s._traverseCommonAncestors(l,n,r)},_traverseSameContainer:function(o){var r=this,q,u,j,k,l,p,m;if(o!=e){q=r.dom.doc.createDocumentFragment()}if(r.startOffset==r.endOffset){return q}if(r.startContainer.nodeType==3){u=r.startContainer.nodeValue;j=u.substring(r.startOffset,r.endOffset);if(o!=c){r.startContainer.deleteData(r.startOffset,r.endOffset-r.startOffset);r.collapse(true)}if(o==e){return null}q.appendChild(r.dom.doc.createTextNode(j));return q}k=i(r.startContainer,r.startOffset);l=r.endOffset-r.startOffset;while(l>0){p=k.nextSibling;m=r._traverseFullySelected(k,o);if(q){q.appendChild(m)}--l;k=p}if(o!=c){r.collapse(true)}return q},_traverseCommonStartContainer:function(j,p){var s=this,r,k,l,m,q,o;if(p!=e){r=s.dom.doc.createDocumentFragment()}k=s._traverseRightBoundary(j,p);if(r){r.appendChild(k)}l=g(j,s.startContainer);m=l-s.startOffset;if(m<=0){if(p!=c){s.setEndBefore(j);s.collapse(false)}return r}k=j.previousSibling;while(m>0){q=k.previousSibling;o=s._traverseFullySelected(k,p);if(r){r.insertBefore(o,r.firstChild)}--m;k=q}if(p!=c){s.setEndBefore(j);s.collapse(false)}return r},_traverseCommonEndContainer:function(m,p){var s=this,r,o,j,k,q,l;if(p!=e){r=s.dom.doc.createDocumentFragment()}j=s._traverseLeftBoundary(m,p);if(r){r.appendChild(j)}o=g(m,s.endContainer);++o;k=s.endOffset-o;j=m.nextSibling;while(k>0){q=j.nextSibling;l=s._traverseFullySelected(j,p);if(r){r.appendChild(l)}--k;j=q}if(p!=c){s.setStartAfter(m);s.collapse(true)}return r},_traverseCommonAncestors:function(p,j,s){var w=this,l,v,o,q,r,k,u,m;if(s!=e){v=w.dom.doc.createDocumentFragment()}l=w._traverseLeftBoundary(p,s);if(v){v.appendChild(l)}o=p.parentNode;q=g(p,o);r=g(j,o);++q;k=r-q;u=p.nextSibling;while(k>0){m=u.nextSibling;l=w._traverseFullySelected(u,s);if(v){v.appendChild(l)}u=m;--k}l=w._traverseRightBoundary(j,s);if(v){v.appendChild(l)}if(s!=c){w.setStartAfter(p);w.collapse(true)}return v},_traverseRightBoundary:function(p,q){var s=this,l=i(s.endContainer,s.endOffset-1),r,o,n,j,k;var m=l!=s.endContainer;if(l==p){return s._traverseNode(l,m,false,q)}r=l.parentNode;o=s._traverseNode(r,false,false,q);while(r!=null){while(l!=null){n=l.previousSibling;j=s._traverseNode(l,m,false,q);if(q!=e){o.insertBefore(j,o.firstChild)}m=true;l=n}if(r==p){return o}l=r.previousSibling;r=r.parentNode;k=s._traverseNode(r,false,false,q);if(q!=e){k.appendChild(o)}o=k}return null},_traverseLeftBoundary:function(p,q){var s=this,m=i(s.startContainer,s.startOffset);var n=m!=s.startContainer,r,o,l,j,k;if(m==p){return s._traverseNode(m,n,true,q)}r=m.parentNode;o=s._traverseNode(r,false,true,q);while(r!=null){while(m!=null){l=m.nextSibling;j=s._traverseNode(m,n,true,q);if(q!=e){o.appendChild(j)}n=true;m=l}if(r==p){return o}m=r.nextSibling;r=r.parentNode;k=s._traverseNode(r,false,true,q);if(q!=e){k.appendChild(o)}o=k}return null},_traverseNode:function(j,o,r,s){var u=this,m,l,p,k,q;if(o){return u._traverseFullySelected(j,s)}if(j.nodeType==3){m=j.nodeValue;if(r){k=u.startOffset;l=m.substring(k);p=m.substring(0,k)}else{k=u.endOffset;l=m.substring(0,k);p=m.substring(k)}if(s!=c){j.nodeValue=p}if(s==e){return null}q=j.cloneNode(false);q.nodeValue=l;return q}if(s==e){return null}return j.cloneNode(false)},_traverseFullySelected:function(l,k){var j=this;if(k!=e){return k==c?l.cloneNode(true):l}l.parentNode.removeChild(l);return null}});f.Range=a})(tinymce.dom);(function(){function a(e){var d=this,h="\uFEFF",b,g;function c(j,i){if(j&&i){if(j.item&&i.item&&j.item(0)===i.item(0)){return 1}if(j.isEqual&&i.isEqual&&i.isEqual(j)){return 1}}return 0}function f(){var m=e.dom,j=e.getRng(),s=m.createRng(),p,k,n,q,o,l;function i(v){var t=v.parentNode.childNodes,u;for(u=t.length-1;u>=0;u--){if(t[u]==v){return u}}return -1}function r(v){var t=j.duplicate(),B,y,u,w,x=0,z=0,A,C;t.collapse(v);B=t.parentElement();t.pasteHTML(h);u=B.childNodes;for(y=0;y0&&(w.nodeType!==3||u[y-1].nodeType!==3)){z++}if(w.nodeType===3){A=w.nodeValue.indexOf(h);if(A!==-1){x+=A;break}x+=w.nodeValue.length}else{x=0}}t.moveStart("character",-1);t.text="";return{index:z,offset:x,parent:B}}n=j.item?j.item(0):j.parentElement();if(n.ownerDocument!=m.doc){return s}if(j.item||!n.hasChildNodes()){s.setStart(n.parentNode,i(n));s.setEnd(s.startContainer,s.startOffset+1);return s}l=e.isCollapsed();p=r(true);k=r(false);p.parent.normalize();k.parent.normalize();q=p.parent.childNodes[Math.min(p.index,p.parent.childNodes.length-1)];if(q.nodeType!=3){s.setStart(p.parent,p.index)}else{s.setStart(p.parent.childNodes[p.index],p.offset)}o=k.parent.childNodes[Math.min(k.index,k.parent.childNodes.length-1)];if(o.nodeType!=3){if(!l){k.index++}s.setEnd(k.parent,k.index)}else{s.setEnd(k.parent.childNodes[k.index],k.offset)}if(!l){q=s.startContainer;if(q.nodeType==1){s.setStart(q,Math.min(s.startOffset,q.childNodes.length))}o=s.endContainer;if(o.nodeType==1){s.setEnd(o,Math.min(s.endOffset,o.childNodes.length))}}d.addRange(s);return s}this.addRange=function(j){var o,m=e.dom.doc.body,p,k,q,l,n,i;q=j.startContainer;l=j.startOffset;n=j.endContainer;i=j.endOffset;o=m.createTextRange();q=q.nodeType==1?q.childNodes[Math.min(l,q.childNodes.length-1)]:q;n=n.nodeType==1?n.childNodes[Math.min(l==i?i:i-1,n.childNodes.length-1)]:n;if(q==n&&q.nodeType==1){if(/^(IMG|TABLE)$/.test(q.nodeName)&&l!=i){o=m.createControlRange();o.addElement(q)}else{o=m.createTextRange();if(!q.hasChildNodes()&&q.canHaveHTML){q.innerHTML=h}o.moveToElementText(q);if(q.innerHTML==h){o.collapse(true);q.removeChild(q.firstChild)}}if(l==i){o.collapse(i<=j.endContainer.childNodes.length-1)}o.select();return}function r(t,v){var u,s,w;if(t.nodeType!=3){return -1}u=t.nodeValue;s=m.createTextRange();t.nodeValue=u.substring(0,v)+h+u.substring(v);s.moveToElementText(t.parentNode);s.findText(h);w=Math.abs(s.moveStart("character",-1048575));t.nodeValue=u;return w}if(j.collapsed){pos=r(q,l);o=m.createTextRange();o.move("character",pos);o.select();return}else{if(q==n&&q.nodeType==3){p=r(q,l);o=m.createTextRange();o.move("character",p);o.moveEnd("character",i-l);o.select();return}p=r(q,l);k=r(n,i);o=m.createTextRange();if(p==-1){o.moveToElementText(q);p=0}else{o.move("character",p)}tmpRng=m.createTextRange();if(k==-1){tmpRng.moveToElementText(n)}else{tmpRng.move("character",k)}o.setEndPoint("EndToEnd",tmpRng);o.select();return}};this.getRangeAt=function(){if(!b||!c(g,e.getRng())){b=f();g=e.getRng()}return b};this.destroy=function(){g=b=null}}tinymce.dom.TridentSelection=a})();(function(){var p=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?/g,i=0,d=Object.prototype.toString,n=false;var b=function(D,t,A,v){A=A||[];var e=t=t||document;if(t.nodeType!==1&&t.nodeType!==9){return[]}if(!D||typeof D!=="string"){return A}var B=[],C,y,G,F,z,s,r=true,w=o(t);p.lastIndex=0;while((C=p.exec(D))!==null){B.push(C[1]);if(C[2]){s=RegExp.rightContext;break}}if(B.length>1&&j.exec(D)){if(B.length===2&&f.relative[B[0]]){y=g(B[0]+B[1],t)}else{y=f.relative[B[0]]?[t]:b(B.shift(),t);while(B.length){D=B.shift();if(f.relative[D]){D+=B.shift()}y=g(D,y)}}}else{if(!v&&B.length>1&&t.nodeType===9&&!w&&f.match.ID.test(B[0])&&!f.match.ID.test(B[B.length-1])){var H=b.find(B.shift(),t,w);t=H.expr?b.filter(H.expr,H.set)[0]:H.set[0]}if(t){var H=v?{expr:B.pop(),set:a(v)}:b.find(B.pop(),B.length===1&&(B[0]==="~"||B[0]==="+")&&t.parentNode?t.parentNode:t,w);y=H.expr?b.filter(H.expr,H.set):H.set;if(B.length>0){G=a(y)}else{r=false}while(B.length){var u=B.pop(),x=u;if(!f.relative[u]){u=""}else{x=B.pop()}if(x==null){x=t}f.relative[u](G,x,w)}}else{G=B=[]}}if(!G){G=y}if(!G){throw"Syntax error, unrecognized expression: "+(u||D)}if(d.call(G)==="[object Array]"){if(!r){A.push.apply(A,G)}else{if(t&&t.nodeType===1){for(var E=0;G[E]!=null;E++){if(G[E]&&(G[E]===true||G[E].nodeType===1&&h(t,G[E]))){A.push(y[E])}}}else{for(var E=0;G[E]!=null;E++){if(G[E]&&G[E].nodeType===1){A.push(y[E])}}}}}else{a(G,A)}if(s){b(s,e,A,v);b.uniqueSort(A)}return A};b.uniqueSort=function(r){if(c){n=false;r.sort(c);if(n){for(var e=1;e":function(w,r,x){var u=typeof r==="string";if(u&&!/\W/.test(r)){r=x?r:r.toUpperCase();for(var s=0,e=w.length;s=0)){if(!s){e.push(v)}}else{if(s){r[u]=false}}}}return false},ID:function(e){return e[1].replace(/\\/g,"")},TAG:function(r,e){for(var s=0;e[s]===false;s++){}return e[s]&&o(e[s])?r[1]:r[1].toUpperCase()},CHILD:function(e){if(e[1]=="nth"){var r=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(e[2]=="even"&&"2n"||e[2]=="odd"&&"2n+1"||!/\D/.test(e[2])&&"0n+"+e[2]||e[2]);e[2]=(r[1]+(r[2]||1))-0;e[3]=r[3]-0}e[0]=i++;return e},ATTR:function(u,r,s,e,v,w){var t=u[1].replace(/\\/g,"");if(!w&&f.attrMap[t]){u[1]=f.attrMap[t]}if(u[2]==="~="){u[4]=" "+u[4]+" "}return u},PSEUDO:function(u,r,s,e,v){if(u[1]==="not"){if(u[3].match(p).length>1||/^\w/.test(u[3])){u[3]=b(u[3],null,null,r)}else{var t=b.filter(u[3],r,s,true^v);if(!s){e.push.apply(e,t)}return false}}else{if(f.match.POS.test(u[0])||f.match.CHILD.test(u[0])){return true}}return u},POS:function(e){e.unshift(true);return e}},filters:{enabled:function(e){return e.disabled===false&&e.type!=="hidden"},disabled:function(e){return e.disabled===true},checked:function(e){return e.checked===true},selected:function(e){e.parentNode.selectedIndex;return e.selected===true},parent:function(e){return !!e.firstChild},empty:function(e){return !e.firstChild},has:function(s,r,e){return !!b(e[3],s).length},header:function(e){return/h\d/i.test(e.nodeName)},text:function(e){return"text"===e.type},radio:function(e){return"radio"===e.type},checkbox:function(e){return"checkbox"===e.type},file:function(e){return"file"===e.type},password:function(e){return"password"===e.type},submit:function(e){return"submit"===e.type},image:function(e){return"image"===e.type},reset:function(e){return"reset"===e.type},button:function(e){return"button"===e.type||e.nodeName.toUpperCase()==="BUTTON"},input:function(e){return/input|select|textarea|button/i.test(e.nodeName)}},setFilters:{first:function(r,e){return e===0},last:function(s,r,e,t){return r===t.length-1},even:function(r,e){return e%2===0},odd:function(r,e){return e%2===1},lt:function(s,r,e){return re[3]-0},nth:function(s,r,e){return e[3]-0==r},eq:function(s,r,e){return e[3]-0==r}},filter:{PSEUDO:function(w,s,t,x){var r=s[1],u=f.filters[r];if(u){return u(w,t,s,x)}else{if(r==="contains"){return(w.textContent||w.innerText||"").indexOf(s[3])>=0}else{if(r==="not"){var v=s[3];for(var t=0,e=v.length;t=0)}}},ID:function(r,e){return r.nodeType===1&&r.getAttribute("id")===e},TAG:function(r,e){return(e==="*"&&r.nodeType===1)||r.nodeName===e},CLASS:function(r,e){return(" "+(r.className||r.getAttribute("class"))+" ").indexOf(e)>-1},ATTR:function(v,t){var s=t[1],e=f.attrHandle[s]?f.attrHandle[s](v):v[s]!=null?v[s]:v.getAttribute(s),w=e+"",u=t[2],r=t[4];return e==null?u==="!=":u==="="?w===r:u==="*="?w.indexOf(r)>=0:u==="~="?(" "+w+" ").indexOf(r)>=0:!r?w&&e!==false:u==="!="?w!=r:u==="^="?w.indexOf(r)===0:u==="$="?w.substr(w.length-r.length)===r:u==="|="?w===r||w.substr(0,r.length+1)===r+"-":false},POS:function(u,r,s,v){var e=r[2],t=f.setFilters[e];if(t){return t(u,s,r,v)}}}};var j=f.match.POS;for(var l in f.match){f.match[l]=new RegExp(f.match[l].source+/(?![^\[]*\])(?![^\(]*\))/.source)}var a=function(r,e){r=Array.prototype.slice.call(r);if(e){e.push.apply(e,r);return e}return r};try{Array.prototype.slice.call(document.documentElement.childNodes)}catch(k){a=function(u,t){var r=t||[];if(d.call(u)==="[object Array]"){Array.prototype.push.apply(r,u)}else{if(typeof u.length==="number"){for(var s=0,e=u.length;s";var e=document.documentElement;e.insertBefore(r,e.firstChild);if(!!document.getElementById(s)){f.find.ID=function(u,v,w){if(typeof v.getElementById!=="undefined"&&!w){var t=v.getElementById(u[1]);return t?t.id===u[1]||typeof t.getAttributeNode!=="undefined"&&t.getAttributeNode("id").nodeValue===u[1]?[t]:undefined:[]}};f.filter.ID=function(v,t){var u=typeof v.getAttributeNode!=="undefined"&&v.getAttributeNode("id");return v.nodeType===1&&u&&u.nodeValue===t}}e.removeChild(r)})();(function(){var e=document.createElement("div");e.appendChild(document.createComment(""));if(e.getElementsByTagName("*").length>0){f.find.TAG=function(r,v){var u=v.getElementsByTagName(r[1]);if(r[1]==="*"){var t=[];for(var s=0;u[s];s++){if(u[s].nodeType===1){t.push(u[s])}}u=t}return u}}e.innerHTML="";if(e.firstChild&&typeof e.firstChild.getAttribute!=="undefined"&&e.firstChild.getAttribute("href")!=="#"){f.attrHandle.href=function(r){return r.getAttribute("href",2)}}})();if(document.querySelectorAll){(function(){var e=b,s=document.createElement("div");s.innerHTML="

";if(s.querySelectorAll&&s.querySelectorAll(".TEST").length===0){return}b=function(w,v,t,u){v=v||document;if(!u&&v.nodeType===9&&!o(v)){try{return a(v.querySelectorAll(w),t)}catch(x){}}return e(w,v,t,u)};for(var r in e){b[r]=e[r]}})()}if(document.getElementsByClassName&&document.documentElement.getElementsByClassName){(function(){var e=document.createElement("div");e.innerHTML="
";if(e.getElementsByClassName("e").length===0){return}e.lastChild.className="e";if(e.getElementsByClassName("e").length===1){return}f.order.splice(1,0,"CLASS");f.find.CLASS=function(r,s,t){if(typeof s.getElementsByClassName!=="undefined"&&!t){return s.getElementsByClassName(r[1])}}})()}function m(r,w,v,A,x,z){var y=r=="previousSibling"&&!z;for(var t=0,s=A.length;t0){u=e;break}}}e=e[r]}A[t]=u}}}var h=document.compareDocumentPosition?function(r,e){return r.compareDocumentPosition(e)&16}:function(r,e){return r!==e&&(r.contains?r.contains(e):true)};var o=function(e){return e.nodeType===9&&e.documentElement.nodeName!=="HTML"||!!e.ownerDocument&&e.ownerDocument.documentElement.nodeName!=="HTML"};var g=function(e,x){var t=[],u="",v,s=x.nodeType?[x]:x;while((v=f.match.PSEUDO.exec(e))){u+=v[0];e=e.replace(f.match.PSEUDO,"")}e=f.relative[e]?e+"*":e;for(var w=0,r=s.length;w=0;h--){k=g[h];if(k.obj===l){j._remove(k.obj,k.name,k.cfunc);k.obj=k.cfunc=null;g.splice(h,1)}}}},cancel:function(g){if(!g){return false}this.stop(g);return this.prevent(g)},stop:function(g){if(g.stopPropagation){g.stopPropagation()}else{g.cancelBubble=true}return false},prevent:function(g){if(g.preventDefault){g.preventDefault()}else{g.returnValue=false}return false},destroy:function(){var g=this;f(g.events,function(j,h){g._remove(j.obj,j.name,j.cfunc);j.obj=j.cfunc=null});g.events=[];g=null},_add:function(h,i,g){if(h.attachEvent){h.attachEvent("on"+i,g)}else{if(h.addEventListener){h.addEventListener(i,g,false)}else{h["on"+i]=g}}},_remove:function(i,j,h){if(i){try{if(i.detachEvent){i.detachEvent("on"+j,h)}else{if(i.removeEventListener){i.removeEventListener(j,h,false)}else{i["on"+j]=null}}}catch(g){}}},_pageInit:function(h){var g=this;if(g.domLoaded){return}g.domLoaded=true;f(g.inits,function(i){i()});g.inits=[]},_wait:function(i){var g=this,h=i.document;if(i.tinyMCE_GZ&&tinyMCE_GZ.loaded){g.domLoaded=1;return}if(h.attachEvent){h.attachEvent("onreadystatechange",function(){if(h.readyState==="complete"){h.detachEvent("onreadystatechange",arguments.callee);g._pageInit(i)}});if(h.documentElement.doScroll&&i==i.top){(function(){if(g.domLoaded){return}try{h.documentElement.doScroll("left")}catch(j){setTimeout(arguments.callee,0);return}g._pageInit(i)})()}}else{if(h.addEventListener){g._add(i,"DOMContentLoaded",function(){g._pageInit(i)})}}g._add(i,"load",function(){g._pageInit(i)})},_stoppers:{preventDefault:function(){this.returnValue=false},stopPropagation:function(){this.cancelBubble=true}}});a=d.dom.Event=new d.dom.EventUtils();a._wait(window);d.addUnload(function(){a.destroy()})})(tinymce);(function(a){var b=a.each;a.create("tinymce.dom.Element",{Element:function(g,e){var c=this,f,d;e=e||{};c.id=g;c.dom=f=e.dom||a.DOM;c.settings=e;if(!a.isIE){d=c.dom.get(c.id)}b(["getPos","getRect","getParent","add","setStyle","getStyle","setStyles","setAttrib","setAttribs","getAttrib","addClass","removeClass","hasClass","getOuterHTML","setOuterHTML","remove","show","hide","isHidden","setHTML","get"],function(h){c[h]=function(){var j=[g],k;for(k=0;k_';j.deleteContents();j.insertNode(f.getRng().createContextualFragment(i));l=f.dom.get("__caret");j=k.createRange();j.setStartBefore(l);j.setEndAfter(l);f.setRng(j);f.dom.remove("__caret")}else{if(j.item){k.execCommand("Delete",false,null);j=f.getRng()}j.pasteHTML(i)}f.onSetContent.dispatch(f,g)},getStart:function(){var f=this,g=f.getRng(),h;if(a){if(g.item){return g.item(0)}g=g.duplicate();g.collapse(1);h=g.parentElement();if(h&&h.nodeName=="BODY"){return h.firstChild}return h}else{h=g.startContainer;if(h.nodeName=="BODY"){return h.firstChild}return f.dom.getParent(h,"*")}},getEnd:function(){var f=this,g=f.getRng(),h;if(a){if(g.item){return g.item(0)}g=g.duplicate();g.collapse(0);h=g.parentElement();if(h&&h.nodeName=="BODY"){return h.lastChild}return h}else{h=g.endContainer;if(h.nodeName=="BODY"){return h.lastChild}return f.dom.getParent(h,"*")}},getBookmark:function(x){var j=this,m=j.getRng(),f,n,l,u=j.dom.getViewPort(j.win),v,p,z,o,w=-16777215,k,h=j.dom.getRoot(),g=0,i=0,y;n=u.x;l=u.y;if(x){return{rng:m,scrollX:n,scrollY:l}}if(a){if(m.item){v=m.item(0);d(j.dom.select(v.nodeName),function(s,r){if(v==s){p=r;return false}});return{tag:v.nodeName,index:p,scrollX:n,scrollY:l}}f=j.dom.doc.body.createTextRange();f.moveToElementText(h);f.collapse(true);z=Math.abs(f.move("character",w));f=m.duplicate();f.collapse(true);p=Math.abs(f.move("character",w));f=m.duplicate();f.collapse(false);o=Math.abs(f.move("character",w))-p;return{start:p-z,length:o,scrollX:n,scrollY:l}}v=j.getNode();k=j.getSel();if(!k){return null}if(v&&v.nodeName=="IMG"){return{scrollX:n,scrollY:l}}function q(A,D,t){var s=j.dom.doc.createTreeWalker(A,NodeFilter.SHOW_TEXT,null,false),E,B=0,C={};while((E=s.nextNode())!=null){if(E==D){C.start=B}if(E==t){C.end=B;return C}B+=e(E.nodeValue||"").length}return null}if(k.anchorNode==k.focusNode&&k.anchorOffset==k.focusOffset){v=q(h,k.anchorNode,k.focusNode);if(!v){return{scrollX:n,scrollY:l}}e(k.anchorNode.nodeValue||"").replace(/^\s+/,function(r){g=r.length});return{start:Math.max(v.start+k.anchorOffset-g,0),end:Math.max(v.end+k.focusOffset-g,0),scrollX:n,scrollY:l,beg:k.anchorOffset-g==0}}else{v=q(h,m.startContainer,m.endContainer);if(!v){return{scrollX:n,scrollY:l}}return{start:Math.max(v.start+m.startOffset-g,0),end:Math.max(v.end+m.endOffset-i,0),scrollX:n,scrollY:l,beg:m.startOffset-g==0}}},moveToBookmark:function(n){var o=this,g=o.getRng(),p=o.getSel(),j=o.dom.getRoot(),m,h,k;function i(q,t,D){var B=o.dom.doc.createTreeWalker(q,NodeFilter.SHOW_TEXT,null,false),x,s=0,A={},u,C,z,y;while((x=B.nextNode())!=null){z=y=0;k=x.nodeValue||"";h=e(k).length;s+=h;if(s>=t&&!A.startNode){u=t-(s-h);if(n.beg&&u>=h){continue}A.startNode=x;A.startOffset=u+y}if(s>=D){A.endNode=x;A.endOffset=D-(s-h)+y;return A}}return null}if(!n){return false}o.win.scrollTo(n.scrollX,n.scrollY);if(a){o.tridentSel.destroy();if(g=n.rng){try{g.select()}catch(l){}return true}o.win.focus();if(n.tag){g=j.createControlRange();d(o.dom.select(n.tag),function(r,q){if(q==n.index){g.addElement(r)}})}else{try{if(n.start<0){return true}g=p.createRange();g.moveToElementText(j);g.collapse(true);g.moveStart("character",n.start);g.moveEnd("character",n.length)}catch(f){return true}}try{g.select()}catch(l){}return true}if(!p){return false}if(n.rng){p.removeAllRanges();p.addRange(n.rng)}else{if(b(n.start)&&b(n.end)){try{m=i(j,n.start,n.end);if(m){g=o.dom.doc.createRange();g.setStart(m.startNode,m.startOffset);g.setEnd(m.endNode,m.endOffset);p.removeAllRanges();p.addRange(g)}if(!c.isOpera){o.win.focus()}}catch(l){}}}},select:function(g,l){var p=this,f=p.getRng(),q=p.getSel(),o,m,k,j=p.win.document;function h(u,t){var s,r;if(u){s=j.createTreeWalker(u,NodeFilter.SHOW_TEXT,null,false);while(u=s.nextNode()){r=u;if(c.trim(u.nodeValue).length!=0){if(t){return u}else{r=u}}}}return r}if(a){try{o=j.body;if(/^(IMG|TABLE)$/.test(g.nodeName)){f=o.createControlRange();f.addElement(g)}else{f=o.createTextRange();f.moveToElementText(g)}f.select()}catch(i){}}else{if(l){m=h(g,1)||p.dom.select("br:first",g)[0];k=h(g,0)||p.dom.select("br:last",g)[0];if(m&&k){f=j.createRange();if(m.nodeName=="BR"){f.setStartBefore(m)}else{f.setStart(m,0)}if(k.nodeName=="BR"){f.setEndBefore(k)}else{f.setEnd(k,k.nodeValue.length)}}else{f.selectNode(g)}}else{f.selectNode(g)}p.setRng(f)}return g},isCollapsed:function(){var f=this,h=f.getRng(),g=f.getSel();if(!h||h.item){return false}return !g||h.boundingWidth==0||h.collapsed},collapse:function(f){var g=this,h=g.getRng(),i;if(h.item){i=h.item(0);h=this.win.document.body.createTextRange();h.moveToElementText(i)}h.collapse(!!f);g.setRng(h)},getSel:function(){var g=this,f=this.win;return f.getSelection?f.getSelection():f.document.selection},getRng:function(j){var g=this,h,i;if(j&&g.tridentSel){return g.tridentSel.getRangeAt(0)}try{if(h=g.getSel()){i=h.rangeCount>0?h.getRangeAt(0):(h.createRange?h.createRange():g.win.document.createRange())}}catch(f){}if(!i){i=a?g.win.document.body.createTextRange():g.win.document.createRange()}return i},setRng:function(i){var h,g=this;if(!g.tridentSel){h=g.getSel();if(h){h.removeAllRanges();h.addRange(i)}}else{if(i.cloneRange){g.tridentSel.addRange(i);return}try{i.select()}catch(f){}}},setNode:function(g){var f=this;f.setContent(f.dom.getOuterHTML(g));return g},getNode:function(){var f=this,h=f.getRng(),g=f.getSel(),i;if(!a){if(!h){return f.dom.getRoot()}i=h.commonAncestorContainer;if(!h.collapsed){if(c.isWebKit&&g.anchorNode&&g.anchorNode.nodeType==1){return g.anchorNode.childNodes[g.anchorOffset]}if(h.startContainer==h.endContainer){if(h.startOffset-h.endOffset<2){if(h.startContainer.hasChildNodes()){i=h.startContainer.childNodes[h.startOffset]}}}}return f.dom.getParent(i,"*")}return h.item?h.item(0):h.parentElement()},getSelectedBlocks:function(g,f){var i=this,j=i.dom,m,h,l,k=[];m=j.getParent(g||i.getStart(),j.isBlock);h=j.getParent(f||i.getEnd(),j.isBlock);if(m){k.push(m)}if(m&&h&&m!=h){l=m;while((l=l.nextSibling)&&l!=h){if(j.isBlock(l)){k.push(l)}}}if(h&&m!=h){k.push(h)}return k},destroy:function(g){var f=this;f.win=null;if(f.tridentSel){f.tridentSel.destroy()}if(!g){c.removeUnload(f.destroy)}}})})(tinymce);(function(a){a.create("tinymce.dom.XMLWriter",{node:null,XMLWriter:function(c){function b(){var e=document.implementation;if(!e||!e.createDocument){try{return new ActiveXObject("MSXML2.DOMDocument")}catch(d){}try{return new ActiveXObject("Microsoft.XmlDom")}catch(d){}}else{return e.createDocument("","",null)}}this.doc=b();this.valid=a.isOpera||a.isWebKit;this.reset()},reset:function(){var b=this,c=b.doc;if(c.firstChild){c.removeChild(c.firstChild)}b.node=c.appendChild(c.createElement("html"))},writeStartElement:function(c){var b=this;b.node=b.node.appendChild(b.doc.createElement(c))},writeAttribute:function(c,b){if(this.valid){b=b.replace(/>/g,"%MCGT%")}this.node.setAttribute(c,b)},writeEndElement:function(){this.node=this.node.parentNode},writeFullEndElement:function(){var b=this,c=b.node;c.appendChild(b.doc.createTextNode(""));b.node=c.parentNode},writeText:function(b){if(this.valid){b=b.replace(/>/g,"%MCGT%")}this.node.appendChild(this.doc.createTextNode(b))},writeCDATA:function(b){this.node.appendChild(this.doc.createCDATASection(b))},writeComment:function(b){if(a.isIE){b=b.replace(/^\-|\-$/g," ")}this.node.appendChild(this.doc.createComment(b.replace(/\-\-/g," ")))},getContent:function(){var b;b=this.doc.xml||new XMLSerializer().serializeToString(this.doc);b=b.replace(/<\?[^?]+\?>||<\/html>||]+>/g,"");b=b.replace(/ ?\/>/g," />");if(this.valid){b=b.replace(/\%MCGT%/g,">")}return b}})})(tinymce);(function(a){a.create("tinymce.dom.StringWriter",{str:null,tags:null,count:0,settings:null,indent:null,StringWriter:function(b){this.settings=a.extend({indent_char:" ",indentation:0},b);this.reset()},reset:function(){this.indent="";this.str="";this.tags=[];this.count=0},writeStartElement:function(b){this._writeAttributesEnd();this.writeRaw("<"+b);this.tags.push(b);this.inAttr=true;this.count++;this.elementCount=this.count},writeAttribute:function(d,b){var c=this;c.writeRaw(" "+c.encode(d)+'="'+c.encode(b)+'"')},writeEndElement:function(){var b;if(this.tags.length>0){b=this.tags.pop();if(this._writeAttributesEnd(1)){this.writeRaw("")}if(this.settings.indentation>0){this.writeRaw("\n")}}},writeFullEndElement:function(){if(this.tags.length>0){this._writeAttributesEnd();this.writeRaw("");if(this.settings.indentation>0){this.writeRaw("\n")}}},writeText:function(b){this._writeAttributesEnd();this.writeRaw(this.encode(b));this.count++},writeCDATA:function(b){this._writeAttributesEnd();this.writeRaw("");this.count++},writeComment:function(b){this._writeAttributesEnd();this.writeRaw("");this.count++},writeRaw:function(b){this.str+=b},encode:function(b){return b.replace(/[<>&"]/g,function(c){switch(c){case"<":return"<";case">":return">";case"&":return"&";case'"':return"""}return c})},getContent:function(){return this.str},_writeAttributesEnd:function(b){if(!this.inAttr){return}this.inAttr=false;if(b&&this.elementCount==this.count){this.writeRaw(" />");return false}this.writeRaw(">");return true}})})(tinymce);(function(e){var g=e.extend,f=e.each,b=e.util.Dispatcher,d=e.isIE,a=e.isGecko;function c(h){return h.replace(/([?+*])/g,".$1")}e.create("tinymce.dom.Serializer",{Serializer:function(j){var i=this;i.key=0;i.onPreProcess=new b(i);i.onPostProcess=new b(i);try{i.writer=new e.dom.XMLWriter()}catch(h){i.writer=new e.dom.StringWriter()}i.settings=j=g({dom:e.DOM,valid_nodes:0,node_filter:0,attr_filter:0,invalid_attrs:/^(mce_|_moz_|sizset|sizcache)/,closed:/^(br|hr|input|meta|img|link|param|area)$/,entity_encoding:"named",entities:"160,nbsp,161,iexcl,162,cent,163,pound,164,curren,165,yen,166,brvbar,167,sect,168,uml,169,copy,170,ordf,171,laquo,172,not,173,shy,174,reg,175,macr,176,deg,177,plusmn,178,sup2,179,sup3,180,acute,181,micro,182,para,183,middot,184,cedil,185,sup1,186,ordm,187,raquo,188,frac14,189,frac12,190,frac34,191,iquest,192,Agrave,193,Aacute,194,Acirc,195,Atilde,196,Auml,197,Aring,198,AElig,199,Ccedil,200,Egrave,201,Eacute,202,Ecirc,203,Euml,204,Igrave,205,Iacute,206,Icirc,207,Iuml,208,ETH,209,Ntilde,210,Ograve,211,Oacute,212,Ocirc,213,Otilde,214,Ouml,215,times,216,Oslash,217,Ugrave,218,Uacute,219,Ucirc,220,Uuml,221,Yacute,222,THORN,223,szlig,224,agrave,225,aacute,226,acirc,227,atilde,228,auml,229,aring,230,aelig,231,ccedil,232,egrave,233,eacute,234,ecirc,235,euml,236,igrave,237,iacute,238,icirc,239,iuml,240,eth,241,ntilde,242,ograve,243,oacute,244,ocirc,245,otilde,246,ouml,247,divide,248,oslash,249,ugrave,250,uacute,251,ucirc,252,uuml,253,yacute,254,thorn,255,yuml,402,fnof,913,Alpha,914,Beta,915,Gamma,916,Delta,917,Epsilon,918,Zeta,919,Eta,920,Theta,921,Iota,922,Kappa,923,Lambda,924,Mu,925,Nu,926,Xi,927,Omicron,928,Pi,929,Rho,931,Sigma,932,Tau,933,Upsilon,934,Phi,935,Chi,936,Psi,937,Omega,945,alpha,946,beta,947,gamma,948,delta,949,epsilon,950,zeta,951,eta,952,theta,953,iota,954,kappa,955,lambda,956,mu,957,nu,958,xi,959,omicron,960,pi,961,rho,962,sigmaf,963,sigma,964,tau,965,upsilon,966,phi,967,chi,968,psi,969,omega,977,thetasym,978,upsih,982,piv,8226,bull,8230,hellip,8242,prime,8243,Prime,8254,oline,8260,frasl,8472,weierp,8465,image,8476,real,8482,trade,8501,alefsym,8592,larr,8593,uarr,8594,rarr,8595,darr,8596,harr,8629,crarr,8656,lArr,8657,uArr,8658,rArr,8659,dArr,8660,hArr,8704,forall,8706,part,8707,exist,8709,empty,8711,nabla,8712,isin,8713,notin,8715,ni,8719,prod,8721,sum,8722,minus,8727,lowast,8730,radic,8733,prop,8734,infin,8736,ang,8743,and,8744,or,8745,cap,8746,cup,8747,int,8756,there4,8764,sim,8773,cong,8776,asymp,8800,ne,8801,equiv,8804,le,8805,ge,8834,sub,8835,sup,8836,nsub,8838,sube,8839,supe,8853,oplus,8855,otimes,8869,perp,8901,sdot,8968,lceil,8969,rceil,8970,lfloor,8971,rfloor,9001,lang,9002,rang,9674,loz,9824,spades,9827,clubs,9829,hearts,9830,diams,338,OElig,339,oelig,352,Scaron,353,scaron,376,Yuml,710,circ,732,tilde,8194,ensp,8195,emsp,8201,thinsp,8204,zwnj,8205,zwj,8206,lrm,8207,rlm,8211,ndash,8212,mdash,8216,lsquo,8217,rsquo,8218,sbquo,8220,ldquo,8221,rdquo,8222,bdquo,8224,dagger,8225,Dagger,8240,permil,8249,lsaquo,8250,rsaquo,8364,euro",valid_elements:"*[*]",extended_valid_elements:0,valid_child_elements:0,invalid_elements:0,fix_table_elements:1,fix_list_elements:true,fix_content_duplication:true,convert_fonts_to_spans:false,font_size_classes:0,font_size_style_values:0,apply_source_formatting:0,indent_mode:"simple",indent_char:"\t",indent_levels:1,remove_linebreaks:0,remove_redundant_brs:1,element_format:"xhtml"},j);i.dom=j.dom;if(j.remove_redundant_brs){i.onPostProcess.add(function(k,l){l.content=l.content.replace(/(
\s*)+<\/(p|h[1-6]|div|li)>/gi,function(n,m,o){if(/^
\s*<\//.test(n)){return""}return n})})}if(j.element_format=="html"){i.onPostProcess.add(function(k,l){l.content=l.content.replace(/<([^>]+) \/>/g,"<$1>")})}if(j.fix_list_elements){i.onPreProcess.add(function(v,s){var l,y,w=["ol","ul"],u,t,q,k=/^(OL|UL)$/,z;function m(r,x){var o=x.split(","),p;while((r=r.previousSibling)!=null){for(p=0;p=1767){f(i.dom.select("p table",l.node).reverse(),function(p){var o=i.dom.getParent(p.parentNode,"table,p");if(o.nodeName!="TABLE"){try{i.dom.split(o,p)}catch(m){}}})}})}},setEntities:function(p){var n=this,j,m,h={},o="",k;if(n.entityLookup){return}j=p.split(",");for(m=0;m1){f(q[1].split("|"),function(u){var p={},t;k=k||[];u=u.replace(/::/g,"~");u=/^([!\-])?([\w*.?~_\-]+|)([=:<])?(.+)?$/.exec(u);u[2]=u[2].replace(/~/g,":");if(u[1]=="!"){r=r||[];r.push(u[2])}if(u[1]=="-"){for(t=0;t=1767)){p=j.createHTMLDocument("");f(r.nodeName=="BODY"?r.childNodes:[r],function(h){p.body.appendChild(p.importNode(h,true))});if(r.nodeName!="BODY"){r=p.body.firstChild}else{r=p.body}i=k.dom.doc;k.dom.doc=p}k.key=""+(parseInt(k.key)+1);if(!q.no_events){q.node=r;k.onPreProcess.dispatch(k,q)}k.writer.reset();k._serializeNode(r,q.getInner);q.content=k.writer.getContent();if(i){k.dom.doc=i}if(!q.no_events){k.onPostProcess.dispatch(k,q)}k._postProcess(q);q.node=null;return e.trim(q.content)},_postProcess:function(n){var i=this,k=i.settings,j=n.content,m=[],l;if(n.format=="html"){l=i._protect({content:j,patterns:[{pattern:/(]*>)(.*?)(<\/script>)/g},{pattern:/(]*>)(.*?)(<\/noscript>)/g},{pattern:/(]*>)(.*?)(<\/style>)/g},{pattern:/(]*>)(.*?)(<\/pre>)/g,encode:1},{pattern:/()/g}]});j=l.content;if(k.entity_encoding!=="raw"){j=i._encode(j)}if(!n.set){j=j.replace(/

\s+<\/p>|]+)>\s+<\/p>/g,k.entity_encoding=="numeric"?" 

":" 

");if(k.remove_linebreaks){j=j.replace(/\r?\n|\r/g," ");j=j.replace(/(<[^>]+>)\s+/g,"$1 ");j=j.replace(/\s+(<\/[^>]+>)/g," $1");j=j.replace(/<(p|h[1-6]|blockquote|hr|div|table|tbody|tr|td|body|head|html|title|meta|style|pre|script|link|object) ([^>]+)>\s+/g,"<$1 $2>");j=j.replace(/<(p|h[1-6]|blockquote|hr|div|table|tbody|tr|td|body|head|html|title|meta|style|pre|script|link|object)>\s+/g,"<$1>");j=j.replace(/\s+<\/(p|h[1-6]|blockquote|hr|div|table|tbody|tr|td|body|head|html|title|meta|style|pre|script|link|object)>/g,"")}if(k.apply_source_formatting&&k.indent_mode=="simple"){j=j.replace(/<(\/?)(ul|hr|table|meta|link|tbody|tr|object|body|head|html|map)(|[^>]+)>\s*/g,"\n<$1$2$3>\n");j=j.replace(/\s*<(p|h[1-6]|blockquote|div|title|style|pre|script|td|li|area)(|[^>]+)>/g,"\n<$1$2>");j=j.replace(/<\/(p|h[1-6]|blockquote|div|title|style|pre|script|td|li)>\s*/g,"\n");j=j.replace(/\n\n/g,"\n")}}j=i._unprotect(j,l);j=j.replace(//g,"");if(k.entity_encoding=="raw"){j=j.replace(/

 <\/p>|]+)> <\/p>/g,"\u00a0

")}j=j.replace(/]+|)>([\s\S]*?)<\/noscript>/g,function(h,p,o){return""+i.dom.decode(o.replace(//g,""))+""})}n.content=j},_serializeNode:function(D,o){var z=this,A=z.settings,x=z.writer,q,j,u,F,E,G,B,h,y,k,r,C,p,m;if(!A.node_filter||A.node_filter(D)){switch(D.nodeType){case 1:if(D.hasAttribute?D.hasAttribute("mce_bogus"):D.getAttribute("mce_bogus")){return}p=false;q=D.hasChildNodes();k=D.getAttribute("mce_name")||D.nodeName.toLowerCase();if(d){if(D.scopeName!=="HTML"&&D.scopeName!=="html"){k=D.scopeName+":"+k}}if(k.indexOf("mce:")===0){k=k.substring(4)}if(!z.validElementsRE||!z.validElementsRE.test(k)||(z.invalidElementsRE&&z.invalidElementsRE.test(k))||o){p=true;break}if(d){if(A.fix_content_duplication){if(D.mce_serialized==z.key){return}D.mce_serialized=z.key}if(k.charAt(0)=="/"){k=k.substring(1)}}else{if(a){if(D.nodeName==="BR"&&D.getAttribute("type")=="_moz"){return}}}if(z.childRules){if(z.parentElementsRE.test(z.elementName)){if(!z.childRules[z.elementName].test(k)){p=true;break}}z.elementName=k}r=z.findRule(k);k=r.name||k;m=A.closed.test(k);if((!q&&r.noEmpty)||(d&&!k)){p=true;break}if(r.requiredAttribs){G=r.requiredAttribs;for(F=G.length-1;F>=0;F--){if(this.dom.getAttrib(D,G[F])!==""){break}}if(F==-1){p=true;break}}x.writeStartElement(k);if(r.attribs){for(F=0,B=r.attribs,E=B.length;F-1;F--){h=B[F];if(h.specified){G=h.nodeName.toLowerCase();if(A.invalid_attrs.test(G)||!r.validAttribsRE.test(G)){continue}C=z.findAttribRule(r,G);y=z._getAttrib(D,C,G);if(y!==null){x.writeAttribute(G,y)}}}}if(k==="script"&&e.trim(D.innerHTML)){x.writeText("// ");x.writeCDATA(D.innerHTML.replace(/|<\[CDATA\[|\]\]>/g,""));q=false;break}if(r.padd){if(q&&(u=D.firstChild)&&u.nodeType===1&&D.childNodes.length===1){if(u.hasAttribute?u.hasAttribute("mce_bogus"):u.getAttribute("mce_bogus")){x.writeText("\u00a0")}}else{if(!q){x.writeText("\u00a0")}}}break;case 3:if(z.childRules&&z.parentElementsRE.test(z.elementName)){if(!z.childRules[z.elementName].test(D.nodeName)){return}}return x.writeText(D.nodeValue);case 4:return x.writeCDATA(D.nodeValue);case 8:return x.writeComment(D.nodeValue)}}else{if(D.nodeType==1){q=D.hasChildNodes()}}if(q&&!m){u=D.firstChild;while(u){z._serializeNode(u);z.elementName=k;u=u.nextSibling}}if(!p){if(!m){x.writeFullEndElement()}else{x.writeEndElement()}}},_protect:function(j){var i=this;j.items=j.items||[];function h(l){return l.replace(/[\r\n\\]/g,function(m){if(m==="\n"){return"\\n"}else{if(m==="\\"){return"\\\\"}}return"\\r"})}function k(l){return l.replace(/\\[\\rn]/g,function(m){if(m==="\\n"){return"\n"}else{if(m==="\\\\"){return"\\"}}return"\r"})}f(j.patterns,function(l){j.content=k(h(j.content).replace(l.pattern,function(n,o,m,p){m=k(m);if(l.encode){m=i._encode(m)}j.items.push(m);return o+""+p}))});return j},_unprotect:function(i,j){i=i.replace(/\"))}if(a&&j.ListBox){if(a.Button||a.SplitButton){e+=b.createHTML("td",{"class":"mceToolbarEnd"},b.createHTML("span",null,""))}}if(b.stdMode){e+='
"}else{e+=""}if(f&&j.ListBox){if(f.Button||f.SplitButton){e+=b.createHTML("td",{"class":"mceToolbarStart"},b.createHTML("span",null,""))}}}g="mceToolbarEnd";if(j.Button){g+=" mceToolbarEndButton"}else{if(j.SplitButton){g+=" mceToolbarEndSplitButton"}else{if(j.ListBox){g+=" mceToolbarEndListBox"}}}e+=b.createHTML("td",{"class":g},b.createHTML("span",null,""));return b.createHTML("table",{id:l.id,"class":"mceToolbar"+(m["class"]?" "+m["class"]:""),cellpadding:"0",cellspacing:"0",align:l.settings.align||""},""+e+"")}});(function(b){var a=b.util.Dispatcher,c=b.each;b.create("tinymce.AddOnManager",{items:[],urls:{},lookup:{},onAdd:new a(this),get:function(d){return this.lookup[d]},requireLangPack:function(f){var d,e=b.EditorManager.settings;if(e&&e.language){d=this.urls[f]+"/langs/"+e.language+".js";if(!b.dom.Event.domLoaded&&!e.strict_mode){b.ScriptLoader.load(d)}else{b.ScriptLoader.add(d)}}},add:function(e,d){this.items.push(d);this.lookup[e]=d;this.onAdd.dispatch(this,e,d);return d},load:function(h,e,d,g){var f=this;if(f.urls[h]){return}if(e.indexOf("/")!=0&&e.indexOf("://")==-1){e=b.baseURL+"/"+e}f.urls[h]=e.substring(0,e.lastIndexOf("/"));b.ScriptLoader.add(e,d,g)}});b.PluginManager=new b.AddOnManager();b.ThemeManager=new b.AddOnManager()}(tinymce));(function(f){var g=f.each,h=f.extend,e=f.DOM,a=f.dom.Event,c=f.ThemeManager,b=f.PluginManager,d=f.explode;f.create("static tinymce.EditorManager",{editors:{},i18n:{},activeEditor:null,preInit:function(){var i=this,j=window.location;f.documentBaseURL=j.href.replace(/[\?#].*$/,"").replace(/[\/\\][^\/]+$/,"");if(!/[\/\\]$/.test(f.documentBaseURL)){f.documentBaseURL+="/"}f.baseURL=new f.util.URI(f.documentBaseURL).toAbsolute(f.baseURL);f.EditorManager.baseURI=new f.util.URI(f.baseURL);i.onBeforeUnload=new f.util.Dispatcher(i);a.add(window,"beforeunload",function(k){i.onBeforeUnload.dispatch(i,k)})},init:function(q){var p=this,l,k=f.ScriptLoader,o,n,i=[],m;function j(u,v,r){var t=u[v];if(!t){return}if(f.is(t,"string")){r=t.replace(/\.\w+$/,"");r=r?f.resolve(r):0;t=f.resolve(t)}return t.apply(r||this,Array.prototype.slice.call(arguments,2))}q=h({theme:"simple",language:"en",strict_loading_mode:document.contentType=="application/xhtml+xml"},q);p.settings=q;if(!a.domLoaded&&!q.strict_loading_mode){if(q.language){k.add(f.baseURL+"/langs/"+q.language+".js")}if(q.theme&&q.theme.charAt(0)!="-"&&!c.urls[q.theme]){c.load(q.theme,"themes/"+q.theme+"/editor_template"+f.suffix+".js")}if(q.plugins){l=d(q.plugins);g(l,function(r){if(r&&r.charAt(0)!="-"&&!b.urls[r]){if(!f.isWebKit&&r=="safari"){return}b.load(r,"plugins/"+r+"/editor_plugin"+f.suffix+".js")}})}k.loadQueue()}a.add(document,"init",function(){var r,t;j(q,"onpageload");if(q.browsers){r=false;g(d(q.browsers),function(u){switch(u){case"ie":case"msie":if(f.isIE){r=true}break;case"gecko":if(f.isGecko){r=true}break;case"safari":case"webkit":if(f.isWebKit){r=true}break;case"opera":if(f.isOpera){r=true}break}});if(!r){return}}switch(q.mode){case"exact":r=q.elements||"";if(r.length>0){g(d(r),function(u){if(e.get(u)){m=new f.Editor(u,q);i.push(m);m.render(1)}else{o=0;g(document.forms,function(v){g(v.elements,function(w){if(w.name===u){u="mce_editor_"+o;e.setAttrib(w,"id",u);m=new f.Editor(u,q);i.push(m);m.render(1)}})})}})}break;case"textareas":case"specific_textareas":function s(v,u){return u.constructor===RegExp?u.test(v.className):e.hasClass(v,u)}g(e.select("textarea"),function(u){if(q.editor_deselector&&s(u,q.editor_deselector)){return}if(!q.editor_selector||s(u,q.editor_selector)){n=e.get(u.name);if(!u.id&&!n){u.id=u.name}if(!u.id||p.get(u.id)){u.id=e.uniqueId()}m=new f.Editor(u.id,q);i.push(m);m.render(1)}});break}if(q.oninit){r=t=0;g(i,function(u){t++;if(!u.initialized){u.onInit.add(function(){r++;if(r==t){j(q,"oninit")}})}else{r++}if(r==t){j(q,"oninit")}})}})},get:function(i){return this.editors[i]},getInstanceById:function(i){return this.get(i)},add:function(i){this.editors[i.id]=i;this._setActive(i);return i},remove:function(j){var i=this;if(!i.editors[j.id]){return null}delete i.editors[j.id];if(i.activeEditor==j){i._setActive(null);g(i.editors,function(k){i._setActive(k);return false})}j.destroy();return j},execCommand:function(o,m,l){var n=this,k=n.get(l),i;switch(o){case"mceFocus":k.focus();return true;case"mceAddEditor":case"mceAddControl":if(!n.get(l)){new f.Editor(l,n.settings).render()}return true;case"mceAddFrameControl":i=l.window;i.tinyMCE=tinyMCE;i.tinymce=f;f.DOM.doc=i.document;f.DOM.win=i;k=new f.Editor(l.element_id,l);k.render();if(f.isIE){function j(){k.destroy();i.detachEvent("onunload",j);i=i.tinyMCE=i.tinymce=null}i.attachEvent("onunload",j)}l.page_window=null;return true;case"mceRemoveEditor":case"mceRemoveControl":if(k){k.remove()}return true;case"mceToggleEditor":if(!k){n.execCommand("mceAddControl",0,l);return true}if(k.isHidden()){k.show()}else{k.hide()}return true}if(n.activeEditor){return n.activeEditor.execCommand(o,m,l)}return false},execInstanceCommand:function(m,l,k,j){var i=this.get(m);if(i){return i.execCommand(l,k,j)}return false},triggerSave:function(){g(this.editors,function(i){i.save()})},addI18n:function(k,l){var i,j=this.i18n;if(!f.is(k,"string")){g(k,function(n,m){g(n,function(q,p){g(q,function(s,r){if(p==="common"){j[m+"."+r]=s}else{j[m+"."+p+"."+r]=s}})})})}else{g(l,function(n,m){j[k+"."+m]=n})}},_setActive:function(i){this.selectedInstance=this.activeEditor=i}});f.EditorManager.preInit()})(tinymce);var tinyMCE=window.tinyMCE=tinymce.EditorManager;(function(n){var o=n.DOM,k=n.dom.Event,f=n.extend,l=n.util.Dispatcher;var j=n.each,a=n.isGecko,b=n.isIE,e=n.isWebKit;var d=n.is,h=n.ThemeManager,c=n.PluginManager,i=n.EditorManager;var p=n.inArray,m=n.grep,g=n.explode;n.create("tinymce.Editor",{Editor:function(u,r){var q=this;q.id=q.editorId=u;q.execCommands={};q.queryStateCommands={};q.queryValueCommands={};q.isNotDirty=false;q.plugins={};j(["onPreInit","onBeforeRenderUI","onPostRender","onInit","onRemove","onActivate","onDeactivate","onClick","onEvent","onMouseUp","onMouseDown","onDblClick","onKeyDown","onKeyUp","onKeyPress","onContextMenu","onSubmit","onReset","onPaste","onPreProcess","onPostProcess","onBeforeSetContent","onBeforeGetContent","onSetContent","onGetContent","onLoadContent","onSaveContent","onNodeChange","onChange","onBeforeExecCommand","onExecCommand","onUndo","onRedo","onVisualAid","onSetProgressState"],function(s){q[s]=new l(q)});q.settings=r=f({id:u,language:"en",docs_language:"en",theme:"simple",skin:"default",delta_width:0,delta_height:0,popup_css:"",plugins:"",document_base_url:n.documentBaseURL,add_form_submit_trigger:1,submit_patch:1,add_unload_trigger:1,convert_urls:1,relative_urls:1,remove_script_host:1,table_inline_editing:0,object_resizing:1,cleanup:1,accessibility_focus:1,custom_shortcuts:1,custom_undo_redo_keyboard_shortcuts:1,custom_undo_redo_restore_selection:1,custom_undo_redo:1,doctype:'',visual_table_class:"mceItemTable",visual:1,inline_styles:true,convert_fonts_to_spans:true,font_size_style_values:"xx-small,x-small,small,medium,large,x-large,xx-large",apply_source_formatting:0,directionality:"ltr",forced_root_block:"p",valid_elements:"@[id|class|style|title|dir';if(G.document_base_url!=n.documentBaseURL){F.iframeHTML+=''}F.iframeHTML+='';if(n.relaxedDomain){F.iframeHTML+=''); - tinymce.ScriptLoader.markDone(u); - } - } - }, - - pickColor : function(e, element_id) { - this.execCommand('mceColorPicker', true, { - color : document.getElementById(element_id).value, - func : function(c) { - document.getElementById(element_id).value = c; - - try { - document.getElementById(element_id).onchange(); - } catch (ex) { - // Try fire event, ignore errors - } - } - }); - }, - - openBrowser : function(element_id, type, option) { - tinyMCEPopup.restoreSelection(); - this.editor.execCallback('file_browser_callback', element_id, document.getElementById(element_id).value, type, window); - }, - - confirm : function(t, cb, s) { - this.editor.windowManager.confirm(t, cb, s, window); - }, - - alert : function(tx, cb, s) { - this.editor.windowManager.alert(tx, cb, s, window); - }, - - close : function() { - var t = this; - - // To avoid domain relaxing issue in Opera - function close() { - t.editor.windowManager.close(window); - tinymce = tinyMCE = t.editor = t.params = t.dom = t.dom.doc = null; // Cleanup - }; - - if (tinymce.isOpera) - t.getWin().setTimeout(close, 0); - else - close(); - }, - - // Internal functions - - _restoreSelection : function() { - var e = window.event.srcElement; - - if (e.nodeName == 'INPUT' && (e.type == 'submit' || e.type == 'button')) - tinyMCEPopup.restoreSelection(); - }, - -/* _restoreSelection : function() { - var e = window.event.srcElement; - - // If user focus a non text input or textarea - if ((e.nodeName != 'INPUT' && e.nodeName != 'TEXTAREA') || e.type != 'text') - tinyMCEPopup.restoreSelection(); - },*/ - - _onDOMLoaded : function() { - var t = this, ti = document.title, bm, h, nv; - - // Translate page - if (t.features.translate_i18n !== false) { - h = document.body.innerHTML; - - // Replace a=x with a="x" in IE - if (tinymce.isIE) - h = h.replace(/ (value|title|alt)=([^"][^\s>]+)/gi, ' $1="$2"') - - document.dir = t.editor.getParam('directionality',''); - - if ((nv = t.editor.translate(h)) && nv != h) - document.body.innerHTML = nv; - - if ((nv = t.editor.translate(ti)) && nv != ti) - document.title = ti = nv; - } - - document.body.style.display = ''; - - // Restore selection in IE when focus is placed on a non textarea or input element of the type text - if (tinymce.isIE) - document.attachEvent('onmouseup', tinyMCEPopup._restoreSelection); - - t.restoreSelection(); - t.resizeToInnerSize(); - - // Set inline title - if (!t.isWindow) - t.editor.windowManager.setTitle(window, ti); - else - window.focus(); - - if (!tinymce.isIE && !t.isWindow) { - tinymce.dom.Event._add(document, 'focus', function() { - t.editor.windowManager.focus(t.id) - }); - } - - // Patch for accessibility - tinymce.each(t.dom.select('select'), function(e) { - e.onkeydown = tinyMCEPopup._accessHandler; - }); - - // Call onInit - // Init must be called before focus so the selection won't get lost by the focus call - tinymce.each(t.listeners, function(o) { - o.func.call(o.scope, t.editor); - }); - - // Move focus to window - if (t.getWindowArg('mce_auto_focus', true)) { - window.focus(); - - // Focus element with mceFocus class - tinymce.each(document.forms, function(f) { - tinymce.each(f.elements, function(e) { - if (t.dom.hasClass(e, 'mceFocus') && !e.disabled) { - e.focus(); - return false; // Break loop - } - }); - }); - } - - document.onkeyup = tinyMCEPopup._closeWinKeyHandler; - }, - - _accessHandler : function(e) { - e = e || window.event; - - if (e.keyCode == 13 || e.keyCode == 32) { - e = e.target || e.srcElement; - - if (e.onchange) - e.onchange(); - - return tinymce.dom.Event.cancel(e); - } - }, - - _closeWinKeyHandler : function(e) { - e = e || window.event; - - if (e.keyCode == 27) - tinyMCEPopup.close(); - }, - - _wait : function() { - var t = this, ti; - - if (tinymce.isIE && document.location.protocol != 'https:') { - // Fake DOMContentLoaded on IE - document.write('
'+j.renderHTML()+""+j.renderHTML()+"