From 2614ee63db16d35d70c610f772035eb14e16adfd Mon Sep 17 00:00:00 2001 From: Frederic Gaus <gaus@flagbit.de> Date: Tue, 10 Feb 2015 15:21:54 +0100 Subject: [PATCH] [BUGFIX] t3editor: Add code autocompletion for listNum Add code autocompletion for property listNum and property preIfEmptyListNum in t3editor. Resolves: #25732 Releases: master, 6.2 Change-Id: I13c15e2e262a926e8444d7f50933823b27cdcd9d Reviewed-on: http://review.typo3.org/36793 Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl> Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch> Tested-by: Christian Kuhn <lolli@schwarzbu.ch> Reviewed-by: Anja Leichsenring <aleichsenring@ab-softlab.de> Tested-by: Anja Leichsenring <aleichsenring@ab-softlab.de> --- typo3/sysext/t3editor/res/tsref/tsref.xml | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/typo3/sysext/t3editor/res/tsref/tsref.xml b/typo3/sysext/t3editor/res/tsref/tsref.xml index 2bf15b64d5f7..48f78a85c0e6 100644 --- a/typo3/sysext/t3editor/res/tsref/tsref.xml +++ b/typo3/sysext/t3editor/res/tsref/tsref.xml @@ -7393,7 +7393,7 @@ Output will be "Ich bin..." instead of "I am..."]]></description> <default><![CDATA[ ]]></default> </property> - <property name="listNum" type="string"> + <property name="listNum" type="listNum"> <description><![CDATA[Explodes the content with "," (comma) and the content is set to the item[value]. Special keyword: "last" is set to the last element of the array! @@ -7552,7 +7552,7 @@ Supplied by Jens Ellerbrock]]></description> <default><![CDATA[ ]]></default> </property> - <property name="preIfEmptyListNum" type="string"> + <property name="preIfEmptyListNum" type="listNum"> <description><![CDATA[(as "listNum" below)]]></description> <default><![CDATA[ ]]></default> @@ -8141,4 +8141,16 @@ The userfunction must return an <A>-tag.]]></description> ]]></default> </property> </type> + <type id="listNum"> + <property name="splitChar" type="string"> + <description><![CDATA[Defines the string used to explode the value. If splitChar is an integer, the character with that number is used (e.g. "10" to split lines...). + + Default: "," (comma)]]></description> + <default><![CDATA[,]]></default> + </property> + <property name="stdWrap" type="stdWrap"> + <description><![CDATA[stdwrap properties of the listNum... +]]></description> + </property> + </type> </tsRef> -- GitLab