Coding With Fun
Home Docker Django Node.js Articles Python pip guide FAQ Policy

What do you need to know about tinymce?


Asked by Kenzie Pittman on Dec 13, 2021 FAQ



What Is TinyMCE? Though they may not know its name, millions of people all over the world use TinyMCE. TinyMCE is an open source, platform-independent WYSIWYG (What You See Is What You Get) visual editor, built using JavaScript and HTML.
In addition,
The first thing you need to do is get a WYSIWYG editor. Now, you could write one from scratch. But that takes time. And time is something you don't have because you're a software developer. So you determine that it's best to go with the Cadillac of front-end WYSIWYG solutions: TinyMCE.
In this manner, So some enterprising souls decided they would take the only thing missing from TinyMCE – a free file management plugin – from FCKEditor and integrate the two. The result is TinyFCK. To get this to work in ExpressionEngine, you need to take the example code from the TinyFCK home page and add it to the script that initalises TinyMCE.
Furthermore,
The TinyMCE editor is defined as a <textarea> field. That's because users need a little more vertical space than they generally get with standard <input> fields. Let's take a deep dive into the code: Once again, you're mapping the name of the field ("body") with the BlogPost object field of the same name.
Besides,
To get this to work in ExpressionEngine, you need to take the example code from the TinyFCK home page and add it to the script that initalises TinyMCE. I use the LG-TinyMCE extension on my sites, so I did this by simply adding the code to ext.lg_tinymce.php just after: