WYSIWYG-Format entfernen
Wandlung des WYSIWYG-Formates (mit entprechendem Interface) in eine einfaches Standard-Format
Wandlung des WYSIWYG-Formates (mit entprechendem Interface) in eine einfaches Standard-Format
Installation: die XML-Konfiguratiionsdatei wird über das Konfiguration-Menü "Aktionen" in das System geladen und steht anschließend für die Anwendung auf Textaschnitte zur Verfügung.
Der folgende DMTL-Code modifiziert das format-Attriibut und bereinigt den Content-Strom von Zeilenumbrüchen, die im non-HTML-Modus zu br-Elementen führen würden.
<dtml-comment> ########################################################################################## # Author: Ralf Herold <ralf.herold@charite.de> # WWW: http://www.kinderkrebsinfo.de/ # Date: 29.07.2003 / 13.04.2006 # Version: 0.1 # Comments: Action for reducing WYSIWYG paragraphs into regular "Textabschnitte". ########################################################################################## </dtml-comment> <!-- Process textarea --> <dtml-if "meta_type=='ZMSTextarea'"> <dtml-call "setObjStateModified(REQUEST)"> <dtml-call "setObjProperty('format','body',lang)"> <dtml-call "setObjProperty('text_'+lang, _.string.replace(getObjProperty('text_'+lang, REQUEST), '\r', ''), lang)"> <dtml-call "setObjProperty('text_'+lang, _.string.replace(getObjProperty('text_'+lang, REQUEST), '\n', ''), lang)"> <dtml-call "onChangeObj(REQUEST)"> </dtml-if> <!-- return with message --> <dtml-call expr="REQUEST.set('message','Un-WYSIWYGed textarea.')"> <dtml-return message>
Erstellt von: F. Hoffmann , erstellt am: 27.06.2008 , zuletzt geändert: 27.06.2008