How to hide the controls of HTMLEditor?

前端 未结 10 699
日久生厌
日久生厌 2020-12-10 12:45

is it possible to hide the controls of a HTMLEditor above the actual text? (Alignment, Copy&Paste icons, stylings etc.)

Thanks for any help

10条回答
  •  隐瞒了意图╮
    2020-12-10 13:39

    Try this:

    .html-editor .top-toolbar
    {
            -fx-max-width: 0px;
    	-fx-min-width: 0px;
    	-fx-pref-width: 0px;
    	-fx-max-height: 0px;
    	-fx-min-height: 0px;
    	-fx-pref-height: 0px;
            -fx-opacity: 0;
    }
    .html-editor .bottom-toolbar
    {
            -fx-max-width: 0px;
    	-fx-min-width: 0px;
    	-fx-pref-width: 0px;
    	-fx-max-height: 0px;
    	-fx-min-height: 0px;
    	-fx-pref-height: 0px;
            -fx-opacity: 0;
    }

提交回复
热议问题