diff --git a/src/main/java/org/olat/modules/forms/handler/HTMLRawHandler.java b/src/main/java/org/olat/modules/forms/handler/HTMLRawHandler.java index e6009fdef86c6bcc1321f6d23f6eaf4ce251b4a0..ab4068aafdb0338af41bca3fd5bc1305a51a5f2a 100644 --- a/src/main/java/org/olat/modules/forms/handler/HTMLRawHandler.java +++ b/src/main/java/org/olat/modules/forms/handler/HTMLRawHandler.java @@ -19,23 +19,17 @@ */ package org.olat.modules.forms.handler; -import java.util.Locale; -import java.util.UUID; - import org.olat.core.gui.UserRequest; import org.olat.core.gui.components.Component; import org.olat.core.gui.components.form.flexible.impl.Form; import org.olat.core.gui.components.text.TextFactory; import org.olat.core.gui.control.WindowControl; -import org.olat.core.gui.translator.Translator; import org.olat.core.util.CodeHelper; -import org.olat.core.util.Util; import org.olat.modules.ceditor.PageElement; import org.olat.modules.ceditor.PageElementEditorController; import org.olat.modules.ceditor.PageElementRenderingHints; import org.olat.modules.ceditor.PageElementStore; import org.olat.modules.ceditor.PageRunElement; -import org.olat.modules.ceditor.SimpleAddPageElementHandler; import org.olat.modules.ceditor.model.HTMLElement; import org.olat.modules.ceditor.ui.ComponentsFactory; import org.olat.modules.ceditor.ui.HTMLRawEditorController; @@ -55,7 +49,7 @@ import org.olat.modules.forms.ui.model.ExecutionIdentity; * @author srosse, stephane.rosse@frentix.com, http://www.frentix.com * */ -public class HTMLRawHandler implements EvaluationFormElementHandler, PageElementStore<HTMLElement>, SimpleAddPageElementHandler, EvaluationFormReportHandler { +public class HTMLRawHandler implements EvaluationFormElementHandler, PageElementStore<HTMLElement>, EvaluationFormReportHandler { @Override public String getType() { @@ -81,16 +75,6 @@ public class HTMLRawHandler implements EvaluationFormElementHandler, PageElement return null; } - @Override - public PageElement createPageElement(Locale locale) { - Translator translator = Util.createPackageTranslator(HTMLRawEditorController.class, locale); - String content = translator.translate("raw.example"); - HTMLRaw part = new HTMLRaw(); - part.setId(UUID.randomUUID().toString()); - part.setContent(content); - return part; - } - @Override public HTMLElement savePageElement(HTMLElement element) { return element; diff --git a/src/main/java/org/olat/modules/forms/ui/_i18n/LocalStrings_de.properties b/src/main/java/org/olat/modules/forms/ui/_i18n/LocalStrings_de.properties index 504ae68ff81c447ab0c51569ee8d308cb11f7f5f..13bc6bb643e10aaa2522dd8dc6ec2be568bbea9f 100644 --- a/src/main/java/org/olat/modules/forms/ui/_i18n/LocalStrings_de.properties +++ b/src/main/java/org/olat/modules/forms/ui/_i18n/LocalStrings_de.properties @@ -59,7 +59,6 @@ multiple.choice.others=Weitere multiple.choice.with.others.enabled=Teilnehmer kann weitere Werte erfassen multiple.choice.with.others=Weitere no.response=Keine Antwort m\u00F6glich -raw.example=Anklicken um Text zu bearbeiten. Es \u00F6ffnet sich ein Text Editor. report.anonymous.user=Anonym report.count.count.title=Anzahl report.count.name.title=Wert diff --git a/src/main/java/org/olat/modules/forms/ui/_i18n/LocalStrings_en.properties b/src/main/java/org/olat/modules/forms/ui/_i18n/LocalStrings_en.properties index f10d8fbb5f68fef78964cb8c25ad31303096fa30..aff6f55f461df1fe123d70a6db2245a49aee0abb 100644 --- a/src/main/java/org/olat/modules/forms/ui/_i18n/LocalStrings_en.properties +++ b/src/main/java/org/olat/modules/forms/ui/_i18n/LocalStrings_en.properties @@ -59,7 +59,6 @@ multiple.choice.others=Others multiple.choice.with.others=Others multiple.choice.with.others.enabled=Participant can insert others values no.response=No answer -raw.example=Click to edit text. The HTML editor will open. report.anonymous.user=Anonymous report.count.count.title=Count report.count.name.title=Value diff --git a/src/main/java/org/olat/modules/forms/ui/_i18n/LocalStrings_fr.properties b/src/main/java/org/olat/modules/forms/ui/_i18n/LocalStrings_fr.properties index c0d1f095ea62ddddd721d7aacf99de037b527f8f..0cf0a97198e9c42d41fb2075b459876291fb8c05 100644 --- a/src/main/java/org/olat/modules/forms/ui/_i18n/LocalStrings_fr.properties +++ b/src/main/java/org/olat/modules/forms/ui/_i18n/LocalStrings_fr.properties @@ -59,7 +59,6 @@ multiple.choice.others=Autres multiple.choice.with.others=Autres multiple.choice.with.others.enabled=Le participant peut entrer d'autres valeurs no.response=Pas de r\u00E9ponse possible -raw.example=Cliquer pour \u00E9diter le texte. L'\u00E9diteur HTML va s'ouvrir. report.anonymous.user=Anonyme report.count.count.title=Nombre report.count.name.title=Valeur diff --git a/src/main/java/org/olat/modules/forms/ui/_i18n/LocalStrings_it.properties b/src/main/java/org/olat/modules/forms/ui/_i18n/LocalStrings_it.properties index f1a1896514bc51313154814180d7a532cf827f0d..8f5ecbe86dd8d121932e3aa84f9c5ef3afc15a8d 100644 --- a/src/main/java/org/olat/modules/forms/ui/_i18n/LocalStrings_it.properties +++ b/src/main/java/org/olat/modules/forms/ui/_i18n/LocalStrings_it.properties @@ -15,7 +15,6 @@ h5=h5 h6=h6 hr=Separatore htitle=Titolo -raw.example=Fare clic per modificare il testo. Verr\u00E0 aperto l'editore HTML. slider.continuous=Continuo slider.discrete=Discreto con radio button slider.discrete.slider=Discreto con slider diff --git a/src/main/java/org/olat/modules/forms/ui/_i18n/LocalStrings_pt_BR.properties b/src/main/java/org/olat/modules/forms/ui/_i18n/LocalStrings_pt_BR.properties index 53dd93c54859542c6c2c77014f5a49bd5ce5c955..648867f81553e2c3cb77a911942eb5f25dea6b44 100644 --- a/src/main/java/org/olat/modules/forms/ui/_i18n/LocalStrings_pt_BR.properties +++ b/src/main/java/org/olat/modules/forms/ui/_i18n/LocalStrings_pt_BR.properties @@ -57,7 +57,6 @@ multiple.choice.others=Outros multiple.choice.with.others=Outros multiple.choice.with.others.enabled=O participante pode inserir outros valores no.response=Nenhuma resposta -raw.example=Clique para editar o texto. O editor HTML ser\u00E1 aberto. report.anonymous.user=An\u00F4nimo report.count.count.title=Contagem report.count.name.title=Valor