Active
Project:
HTMLBox
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
28 Jan 2009 at 21:13 UTC
Updated:
7 Feb 2009 at 20:12 UTC
The following is being seen in Firefox 3. (since my understanding is this will vary by browser)
This module is great, but it doesn't insert code that is very standards compliant (or even very sensible). It's using <div> tags all over the place, which isn't proper for formatting text. (divs should be reserved for layout, not formatting)
Here's some examples:
<p> tag to create a new paragraph.<br /> tag at that point, making a simple line break instead of a paragraph break.<div><br /><div> set of code between the already existing <div> tags.I'm no coder, or I'd submit a patch...but from a themer/user experience standpoint, I really want to be able to use this module without it inserting a ton of unnecessary <div> tags into the content...especially when those should be simple text formatting tags.
Thoughts on this?
Comments
Comment #1
mfer commentedThe div tags and other junk are to get it to present well in a WYSIWYG view. It makes it display right (hopefully). The way a WYSIWYG editor works is by inserting an iframe. That iframe needs to have full html to make it display and not just text so it can format things correctly.
When it goes to save the data is should be stripping all that stuff out so that what's saved is what you'd expect. It should have those div tags, p tags, or br tags. When it opens it up in the editor again it should add them back.
If you save something you enter into the editor is all that stuff being saved?
Comment #2
Poetro commentedSomething like this:
ATM i dont remember how it is implemented, but should be changed similarly to this.
Comment #3
frames commentedI'm not sure I fully understand this issue, but if I save a comment (there's were I'm using HTMLBox), I don't get any extra divs.
Comment #4
Rob_Feature commentedIf what mfer says is correct (that this only affects the WYSIWYG view and not the final output), then that makes the "html" button useless once you've added any formatting using the WYSIWYG. It would mean you're seeing a bunch of inaccurate code that won't really be displaying in the final result and if you start editing it in HTML mode...you're going to end up with a mess.
I'd suggest this is something that really needs to be changed to make this module usable. When clicking the HTML button, it should show you the actual code it's going to use...not the code that it's using to format the WYSIWYG display.