diff options
Diffstat (limited to 'lib/models/page.js')
-rw-r--r-- | lib/models/page.js | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/lib/models/page.js b/lib/models/page.js index 1ac0d50..0a9cf38 100644 --- a/lib/models/page.js +++ b/lib/models/page.js @@ -9,7 +9,10 @@ var Page = Immutable.Record({ attributes: Immutable.Map(), // Content of the page - content: String() + content: String(), + + // Direction of the text + dir: String('ltr') }); Page.prototype.getFile = function() { @@ -24,6 +27,10 @@ Page.prototype.getContent = function() { return this.get('content'); }; +Page.prototype.getDir = function() { + return this.get('dir'); +}; + /** Create a page for a file |