-
Notifications
You must be signed in to change notification settings - Fork 371
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
Fullscreen Support #99
Conversation
Korean translation for bootstrap-markdown
@@ -368,8 +388,26 @@ | |||
this.$editor.addClass('active') | |||
} | |||
|
|||
this.$editor.append('\ | |||
<div class="md-fullscreen-controls">\ | |||
<a href="#" class="switch-theme" title="Switch themes"><span class="glyphicon glyphicon-adjust"></span></a>\ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You should also add the other supported icon libs like fontawesome and fontawesome v3 like the rest of the buttons
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah I was thinking of that too.
👍 Great feature! I think you should rebase this pull-request against upstream-master because, you have lot's of changes here that were already commited on master, that way we won't lose changes in the progress of merging this PR in master! + it's quite difficult to see what changes exactly are related to this PR. A rebase should solve this |
I already rebased this and made updates based from the current |
hmm strange.. the commit tab shows a lot of commits which are already merged in master |
Indeed. But the current version I was working on was 2.6.0. |
@lodev09 your fork hash display |
Conflicts: js/bootstrap-markdown.js
Try now @toopay |
@lodev09 please fix the classes for the switch-theme and exit-fullscreen so we add support for all the icon fonts. Thanks! |
Added.. Below are the default configuration ...
fullscreen: {
enable: true,
icons: {
fullscreenOn: {
fa: 'fa fa-expand',
glyph: 'glyphicon glyphicon-fullscreen',
'fa-3': 'icon-resize-full'
},
fullscreenOff: {
fa: 'fa fa-compress',
glyph: 'glyphicon glyphicon-fullscreen',
'fa-3': 'icon-resize-small'
},
switchTheme: {
fa: 'fa fa-adjust',
glyph: 'glyphicon glyphicon-adjust',
'fa-3': 'icon-adjust'
}
},
theme: '' // you can put "dark" for now
}
... |
@lodev09 Several notes :
Lets adding something like this properly so we doesn't break the clarity of the code as it getting bigger. Cheers. |
I've renamed it |
Wonderful. Thanks. One more point thou. I'm still not sure whether |
I guess your right.. I just thought we could incorporate additional theme in the future (by just adding stuff in css) and let that property be the default theme of the fullscreen layout |
Great. Lets remove any theme related block and this PR can be merged. |
@toopay done. I've also added a block into the |
Thanks @lodev09 ! |
No problem! |
This is a beta support for fullscreen. I was working on my project and would be nice to have a fullscreen feature so I added one. 😄
Here is sample plunk: http://embed.plnkr.co/atyuBnVNktl8YSfdfPJT/preview