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

Option to hide statusbar #535

Closed
Sayan751 opened this issue Oct 26, 2020 · 3 comments
Closed

Option to hide statusbar #535

Sayan751 opened this issue Oct 26, 2020 · 3 comments

Comments

@Sayan751
Copy link

Jodit Version: 3.4.29

Browser: Chrome, FF
OS: Windows
Is React App: False

Code

this.editor = new Jodit(
    this.textArea,
    {
        toolbarAdaptive: false,
        useNativeTooltip: true,
        enableDragAndDropFileToEditor: true,
        uploader: this.uploader,
        buttons: [
            'undo', 'redo', '|',
            'font', 'fontsize', '|',
            'paragraph', 'brush', '|',
            'bold', 'italic', 'underline', 'subscript', 'superscript', 'outdent', 'indent', 'table', 'source', 'link', '|',
            'image', customControl1.name, customControl2.name
        ],
        controls: {
            customControl1,
            customControl2,
        },
        defaultActionOnPaste: 'insert_as_html',
        events: {
            getIcon: this.getIcon,
        }
    });
this.editor.statusbar.hide();

Expected behavior:

I would expect the statusbar to stay hidden always.

Actual behavior:

However, when I switch to the source view, the statusbar reappears. And it stays there even after I switch back to the rich text view.

I have expected a simple option to be there, when set the statusbar is not shown at all.

@Sayan751 Sayan751 changed the title Options to hide statusbar Option to hide statusbar Oct 26, 2020
@xdan
Copy link
Owner

xdan commented Oct 26, 2020

you can disable all of these options https://xdsoft.net/jodit/play.html?showCharsCounter=false&showWordsCounter=false&showXPathInStatusbar=false
and it will hide statusbar

@Sayan751
Copy link
Author

Thanks @xdan! That works for me.

I still think however that it makes more sense to add a flag option to hide the status bar.

xdan added a commit that referenced this issue Oct 28, 2020
@xdan xdan closed this as completed Dec 18, 2020
vinhtranchau added a commit to vinhtranchau/jodit-repo that referenced this issue Jan 18, 2023
@mufucool1
Copy link

Add css below to hide:

.jodit-status-bar-link {
display: none !important;
}

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

No branches or pull requests

3 participants