SCEditor
SCEditor copied to clipboard
Info: Responsive page scaling and SCEditor resizing
Firefox 108
- If we do not specify the width parameter in sceditor.create(), then we get a violation of the dimensions of SCEditor when scaling the page:
- If we specify
width: '100%'
, then everything is OK:
Thanks for reporting.
For backwards compatibility, the editors default behaviour is use the same pixel dimensions as the textarea it replaces which prevents the editor from resizing. It's something I'd like to change but it needs to be backwards compatible or part of a major version which is why it hasn't so far.
Although thinking about it, the original textarea's size could be converted to a percentage and used instead. That should still be backwards compatible while being responsive.