Recent Topics

1 Nov 12, 2020 02:46    

Hi, I'm a fiction writer using b2evo to write my book of 100 short stories. I want to add a button to the back office editor that runs a javascript function. The function pops up an alert telling how many words are selected in the textArea. Zero if nothing is selected. This can really help me with my writing.

I know javascript and I will use wordNum = str.split(' ').length; to actually count the words but I need to know if properties of the text area are available to me and how to put a button in the header.

Any help will be greatly appreciated!

2 Nov 12, 2020 15:36

Hi. Just to say your idea is under thought. You can make and|or adapt an existing plugin. I have modified a couple to get extra options via a button.
I usually use the quicktags plugin, as knowing what it outputs I can just add and delete bits as I go along.

I'm attaching one [_myhtmltags.plugin.php] I've modded, as a text file, so you can see the code and if you are happy you could install it and then modify if without using any of your default files


Attachments:


Form is loading...