Responsive Design for SnapEditor?

49 views
Skip to first unread message

Mark Melton

unread,
Jul 13, 2013, 11:29:35 AM7/13/13
to snape...@googlegroups.com
In this editor, you have to specify the text area width and hight thus:

<textarea id="editor" name="content" style="width: 600px; height: 400px;">
      <p>This content will be editable</p>
</textarea>

I tried to make it into percentages to give me a responsive UI but it doesnt work. I tried this:

<textarea id="editor" name="content" style="width: 100%; height: 400px;">
                  <p>This content will be editable</p>
                </textarea>

Any thoughts? Or must one use absolute values for width and height?

Wesley Wong

unread,
Jul 15, 2013, 2:10:42 PM7/15/13
to snape...@googlegroups.com
Hi Mark,

At the moment, you can only use absolute values for the width and height. I will look into adding the ability to add relative dimensions.

I'll update you once I have something.

Cheers,
Wesley

Wesley Wong

unread,
Jul 29, 2013, 7:53:35 PM7/29/13
to snape...@googlegroups.com
Hi Mark,

I just wanted to let you know that the width and height can now be set through the configuration passed through to SnapEditor.Form in the latest release of SnapEditor 1.9.0.

This new config also allows relative widths.

Cheers,
Wesley

Mark Melton

unread,
Jul 31, 2013, 3:17:04 PM7/31/13
to snape...@googlegroups.com
Hi Wesley,

Perfecto! That is awesome. Heading over now to try it. Thank you so very much for providing this decisive feature.

Mark

Mark Melton

unread,
Sep 2, 2013, 7:28:21 AM9/2/13
to snape...@googlegroups.com
Hi Wesley,

Please how do you specify the relative width and height via the config? If possible can you give me the code?

And it will be nice if you updated the documentation to reflect this. The current documentation says this is not possible, and I know many people will decide to buy or not simply based on this. Responsive design is such a huge thing these days!

Thank you.

Mark

Mark Melton

unread,
Sep 2, 2013, 8:29:36 AM9/2/13
to snape...@googlegroups.com

Mark Melton

unread,
Sep 3, 2013, 7:14:31 AM9/3/13
to snape...@googlegroups.com
Hi. Got it! Just the way it used to be, except you now use percentages. Cool

Wesley Wong

unread,
Sep 3, 2013, 9:12:03 PM9/3/13
to snape...@googlegroups.com
Hi Mark,

Glad that you got this working.

The config docs should be updated to reflect this under the "width" and "height" configs. The width config allows you to specify "80%". However, the height cannot be relative.

Cheers,
Wesley
Reply all
Reply to author
Forward
0 new messages