Multi-Line Text Box [message #5834] |
Wed, 17 August 2016 05:13 ![Go to next message Go to next message](/theme/default/images/down.png) |
htManager
Messages: 427 Registered: May 2014
|
Senior Member |
|
|
Did you something change with the multi-line text box? In the detail view I only see one line. In the dictionary configuration I set it to 3 lines, 1 row.
Here the dict.inc entry:
$fieldspec['text']= array('type' => 'string',
'size' => 65535,
'required' => 'y',
'control' => 'multiline',
'cols' => 1,
'rows' => 3);
|
|
|
|
|
Re: Multi-Line Text Box [message #7487 is a reply to message #5835] |
Tue, 16 June 2020 15:41 ![Go to previous message Go to previous message](/theme/default/images/up.png) ![Go to next message Go to next message](/theme/default/images/down.png) |
htManager
Messages: 427 Registered: May 2014
|
Senior Member |
|
|
Can I change the height of a multi-line Text Box in a list view (list1 or list2) to the height of 1 line? At the moment the height is as big as the number of rows I inserted in the Data Dictionary.
And can I change the color of the field into grey as in the other columns?
See attached picture.
[Updated on: Tue, 16 June 2020 15:42] Report message to a moderator
|
|
|
|
|
|
|
|
Re: Multi-Line Text Box [message #7493 is a reply to message #7492] |
Sat, 27 June 2020 04:36 ![Go to previous message Go to previous message](/theme/default/images/up.png) ![Go to next message Go to next message](/theme/default/images/down.png) |
AJM
Messages: 2361 Registered: April 2006 Location: Surrey, UK
|
Senior Member |
|
|
You do not "call" the $css_array, you simply insert an entry as described in FAQ73. If the field is called 'bewertung_text' and the class name is 'mltb' then the code you need is $css_array['bewertung_text'] = 'mltb';
Note that the class name is not 'textarea.mltb' as 'textarea' is the element name and 'mltb' is the class.
Tony Marston
http://www.tonymarston.net
http://www.radicore.org
|
|
|
|
|
|
|
Re: Multi-Line Text Box [message #7498 is a reply to message #7497] |
Wed, 01 July 2020 04:40 ![Go to previous message Go to previous message](/theme/default/images/up.png) ![Go to next message Go to next message](/theme/default/images/down.png) |
AJM
Messages: 2361 Registered: April 2006 Location: Surrey, UK
|
Senior Member |
|
|
This can be done, but not easily. Simply inserting HTML tags into the text will not work as '<' and '>' characters will be translated into '<' and '>'. You can, however, use a javascript editor such as fckeditor or tinymce. If you visit the demo app and go into the 'Example Subsystem', then choose 'List Person' followed by 'Update (js)' you will see two additional navigation buttons called 'Update (fckeditor)' and 'Update (tinymce)' which provide working examples.
Tony Marston
http://www.tonymarston.net
http://www.radicore.org
|
|
|
|
|
|
|
Re: Multi-Line Text Box [message #7507 is a reply to message #7506] |
Sat, 01 August 2020 04:49 ![Go to previous message Go to previous message](/theme/default/images/up.png) ![Go to next message Go to next message](/theme/default/images/down.png) |
AJM
Messages: 2361 Registered: April 2006 Location: Surrey, UK
|
Senior Member |
|
|
The XAMPLE subsystem has its own javascript directory in which there are separate subdirectories for tiny_mce and ckeditor. The class file 'x_person_s03.class.inc' uses the ckeditor library while 'x_person_s05.class.inc' uses the tiny_mce library. You can see the relevant code in the '_cm_setJavaScript()' method. If you want you can move these two subdirectories from 'radicore/xample/javascript' to 'radicore/javascript', but you will have to amend the path in your code.
Tony Marston
http://www.tonymarston.net
http://www.radicore.org
|
|
|
|
Re: Multi-Line Text Box [message #7509 is a reply to message #7508] |
Sun, 02 August 2020 13:37 ![Go to previous message Go to previous message](/theme/default/images/up.png) ![Go to next message Go to next message](/theme/default/images/down.png) |
AJM
Messages: 2361 Registered: April 2006 Location: Surrey, UK
|
Senior Member |
|
|
If you can run the javascript editor in the XAMPLE subdirectory without problems, but you have problems when running the same code in your own subdirectory then there is something different. You need to obtain the HTML source from both subsystems and look for differences.
Tony Marston
http://www.tonymarston.net
http://www.radicore.org
|
|
|
|
|
|
|
Re: Multi-Line Text Box [message #7514 is a reply to message #7513] |
Wed, 05 August 2020 17:01 ![Go to previous message Go to previous message](/theme/default/images/up.png) |
htManager
Messages: 427 Registered: May 2014
|
Senior Member |
|
|
Okay. Thank you for the information. Then I have to use the multi-line-textbox only with html without Javascript because I have to output it as a pdf. Maybe sometimes this will be possible....
|
|
|