Forum closed. New forum available at http://community.wymeditor.org/

Tables, Styles + Feature Requests

Support forum for WYMeditor.

Tables, Styles + Feature Requests

Postby gregg128 on Fri Dec 01, 2006 11:30 am

1. WYMeditor is great, thanks a lot for a useful program.

2. How can i change a style of <td> tag without editing source code ? (I need to edit css-ed tables with a lot of colored cells and rows etc)

3. Is there a (planned ?) feature to add users own styles ? I mean a WYSIWYM-way, so i could add a style MyNewstyle1 and than mark the paragraph as <p style=MyNewstyle1> and write a css file(s) with this style description later

4. It would be great to see the styles names near thouse little tag marks at the top of the paragraphs, like
<p>, applied styles: important, date
It would be a much easyer way than showing a paragraph marked with style=important with red letters and borders etc.
gregg128
 
Posts: 6
Joined: Fri Dec 01, 2006 10:51 am

Re: Tables, Styles + Feature Requests

Postby jfh on Fri Dec 01, 2006 1:18 pm

gregg128 wrote:1. WYMeditor is great, thanks a lot for a useful program.

You're welcome!
gregg128 wrote:2. How can i change a style of <td> tag without editing source code ? (I need to edit css-ed tables with a lot of colored cells and rows etc)

In the classes menu, simply add buttons with the classes you need, for instance:
Code: Select all
<h3>Tables</h3>
<a href="#" name="td-one" onclick="setClass('td-one','TD','td-two,td-three','');getCleanHTML()">td one</a>
<a href="#" name="td-two" onclick="setClass('td-two','TD','td-one,td-three','');getCleanHTML()">td two</a>
<a href="#" name="td-three" onclick="setClass('td-three','TD','td-one,td-two','');getCleanHTML()">td three</a>

setClass arguments:
    First arg is the class name
    Second arg is the container(s) which accepts this class
    Third arg (optional) is a list of conflicting classes
    Fourth arg (optional) is a list of non-conflicting (allowed) classes
gregg128 wrote:3. Is there a (planned ?) feature to add users own styles ? I mean a WYSIWYM-way, so i could add a style MyNewstyle1 and than mark the paragraph as <p style=MyNewstyle1> and write a css file(s) with this style description later

gregg128 wrote:4. It would be great to see the styles names near thouse little tag marks at the top of the paragraphs, like
<p>, applied styles: important, date
It would be a much easyer way than showing a paragraph marked with style=important with red letters and borders etc.

I'll let Daniel answer these questions.

Cheers,
User avatar
jfh
Site Admin
 
Posts: 370
Joined: Sat Sep 23, 2006 8:43 pm
Location: Belgium

Postby Daniel_R on Sun Dec 03, 2006 6:52 pm

Hello,

3. Is there a (planned ?) feature to add users own styles ? I mean a WYSIWYM-way, so i could add a style MyNewstyle1 and than mark the paragraph as <p style=MyNewstyle1> and write a css file(s) with this style description later


Could you explain why you want this feature ?
I don't see the need for this feature, but I'm not sure to understand.

If you want to add specific classes, you can do it like Jean-François said, then define their visual aspect by adding related styles in your stylesheets.

I don't see the advantage to let end-users add their styles, since the approach of WYMeditor is to allow the technical user/administrators to define strict boundaries. It's up to the web designers/developers to define classes for each project. They can also have their set of classes to use in all projects, to allow more flexibility than what is available by default.


4. It would be great to see the styles names near thouse little tag marks at the top of the paragraphs, like <p>, applied styles: important, date


Yes, it would be a good feature. In fact you can make it if you want: the actual tag marks are simply CSS background images. You can create a specific background image for each class. You will have some work for each new class you add so it's not practical and it won't work with multiple classes.

There are other approaches like using CSS generated content, but it's not supported by IE, or by generating these labels using javascript, but it's more difficult to implement. It's something we may implement in the next major version of WYMeditor. If someone wants to contribute and implement the feature into the current version, we will be happy to help and assist.
Daniel_R
 
Posts: 10
Joined: Wed Sep 27, 2006 12:19 pm

Postby gregg128 on Tue Dec 19, 2006 11:51 am

Is there a (planned ?) feature to add users own styles ? I mean a WYSIWYM-way, so i could add a style MyNewstyle1 and than mark the paragraph as <p style=MyNewstyle1> and write a css file(s) with this style description later
Could you explain why you want this feature ?
I don't see the need for this feature, but I'm not sure to understand.


I already have a website with some .css file with a lot of stiles in it.

I would like to put a lot of articles, tables, etc. onto this site and i would like to use Wymeditor to markup all this texts.

It will take a lot of time to get all my stiles "hard-coded" to editor.htm. That why i asked about some GUI to do it.
gregg128
 
Posts: 6
Joined: Fri Dec 01, 2006 10:51 am

bugs with firefox ???

Postby gregg128 on Tue Dec 19, 2006 11:58 am

I see no buttons from <!-- table : advanced commands --> in my firefox 1.5.0.8, Suse 10

Image

The same page in IE works just OK.
gregg128
 
Posts: 6
Joined: Fri Dec 01, 2006 10:51 am

Postby gregg128 on Tue Dec 19, 2006 1:38 pm

"advanced commands" buttuns do not work in FireFox 2.0 either
gregg128
 
Posts: 6
Joined: Fri Dec 01, 2006 10:51 am

Postby jfh on Tue Dec 19, 2006 1:39 pm

gregg128 wrote:
Is there a (planned ?) feature to add users own styles ? I mean a WYSIWYM-way, so i could add a style MyNewstyle1 and than mark the paragraph as <p style=MyNewstyle1> and write a css file(s) with this style description later
Could you explain why you want this feature ?
I don't see the need for this feature, but I'm not sure to understand.


I already have a website with some .css file with a lot of stiles in it.

I would like to put a lot of articles, tables, etc. onto this site and i would like to use Wymeditor to markup all this texts.

It will take a lot of time to get all my stiles "hard-coded" to editor.htm. That why i asked about some GUI to do it.

Yes, it would be a nice feature, but I don't have time to implement it now, sorry.
BTW, classes management is available in the Drupal module.

HTH,
User avatar
jfh
Site Admin
 
Posts: 370
Joined: Sat Sep 23, 2006 8:43 pm
Location: Belgium

Re: bugs with firefox ???

Postby jfh on Tue Dec 19, 2006 1:43 pm

gregg128 wrote:I see no buttons from <!-- table : advanced commands --> in my firefox 1.5.0.8, Suse 10

The same page in IE works just OK.

This is normal: in FF, there's already table commands available: just create a table, and then click on it, you'll see little buttons for adding/removing cells.
User avatar
jfh
Site Admin
 
Posts: 370
Joined: Sat Sep 23, 2006 8:43 pm
Location: Belgium


Return to Support

Who is online

Users browsing this forum: No registered users and 3 guests

cron