• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Short toolbar in cftextarea.

Community Beginner ,
Mar 31, 2022 Mar 31, 2022

Copy link to clipboard

Copied

Hello everyone!
The toolbar in Coldfusion 21 cftextarea is not similar to the one in Coldfusion 10.
How to reduce the toolbar to 3 elements: Bold, Italic, Underline.
Thanks!

Cftextarea.cfm

 

<!doctype html>

<html>

<head>

<meta charset="utf-8">

<title>cftextarea</title>

<link rel="stylesheet" href="css/custom.css">

</head>

<body>

<cfform name="frmExample">

<div id="cftextarea_content">

<cftextarea name="mytext" richtext="true" toolbar="Single">

Make Love Not War!

</cftextarea>

</div>

<cfinput type="submit" value="Ok" name="submit"/>

</cfform>

</body>

</html>

Views

163

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Beginner , Apr 01, 2022 Apr 01, 2022
Thanks!
The problem was solved by shutting down the PC.
Thus, the changes made in "config.js" have been activated.
Thank's again!

Votes

Translate

Translate
Community Expert ,
Apr 01, 2022 Apr 01, 2022

Copy link to clipboard

Copied

Please make a printscreen of the toolbar in ColdFusion 2021. Then, using the same code in ColdFusion 10, make a second printscreen. 

 

Mark the differences in the pictures. Then share the pictures with the forum.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Apr 01, 2022 Apr 01, 2022

Copy link to clipboard

Copied

Thanks!
The problem was solved by shutting down the PC.
Thus, the changes made in "config.js" have been activated.
Thank's again!

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Apr 01, 2022 Apr 01, 2022

Copy link to clipboard

Copied

Thanks for sharing the solution.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Apr 02, 2022 Apr 02, 2022

Copy link to clipboard

Copied

LATEST
I feel compelled to come to the aid of those in my situation, posting the next addition:

In Coldfusion folder look for : ...wwwroot/cf_scripts/ajax/ckeditor/config.js.

In „config.js.” add the following lines:

 

1. config.toolbar = 'Single ';

2. config.toolbar_Single = [

3. { name: 'styles', items : [ 'Styles','Format' ] },

4. { name: 'basicstyles', items : [ 'Bold','Italic' ] }

5. ];

Have fun!

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation