Page 1 of 1

TyniMCE editor in User control panel (frontend)?

Posted: 19 Jan 2011, 18:26
by 7170
Hi!

First of all congratulations for bring to the comunity this amazing component.

I have a question about the user control panel in the front end.
When I try to add a description from the frontend to any category or subcategory, there is no text editor such as TyniMCE or any other set. How could appear a text editor? I need to format the text as I can from the backend.

Thanks from Spain!! I love this component!

Re: TyniMCE editor in User control panel (frontend)?

Posted: 21 Jan 2011, 18:10
by Jan
Hi, for now there is no such feature :-( Allowing full html in frontend needs some specific library to protect the input (like it is in Phoca Guestbook), so this was not implemented yet :-(

Jan

Re: TyniMCE editor in User control panel (frontend)?

Posted: 28 Jan 2011, 19:32
by 7170
Jan, thank you for answering so quickly!

My client would like to edit the texts from the frontend, is there any hack to get it?. In any case, I hope it will be one of the features in future versions.

Thanks Jan

Re: TyniMCE editor in User control panel (frontend)?

Posted: 29 Jan 2011, 16:10
by Jan
Hi, you can try to look at the phoca guestbook code, in fact you only need to load external editor instead of pure text area (this should be not such a problem, the raeally problem is to protect the input while saving it into database and displaying in frontend)

Jan

Re: TyniMCE editor in User control panel (frontend)?

Posted: 04 Feb 2011, 11:08
by 7170
Hi again, Jan!

I´m trying to implement the HTML editor in the category and subcategory front end editor. My client is the unique administrator of the front end and she needs to edit the format of the introtext of the categories.
I add a script in com_phocagallery/views/user/tmpl/default_subcategories.php, the HTML editor appears in the text area but when I save the changes, nothing happends.
Image

I read that the function maybe that:

Code: Select all

function submitForm ()
{
    nicEditors.findEditor('descr').saveContent();
    document.formpje.submit();
}
the function of the button in com_phocagallery/views/user/tmpl/default_subcategories.php is:

Code: Select all

onclick="return(checkCreateSubCatForm());"
but i need the first function; submitForm().

I change the function of the button:

Original:

Code: Select all

<input type="submit" onclick="return(checkCreateSubCatForm());" id="phocagallerycreatesubcatsubmit" value="<?php echo JText::_('PHOCAGALLERY_EDIT'); ?>"/>
Changed:

Code: Select all

<input type="submit" onclick="submitForm()" id="phocagallerycreatesubcatsubmit" value="<?php echo JText::_('PHOCAGALLERY_EDIT'); ?>"/>
add the function as a script (in the same file, is that correct?), but the button don´t work properly.
Then I change the function with the name, and the id of the text area and the id and name of the form:

Code: Select all

function submitForm ()
{
    nicEditors.findEditor('phocagallerycreatesubcatdescription').saveContent();
    document.phocagallerycreatesubcatform.submit();
}
But is the same, the changes don´t save. What I doing wrong?

I need to resolve this, please help!

Thanks for the support Jan

Re: TyniMCE editor in User control panel (frontend)?

Posted: 05 Feb 2011, 19:30
by Jan
Hi, not sure now, but maybe you need to check if Phoca Gallery does not remove the unnecessary html code (as it is not used - because of security) while saving the content to database.

Jan

Re: TyniMCE editor in User control panel (frontend)?

Posted: 08 Feb 2011, 12:31
by 7170
Thanks for the reply Jan

Please, where i can look for?? Assests? Controllers? Get it would be fascinating...(I´ve spent much time to fix it and my client can´t give me more time...)

Thanx again,
7170

Re: TyniMCE editor in User control panel (frontend)?

Posted: 13 Feb 2011, 01:28
by Jan
Hi, not on my PC now, try to check controller or model of ucp in frontend.

Jan