1
0
Fork 0
mirror of https://github.com/documize/community.git synced 2025-07-24 07:39:43 +02:00

page numbering engine

This commit is contained in:
Harvey Kandola 2017-12-10 14:05:23 +00:00
parent 5de856e579
commit c5c988709d
9 changed files with 198 additions and 26 deletions

View file

@ -21,13 +21,14 @@ export default Model.extend({
pageType: attr('string'),
level: attr('number', { defaultValue: 1 }),
sequence: attr('number', { defaultValue: 0 }),
numbering: attr('string'),
revisions: attr('number', { defaultValue: 0 }),
blockId: attr('string'),
title: attr('string'),
body: attr('string'),
rawBody: attr('string'),
meta: attr(),
tagName: computed('level', function () {
return "h2";
// return "h" + (this.get('level') + 1);