Jump to content

Paragraph: Justify with last line aligned center


Recommended Posts

I don't think you can do it from the text editor but you can create a rule to return your paragraph:

var yourParagraph = 'Flexitarian freegan polaroid paleo kickstarter blue bottle. Pop-up echo park thundercats dreamcatcher, small batch sriracha migas green juice. Crucifix gentrify live-edge, wolf thundercats schlitz before they sold out slow-carb distillery cliche coloring book squid lomo gluten-free kinfolk. Fixie gastropub tilde blue bottle green juice, tattooed pop-up gluten-free kombucha poke pok pok iceland kickstarter. Godard lyft venmo, cliche iPhone twee intelligentsia bushwick sartorial swag selfies 3 wolf moon. Slow-carb farm-to-table tousled cornhole, aesthetic small batch ramps williamsburg. Man braid af marfa, pork belly direct trade before they sold out enamel pin asymmetrical bushwick squid.';
return '<p br=false quad="JC">' + yourParagraph;


Or if you want to typeset your paragraphs in the text editor, you can name your that text frame (ex: "ParagraphFrame") and set the alignment in your OnRecordStart callback:

FindTextFrame('ParagraphFrame').content = FindTextFrame('ParagraphFrame').content.replace(/quad="\w+"/g, 'quad="JC"');

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...