Style cannot reference itself as newline

20 views
Skip to first unread message

Ben Scholzen

unread,
Aug 15, 2013, 10:27:31 AM8/15/13
to snape...@googlegroups.com
I just created a bunch of styles, each referencing itself as newline. This somehow seems to fail though; as soon as I hit enter, it always inserts a the first style in the list. Referencing another style works well though.

Wesley Wong

unread,
Aug 15, 2013, 7:28:28 PM8/15/13
to snape...@googlegroups.com
Hi Ben,

Thanks for letting us know.

Are you doing something like this?

SnapEditor.addStyleButton("h1.title", {
  text
: "Title",
  newline
: "h1.title"
});

Thanks,
Wesley

Ben Scholzen

unread,
Aug 21, 2013, 1:07:24 PM8/21/13
to snape...@googlegroups.com
Exactly.

Wesley Wong

unread,
Aug 21, 2013, 4:16:24 PM8/21/13
to snape...@googlegroups.com
Hi Ben,

Thanks. We'll take a look into it. I'll update you once I have something.

Cheers,
Wesley

Wesley Wong

unread,
Sep 12, 2013, 1:23:19 PM9/12/13
to snape...@googlegroups.com
Hi Ben,

I just wanted to let you know that the newly released SnapEditor 2.0.0 fixes this issue.

Let me know if you're still having problems with it.

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