javascript - CKEditor setData is not loading the below record -


article record (body part) trying display in ckeditor mysql database in order make update/edit form:-

<p><a href="https://gigaom.com/analyst/crawford-tim/">tim crawford</a></p>  <h3>how report</h3>  <h2>option 1</h2>  <p><strong>purchase&nbsp;just&nbsp;this report $495.00</strong></p>  <p><a href="https://gigaom.com/report/artificial-intelligence-for-the-enterprise-a-primer-on-ai-use-in-the-enterprise/?add-to-cart=953946&amp;quantity=1&amp;quick_buy=1">order</a></p>  <h2>option 2</h2>  <p><strong>subscribe gigaom research , access to:</strong></p>  <ul>     <li>this report.</li>     <li>our collection of 1,700+ other reports written leading analysts.</li>     <li>all new reports come out monthly.</li>     <li>the full video of gigaom events, future , past.</li>     <li>our webinars, infographics , other valuable information.</li> </ul>  <p><strong>$995/y</strong></p>  <ul>     <li>email address</li>     <li>company name</li> </ul>  <p>subscribe now</p>  <p><strong>required</strong>&nbsp;your email address sign-in id gigaom. continuing, agreeing our&nbsp;<a href="https://gigaom.com/terms-of-service/">terms of service</a>&nbsp;and&nbsp;<a href="https://gigaom.com/privacy-policy/">privacy policy</a>.</p>  <ul>     <li><a href="https://twitter.com/intent/tweet?counturl=https%3a%2f%2fgigaom.com%2freport%2fartificial-intelligence-for-the-enterprise-a-primer-on-ai-use-in-the-enterprise%2f&amp;text=artificial+intelligence+for+the+enterprise%3a+a+primer+on+ai+use+in+the+enterprise&amp;url=https%3a%2f%2fgigaom.com%2freport%2fartificial-intelligence-for-the-enterprise-a-primer-on-ai-use-in-the-enterprise%2f&amp;via=gigaom">tweet</a>&nbsp;</li>     <li><a href="https://www.facebook.com/sharer/sharer.php?text=artificial+intelligence+for+the+enterprise%3a+a+primer+on+ai+use+in+the+enterprise&amp;u=https%3a%2f%2fgigaom.com%2freport%2fartificial-intelligence-for-the-enterprise-a-primer-on-ai-use-in-the-enterprise%2f">share</a>&nbsp;</li>     <li><a href="http://www.linkedin.com/sharearticle?mini=true&amp;source=gigaom&amp;summary=&amp;title=artificial+intelligence+for+the+enterprise%3a+a+primer+on+ai+use+in+the+enterprise&amp;url=https%3a%2f%2fgigaom.com%2freport%2fartificial-intelligence-for-the-enterprise-a-primer-on-ai-use-in-the-enterprise%2f">post</a></li> </ul>  <h2>analysis</h2>  <p>the world of artificial intelligence (ai) growing @ unprecedented rate. report provides broad @ how enterprises leverage ai in meaningful ways. report includes data gigaom&rsquo;s recent ai survey, insights our recent ai conference, , personal experience working corporate enterprises on ai journey.</p>  <p>gigaom&rsquo;s ai survey , conference focused on enterprises doing today versus potential ai brings. in addition, both efforts focused predominantly on corporate enterprise versus new entrants corporate world. intent focused on wide margin of companies overlooked, yet represent corporations in existence today. gigaom ai survey (n=303), targeted enterprise companies @ least 1,000 people , whom are&nbsp;<em>actually working</em>&nbsp;with ai today.</p>   <h3><a href="https://giganom.com/report/artificial-intelligence-for-the-enterprise-a-primer-on-ai-use-in-the-enterprise/#toggle">table of contents</a></h3>  <ol>     <li>summary</li>     <li>overview of ai</li> </ol> 

i making blog post, how can retrieve data given in database in ckeditor.

code in javascript in laravel retrieve above data database:

  var html_body_{{$admin_post->id}} = "<?php echo str_replace(array("\r\n", "\n", "\r"), ' ', $admin_post->body); ?>";                             ckeditor.instances['body_{{$admin_post->id}}'].setdata(html_body_{{ admin_post->id}}); 


Comments

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

performance - Why is XCHG reg, reg a 3 micro-op instruction on modern Intel architectures? -

jquery - Responsive Navbar with Sub Navbar -