Skip to Main Content

APEX

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

How to add a new font family in TinyMCE for Apex 23.1

Faezeh EbrahimiOct 8 2023

I'm using Apex 23.1 and I want to add a new font family in Tiny MCE with url file reference ! here's what I've done :

1- in Initialization JavaScript Function section

tinymce.init({
 /* ... */
 font_formats:
   "Andale Mono=andale mono,times; Arial=arial,helvetica,sans-serif; Arial Black=arial black,avant garde; Book Antiqua=book antiqua,palatino; Comic Sans MS=comic sans ms,sans-serif; Courier New=courier new,courier; Georgia=georgia,palatino; Helvetica=helvetica; Impact=impact,chicago; Oswald=oswald; Symbol=symbol; Tahoma=tahoma,arial,helvetica,sans-serif; Terminal=terminal,monaco; Times New Roman=times new roman,times; Trebuchet MS=trebuchet ms,geneva; Verdana=verdana,geneva; Webdings=webdings; Wingdings=wingdings,zapf dingbats;peyda=peyda",
});

tinymce.init({
 /* ... */
 content_style:
   "@import url('#WORKSPACE_FILES#Peyda-Regular.ttf');",
});

2- in inline css section for page

@font-face{
font-family:'Peyda';
src:url('#WORKSPACE_FILES#Peyda-Regular.ttf') format('truetype') !important;
}

But it didn't apply and even i can't see my new font Peyda in font select !

This post has been answered by Louis Moreaux on Oct 12 2023
Jump to Answer
Comments
Post Details
Added on Oct 8 2023
5 comments
506 views