Go Back   MarcomCentral (PTI) and FusionPro User Communities > Search Forums

Notices

Showing results 1 to 4 of 4
Search took 0.01 seconds.
Search: Posts Made By: Dan Korn
Forum: Formatting Text August 15th, 2016, 05:20 PM
Replies: 27
Views: 22,086
Posted By Dan Korn
Re: Superscript tag inside ReplaceSubstring rule

Where are these "place holders" coming from? Is this from a Data Merge in InDesign? If so, then in FusionPro 10, those will automatically be converted to variables when you export.
Forum: Formatting Text August 15th, 2016, 05:18 PM
Replies: 27
Views: 22,086
Posted By Dan Korn
Re: Superscript tag inside ReplaceSubstring rule

Or you could just do this:

var frame = FindTextFrame('FullBody');
frame.content = frame.content.replace(/([\^\+]+)/g, '<superscript>$1</superscript>');

Also, why are you doing this?
Forum: Formatting Text October 30th, 2014, 04:46 PM
Replies: 27
Views: 22,086
Posted By Dan Korn
Re: Superscript tag inside ReplaceSubstring rule

You also need to check the "Treat returned strings as tagged text" box.
Forum: Formatting Text October 30th, 2014, 04:45 PM
Replies: 27
Views: 22,086
Posted By Dan Korn
Re: Superscript tag inside ReplaceSubstring rule

You need some quotes around the literal string in your code:
return Field("Disclaimer").replace(/SM/g,"<superscript>SM</superscript");
Showing results 1 to 4 of 4

 
Forum Jump

All times are GMT -7. The time now is 07:51 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
(c) 2011, PTI Marketing Technologies™, Inc.