Can't resize images by dragging mouse
See original GitHub issueimport React from 'react';
import { Editor } from '@tinymce/tinymce-react';
import 'tinymce';
import 'tinymce/skins/ui/oxide/skin.min.css';
import 'tinymce/themes/silver';
import 'tinymce/plugins/code';
import 'tinymce/plugins/paste';
import 'tinymce/plugins/emoticons';
import 'tinymce/plugins/image';
import 'tinymce/plugins/imagetools';
import './tinymce.scss';
class TinyMCE extends React.Component {
handleEditorChange = (e) => {
console.log('Content was updated:', e.target.getContent());
};
render() {
const { editorContent } = this.props;
return (
<div>
<Editor
initialValue={editorContent.value}
init={{
skin: false,
content_css: false,
paste_data_images: true,
plugins: 'link image code paste emoticons imagetools',
image_title: true,
automatic_uploads: true,
toolbar:
'undo redo | bold italic | alignleft aligncenter alignright | code image emoticons',
}}
onChange={this.handleOnChange}
/>
</div>
);
}
}
export default TinyMCE;
I can drag and drop images, insert them, and etc. The advance tools also show up but I’m not able to resize the images with my mouse (clicking on image and dragging on sides/corners).
Am i just missing a plugin or concept? Thanks.
Issue Analytics
- State:
- Created 5 years ago
- Comments:13 (4 by maintainers)
Top Results From Across the Web
Can't resize images by dragging mouse · Issue #7890 - GitHub
I have set the content_style but I still can't resize the image using mouse drag. <script setup> import Editor from '@tinymce/tinymce-vue' ...
Read more >Mouse pointer does not change to resize or hyperlink when ...
Mouse pointer does not change to resize or hyperlink when hovering over edges of windows or URLs etc. The standard pointer remains visible ......
Read more >Resizing an image using mouse dragging (C#) - Stack Overflow
I'm having some trouble resizing an image just by dragging the mouse. I found an average resize method and now am trying to...
Read more >About Resizing Images Using the Mouse - Endicia
You can resize an image by positioning the pointer on the upper-left or lower-right corner of the image and dragging the corner to...
Read more >Can't resize with anchor points anymore
Solved: When I select objects in Illustrator, I am no longer able to resize them by dragging the anchor points. The box around...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@christiannguyen @almazary I see what’s going on now - the issue is due to some CSS not loading. There’s a certain kind of CSS which we call content UI CSS which provides things like resizebars within the iframe. This is not anything which can be bundled like the UI CSS by importing it like
import 'tinymce/skins/ui/oxide/skin.min.css';
since it must be available within the iframe.By default, given that the skin option hasn’t been set, TinyMCE will attempt to load and inject the content UI CSS from the path
skins/ui/oxide/content.min.css
(relative to skin_url) which is non-existent if you self host and doesn’t provide it. This is why it worked for you @christiannguyen when you were using Cloud.I can’t think of any other way to solve this than to make sure that the CSS is avaiable at the expected path 🤔 Here’s an updated fiddle where I have placed the missing css in the public folder.
You can see the latest version of that CSS here: https://cdn.tiny.cloud/1/no-api-key/tinymce/5.0.14-54/skins/ui/oxide/content.min.css
Just in case more people stumble across this. You must load the
tinymce/skins/content/default/content.min.css
andtinymce/skins/ui/oxide/content.min.css
as a string and provide it to the editor in thecontent_style
option.This is documented in the quick-start guide.
Here’s the full example from the quick-start guide: