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.

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.

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

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

Correct, sorry I forgot to mention that.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.