2015-11-28 23:10:25 +01:00
<!DOCTYPE html>
< html >
< head >
< meta charset = "utf-8" >
< title > CodeX Editor< / title >
< link rel = "stylesheet" href = "editor.css" / >
< / head >
< body style = "padding: 100px" >
< h1 > CodeX Editor< / h1 >
< form action = "" >
2015-12-09 01:34:32 +01:00
< textarea name = "" id = "codex_editor" cols = "30" rows = "10" > < / textarea >
2015-11-28 23:10:25 +01:00
< / form >
<!-- <div class="codex_editor editor_wrapper">
< div class = "editor_content" >
< div class = "node" >
< div class = "add_buttons example" >
< span class = "toggler" > < i class = "ce_icon-plus-circled-1" > < / i > < / span >
< button data-type = "header" > < i class = "ce_icon-header" > < / i > < / button >
< button data-type = "picture" > < i class = "ce_icon-picture" > < / i > < / button >
< button data-type = "list" > < i class = "ce_icon-list" > < / i > < / button >
< button data-type = "quote" > < i class = "ce_icon-quote" > < / i > < / button >
< button data-type = "code" > < i class = "ce_icon-code" > < / i > < / button >
< button data-type = "twitter" > < i class = "ce_icon-twitter" > < / i > < / button >
< button data-type = "instagram" > < i class = "ce_icon-instagram" > < / i > < / button >
< button data-type = "smile" > < i class = "ce_icon-smile" > < / i > < / button >
< / div >
< p class = "content" contenteditable = "true" >
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Et, eligendi cum amet unde nobis est asperiores similique odio quisquam nostrum quidem, vero esse culpa reprehenderit delectus debitis. Odio, optio, sed.
< / p >
< / div >
< / div >
< / div > -->
< / body >
< / html >
2015-12-09 01:34:32 +01:00
< script src = "ce_interface.js" > < / script >
2015-11-28 23:10:25 +01:00
< script >
2015-12-09 01:34:32 +01:00
function ready(f){
/in/.test(document.readyState) ? setTimeout(ready,9,f) : f();
}
2015-11-28 23:10:25 +01:00
/** Document is ready */
ready(function() {
2015-12-09 01:34:32 +01:00
window.cEditor = new ce({
tools : ['header', 'picture']
});
2015-11-28 23:10:25 +01:00
})
< / script >