• Resolved Specro

    (@specro)


    I am building custom blocks for the block editor and in one of the blocks I am using a custom font in the frontend. The problem I am facing is that once I save the text with three periods it converts them to an ellipsis character which my font doesn’t support. I’m using a PlainText component for this. Is there any filter that I can use to omit this or convert the ellipsis back?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator Jose Castaneda

    (@jcastaneda)

    THEME COFFEE MONKEY

    Hi!

    Is the font something you made or from another party? If from another party, personally I would reach to them and ask about potentially adding that character to the map of glyphs or even adding your own. There are some font editors available out there – FontForge is one that comes to mind – and are free too.

    Now for conversion, the only thing that comes to mind at the moment is possibly filtering the ent2encr ( entity to entity character ) array but I’m not familiar with how that fully works, I just know of it. I like to look up random filters when I can. ??

    A lot of that can be found in the formatting file: https://core.trac.www.ads-software.com/browser/tags/5.1/src/wp-includes/formatting.php

    Not sure if that helps you out or not though.

    Thread Starter Specro

    (@specro)

    I googled a bit more on filters and managed to remove the texturize filter that did this.

    remove_filter( 'the_content', 'wptexturize' );

    Thank you for your help.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Removing ellipsis conversion from block editor’ is closed to new replies.