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>
Thanks!
The problem was solved by shutting down the PC.
Thus, the changes made in "config.js" have been activated.
Thank's again!
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.
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!
Copy link to clipboard
Copied
Thanks for sharing the solution.
Copy link to clipboard
Copied
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!