Add TinyMCE editor in PHP or HTML

How to setup TinyMCE text editor Follow the below steps to add TinyMCE editor in PHP or HTML file. 1. Add TinyMCE editor’s JS library : <script type=”text/javascript” src=”tinymce/tinymce.min.js”></script> 2. Add HTML textarea to display Editor box : <textarea name=”editor” id=”editor”></textarea> 3. Call the TinyMCE editor function : <script> tinymce.init({ selector: ‘textarea#editor’, //Change this value according to your HTML auto_focus: … Read more

How to Reference a Function in Another Component

Components are an integral part of React. Each React application consists of several components, and each component may require user interaction that triggers various actions. To achieve user interactivity, we can call functions and methods to accomplish specific operations in React. We pass data from parent to child or child to parent components using these … Read more