Project / Support Center
Welcome, Guest. Please login or register. November 28, 2023, 09:30: PM
Home Help Search Login Register
D-Web Web Site Creator D - Web Web Site Creator On-line HTML Editor No Programming knowledge required. Web Global Net PayPal-Cart Shopping Cart System PayPal - Kart Shopping Cart System for E-Commerce over the internet, that's easy to use. Web Global Net Newsletter Manager Newsletter Manager On-line Newsletter Creator with Email Subscriber Management.
Ring Central Discount
Web Global Net Web Application & Web Development Project Center  |  Technical Issues  |  Open Source Topics  |  tiny mce  |  Topic: Quickly adding TinyMCE to a page and textarea field 0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Go Down Send this topic Print
Author Topic: Quickly adding TinyMCE to a page and textarea field  (Read 26838 times)
admin
Administrator
******
Offline Offline

Posts: 239


« on: March 03, 2016, 06:18: PM »

Upload the /tiny_mce/ directory to where you want it and make sure red area is pointing to it correctly

The Add this to the head area:

<!-- TinyMCE -->
<script type="text/javascript" src="tiny_mce/tiny_mce.js"></script>
<script type="text/javascript">
   tinyMCE.init({
      mode : "textareas",
      theme : "simple",
      width: "400px",
      height: "300px",
      editor_selector : "reg_note"
   });
</script>
<!-- /TinyMCE -->

The editor_selector is the textarea name and also add it as the class for the textarea itself

 <textarea name="reg_note" class="reg_note" id="reg_note">

<?php echo $row_rsreg['reg_note']; ?>

</textarea>


Thats it the simple text editor should show up now in the textfield you wanted it to work with.

If it is not make sure red section is pointing to the tiny_mce directory correctly.
Adjust Width and height as you want
« Last Edit: March 03, 2016, 06:21: PM by admin » Report to moderator   Logged

The Unknown Webmaster
Pages: [1] Go Up Send this topic Print 
Web Global Net Web Application & Web Development Project Center  |  Technical Issues  |  Open Source Topics  |  tiny mce  |  Topic: Quickly adding TinyMCE to a page and textarea field « previous next »
Jump to:  


Login with username, password and session length
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!