0

Hello,

I am trying to install TinyMCE in for my text editor in CMS. TinyMCE

This is my code:

input_berita_static.php

<td valign="top">Isi berita</td>              
                    <td>
                        <!-- TinyMCE -->
                        <head><!-- CDN hosted by Cachefly -->
                        <script src="//tinymce.cachefly.net/4.0/tinymce.min.js"></script>
                        <script>
                        tinymce.init({selector:'textarea'});
                        </script>
                        </head>
                        <body>
                            <textarea cols="60" rows="10" id="news" name="news"><?php echo $news;?></textarea>
                        </body>
                        <!-- end of TinyMCE -->

I wonder why my feature range only from undo button TO increase indent? I would like to see the insert and edit image to be there.

How ? I already extract the TinyMCE version 4.0.12 in my admin folder.

3
Contributors
5
Replies
18
Views
3 Years
Discussion Span
Last Post by Tpojka
0

Hmm.. how to utilize it?

I tried copying the View Source and insert it in my code:

input_berita_static.php

<td valign="top">Isi berita</td>              
                    <td>
                        <!-- TinyMCE -->
                        <script type="text/javascript" src="tinymce/tinymce.min.js"></script>
                        <script type="text/javascript">
                        tinymce.init({
                            selector: "textarea",
                            plugins: [
                            "advlist autolink lists link image charmap print preview anchor",
                            "searchreplace visualblocks code fullscreen",
                            "insertdatetime media table contextmenu paste moxiemanager"
                            ],
                            toolbar: "insertfile undo redo | styleselect | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | link image"
                        });
                        </script>

                        <form method="post" action="somepage">
                        <textarea name="content" style="width:100%"></textarea>
                        </form>
                        <!-- end of TinyMCE -->

I already extract the tinymce within the same folder. I already check the file path and it suppose to be right: "tinymce/tinymce.min.js".

Now, the text editor disappeared.

0

Looks like the TinyMCE requires the paid version to get the image upload works. I prefer using CKEditor the standard version instead.

0

Looks like the TinyMCE requires the paid version to get the image upload works.

Correct, sorry I forgot to mention that.

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.