2021-05-19, 03:58 PM
(This post was last modified: 2021-05-19, 04:00 PM by anwarjut87. Edited 2 times in total.)
I have myBB installed
I am the only one who has access to the forums
I enabled HTML
JS and CSS are not allowed, I used MyCode
JS and CSS are working using MyCode (as far as I've tested)
I'm trying to include Ace Editor into posts/threads, which isn't working.
I'm trying the following specifically:
I am the only one who has access to the forums
I enabled HTML
JS and CSS are not allowed, I used MyCode
JS and CSS are working using MyCode (as far as I've tested)
I'm trying to include Ace Editor into posts/threads, which isn't working.
I'm trying the following specifically:
[style] #editor {height:500px; width:500px; font-size:50px;} [/style]
<div id="editor">function foo(items) {
var x = "All this is syntax highlighted";
return x;
}</div>
[javascript="/src-min/ace.js"]
[javascript] var editor = ace.edit("editor"); editor.setTheme("ace/theme/monokai"); editor.session.setMode("ace/mode/javascript");[/javascript]