Ticket #130 (new enhancement)

Opened 2 years ago

Last modified 5 months 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

follow-up: ↓ 2   Changed 2 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

in reply to: ↑ 1   Changed 2 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.

  Changed 5 months 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.

  Changed 5 months ago by mr_lundis

  • component changed from editor to plugin

  Changed 5 months 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.

  Changed 5 months ago by mr_lundis

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