Display/Hide controls

sign - October 1, 2008 - 18:52
Project:jWYSIWYG
Version:6.x-2.0-rc1
Component:Code
Category:feature request
Priority:normal
Assigned:sfranchi
Status:closed
Description

What I would like to see in version 1, well probably its too late.
But for me its crucial to have an option of hiding/displaying controls such as headings, bold, etc...
there is no way to do it in the settings right now.

I think it is quite easy to add it. if you will want to get this feature in, I will find some time during this weekend and do it.

In order to hide-display controls I had to hack the module. :(

#1

sfranchi - October 1, 2008 - 19:07
Assigned to:Anonymous» sfranchi

Hi sign, that feature will be available, don't worry. In the meantime look at http://projects.bundleweb.com.ar/jWYSIWYG/, you don't need to hack the module nor to modify the JS file at all.

You can selectively modify each instance of the plugin, like this:

$('#wysiwyg').wysiwyg({
    controls : {
        separator04 : { visible : true },

        insertOrderedList : { visible : true },
        insertUnorderedList : { visible : true }
    }
});

I'm thinking the best way to do this, so if you have any idea to share, please drop me an message with the contact form.

#2

sign - October 1, 2008 - 20:31

Oh yes, I meant that if i want to use settings from this module, ill have to hack it tho. Anyways thats what i did, entered what i want to display.

Best way from my point of view, would be to have probably an array of available functions, then in settings display checkbox form, and in the code generate the js script. :)

anyways, i found out after an hour of tweaking it that jwysiwyg doesnt work with ie 6 :( so i cant use it

#3

sfranchi - September 12, 2009 - 14:43

Sing, it works in IE6! Take a look with an IE6 to http://mixuna.com.ar (forget about the site, is under construction, just look at the textarea...) at least with a multi IE setup (http://tredosoft.com/Multiple_IE) ) I've in my machine for testing purposes.

I've no way to test it in a "real" IE6, but should work fine.

#4

ica - October 3, 2008 - 09:43

Hi Sandro, thanks for the module,
i am testing and comparing with other editors
i was going to submit a suggestion on the same point as the 'sign's on this issue on making the visibility instance options to be more 'user friendly'

Since jWYSIWYG tell on under each text area the precise name of that text area (in order to user/sitedev to define Field names: in the settings of the module in a text box

would not be better if the jWYSIWYG captures all text Fields of the site and presents
-- as checkboxes on
/admin/settings/jwysiwyg

and replace the textbox of
Field names:
Type the name of a field by line, separating them with an enter.

and also that way there will be no need under each textbox jWYSIWYG telling you what the name of that name of each textfield as a 'helptip'

also is the a way to activate it on both on te teaser and the body field -that also could be an option
-when its activated only on the field_body it disables the editor on teasers (when when its needed to activate on both cases)
and fileld_teaser does not seem to work

thanks

#5

sfranchi - October 3, 2008 - 16:19

Thanks ica for your suggestions, I'll have them in mind for the future of this module for sure.

Actually I never looked how to get the site-wide list of textareas (if you like to share that with me, would be very usefull) but anyway, the list of fields would grow each time a new textarea is added in the site, and you will need to go to the configuration to enable or disable any new field (delete from the module the preference if the field is deleted adding complexity to the module) and you will need to know the textarea field name anyway in order to choose it from the list and enable or disable the editor.

I've used this method because is almost the same used by FCKEditor and others, and in my case seems to be really easy to administer, simplicity is the main objective of this module as the jQuery plugin as well.

I've about 20 sites developed or in maintenance using richt text editors, and in all of them have this module (or FCK) enabled to show the editor only in the list of fields I need the editor, and the administrative overhead is almost NULL. I only need to go to the configuration screen when I wan't to add a new field, or to remove one for any reason.

I think a list with dozens of fields is not so user friendly and will end in something similar to the user permissions screen and honestly, I hate to be there... and for sure, someone will ask for another checkbox for "select/unselect all", so in practical terms, will end in the same stuff we've here in the administration page.

#6

sfranchi - October 6, 2008 - 10:43
Status:active» fixed

The module is working properly as intended in the current version.

From now on, any suggestion must be submitted in the wish list issue: #317547: Wish list.

#7

sfranchi - October 6, 2008 - 10:43
Status:fixed» closed
 
 

Drupal is a registered trademark of Dries Buytaert.