Search

I'm trying to embed a chart from google docs. Here's the embed code: http://pastie.org/2906282

It needs to go into a textarea field, and I can't get it working. I tried using CDATA and it renders this on the front end, which doesn't run: http://pastie.org/2906360

Any help would be appreciated.

Are you using a WYSIWYG on the textarea?

What does your section look like?

No WYSIWYG, but it converts markdown etc. - see attached screenshots.

In case this helps, if I just change the ampersands to & and otherwise leave embed code as is, like this: http://pastie.org/2910467

That produces this in the frontend HTML: http://pastie.org/2910436

Attachments:
Picture3.png, Picture2.png and Picture1.png

Does the markdown formatter not strip that <script/> tag?

What is the generated source code (view-source)? Do you receive any Javascript errors? Try hitting Command+Option+i and see if any JS errors are logged in the console.

Try pasting the code directly in your page template and see if that works (if it does the text formatter is messing with the embedded code). Finally: you could try (for the moment) to simply link to an external script containing your chart code + JSON object.

Have you tried wrapping the xsl output in <xsl:comment> your xsl value of textarea output here. //</xsl:comment>

I've just had to do something similar with embedding a online pdf magazine object embed tag.

And also have you tried isolating the script into it's own text area without any markdown or WYSIWYG editors.. checking the content as HTML encoded in the datasource then use .

Just a thought?

Create an account or sign in to comment.

Symphony • Open Source XSLT CMS

Server Requirements

  • PHP 5.3-5.6 or 7.0-7.3
  • PHP's LibXML module, with the XSLT extension enabled (--with-xsl)
  • MySQL 5.5 or above
  • An Apache or Litespeed webserver
  • Apache's mod_rewrite module or equivalent

Compatible Hosts

Sign in

Login details