0
我是tryind從數據庫表向CKEDITOR發送數據。數據被髮送到查看(刀片)在$page
變量。在$page->body
是<p>Example text</p>
我使用JavaScript在CKEDITOR顯示數據:JS中的「SyntaxError:unterminated string literal」將數據傳遞到視圖
<script type="text/javascript">
CKEDITOR.instances.messageArea.setData("{!! $page->body !!}");
</script>
但錯誤appeares:
SyntaxError: unterminated string literal
CKEDITOR.instances.messageArea.setData("<p>Example text</p>