微小的mce无法加载ci

时间:2016-12-22 14:42:35

标签: codeigniter

gsaconst2 /应用/网站/视图/ index.php的

我已经在资产中放置了小的mce js但无法正确加载它。任何人都可以帮我检查我的代码是否正确?

<!DOCTYPE html>
<html>
<head>
  <script src="<?php site_url('assets/tinymce/js/tinymce/tinymce.min.js'); ?>"></script>
  <script>tinymce.init({ selector:'textarea' });</script> 


</head>
<body>
  <textarea>Easy! You should check out MoxieManager!</textarea>
</body>
</html>

1 个答案:

答案 0 :(得分:0)

改变这个:

<script src="<?php site_url('assets/tinymce/js/tinymce/tinymce.min.js'); ?>"></script>

对此:

<script src="<?php echo site_url('assets/tinymce/js/tinymce/tinymce.min.js'); ?>"></script>