tinymce在定义之前就被使用了

tinymce was used before it was defined

我使用的库有问题。它告诉我在定义之前使用了 tinmce。这个库使文本区域成为一个所见即所得的编辑器。但现在它无法正常工作。

希望有人能帮我解决这个问题! 谢谢!

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 To 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 and Respond.js IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the 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>

如果您使用的是 Apache:

Problem is caused by default Apache option EnableSendfile. You must turn it OFF by removing the # character in the httpd.conf file.

参见:TinyMCE-Installation: Windows specific Apache configuration

来自:

#EnableSendfile off

至:

EnableSendfile off