{"id":2309,"date":"2011-07-29T19:29:56","date_gmt":"2011-07-29T13:59:56","guid":{"rendered":"http:\/\/JitendraZaa.com\/blog\/?p=2309"},"modified":"2011-07-29T19:29:56","modified_gmt":"2011-07-29T13:59:56","slug":"wordpress-error-resolved-problem-while-switching-from-html-to-visual-after-embedding-the-code","status":"publish","type":"post","link":"https:\/\/www.jitendrazaa.com\/blog\/webtech\/wordpress-error-resolved-problem-while-switching-from-html-to-visual-after-embedding-the-code\/","title":{"rendered":"WordPress error resolved &#8211; problem while switching from HTML to Visual editor after embedding the code"},"content":{"rendered":"<p>Hi Friends,<br \/>\nHi faced this error many times but was unable to analyzed the root cause of problem.<br \/>\nWhenever i\u00a0embedded\u00a0the code in my blog and come back to edit, sometime the wordpress editor discarded my code. It was not always but often.<\/p>\n<p><strong>How to reproduce the error ?<\/strong><\/p>\n<ol>\n<li>Go to HTML tab and embed few html code. i am using syntaxhighlighter, so my code is normally like enclosed in square bracket with text &#8220;sourcecode&#8221;. Go to Visual Tab it works fine.<\/li>\n<li>Again go to HTML tab , save your article and close the window. (Remember you are closing the window when you are on HTML tab).<\/li>\n<li>Now come to your post and navigate to &#8220;Visual&#8221; tab. you will notice that your HTML code is discarded. Don&#8217;t save anything.<\/li>\n<li>Close the window again. (Remember, this time you are closing the window while you was on &#8220;Visual&#8221; tab.)<\/li>\n<li>Come back again to your post and you will see that your code is just fine.<\/li>\n<\/ol>\n<p><strong>Conclusion :<\/strong><br \/>\nIf you close your window while you are in &#8220;HTML&#8221; tab, next time when you will come back it opens the code in same tab (&#8220;HTML&#8221;) by default and when you switch to &#8220;Visual&#8221; tab it discards the html code. So to avoid this problem,<strong> always close your window when you will be in &#8220;Visual&#8221; tab.<\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Wordpress error resolved &#8211; problem while switching from HTML to Visual  editor after embedding the code<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"advanced_seo_description":"","jetpack_seo_html_title":"","jetpack_seo_noindex":false,"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"jz_research_post":"","_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[19],"tags":[223],"class_list":["post-2309","post","type-post","status-publish","format-standard","hentry","category-webtech","tag-wordpress"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack-related-posts":[{"id":132,"url":"https:\/\/www.jitendrazaa.com\/blog\/microsoft\/net\/upload-files-in-asp-net-at-production-server\/","url_meta":{"origin":2309,"position":0},"title":"Upload Files in ASP.NET at Production server","author":"Jitendra","date":"May 13, 2010","format":false,"excerpt":"In this article, i am going to demonstrate that how to upload the file in ASP.NET production server. Most of the case, a developer created a code to upload the file and test it on his local machine. program runs smoothly, but as he\u00a0forward\u00a0the same code on production. He\u00a0stuck\u00a0in the\u2026","rel":"","context":"In &quot;ASP.NET&quot;","block_context":{"text":"ASP.NET","link":"https:\/\/www.jitendrazaa.com\/blog\/category\/microsoft\/net\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/jitendrazaa.com\/blog\/wp-content\/uploads\/2010\/05\/WebShare-Folder.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":110,"url":"https:\/\/www.jitendrazaa.com\/blog\/webtech\/web\/wordpress-error-missing-a-temporary-folder-after-uploading-a-file\/","url_meta":{"origin":2309,"position":1},"title":"WordPress Error: &#8220;missing A Temporary Folder.&#8221;\u009d After Uploading A File","author":"Jitendra","date":"May 12, 2010","format":false,"excerpt":"Recently i got the error \"missing A Temporary Folder.\" After Uploading A File After digging lots of sites, i was unable to fix the problem. Maximum sites offer solution like change php.ini etc. but changing configuration file and using shell command can be avoided by a simple trick. Go to\u2026","rel":"","context":"In &quot;HTML&quot;","block_context":{"text":"HTML","link":"https:\/\/www.jitendrazaa.com\/blog\/category\/webtech\/web\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/jitendrazaa.com\/blog\/wp-content\/uploads\/2010\/05\/Plugin.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":2386,"url":"https:\/\/www.jitendrazaa.com\/blog\/webtech\/cpanel-filezilla-ftp-all-code-converted-in-single-line\/","url_meta":{"origin":2309,"position":2},"title":"Cpanel &#8211; FileZilla FTP &#8211; All code converted in single line","author":"Jitendra","date":"August 12, 2011","format":false,"excerpt":"While transferring the php, html or javascript file using filezilla ftp client to the cpanel - all the codes converted into single line","rel":"","context":"In &quot;Web Technology&quot;","block_context":{"text":"Web Technology","link":"https:\/\/www.jitendrazaa.com\/blog\/category\/webtech\/"},"img":{"alt_text":"FileZilla Settings","src":"https:\/\/i0.wp.com\/jitendrazaa.com\/blog\/wp-content\/uploads\/2011\/08\/FileZilla-Settings.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":4559,"url":"https:\/\/www.jitendrazaa.com\/blog\/salesforce\/top-google-chrome-extensions-for-salesforce\/","url_meta":{"origin":2309,"position":3},"title":"Top Google chrome extensions for Salesforce","author":"Jitendra","date":"June 12, 2015","format":false,"excerpt":"Checkout if your favorite Google Chrome extension made it in Top extensions for Salesforce","rel":"","context":"In &quot;Salesforce&quot;","block_context":{"text":"Salesforce","link":"https:\/\/www.jitendrazaa.com\/blog\/category\/salesforce\/"},"img":{"alt_text":"Salesforce Dev tools - Chrome Extension","src":"https:\/\/i0.wp.com\/www.jitendrazaa.com\/blog\/wp-content\/uploads\/2015\/06\/Salesforce-Devtools-Chrome-Extension.jpg?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.jitendrazaa.com\/blog\/wp-content\/uploads\/2015\/06\/Salesforce-Devtools-Chrome-Extension.jpg?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/www.jitendrazaa.com\/blog\/wp-content\/uploads\/2015\/06\/Salesforce-Devtools-Chrome-Extension.jpg?resize=525%2C300&ssl=1 1.5x"},"classes":[]},{"id":150,"url":"https:\/\/www.jitendrazaa.com\/blog\/microsoft\/net\/handlers-url-mapping-in-asp-net\/","url_meta":{"origin":2309,"position":4},"title":"Handlers in ASP.NET","author":"Jitendra","date":"May 14, 2010","format":false,"excerpt":"HTTP Handlers is\u00a0a new technique presented in ASP.NET that was not present in the \"Classic ASP\".\u00a0HTTP Handlers are components that implement the System.Web.IHttpHandler interface. Unlike ASP.NET pages\u00a0Handlers dont have HTML-markup file, no events and other supporting. All they have is a code-file (written in any .NET-compatible language) that writes some\u2026","rel":"","context":"In &quot;ASP.NET&quot;","block_context":{"text":"ASP.NET","link":"https:\/\/www.jitendrazaa.com\/blog\/category\/microsoft\/net\/"},"img":{"alt_text":"Step 1","src":"https:\/\/i0.wp.com\/jitendrazaa.com\/blog\/wp-content\/uploads\/2010\/05\/AddProject.jpg?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":1591,"url":"https:\/\/www.jitendrazaa.com\/blog\/sql\/sqlserverintegrationservices\/create-simple-etl-project-in-ssis-filter-records\/","url_meta":{"origin":2309,"position":5},"title":"Create Simple ETL Project in SSIS &#8211; Filter Records","author":"Jitendra","date":"February 28, 2011","format":false,"excerpt":"Creating First ETL (Extract, Transform and Load) project in SSIS (SQL Server Integration Services) - Filter Records","rel":"","context":"In &quot;SSIS&quot;","block_context":{"text":"SSIS","link":"https:\/\/www.jitendrazaa.com\/blog\/category\/sql\/sqlserverintegrationservices\/"},"img":{"alt_text":"Create Business Intelligence Projects in Visual Studio","src":"https:\/\/i0.wp.com\/jitendrazaa.com\/blog\/wp-content\/uploads\/2011\/02\/New-Business-Intelligence-Projects.jpg?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]}],"jetpack_likes_enabled":true,"_links":{"self":[{"href":"https:\/\/www.jitendrazaa.com\/blog\/wp-json\/wp\/v2\/posts\/2309","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.jitendrazaa.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.jitendrazaa.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.jitendrazaa.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.jitendrazaa.com\/blog\/wp-json\/wp\/v2\/comments?post=2309"}],"version-history":[{"count":0,"href":"https:\/\/www.jitendrazaa.com\/blog\/wp-json\/wp\/v2\/posts\/2309\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.jitendrazaa.com\/blog\/wp-json\/wp\/v2\/media?parent=2309"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.jitendrazaa.com\/blog\/wp-json\/wp\/v2\/categories?post=2309"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.jitendrazaa.com\/blog\/wp-json\/wp\/v2\/tags?post=2309"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}