Skip to main content
Topic: Drag to resize image in editor (Read 2390 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Drag to resize image in editor

Is it possible have drag to resize an image in editor ? Just like the scale feature in GIMP. Some editors like Redactor offer this feature.


Re: Drag to resize image in editor

Reply #2

I'm afraid you cannot drag to resize imgaes in elkarte, but as an alternative you can use img combibed with "width" tag

ex:
Code: [Select]
[img width=200]https://raw.githubusercontent.com/Spuds/Elk_Theme_StormCloud/master/sample_images/boardindex.jpg[/img]

and the result

Re: Drag to resize image in editor

Reply #3

@radu81 , if I understand correctly it is just a piece of code that varies the width= x and height = y values based on cursor movements. I guess something similar to what I did in colour picker.

Here CK Editor is available for free. We just need to use it as a plugin.


Re: Drag to resize image in editor

Reply #5

Yep is jus a code to change width/height manually, but it does the job ;)
Ck Editor is recommended for html pages,  I don't think it will be easy to integrate into a forum

Re: Drag to resize image in editor

Reply #6

Nothing is impossible for emauele and spuds  ;)

Re: Drag to resize image in editor

Reply #7

It has been added at some point to SCEditor:
http://www.sceditor.com/
that's one of the reasons it should be updated for 1.1

Re: Drag to resize image in editor

Reply #8

What is the procedure to use updated editor ?

Re: Drag to resize image in editor

Reply #9

Depends how many changes there were and how "destructive" they are to Elk-specific plugins between the version used in Elk now and the most recent published.
Basically I have no idea. xD

Re: Drag to resize image in editor

Reply #10

Which goes to what if I use a hook ?

Re: Drag to resize image in editor

Reply #11

It's not a problem of "using hooks", it's a problem of evaluating if the latest version of the editor breaks the existing SCEditor plugins used in ElkArte and if so rewrite them to work with the new setting.