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

Can this editor go fullscreen on a button press? #317

Open
cjf opened this issue Nov 5, 2018 · 5 comments
Open

Can this editor go fullscreen on a button press? #317

cjf opened this issue Nov 5, 2018 · 5 comments
Labels
Feature New features to implement P 2

Comments

@cjf
Copy link

cjf commented Nov 5, 2018

Is there fullscreen functionality for this editor?

@arcanedev-maroc
Copy link

Hope this will be added with the default buttons 👍

@mwnu
Copy link

mwnu commented Jan 2, 2019

const toolbar = editor.getUI().getToolbar();
toolbar.addButton({
  name: 'fullscreen',
  tooltip: 'fullscreen',
  $el: $('<button type="button" value="" onclick="fsClick();"><!-- iCon--></button>')
}, 1);
var fsClick=function(){
  $(".tui-editor-defaultUI").toggleClass("fs");
};

@bobvandevijver
Copy link

The class fs does not seem to toggle fullscreen mode. Is there a new class, or some other method?

@xubeijun
Copy link

The class fs does not seem to toggle fullscreen mode. Is there a new class, or some other method?
Add your custom css style.

{
position: fixed;
top: 0;
left: 0;
z-index: 10050;
width: 100%!important;
}

@livevsonline
Copy link

Is still not implemented into the TUI editor? And what about the getUI(), it does not seem available?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature New features to implement P 2
Projects
None yet
Development

No branches or pull requests

7 participants