Closed karlito40 closed 8 years ago
First of all, you have a typo in 3rd line (missing s
), it should be:
<script src="bower_components/webcomponentsjs/webcomponents.js"></script>
Then HTML Imports uses href
not src
, and the default path is bower_components
not bower_coponents
:
<link rel="import" href="bower_components/juicy-ace-editor/juicy-ace-editor.html">
And you do not need to attach modes and theme for HTML and Monokai, so entire HTML that would work for you should look like:
<head>
<script src="bower_components/webcomponentsjs/webcomponents.js"></script>
<link rel="import" href="bower_components/juicy-ace-editor/juicy-ace-editor.html">
</head>
<style>
body {
height: 100%;
background-color: blue;
}
</style>
<body>
<juicy-ace-editor theme="ace/theme/monokai" mode="ace/mode/html">
<p>Here you have:
<pre><juicy-ace-editor theme="ace/theme/monokai" mode="ace/mode/html">
</juicy-ace-editor></pre>element.
</p>
<p>
You can switch modes and themes as regular HTML attributes to
<a href="https://github.com/ajaxorg/ace-builds/tree/master/src">whatever is supported by Ace</a>
</p>
</juicy-ace-editor>
</body>
there is no ace-build in the project
Did bower install
finished without an error? What do you see in bower_components/
folder?
@karlito40 , Please let me know if it works for you now.
You are right. Thank you !
Hello,
i've tried to include this editor which seems cool. Unfortunalely there is just the content that disptay (google or firefox).
I tried to fix it myself but as a ste note there is no ace-build in the project. I don't understand.