1

Topic: Form Plugin

I've created a form plugin.

http://sourceforge.net/tracker/index.ph … tid=738747

2

Re: Form Plugin

I was thinking of creating one myself... too late ! big_smile

I'll give it a try soon. Thanks.

3

Re: Form Plugin

Excellent!

Few points I have noticed:

1. Visualaid class for the FORM-element would be great. It would help to pinpoint the location of the form.
2. Popups need a little styling, and I feel the "help" thingies, if used should go into a tab (like the new popups in tiny)
3. Element preview is unnessesary in my opinion.
4. The hover effect in toolbar buttons doesnt work on Firefox and on IE it looks a bit bugged.

Anyway great work! I hope you'll continue the development of this plugin. Very handy.

Btw, textarea not yet supported?

4

Re: Form Plugin

Just in the nick of time, thanks!

Is there a way to automatically adding the valid elements for forms to the plugin, rather than having to add it manually everytime one sets up tinymce?

5

Re: Form Plugin

Hi,

This seems very interesting. But since it's my first external plugin I install I don't really now how to do it. The icons doesn't show up on the toolbar. I have added the plugin in the init-function.

Thank you.

Thomas / Sweden

6

Re: Form Plugin

plugins : "form,........."
theme_advanced_buttons3_add_before : "formcontrols,........"
be sure to add the form components to your valid_elements block

7

Re: Form Plugin

Brilliant. Thank's a a lot. But I have still some problems: When I switch to the HTML-view the form- and input tags doesn't show despite that I have added form[action,method],input[type,rows,col] into the "valid_elements" parameter in tiny_mce_src.js.

8

Re: Form Plugin

I have not yet had time to create the visual editors for this module. That means that elements that are not visible from the html (like <form>) are not actually visible in the editor area. things that are visible such as <select> do display

9

Re: Form Plugin

Ok, but doesn't this mean that you can't save the form-related html when you for instance try to store in a database?

10

Re: Form Plugin

No, It just means that in the editor window, you can see where the form begins and ends. For example with a table. If the table has not been set to show borders, you really can't "see" the table elements (without the visual-aids). Same with the form. you can't really "see" the form, only the input elements. If you click the "html source" button in tiny, you should see the form elements. If you do not, then there are still some things missing from your valid_elements.

11

Re: Form Plugin

Tiny MCE needs a forms plugin,well done. Llets hope the team keep developing it and add it as main plugin.

Question, seeing Im still a newbie at this im not sure what I need to add to the "Valid Elements" Im thinking it may be something like this, hope someone can tell me what is better.

-form[name|method|action|id] -input[type|value|id|disabled|class] -select[name|style]

12

Re: Form Plugin

more to this: im just trying to get form elements working in html mode, ie pasting form code. It seems to be working fine if I add the following extended_valid_elements. Only problem Im having now is the "selected" element for options still gets stripped, why?



tinyMCE.init({

extended_valid_elements :

form[name|method|action|id],
input[name|type|value|id|disabled|size|maxlength|class],
textarea[name|cols|rows|id],
select[name|id],
option[selected|value]",

});

13

Re: Form Plugin

from the readme.txt:

"Known Bugs:
        Mozilla and firefox seem to have difficulty specifying focus on an eleme
nt, so changing an element's properties is tricky.
        I have been unable to make the "selected" parameter for options stick. I
t seems to be removed by some clean-up."

14

Re: Form Plugin

where's the link for this form plugin?

15

Re: Form Plugin

http://sourceforge.net/tracker/index.ph … tid=738747
Seems the source forge page displays badly. all the way at the bottom of the page in the Attached files section. you will probably have to scroll way to the right to see the download link.

Last edited by itagtodd (2005-12-14 17:01:18)

16

Re: Form Plugin

This seems to be a wonderfull plug-in but it is not working with me.
I have done the following steps in "Full featured example"

1. Added "form" directory in plugin folder
2. In tinyMCE.init , i added form in the begining i.e. like this plugins : "form,.....
3. also added formcontrols like theme_advanced_buttons3_add_before : "formcontrols,
4. Apended the following line in extended_valid_elements
,form[name|method|action|id],input[name|type|value|id|disabled|size|maxlength|class],textarea[name|cols|rows|id],select[name|id],option[selected|value]


I think that shoudl be enough to make it run.
But it gave me error "tinyMCE.defParam is null or not an object"

Please help me how to go about it.
I am using TinyMCE 2.0.3

Regards
Armoghan

17

Re: Form Plugin

has anyone tried this plugin lately? I get the same error as armoghan using the latest TinyMCE release.  Javascript error in IE "tinyMCE.defParam is null or not an object". lol. any one have any clues?  Someone in another post asked me to look into making this work with the php plugin.

Duct tape is like the force,
it has a light side, a dark side
and it holds the universe together

18

Re: Form Plugin

why can't I download the file at sourceforge?

don't see a download link.

is there a new/better way of adding form functionality I haven't found?

please advise

thanks!

Read Bed & Breakfast America Magazine
for FREE online at:
www.bba.travel

19

Re: Form Plugin

I'm thirding gforce301's comment.  I get this same error, and on top of this I can't edit til clicking on a property item when I try it in firefox.  By the way, I don't get the script error in firefox.

I'm running tinyMCE with Drupal and in addition to the issues here, when I use this plugin I cant populate the textarea with data(when I try to edit a post, nothign appears in the body)

20

Re: Form Plugin

I do not have the time to investigate getting this up to date with the current version of tiny. Sorry. I did hear from another coder who was going to do some work on it, but don't know the status of his work.

21

Re: Form Plugin

*Edit*
Interesting it seems to work in Opera and IE6 but would seem firebug in FireFox 2.0 has issues I am going to do some more testing
*/Edit*

Hi is it possible I could get the a copy of the plugin code to take a look at and maybe update, I am writing my own form plugin but when I insert a input ie "<input name="foo" type="text" />" into the content it makes tinymce go a tad nutty.

Row

Last edited by Row (2006-10-25 23:30:03)

22

Re: Form Plugin

Hey, Row.

Any update on the plugin you were working on?  The other one is no longer available and I can't seem to find any info on alternatives, existing source ... nothing.  I'm totally stuck without FORM support.