How to limit the size of a text-area in Confluence?

Hello,

at the moment I try to make a new template. In this template there are e.g. text-fields which can be filled out by the user when he adds a new field and selects this template.

The big problem is, that I don t know what to do that a text field stays the same size i want it to stay even if a user enters lots of words. So far I ve tried to solve this problem with @var@ , the text-data macro (width=e.g 300px, height=e.g 500} macro, the section macro and a combination of all of them.

Is there a simple command I can use so the text-area stays the same (and do not change in size any more)?

Is there also a way for a automatic text-breaks?

Many Thanks for your help

Daniel

2 answers

0 vote
David Simpson Community Champion Aug 11, 2011

Wrap your form in a div to act as a CSS selector:

<div class="forcedSize"></div>

Then add an inline style, e.g.

<style>
#com-atlassian-confluence .forcedSize textarea {
width: 300px;
height: 500px;
}
</style>

This should fix up all children of div.forcedSize to be a specific dimension

Looks like you're using the Scaffolding Plugin... does the following not work?

{text-data:instanceName|width=300px|height=500px|type=area} {text-data}

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Jul 10, 2018 in Confluence

We want to see the templates you've created in Confluence!

Hi Community, Jessica here from the Confluence Product Marketing team!  July’s community challenge is all about sharing pictures  — and as an extension of our first post on what ...

989 views 23 13
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you