javascript - tinymce was used before it was defined -


i have problem librabry using. tells me tinmce used before defined. librabry makes text area wysiwyg editor. right it's not working correctly.

hope can me out this! thanks!

tinymce.init({selector: 'textarea'});
<?php include "../includes/db.php"; ?>  <?php include "functions.php"; ?>  <?php ob_start(); ?>  <?php session_start(); ?>    <?php        if(!isset($_session['user_role'])){                    if($_session['user_role'] !== 'admin'){                            header("location: ../index.php");                    }       }    ?>    <!doctype html>  <html lang="en">    <head>        <meta charset="utf-8">      <meta http-equiv="x-ua-compatible" content="ie=edge">      <meta name="viewport" content="width=device-width, initial-scale=1">      <meta name="description" content="">      <meta name="author" content="">        <title>welcome dashboard</title>        <!-- bootstrap core css -->      <link href="css/bootstrap.min.css" rel="stylesheet">        <!-- custom css -->      <link href="css/sb-admin.css" rel="stylesheet">        <!-- custom fonts -->      <link href="font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css">        <!-- html5 shim , respond.js ie8 support of html5 elements , media queries -->      <!-- warning: respond.js doesn't work if view page via file:// -->      <!--[if lt ie 9]>          <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>          <script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>      <![endif]-->            <!-- google chart librabry voor google charts -->      <script type="text/javascript" src="https://www.google.com/jsapi"></script>            <!-- tinymce wysiwyg editor voor posts -->      <script src="http://tinymce.cachefly.net/4.2/tinymce.min.js"></script>            <script src="js/scripts.js"></script>          </head>    <body>

if using apache:

problem caused default apache option enablesendfile. must turn off removing # character in httpd.conf file.

see: tinymce-installation: windows specific apache configuration

from:

#enablesendfile off 

to:

enablesendfile off 

Comments

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -