Post by dippetas » Fri Apr 09, 2021 11:36 pm

Hi,

I have been trying to add google fonts to summernote but i cannot make it work.
I am using opencart 3.0.2.0 and i have placed the ttf in to admin/view/avascript/summernote/font
then i edited the summernote.js

Code: Select all

 fontNames: [
        'Arial', 'Arial Black', 'Comic Sans MS', 'Courier New',
        'Helvetica Neue', 'Helvetica', 'Impact', 'Lucida Grande',[b] 'Play', 'Play Bold',
	'Play Regular',[/b] 'Tahoma', 'Times New Roman', 'Verdana'
      ],
      fontNamesIgnoreCheck: ['play', 'Play Bold', 'Play Regular'],

      fontSizes: ['8', '9', '10', '11', '12', '13', '14', '18', '24', '36'],
 
i simply cannot see the changes to take effect does any body have an idea how to accomplish that?

Newbie

Posts

Joined
Thu Aug 23, 2018 10:20 pm

Post by mikeinterserv » Sat Apr 10, 2021 12:10 am

dippetas wrote:
Fri Apr 09, 2021 11:36 pm
admin/view/avascript/summernote/font
Maybe that's a typo but if its your path it needs a j for javascript

Active Member

Posts

Joined
Thu May 28, 2020 6:55 am
Location - Wales
Who is online

Users browsing this forum: Bing [Bot] and 355 guests