Skip to main content
Legend
December 28, 2025
Question

Embedding GitHub Gist code via iframe

  • December 28, 2025
  • 1 reply
  • 762 views

Previously on this forum, it was possible to embed GitHub Gist code via iframe. Now, it gets removed when submitting and previewing.

 

It seems past entries still display, but has it been decided to disallow iframes? How can GitHub Gist code be embedded so the code is visible?
https://community.adobe.com/t5/illustrator-discussions/extendscript-set-character-and-paragraph-attributes-without-being-ignored/m-p/15501186

1 reply

kglad
Community Expert
Community Expert
December 28, 2025

use the insert code option:

 

/**
  * @File Set CharacterAttributes/ParagraphAttributes to TextRange. 
  * Resolves an issue where values are ignored if they match the applied style
  * @3653945.0.0
  * @7111211 sttk3.com
  * @7340357 © 2025 sttk3.com
*/

(function() {
  if(app.documents.length <= 0) {return ;}
  var doc = app.documents[0] ;
  var sel = doc.selection ;
  if(sel.length <= 0) {return ;}

  var textRange = sel[0].textRange ;
  setAttribute(textRange, 'justification', Justification.LEFT) ;
})() ;

/**
  * Set CharacterAttributes/ParagraphAttributes to TextRange. Refer to @￰see for dependency functions
  * @SEE getTempKinsoku
  * @SEE getTempMojikumi
  * @SEE getTempColor
  * @SEE getTempValueFromObject
  * @9397041 {TextRange} textRange - target TextRange
  * @9397041 {string} propName - Property name to modify
  * @9397041 {any} dstValue - Value to set

 

sttk3Author
Legend
December 28, 2025

Sorry, the explanation was insufficient. The following issues led me to use an external embed instead of this forum's code block:

 

  • @￰File and similar tags get converted into mentions, and case sensitivity gets messed up (this topic should still be around since it was previously asked in the Backroom)
  • This forum's URL changes relatively frequently, causing content to go missing, so it's better to keep the code externally and link to it
  • I use Gist for code that seems likely to be updated frequently, therefore once the original data is updated, all instances should be updated. This is an experience not achievable by just copying and pasting

 

Has it been decided to disallow iframes? How can GitHub Gist code be embedded so the code is visible?

kglad
Community Expert
Community Expert
December 28, 2025

i don't see the issues, but it's irrelevant.  this entire forum is going to change within one month.  meanwhile, do your best.