×

Notice

The forum is in read only mode.
Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: Simple WYSIWYG editor for frontend adding of hotspots

Simple WYSIWYG editor for frontend adding of hotspots 13 years 5 months ago #12849

  • Preston
  • Preston's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 18
  • Thank you received: 0
Most people who will be using frontend adding don't know html and a simple WYSIWYG editor would be useful in creating more attractive description pages. Maybe there can be an option in the backend to toggle this on & off

Simple WYSIWYG editor for frontend adding of hotspots 13 years 5 months ago #12852

  • Eliecer Marchante
  • Eliecer Marchante's Avatar
  • Offline
  • Platinum Boarder
  • Platinum Boarder
  • Posts: 493
  • Karma: 11
  • Thank you received: 13
I personally don't need a WYSIWYG editor, but it will be a cool feature for people don't know html.

Simple WYSIWYG editor for frontend adding of hotspots 13 years 5 months ago #12862

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
I was thinking of this myself. I wanted to research what simple editors there are and add one to the component. Created a feature issue for this:
dev.compojoom.com/issues/674

Simple WYSIWYG editor for frontend adding of hotspots 13 years 3 months ago #14031

  • Gregory S.
  • Gregory S.'s Avatar
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 15
  • Thank you received: 0
Daniel,
We have a real need for a WYSIWYG editor on the description field of the frontend form. We use JCE which allows you to define a profile for frontend users and restrict to specific components if need be. We defined one just for Hotspots but, of course, it won't display on the frontend without some changes.

Simple WYSIWYG editor for frontend adding of hotspots 13 years 3 months ago #14032

  • Gregory S.
  • Gregory S.'s Avatar
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 15
  • Thank you received: 0
I hadn't looked at adding a WYSIWYG editor to the description field for a few weeks but while this was on my mind I took a quick look. Using the JCE editor I was able to add a WYS field to the frontend description form field (form.php) by adding the class "wfEditor" to the textarea and the 3 lines of code below near the top of the page.

$editor=JFactory::getEditor();
$editor->initialise();
$editor->display('wysiwyg','','310px','81px',30,20);

This might work for any WYSIWYG editor.

Simple WYSIWYG editor for frontend adding of hotspots 13 years 3 months ago #14034

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Hey Gregory,
This is the standard way to add editors to a field in joomla. However I just want to add an editor that has just few opitons
aling, bold, italic - paragraph, h2 etc. I don't want to give the users too many options, because this creates one big mess with some inexperienced users.
For those who want to have an editor right now this is a good example :) Thanks!

Daniel

Simple WYSIWYG editor for frontend adding of hotspots 13 years 3 months ago #14035

  • Gregory S.
  • Gregory S.'s Avatar
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 15
  • Thank you received: 0
That was my thought exactly. I used JCE so I could easily limit the options. The solution works for the time being but I am looking forward to it being part of Hotspots.
  • Page:
  • 1
Time to create page: 0.114 seconds