Styles in Tables

14 views
Skip to first unread message

Hunter Sherman

unread,
Jul 19, 2013, 1:32:06 PM7/19/13
to snape...@googlegroups.com
Since most HTML gets pulled from Snapeditors the way we were thinking to build templates for our users to use was through tables. However if you try to include any styles in tables such as headers you get an error alert:

"Sorry. This action cannot be performed inside a table or list."

What is the barrier to allowing things like header tags inside of tables?

Thanks,
Hunter

Wesley Wong

unread,
Jul 19, 2013, 5:44:08 PM7/19/13
to snape...@googlegroups.com
Hi Hunter,

Disallowing block type elements in tables was a conscious decision on our part. We strongly believe that tables should only be used to display tabular data and not layout. And when it comes to tabular data, it most likely won't have blocks.

We believe that WYSIWYG editors aren't suited for layout and should be used only for content. If you would like to dive into our reasoning, you can refer to our blog post on this topic.

If you would like to provide templates, we would suggest providing a template/layout editor of some sort and then displaying multiple SnapEditors in each defined content area. This way, SnapEditor is used only for content editing and you can have a dedicated template/layout editor. The advantage of a dedicated template/layout editor is that you can be as flexible or constricted as you want. We definitely recognize this is another piece, but we believe dedicated tools are better than a one-size-fits-all tool that does everything but doesn't do anything particularly well.

Let me know your thoughts on this.

Cheers,
Wesley

Hunter Sherman

unread,
Jul 23, 2013, 11:50:03 AM7/23/13
to snape...@googlegroups.com
I see your point, though let me give you an example of something that currently can not be achieved in snapeditor, and would be nearly impossible to achive with multiple snapeditors:

What if your user wants a floated image with wrapping text? This is a pretty standard layout for blog posts etc that we thought we could handle with tables. It isn't really something you can use multiple snapeditors for if you don't know whether your client will want to do it, where they will want the image, and which side they would want it floated too.

Maybe the answer is a little bit more flexibility as far as layout, such as allowing floats?

Thanks,
Hunter

Wesley Wong

unread,
Jul 23, 2013, 7:26:56 PM7/23/13
to snape...@googlegroups.com
Hi Hunter,

Actually, I think you found probably one of the few cases we are willing to agree with that is acceptable in terms of laying out content in an editor.

Honestly, our image feature at the moment is a bit weak and is an area we really want to give a boost to. This includes resizing and floating. And we have some cool ideas we want to implement.

So to answer your question, we agree that floating images should be allowed. We just haven't added the feature yet, so look out for it in the coming releases.

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