Title: custom html block
Last modified: September 17, 2018

---

# custom html block

 *  [born61](https://wordpress.org/support/users/born61/)
 * (@born61)
 * [7 years, 6 months ago](https://wordpress.org/support/topic/custom-html-block/)
 * Hi,
    in [https://frontenberg.tomjn.com/](https://frontenberg.tomjn.com/)
 * I see that it is not allowed to insert script tags .
    in the old editor yes. 
   for example I want insert html: <div class=”cbreplay” data-url=”/mygame.pgn”>
   </div> <script src=”[https://pgn.chessbase.com/jquery-3.0.0.min.js”></script&gt](https://pgn.chessbase.com/jquery-3.0.0.min.js”></script&gt);
   <script src=”[https://pgn.chessbase.com/cbreplay.js&#8221](https://pgn.chessbase.com/cbreplay.js&#8221);
   type=”text/javascript”></script>
 * how will external js be called?
    thanks

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [almcr](https://wordpress.org/support/users/almcr/)
 * (@almcr)
 * [7 years, 6 months ago](https://wordpress.org/support/topic/custom-html-block/#post-10696505)
 * I believe that you would have to add an HTML block for this. I sure don’t see
   any other way to do this. Doubt very much anyone will ever create a block for
   this.
 * Gutenberg creates code blocks in a pre-defined format, with few variations allowed.
   This seems to be one of the restrictions in using Gutenberg as a code generator.
   Oftentimes, these restrictions do not allow you to create the HTML code that 
   you might want to. This may not be a problem for post or page creators who create
   them visually but sure present problems when you know how to use HTML and CSS
   to create post and page content.
 * classic editor and gutenberg are post/page content builder tools that work in
   completely different ways than the other one, building posts/pages like you do
   with the classic editor remains a major challenge with gutenberg. gutenberg uses
   blocks, and a lot of blocks you may want to use are just not available.
 * Al
 * ps look at the experiences of Automattic employees using gutenberg at “automattic.
   design”, earlier this year, they were asked to clone a web page from a site like
   longreads.com using gutenberg. many things done cannot be duplicated in gutenberg,
   using the blocks currently available, unless you use the HTML block.
 *  Thread Starter [born61](https://wordpress.org/support/users/born61/)
 * (@born61)
 * [7 years, 6 months ago](https://wordpress.org/support/topic/custom-html-block/#post-10702581)
 * thanks [@almcr](https://wordpress.org/support/users/almcr/)
    I found that I can
   choose the code block: I insert my script, does not say tag script not allowed,
   but the page exposes the js call as text.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘custom html block’ is closed to new replies.

 * ![](https://ps.w.org/gutenberg/assets/icon-256x256.jpg?rev=1776042)
 * [Gutenberg](https://wordpress.org/plugins/gutenberg/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/gutenberg/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/gutenberg/)
 * [Active Topics](https://wordpress.org/support/plugin/gutenberg/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/gutenberg/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/gutenberg/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [born61](https://wordpress.org/support/users/born61/)
 * Last activity: [7 years, 6 months ago](https://wordpress.org/support/topic/custom-html-block/#post-10702581)
 * Status: not resolved