Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Joomla! 1.5 JavaScript jQuery

You're reading from   Joomla! 1.5 JavaScript jQuery Enhance your Joomla! Sites with the power of jQuery extensions, plugins, and more

Arrow left icon
Product type Paperback
Published in Jul 2010
Publisher Packt
ISBN-13 9781849512046
Length 292 pages
Edition 1st Edition
Languages
Tools
Concepts
Arrow right icon
Toc

Table of Contents (16) Chapters Close

Joomla! 1.5 JavaScript jQuery
Credits
About the Author
About the Reviewers
1. Preface
1. Let's Start Making a Better Site—Images FREE CHAPTER 2. Site Content—Our Next Step 3. Embedding Rich Media Features with Joomla! Plugins 4. One Last Look at Joomla! jQuery Modules 5. Refactoring Our Site 6. Getting Our Hands on Coding JavaScript 7. Creating Our Own Modules 8. Building Complete Solutions, Modules, and Components 9. Going Further with Our Component Development 10. Problems and Usability Index

Adding a WYSIWYG editor to our component backend


At the moment, in our component's backend, when adding or editing a new element, we have a simple textarea to do it. We enhanced this textarea to grow, as needed, when text was entered in it. But, what if we want to do something more with it, such as adding images, links, bold text, and so on?

For this we could use a WYSIWYG editor. WYSIWYG stands for What You See Is What You Get, and if you have been using Joomla!, you surely will have seen one.

We can add a jQuery editor plugin, much in the same way that we added the textarea autogrow script. However, this is quite easy, and I think it would be more interesting to see how to use Joomla!'s editor.

First, open the administrator/components/com_tinynews/views/addnews/tmpl/form.php file. In this file, we will remove the simpleautogrow plugin because it won't work together with the WYSIWYG editor. Remove the next piece of code, except for the highlighted line, which is still needed:

$js = JURI:...
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image