#Resize TinyMCE editor

1 messages · Page 1 of 1 (latest)

halcyon wolf
#

Reading the Tiny docs tells me there is a resize option that should default to true. I have anyway tried to set it to true in the config, but my editors are still not resizable.
I am working in Umbraco 11 at the moment. Has anyone had this problem and managed to solve it?
Thanks, Josef

fervent sun
#

AFAIK, the only sizing option is in the RTE backoffice settings

halcyon wolf
#

I think you may pass dimensions in init as well. I also found appsettings for it. Still does not affect the UI. I also have editors in my property editor controllers, tried to config them as well with the resize option. No luck 😦

fervent sun
#

AFAIK, it is only possible in Umbraco using the settings from the back office.

humble knoll
halcyon wolf
fervent sun
#

I don't see anything there that says you can make it resizeable

autumn patrol
#

yep.. here you go, thought the resize is a little flakey when trying to use it.. (maybe you are missing statusbar too as that's required for resize?)

"RichTextEditor": {
        "Plugins": [ "blocks", "visualblocks" ],
        "Commands": [
          {
            "Alias": "blocks",
            "Name": "Blocks",
            "Mode": "Insert"
          },
          {
            "Alias": "visualblocks",
            "Name": "Visual Blocks",
            "Mode": "Insert"
          }
        ],
        "CustomConfig": {
          "block_formats": "Paragraph=p; Page Header=h2; Section Header=h3; Paragraph Header=h4",
          "statusbar": "true",
          "branding": "false",
          "resize": "true",
          "formats": "{\"alignleft\": {\"selector\": \"p,h1,h2,h3,h4,h5,h6,td,th,div,ul,ol,li,table,img,audio,video\",\"classes\": \"text--left\"},\"alignright\": {\"selector\": \"p,h1,h2,h3,h4,h5,h6,td,th,div,ul,ol,li,table,img,audio,video\",\"classes\": \"text--right\"},\"aligncenter\": {\"selector\": \"p,h1,h2,h3,h4,h5,h6,td,th,div,ul,ol,li,table,img,audio,video\",\"classes\": \"text--center\"},\"alignjustify\": {\"selector\": \"p,h1,h2,h3,h4,h5,h6,td,th,div,ul,ol,li,table,img,audio,video\",\"classes\": \"text--justify\"}}"
        }
      },
fervent sun
#

@autumn patrol hadn't thought about enabling the statusbar, good find.

autumn patrol
#

Think it's maybe time to give TinyMCE some TLC.. as v6 has a some nice things that we could integrate with... I started a discussion here re the nested menus and styles code defined rather than css defined, merging rather than being discarded..
https://github.com/umbraco/Umbraco-CMS/discussions/14632