Forums

TextArea

ideagrup 22 Aug, 2015
Good morning.
I'm trying solved a problem putting a new editor into the curtom code in my form.

I've write a lot of sentences and i've changed global joomla parameters and nothing

I need only two litle things.

If you look the picture ther are two red circles:

The first in up:
I need one button for to put a link.

the second in bottom:
I need change the width of text area.

Can u help me????

Thomas
GreyHead 22 Aug, 2015
Hi ideagrup,

I had a dig around the code for this and couldn't see any easy way to change the settings using the WYSiWYG option in the Textarea element . . . but you can do it using a plain textarea and a little code in a Load JavaScript action in the On Load event of your form.
<?php
$doc->_('editor');
?>
jQuery(document).ready(function(jQ) {
  tinymce.init({
    mode : "exact",
    elements : 'textarea1',
    width : 400,
    template : 'modern',
    plugins : 'link image',
    toolbar : "undo redo | styleselect | bold italic | hr link ",
    resize: 'both'
  });
});
You can add/change the options as you need (but note that only the modern template is available this way). See the TinyMCE site for more settings.

This options group has the link plug-in and resize : 'both'

Bob
ideagrup 23 Aug, 2015
Perfect Bob.

Is running perfect is a great solution!!!!!

Thanks for all

Thomas
This topic is locked and no more replies can be posted.