How to get ckeditor value with tags on ajax-submit ?

Share Me
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  

Today now in this blog i will show you how to get ckeditor value with tags on ajax-submit. When we are use ckeditor for our textarea and we need to fore ajax submit or the form js submit, but we can’t find ckeditor value in our controller or php file. So, at first we need to update a field by using CKEDITOR.instances. So we can try to the following code.

for ( instance in CKEDITOR.instances )
    CKEDITOR.instances[instance].updateElement();

Read Also : Laravel and AngularJS CRUD with Search & Pagination Example

Thanks for read. I hope it help you. For more you can follow us on facebook.

About Shahriar Sagor

My name is Shahriar sagor. I'm a developer. I live in Bangladesh and I love to write tutorials and tips that will help to other Developer's. I am a big fan of PHP, Javascript, JQuery, Laravel, Codeigniter, VueJS, AngularJS and Bootstrap from the early stage.

View all posts by Shahriar Sagor →