Skip to content

Commit

Permalink
Updated to use FontAwesome v4.4.0
Browse files Browse the repository at this point in the history
Had to use Google Translate for the translations for forgive me if they
are wrong.
  • Loading branch information
josh18 committed Aug 3, 2015
1 parent 753e51d commit 1be953e
Show file tree
Hide file tree
Showing 7 changed files with 852 additions and 44 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# TinyMCE FontAwesome Plugin

###### v1.5.1
###### v1.6.0

A plugin that lets you insert FontAwesome icons via TinyMCE. Currently uses FontAwesome v4.3.0 and is tested on TinyMCE v4.1.10.
A plugin that lets you insert FontAwesome icons via TinyMCE. Currently uses FontAwesome v4.4.0 and is tested on TinyMCE v4.1.10.


### Instructions
Expand All @@ -17,7 +17,7 @@ A plugin that lets you insert FontAwesome icons via TinyMCE. Currently uses Font
...
extended_valid_elements: 'span[class]'
...
content_css: '//netdna.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css';
content_css: '//netdna.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css';
...
toolbar: 'fontawesome';
...
Expand Down
3 changes: 2 additions & 1 deletion fontawesome/langs/de.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,6 @@ tinymce.addI18n('de', {
'Transportation': 'Transport',
'Gender': 'Geschlecht',
'Payment': 'Bezahlung',
'Chart': 'Diagramm'
'Chart': 'Diagramm',
'Hand': 'Hand'
});
3 changes: 2 additions & 1 deletion fontawesome/langs/en.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,6 @@ tinymce.addI18n('en', {
'Transportation': 'Transportation',
'Gender': 'Gender',
'Payment': 'Payment',
'Chart': 'Chart'
'Chart': 'Chart',
'Hand': 'Hand'
});
3 changes: 2 additions & 1 deletion fontawesome/langs/es.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,6 @@ tinymce.addI18n('es', {
'Transportation': 'Transportes',
'Gender': 'Géneros',
'Payment': 'Formas de Pago',
'Chart': 'Gráficos'
'Chart': 'Gráficos',
'Hand': 'Mano'
});
2 changes: 1 addition & 1 deletion fontawesome/plugin.min.js

Large diffs are not rendered by default.

