diff --git a/cache/lastCache.txt b/cache/lastCache.txt index bba5fbf..09c677b 100644 --- a/cache/lastCache.txt +++ b/cache/lastCache.txt @@ -1 +1 @@ -1532455604 \ No newline at end of file +1532595582 \ No newline at end of file diff --git a/content/0_typemill/01-use-cases.txt b/content/0_typemill/01-use-cases.txt new file mode 100644 index 0000000..9fb41fe --- /dev/null +++ b/content/0_typemill/01-use-cases.txt @@ -0,0 +1 @@ +["# Use Cases","Whenever you want to publish a finished text work as a website and if you like writing with Markdown, then TYPEMILL is a smart and lightweight solution. Possible use cases are ...","- a documentation\n- a manual\n- a user guide\n- a whitepaper\n- a handbook\n- a tutorial\n- a study\n- a book\n- a drama\n- a lyric collection\n- a collection of articles","If you want to create a blog, a wiki or a classic corporate website, please use a specialized CMS for that instead of TYPEMILL.","TYPEMILL is under heavy developement and not finished right now. It has an admin panel for settings and a very basic editor for existing content. More options like delete or create new pages and manage your media-files will be added step by step in next weeks. Also different output formats like mobi and ePup are on the roadmap, so stay tuned.","You have to use a FTP-software like FileZilla until the basic editing features are ready. Check the roadmap for more informations."] \ No newline at end of file diff --git a/system/author/content/content.twig b/system/author/content/content.twig index 6d6ac83..ecbf336 100644 --- a/system/author/content/content.twig +++ b/system/author/content/content.twig @@ -18,9 +18,7 @@
- - - + ${ errors.content }
diff --git a/system/author/js/autosize.min.js b/system/author/js/autosize.min.js new file mode 100644 index 0000000..4d9b4e9 --- /dev/null +++ b/system/author/js/autosize.min.js @@ -0,0 +1,6 @@ +/*! + autosize 4.0.2 + license: MIT + http://www.jacklmoore.com/autosize +*/ +!function(e,t){if("function"==typeof define&&define.amd)define(["module","exports"],t);else if("undefined"!=typeof exports)t(module,exports);else{var n={exports:{}};t(n,n.exports),e.autosize=n.exports}}(this,function(e,t){"use strict";var n,o,p="function"==typeof Map?new Map:(n=[],o=[],{has:function(e){return-1 { - this.$el.setAttribute('style', 'height:' + (this.$el.scrollHeight) + 'px;overflow-y:hidden;') - }) - this.$el.addEventListener('input', this.resizeTextarea) - }, - beforeDestroy () { - this.$el.removeEventListener('input', this.resizeTextarea) - }, - render () { - return this.$slots.default[0] - }, -}); - let app = new Vue({ delimiters: ['${', '}'], el: '#editor', @@ -46,8 +25,11 @@ let app = new Vue({ publishStatus: document.getElementById("publishController").dataset.published ? false : true, publishLabel: document.getElementById("publishController").dataset.published ? "online" : "offline", }, + mounted(){ + autosize(document.querySelector('textarea')); + }, methods: { - submit: function(e){ + submit: function(e){ /* count submits and react to line before. */ }, changeContent: function(e){ diff --git a/system/author/layouts/layoutContent.twig b/system/author/layouts/layoutContent.twig index 436ebe1..1826df0 100644 --- a/system/author/layouts/layoutContent.twig +++ b/system/author/layouts/layoutContent.twig @@ -35,7 +35,8 @@ - + + \ No newline at end of file