4 <div class="page-style editor">
7 <div class="title-input page-title clearfix">
9 @include('form/text', ['name' => 'name', 'placeholder' => 'Page Title'])
12 <div class="edit-area">
13 @include('form/textarea', ['name' => 'html'])
15 <div class="margin-top large">
16 <a onclick="window.history.back();" class="button muted">Cancel</a>
17 <button type="submit" class="button pos">Save Page</button>
27 //ImageManager.show('#image-manager');
30 selector: '.edit-area textarea',
33 '//fonts.googleapis.com/css?family=Roboto:400,400italic,500,500italic,700,700italic,300italic,100,300'
35 body_class: 'page-content',
40 plugins: "image table textcolor paste link imagetools fullscreen",
41 toolbar: "undo | styleselect | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | table image link | fullscreen",
42 content_style: "body {padding-left: 15px !important; padding-right: 15px !important; margin:0!important; margin-left:auto!important;margin-right:auto!important;}",
43 file_browser_callback: function(field_name, url, type, win) {
44 ImageManager.show(function(image) {
45 win.document.getElementById(field_name).value = image.url;
46 if ("createEvent" in document) {
47 var evt = document.createEvent("HTMLEvents");
48 evt.initEvent("change", false, true);
49 win.document.getElementById(field_name).dispatchEvent(evt);
51 win.document.getElementById(field_name).fireEvent("onchange");
55 // setup: function(editor) {
56 // editor.addButton('full', {
57 // title: 'Expand Editor',
58 // icon: 'fullscreen',
59 // onclick: function() {
60 // var container = $(editor.getContainer()).toggleClass('fullscreen');
61 // var isFull = container.hasClass('fullscreen');
62 // var iframe = container.find('iframe').first();
63 // var height = isFull ? $(window).height()-110 : 600;
64 // iframe.css('height', height + 'px');