Skip to content

spraguey/cftextarea-lucee

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 

cftextarea-lucee

CFTEXTAREA for Lucee

This is a replacement for cftextarea for Lucee servers. The intention of this tag is to prevent the need to go edit every place that you used cftextarea on a server that used to be Adobe CF. This will dumb down the code to a simple HTML5 textarea tag.

Why? I had a set of servers with hundreds of websites on them. They were all being converted from Adobe ColdFusion to Lucee. Rather than edit hundreds of files to remove cftextarea, I created this replacement tag.

What it does not do...

This tag will not do richtext="yes" (ckeditor), and it will not do binding with bind="" like the Adobe version.

Installation

Place textarea.cfc in your library/tag folder. You can do this at the server or context/site level. ('/lucee-server/context/library/tag' for server, or '/WEB-INF/lucee/library/tag' for a single site/context). Then, restart Lucee.

##Usage

You use this just like the regular CFTEXTAREA tag in Adobe ColdFusion (http://cfdocs.org/cftextarea).

##Supported Attributes

name:			{required:true,type:"string"}
id:      	{required:false,type:"string",default:""}
value: 			{required:false,type:"string",default:""}
width: 			{required:false,type:"string",default:""} 
height:  			{required:false,type:"string",default:""}	
style: 			{required:false,type:"string",default:""}
maxlength: 		{required:false,type:"string",default:""}	
rows: 		{required:false,type:"string",default:""}
cols: 			{required:false,type:"string",default:""}		
class: 		{required:false,type:"string",default:""}	
required: 			{required:false,type:"string",default:""}	
wrap: 			{required:false,type:"string",default:""}
placeholder: {required:false,type:"string",default:""} 

Also, if you pass in any other attribute, it will be appended to the <textarea> tag.

##Examples

 <cftextarea 
  name="Address"
  required="yes"
  style="background-color:gray;"
  value="123 Main Street"
  />
 <cftextarea 
  name="Address"
  required="yes"
  style="background-color:gray;"
  data-custom="yes"
  >123 Main Street</cftextarea>

About

CFTEXTAREA for Lucee

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published