Skip to content
Menu
Smartttips Smartttips
  • Home
  • About Us
    • Privacy Policy
  • Web Tips
    • PHP Tips
      • CodeIgniter
      • Yii Framework
      • SocialEngine
      • zendframework
      • SQL
    • jQuery
    • CSS
    • Internet
    • Google
    • whatsApp
    • Soma Messenger
    • Useful Sites
  • General Tips
    • Top 10 Lists
    • Onam wishes and Greetings
    • Travel and Tourism
  • Free Web Tools
    • English To Malayalam Converter
    • Malayalam To English Converter
    • English To Tamil Converter
    • Manglish To Malayalam Converter
    • Other Free Web Tools
  • Jobs
  • Contact
Smartttips Smartttips

TinyMCE editor with file Upload and ajaxfilemanager plugin

Posted on May 8, 2013 by smarttips

TinyMCE editor with file Upload and ajaxfilemanager plugin

TinyMCE is a common editor used in php applications. It includes all common features of editors like fck editor,ck editor..etc. One thing is missing in TinyMCE is file uploading. This editor requires extra plugin for getting file upload feature. Steps for implementing TinyMce photo upload feature is

1.Free Download TinyMce Editior
2. TInyMce have option to add extra plugins.
Tinymce->plugins
I found ajaxfilemanager is the best plugin for TinyMce file upload.
Free Download ajaxfilemananger
3.Copy ajaxfilemanager code in plugin folder and configure it
Tinymce->plugins->ajaxfilemanager->inc->config.bas.php
/*code for setting basepath in tinymce ajaxfilemanger plugin*/
<?php
$filename = (‘../../../../../public/tinymceimages/’);
$dirname=’tinymceimages’;
if (!file_exists($filename)) {
mkdir(“../../../../../public/” . “$dirname”, 0777);
}
define(‘CONFIG_SYS_DEFAULT_PATH’, ‘../../../../../public/tinymceimages/’); //accept relative path only
define(‘CONFIG_SYS_ROOT_PATH’, ‘../../../../../public/tinymceimages/’); //accept relative path only
define(‘CONFIG_SYS_FOLDER_SHOWN_ON_TOP’, true); //show your folders on the top of list if true or order by name
define(“CONFIG_SYS_DIR_SESSION_PATH”, ‘../../../../../temporary/session/’);
?>

Then add the following code  in page where tinymce use
<script type=”text/javascript”>
jQuery(‘textarea.tinymce’).tinymce({
// Location of TinyMCE script
script_url : ‘<?php echo $this->baseUrl(); ?>/js/libs/tiny_mce/tiny_mce.js’,
// General options
theme : “advanced”,
file_browser_callback : “ajaxfilemanager”,
plugins : “autolink,lists,pagebreak,style,layer,table,save,advhr,advimage,advlink,emotions,iespell,inlinepopups,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,template,advlist”,
// Theme options
theme_advanced_buttons1 : “image,bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,formatselect,fontselect,fontsizeselect,ibrowser”,
// theme_advanced_buttons2 : “image,insertlayer,moveforward,movebackward,absolute,|,styleprops,|,cite,abbr,acronym,del,ins,attribs,|,visualchars,nonbreaking,template,pagebreak”,

/*theme_advanced_buttons2 : “cut,copy,paste,pastetext,pasteword,|,search,replace,|,bullist,numlist,|,outdent,indent,blockquote,|,undo,redo,|,link,unlink,anchor,image,cleanup,help,code,|,insertdate,inserttime,preview,|,forecolor,backcolor”,
theme_advanced_buttons3 : “tablecontrols,|,hr,removeformat,visualaid,|,sub,sup,|,charmap,emotions,iespell,media,advhr,|,print,|,ltr,rtl,|,fullscreen”,
theme_advanced_buttons4 : “insertlayer,moveforward,movebackward,absolute,|,styleprops,|,cite,abbr,acronym,del,ins,attribs,|,visualchars,nonbreaking,template,pagebreak”,
*/
theme_advanced_toolbar_location : “top”,
theme_advanced_toolbar_align : “left”,
theme_advanced_statusbar_location : “bottom”,
theme_advanced_resizing : true,
relative_urls:false,
remove_script_host : true,
document_base_url : “/”,
convert_urls : false,
});
</script>

Post Views: 1,670

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Type to Search

Popular Posts

  • Find Vehicle ownership Details in Kerala-Through vahan Online
  • Free Online Tools for Web Statistics
  • PhpMyAdmin Login error – Login without a password is forbidden
  • Increase PHP Script Execution Time in zendframework ?
  • Umm Al Quawain Zoo-The Zoo Wildlife Park-Zoo In UAE

Categories

  • Android
  • Apple
  • Automobile
  • Banking
  • Bevco
  • BevQ App
  • Business
  • CodeIgniter
  • Computer
  • Cricket-IPL-2020
  • CSS
  • Database
  • Design
  • Digital Marketing
  • Digital marketing jobs
  • Du
  • Easy Malayalam Typing
  • Entertrainment
  • Etisalat
  • Facebook
  • Famous Birthdays
  • FIFA World Cup Live Streaming
  • Food & restaurants
  • Free Web Statistics Tools
  • G K
  • Games
  • General
  • git
  • GK
  • Google
  • Hardware
  • Health
  • Huawei
  • Instagram
  • Internet
  • iOS
  • iPad
  • iPhone
  • Java
  • javaScript
  • Jobs
  • jQuery
  • Kissan Card India
  • lifestyle
  • LiFi
  • Linux
  • Make in India
  • Mobile Phones
  • Movies
  • Ms Excel
  • Networking
  • News
  • Nodejs Framework
  • opencart
  • Opensource
  • Others
  • Outlook
  • photography
  • Photoshop Tips
  • PHP
  • PHP Project Ideas
  • phpMyadmin
  • Politics
  • PUBGMOBILE
  • SEO
  • Server
  • SMO
  • SocialEngine
  • Softwares
  • Soma Messenger
  • Sports
  • SQL
  • Technology
  • Telecom
  • Top 10 Lists
  • Travel and Tourism
  • UAE Directory
  • Uncategorized
  • Useful Sites
  • Vechicles
  • Videos
  • Web Designer
  • Web Tips
  • whatsApp
  • WiFi
  • Windows
  • windows 10
  • windows 11
  • wordpress
  • World
  • Yii Framework
  • youtube
  • zendframework

smart Tags

Android apache Baahubali baahubali releasing date cinima CodeIgniter config charset and UTF-8 Codex content css data usage edge case elementum Facebook famous birthdays Fast youTube video downloading featured image General Knowledge google Google chrome how to lose weight fast with exercise how to lose weight fast without exercise how to lose weight in 7 days HTML Color Codes iconv() detect illegal char in input image iOS iPad javascript jQuery Kerala Maecenas Microsoft Excel microsoft windows 10 Movies Mysql PHP php job vacancy php zend framework SocialEngine SQL Commands sundar pichai template ubuntu web tips zend framewrok
©2026 Smartttips | Powered by Superb Themes
We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.