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>