Submitted by markfoley on 2009/05/27 02:32
Hi, this is one raised previously, where you insert a table and then everything goes double spaced.
 
The fix for this was hitting the 'DIV' button which converts all tags and it works well.  Questions:
 
a) In what cases would anyone want to use this odd double spaced method?
b) Could this be set as a default in the preferences (ie be able to set DIV as default instead of 'P' as it is now).  And then you can hit the <P> button if you're overcome with the need for double spacing!
 
Even if it isn't wanted as a preference, I would suggest DIV be the default as it makes the HTML pane work more like a 'note taker' which people would expect.
 
Thanks!

Comments

Actually I notice when adding forum posts here there is a 'format' dropdown which defaults to "NORMAL (DIV)".  Hope that adds further weight to the idea that div should be the default!]
 
It's a pretty cool text editor in this forum actually. Styles and all!

Pierre_Admin

2009/05/27 23:15

In reply to by markfoley

The editor, and it being based on HTML (and not bbcodes), was an important criteria in choosing Drupal over other systems. I don't regret that choice. Apart from the intermittent performance issue, I'm quite happy with the community web site as it is. I hope users are too!

markfoley

2009/05/28 20:26

In reply to by Pierre_Admin

Hi Pierre!  I probably didn't describe it well, but I was talking about the defaults in IQ itself.  Mentioning the forum text editor was for comparison - it uses DIV as a default which is good, and the IQ HTML editor should as well!  If not the default, it should at least have it as an global option.
 
In other words, it should always work as if that "DIV" button on the toolbar is pressed.  If it could be a toggle button that stays globally on or off, that would do the trick too I guess.
 
I don't have any issues with the forum, I think its good by the way... :)
 
Thanks mate

markfoley

2009/06/05 02:22

In reply to by markfoley

Bump!
 
Getting the editor to default to DIV (or having that available in preferences) is key to making the editor pane work like a word processor.  Anyone think of use cases where this wouldn't be the best option?

Pierre_Admin

2009/06/05 10:35

In reply to by markfoley

You can modify the default template for html (NewHTML.htm) and add something like:
<STYLE>
P {margin: 0px 0px 0px 0px}
</STYLE>
 
  [edit] I've updated the supplied one.

markfoley

2009/06/07 06:50

In reply to by Pierre_Admin

Thanks Pierre, I tried this and found:
 
-        doesn’t seem to make a difference in the tests I did
-        even clicking div is only temporary.  If you make one table and it becomes double spaced then fix it with the 'div' button, adding another table repeats the problem.  The div button should set all P's to be divs for good, not just do a find-replace on existing text.
-        I suggest IQ copies how the forum editor does it with 'format' combo box that continues to apply through doc with divs or P's as preferred.
 
Also found what I think is a bug- when I created a new iqbase the literal text of your suggestion above (<STYLE...) appears in the note box.
 
I really like the idea of that NewHTML.htm doc and the templates - powerful stuff.  I'm not sure if theres an 'insert html file' option similar to the 'insert html code' box- if not it'd be a good idea for if you made certain  preset schedule tables etc and wanted to insert one into your notes without replacing them.
 
Cheers

Pierre_Admin

2009/06/08 00:53

In reply to by markfoley

Humm... The fact that <style... appears in the HTML pane tells me that you've got some syntax errors and this is why the margin settings is not working.
 
Can you post your template here?

markfoley

2009/06/08 20:34

In reply to by Pierre_Admin

Interesting.  For some reason when I did this at home, newhtml.htm seemed blank and I just added the text you mentioned.  I figured it may have been a subset only of the HTML standard.  Now at work with ultraedit I see the proper HTML structure and added that style to give me the attached file.
 
This fixes the issue of literal text appearing but doesnt affect the initial issue.
 
I've attached the newhtml.html file and a 20 sec video of the issue to make sure I've made it clear.  Let me know if you cant view it, it may need a codec.
 
cheers

markfoley

2009/06/14 20:13

In reply to by markfoley

Anyone had a chance to view my exciting video? 

Armando

2009/06/16 22:34

In reply to by markfoley

i have... pretty clear. There's obviously a little problem.
(don't know if Pierre had a chance (timewise) to watch it though...)