How to fix issue for TinyMCE text editor in HTML form with PHP?



Please Login or Register to process.

Hello Techno Smarter QA Support? 

I am working on the Blog project and I have created a blog page in PHP. Every time when I insert a new blog post its directly store in DB. I am using the TinyMCE text editor to insert the blog post into the MySQL database table. I have an issue with the TinyMCE text editor in HTML form. I applied the TinyMCE text editor in the text area but did not get a better solution. 

So, When I am using class mediator it's not showing the textarea as HTML text editor. 

I am attaching a screenshot. 

I am using TinyMCE text editor JS and tools with extra plugins. You can check the code for the TinyMCE text editor. I am integrating the TinyMCE text editor in HTML with the code below. 

<script src="//"></script>



             mode : "specific_textareas",

    editor_selector : "mceEditor",

              plugins: [

                  "advlist autolink lists link image charmap print preview anchor",

                  "searchreplace visualblocks code fullscreen",

                  "insertdatetime media table contextmenu paste"


              toolbar: "insertfile undo redo | styleselect | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | link image"





                                                <textarea row="3" class="mceEditor" name="blog_description" required="required" class="form-control" ></textarea>



The TinyMCE text editor is working properly but I have an issue with teaxarea space. How to fix this issue. 

asked 15 Apr 2020 in PHP by vijay1996(120 Points)


3 Answers
answered 15 Apr 2020 by shakti(9.1K Points)

The TinyMCE text editor is one of the best text editor for development. You can use the TinyMCE text editor for blog and website. The TinyMCE text editor has many libraries and versions here You can check any versions. You have an issue with your code. Kindly change your text area code like this - 

<textarea name="articleContent" id="textarea1" class="mceEditor" cols="120" rows="20">  </textarea>

Define rows and cols in Textarea. 

I got it. Thanks for it. By the way, I was using 2 times a script of TinyMCE.
commented 15 Apr 2020 by vijay1996
If your issue has been solved then please upvote my answer.
commented 15 Apr 2020 by shakti

answered 15 Apr 2020 by vishalrana1(7.3K Points) (edited)

Your TinyMCE text editor is working. You should use the cols and rows values for textarea. 

<textarea class="mceEditor" name="blog_description" cols="90" rows="10" required="required" class="form-control" ></textarea>



answered 15 Apr 2020 by priyasharma4005(4.1K Points)

I am too late. I hope, you got your answer regarding the TinyMCE text editor. 

If you want to integrate and want to create a complete Blog system in PHP with TinyMCE text editor.   then you can follow the tutorial here - 

How to create a blog in PHP with MYSQL database?


Related Questions :-

Your Answer

You can post your answer after login..