96 changes: 93 additions & 3 deletions plugin.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Created by Josh Hunt
// [email protected]
// v1.5.1
// v1.6.0
tinymce.PluginManager.requireLangPack('fontawesome');
tinymce.PluginManager.add('fontawesome', function (editor, url) {

Expand All @@ -16,10 +16,16 @@ tinymce.PluginManager.add('fontawesome', function (editor, url) {
[''],
[''],
[''],
[''],
[''],
[''],
[''],
[''],
[''],
[''],
[''],
[''],
[''],
[''],
[''],
[''],
Expand All @@ -43,7 +49,11 @@ tinymce.PluginManager.add('fontawesome', function (editor, url) {
[''],
[''],
[''],
[''],
[''],
[''],
[''],
[''],
[''],
[''],
[''],
Expand All @@ -66,6 +76,7 @@ tinymce.PluginManager.add('fontawesome', function (editor, url) {
[''],
[''],
[''],
[''],
[''],
[''],
[''],
Expand All @@ -76,10 +87,13 @@ tinymce.PluginManager.add('fontawesome', function (editor, url) {
[''],
[''],
[''],
[''],
[''],
[''],
[''],
[''],
[''],
[''],
[''],
[''],
[''],
Expand Down Expand Up @@ -138,14 +152,28 @@ tinymce.PluginManager.add('fontawesome', function (editor, url) {
[''],
[''],
[''],
[''],
[''],
[''],
[''],
[''],
[''],
[''],
[''],
[''],
[''],
[''],
[''],
[''],
[''],
[''],
[''],
[''],
[''],
[''],
[''],
[''],
[''],
[''],
[''],
[''],
Expand All @@ -164,7 +192,11 @@ tinymce.PluginManager.add('fontawesome', function (editor, url) {
[''],
[''],
[''],
[''],
[''],
[''],
[''],
[''],
[''],
[''],
[''],
Expand All @@ -176,8 +208,11 @@ tinymce.PluginManager.add('fontawesome', function (editor, url) {
[''],
[''],
[''],
[''],
[''],
[''],
[''],
[''],
[''],
[''],
[''],
Expand Down Expand Up @@ -206,6 +241,7 @@ tinymce.PluginManager.add('fontawesome', function (editor, url) {
[''],
[''],
[''],
[''],
[''],
[''],
[''],
Expand Down Expand Up @@ -249,6 +285,8 @@ tinymce.PluginManager.add('fontawesome', function (editor, url) {
[''],
[''],
[''],
[''],
[''],
[''],
[''],
[''],
Expand All @@ -258,6 +296,7 @@ tinymce.PluginManager.add('fontawesome', function (editor, url) {
[''],
[''],
[''],
[''],
[''],
[''],
[''],
Expand All @@ -271,6 +310,7 @@ tinymce.PluginManager.add('fontawesome', function (editor, url) {
[''],
[''],
[''],
[''],
[''],
[''],
[''],
Expand All @@ -297,24 +337,31 @@ tinymce.PluginManager.add('fontawesome', function (editor, url) {
];

var brandIcons = [
[''],
[''],
[''],
[''],
[''],
[''],
[''],
[''],
[''],
[''],
[''],
[''],
[''],
[''],
[''],
[''],
[''],
[''],
[''],
[''],
[''],
[''],
[''],
[''],
[''],
[''],
[''],
[''],
Expand All @@ -324,12 +371,18 @@ tinymce.PluginManager.add('fontawesome', function (editor, url) {
[''],
[''],
[''],
[''],
[''],
[''],
[''],
[''],
[''],
[''],
[''],
[''],
[''],
[''],
[''],
[''],
[''],
[''],
Expand All @@ -341,8 +394,10 @@ tinymce.PluginManager.add('fontawesome', function (editor, url) {
[''],
[''],
[''],
[''],
[''],
[''],
[''],
[''],
[''],
[''],
Expand All @@ -355,7 +410,12 @@ tinymce.PluginManager.add('fontawesome', function (editor, url) {
[''],
[''],
[''],
[''],
[''],
[''],
[''],
[''],
[''],
[''],
[''],
[''],
Expand All @@ -368,6 +428,7 @@ tinymce.PluginManager.add('fontawesome', function (editor, url) {
[''],
[''],
[''],
[''],
[''],
[''],
[''],
Expand All @@ -387,22 +448,26 @@ tinymce.PluginManager.add('fontawesome', function (editor, url) {
[''],
[''],
[''],
[''],
[''],
[''],
[''],
[''],
[''],
[''],
[''],
[''],
[''],
[''],
[''],
[''],
[''],
[''],
[''],
[''],
[''],
[''],
[''],
[''],
[''],
[''],
Expand Down Expand Up @@ -451,6 +516,7 @@ tinymce.PluginManager.add('fontawesome', function (editor, url) {
[''],
[''],
[''],
[''],
[''],
[''],
[''],
Expand Down Expand Up @@ -517,6 +583,7 @@ tinymce.PluginManager.add('fontawesome', function (editor, url) {
[''],
[''],
[''],
[''],
[''],
[''],
[''],
Expand Down Expand Up @@ -558,7 +625,7 @@ tinymce.PluginManager.add('fontawesome', function (editor, url) {
];

var genderIcons = [
[''],
[''],
[''],
[''],
[''],
Expand Down Expand Up @@ -591,6 +658,8 @@ tinymce.PluginManager.add('fontawesome', function (editor, url) {
[''],
[''],
[''],
[''],
[''],
[''],
[''],
[''],
Expand All @@ -617,7 +686,9 @@ tinymce.PluginManager.add('fontawesome', function (editor, url) {

var paymentIcons = [
[''],
[''],
[''],
[''],
[''],
[''],
[''],
Expand All @@ -641,6 +712,24 @@ tinymce.PluginManager.add('fontawesome', function (editor, url) {
['']
];

var handIcons = [
[''],
[''],
[''],
[''],
[''],
[''],
[''],
[''],
[''],
[''],
[''],
[''],
[''],
[''],
['']
];

function showDialog() {

var win;
Expand Down Expand Up @@ -698,7 +787,8 @@ tinymce.PluginManager.add('fontawesome', function (editor, url) {
+ groupHtml(transportationIcons, translate('Transportation'))
+ groupHtml(genderIcons, translate('Gender'))
+ groupHtml(paymentIcons, translate('Payment'))
+ groupHtml(chartIcons, translate('Chart'));
+ groupHtml(chartIcons, translate('Chart'))
+ groupHtml(handIcons, translate('Hand'));

win = editor.windowManager.open({
autoScroll: true,
Expand Down
Loading

0 comments on commit 1be953e

Please sign in to comment.