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

Short toolbar in cftextarea.

Community Beginner ,
Mar 31, 2022 Mar 31, 2022
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>

350
Translate
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!
Translate
Community Expert ,
Apr 01, 2022 Apr 01, 2022

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.

Translate
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
Thanks!
The problem was solved by shutting down the PC.
Thus, the changes made in "config.js" have been activated.
Thank's again!
Translate
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

Thanks for sharing the solution.

Translate
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
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!

Translate
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