Hello,
Is it possible in the Description field (<textarea id="wpcf-group-description" name="wpcf[group][description]" </textarea>) to manage line breaks?
In fact, I use the description field of the publication fields to show some shortcodes as examples to my client when he fills in the site.
I'd like this field to be able to be formatted to avoid separations via "*" with line breaks.
Hello. Thank you for contacting the Toolset support.
Well - with plain text I can see when you add Enter and add few lines and again add Enter it does keep the line breaks as it is with the custom field group description box. Please check the following screenshot: hidden link
When if you hit enter and add the line brakes - it does not help?
When he said "hold on for further updates" I think he meant further updates in this thread, not plugin updates.
I can't say whether the developers will have a permanent solution for this or not.
However, I can see from the work in progress in the internal ticket that a simple workaround is available in the meantime.
You can edit the file wp-content/plugins/types/vendor/toolset/types/embedded/includes/fields-post.php and comment out line 527, i.e. add // at the start of it, like so
They said that the description field was envisaged as a simple text description field, not a WYSIWYG-type field, and so was implemented that way, and this is the first time it has been brought up in a decade.
It wouldn't be too difficult to change, but it is part of integration code with WPML, and changing it could have unforeseen implications for multilingual sites, and existing clients losing translations.
So, they said they won't change this, unless we get a lot of requests from other users, in which case they will reconsider it.
So you will need to decide. If you want to continue to be able to use formatted text for the description, you will need to make the same edit to the Types file whenever there is a Types update. (There are usually only a couple of those a year, though.)