Introduction We’ll be going over how to extract information from a URL in node.js. Specifically, how do we extract information from a query string and URL path parameters? In this article, I assume you have some experience with Node.js and creating Express.js servers (or at least simple ones) then you …
Read More »Blog Archives
How to submit ckeditor textarea value in html format or text via form?
Ajax jQuery textarea CKEDITOR form submit code First you include some important library. <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script> <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script> <script src="https://cdn.ckeditor.com/4.10.1/standard/ckeditor.js"></script> <script src="//cdnjs.cloudflare.com/ajax/libs/ckeditor/4.5.9/adapters/jquery.js"></script> Ajax code $(document).ready(function(){ $('#add_page_details_to_DB').click(function() { var dataStrings = $('form#create_page_to_DB').serialize(); //for ckeditor textarea field for (instance in CKEDITOR.instances) { CKEDITOR.instances[instance].updateElement(); } $.ajax({ url: "/admin/add-city-content", type: "POST", data: dataStrings, success: function(response) …
Read More »