wysiwyg editor helper

Permalink
Maybe I've missed it, but if not:

There are many nice helpers to print a button, different form elements etc.

Having a function to insert a TinyMCE editor would be quite nice, wouldn't it?

Remo
 
Remo replied on at Permalink Reply
Remo
am I the only person who thinks a wysiwyg helper would be nice?

I currently need a lot of code to insert the wysiwyg editor. At least unless I've missed something..
katz515 replied on at Permalink Reply
katz515
Oh, I think it would be nice.
andrew replied on at Permalink Reply
andrew
It will make it in there at some point. It's more about making sure that a useful configurable subset be exposed through the helper.

e.g. The helper should let you determine whether your'e giving access to the c5 toolbar, the helper should let you pick one of the predefined tinymce setups you have (so you can easily make a simple text editor), etc...
Remo replied on at Permalink Reply
Remo
Glad to hear that.

Yes, the helper would need quite a few options but I'm sure you'll find a nice way to wrap it all up (:
Remo replied on at Permalink Reply
Remo
Andrew, if you start working on this. I just found a small problem which you might find.

When you use the code you wrote for the content-block - there's a problem with the javascript asset library callback. When you add "$al->image" to a dialog where you have a wysiwyg control the pictures/file appear in the editor and not in the image control.

I know, I can override this behavior, no big deal. But if you create a helper for this, you might want to make sure it doesn't influence other controls like "$al->image"
dbleisch replied on at Permalink Reply
dbleisch
exactly the problem i ran into today.
any sample-code you could provide me for a block-type containing an image and content-attribute?

<field name="content" type="X2"></field>
<field name="fID" type="I">
   <unsigned />
   <default value="0" />
</field>


zahle au gern öpis für en muschter-block ;-)
dbleisch replied on at Permalink Reply
dbleisch
I was able to realize my needs with the Area-Splitter. A great Add-On!
synlag replied on at Permalink Reply
synlag
Musterblock haben ;)

Has this been fixed in rc1? Can you check this issue Remo?

Area-splitter is cool, great addon!
thekoenig replied on at Permalink Reply
Remo:

could you explain to me where and how to override this behaviour (wysiwyg editor 'grabbing' the images from the image block)? i'm stuck at this problem.

thank you.
thekoenig replied on at Permalink Reply
can anyone tell me how to override the content block behaviour of fetching the image from the image control? I really need to get this fixed as I use the combination of the two controls (wysiwyg and image) in a number of custom blocks.
help is greatly appreciated. thank you.