New Font Awesome Icons in Quick Reply Editor

Tags
editor, font awesome, quick reply, quick reply editor, web programming

 
Thread Tools Search this Thread
# 1  
Old 12-07-2018
New Font Awesome Icons in Quick Reply Editor

Working on the Quick Reply Editor, I have replaced a number of icons (see image below) with Font Awesome Icons. Was planning to replace all of them, but for some reason, replacing a few of them causes the script / template to break (which is odd) so I left them for now.

Image

The tooltips work better with Font Awesome than with images, so I hope to replace all of them at some point in time.

I'll probaly have to rewrite the PHP code for the custom icons like code, icode, and noparse tags to them them to work with Font Awesome.
# 2  
Old 12-07-2018
Update: Was able to get the ICODE tag to work using Font Awesome in the Quick Reply Editor. Also, removed the PHP code tag in the QRE.

TODO: Need to change the "advanced" and "edit post" editors....
# 3  
Old 12-07-2018
Update: Was able to find an acceptable NOPARSE font Font Awesome in the Quick Reply Editor.

TODO: Need to change the "advanced" and "edit post" editors.... Will do this TODO after the QRE is done.
These 4 Users Gave Thanks to Neo For This Post:
Corona688 (12-07-2018) Don Cragun (12-08-2018) jim mcnamara (12-07-2018) vgersh99 (12-07-2018)
# 4  
Old 12-08-2018
OK... I found out why I cannot change a few of the icons without breaking things

The original code for the quick editor does a string match on a couple of the HTML strings that represent the original icons. If I change the icon code, the toolbar breaks. This string match is used to insert addition custom icons after the match icon strings.

This is not a problem but I will need to write the PHP code to do a string match using some other string. So my TODO list has increased regarding cleaning up these editors.

Cheers.
# 5  
Old 12-14-2018
OK... I wrote the PHP code and was able to replace two more editor toolbar images with Font Awesome icons (getting round the issues with the original QRE plugin code). The main icon left to do is the "code tag" icon, but I'm not inclined to replace that one yet, since:
  1. it is not easy to find a replacement; and
  2. it is also embedded into may "info" and "hint" areas of the site.

Next, when I have time, I'll transfer and test the same icon changes for the "advanced " editor to make the icons consistent across various site editors.
This User Gave Thanks to Neo For This Post:
000vikas (12-15-2018)
# 6  
Old 12-14-2018
I took a new look at Font Awesome, and I think I have a good way forward for the code tags icons (block and inline code tags):
  1. Replace the main code tag icon "code" with Font Awesome (fas fa-code); and,
  2. Replace the inline code tag icon with Font Awesome (fas fa-terminal).

References:
  1. fas fa-code :Font Awesome
  2. fas fa-terminal : Font Awesome

These are the best choices from the FA icons, as far as I can see (easiest to read, etc).
# 7  
Old 12-14-2018
Update.

Harmonized the QRE Font Awesome icons with the "Advanced Editor".

Image

Also, worked on the same editor to get the font color picker to work in the AAEPE (Advanced and Edit Post Editor) (no joy yet) and to get the attachments to work in QRE (no joy yet). I think the issue is in the two different javascript files used for these two editors. Will need to look deeper into the JS code for these editors. Disabled the PHP and HTML bbcode in the advanced editor since they are mostly misused and we don't need the syntax highlighting for PHP and HTML. The basic code tags work well enough.

The main difference in the two editors are:
  1. Color Picker works in QRE but not in the AAEPE.
  2. Attachments work in the AE but not in the QRE.
  3. AE has post preview mode.


TODO:
  • Swap the ICODE icon with the CODE gif and add new fa-terminal FA icon for ICODE.
  • Replace code.gif icon with a screenshot of the new CODE icon for hints and directions.
  • Maybe reorder the AAEPE icons to match the QRE order to be consistent.
  • Look into fixing the conflicts or missing functions between the JS code for both editors.

EXTRA TODOs
  • Create a Bootstrap modal for the editor which explains how to use the two code tags (popup information modal)
  • Try to get the "upload attachment modal" I wrote to work 100% (not yet available to the site).
This User Gave Thanks to Neo For This Post:
000vikas (12-15-2018)

|
Thread Tools Search this Thread
Search this Thread:
Advanced Search

More UNIX and Linux Forum Topics You Might Find Helpful
New CODE and ICODE Editor Button Icons Neo What is on Your Mind? 4 4 Weeks Ago 06:31 AM
Quick Update on UNIX.COM Site Renovation: Bootstrap, Font Awesome and jQuery Neo What is on Your Mind? 2 12-15-2018 01:35 AM
A Choice: Draggable Editors or Smilie Box on Quick Editor Neo What is on Your Mind? 5 12-07-2018 12:40 AM
New Mobile Navbar Icons from Font Awesome Neo What is on Your Mind? 2 09-03-2018 12:43 PM
Small bug in the Quick Editor function in postbit Neo What is on Your Mind? 1 08-05-2018 06:24 AM
New Icons Coming from Font Awesome Neo What is on Your Mind? 39 08-01-2018 03:41 PM
New jQuery to view Post Icons in Editor Neo What is on Your Mind? 0 07-29-2018 06:48 AM
CDE: why no icons? Linusolaradm1 AIX 8 10-29-2014 02:15 PM
set EDITOR=vi -> default editor not setting for cron tab aarora_98 Shell Programming and Scripting 6 09-13-2008 03:01 AM