Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow users to set template for new document #638

Open
yxliang01 opened this issue Aug 23, 2017 · 5 comments
Open

Allow users to set template for new document #638

yxliang01 opened this issue Aug 23, 2017 · 5 comments

Comments

@yxliang01
Copy link

@yxliang01 yxliang01 commented Aug 23, 2017

I think this would be very useful.
The current template (actually not even a template) is meant to be deleted right after the document is created... Which makes create new document a little bit more complex than it should be.

Thanks

@joemccann
Copy link
Owner

@joemccann joemccann commented Aug 23, 2017

@joemccann
Copy link
Owner

@joemccann joemccann commented Jan 29, 2018

any progress here?

@yxliang01
Copy link
Author

@yxliang01 yxliang01 commented Jan 30, 2018

Sorry... No at the moment. Haven't arranged time for this yet.

@yxliang01
Copy link
Author

@yxliang01 yxliang01 commented Jan 30, 2018

So far I can see dillinger/public/js/factorys/sheet.factory.js is the key file for this. To implement this, need to add an option in views/dropdowns/settings.ejs, one new view in dillinger/views/, add default template in public/js/services/user.service.js. The template will save in a variable like profile.newDocTemplate. Haven't figured out how to access that variable in dillinger/public/js/factorys/sheet.factory.js yet.

@jackklika
Copy link

@jackklika jackklika commented May 7, 2020

I've been looking through this -- it seems to be embedded in public/js/main.js and public/js/main.bundle.js. I'm not too familiar with javascript but I'm looking into this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants
You can’t perform that action at this time.