Ticket #130 (new enhancement)

Opened 4 years ago

Last modified 2 years ago

Automatically Resizeable iFrame (emulate inline editing)

Reported by: webPragmatist Owned by:
Priority: minor Milestone:
Component: plugin Version: trunk
Keywords: Cc:

Description

Can we make an option to automatically resize the iframe height?

I tried to do some iframe hacks I found on the web but it seems we should hook the resize to an action that wymeditor is doing (keypress?).

Thank you.

Change History

comment:1 follow-up: ↓ 2 Changed 4 years ago by jf.hovinne

  • Status changed from new to assigned

Isn't the resizable plugin (wymeditor/plugins/resizable in the package) the solution to your problem?

Click on the WYMeditor right/bottom edges and drag the mouse:

 http://files.wymeditor.org/wymeditor/trunk/src/examples/10-resizable.html

comment:2 in reply to: ↑ 1 Changed 4 years ago by webPragmatist

Replying to jf.hovinne:

Isn't the resizable plugin (wymeditor/plugins/resizable in the package) the solution to your problem?

Click on the WYMeditor right/bottom edges and drag the mouse:

 http://files.wymeditor.org/wymeditor/trunk/src/examples/10-resizable.html

No, the item should automatically resize. In my application I don't even have a border around any of the iframe/containers. This is to basically mimic inline editing while still using an iframe.

comment:3 Changed 2 years ago by mr_lundis

  • Priority changed from major to minor
  • Status changed from assigned to new
  • Summary changed from Automatically Resizeable iFrame to Automatically Resizeable iFrame (emulate inline editing)
  • Milestone 0.5 deleted

This would make a nice plugin, as a compliment to the existing resize plugin. However, it's not on the todo-list for 0.5.

Leaving the ticket open if anyone feels like implementing this.

comment:4 Changed 2 years ago by mr_lundis

  • Component changed from editor to plugin

comment:5 Changed 2 years ago by mr_lundis

This jQuery plugin might be of interest:  http://james.padolsey.com/javascript/jquery-plugin-autoresize/

Perhaps it could be adapted to resize the iframe instead of the textarea.

comment:6 Changed 2 years ago by mr_lundis

  • Owner jf.hovinne deleted
Note: See TracTickets for help on using tickets.