SitePoint Sponsor |
|
User Tag List
Results 1 to 9 of 9
Thread: Table Guides in Layers?
-
Jul 3, 2002, 06:34 #1
- Join Date
- Mar 2001
- Location
- Northwest Florida
- Posts
- 1,707
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Table Guides in Layers?
I was wondering if someone knows how to turn on table guides in a DHTML layer?
-
Jul 3, 2002, 06:48 #2
- Join Date
- Mar 2002
- Location
- Svíþjóð
- Posts
- 4,080
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
table guides = ?
-
Jul 3, 2002, 07:06 #3
- Join Date
- Mar 2001
- Location
- Northwest Florida
- Posts
- 1,707
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Yeah, I've developed a WYSIWYG editor that uses a DHTML layer for editing the content.
I'd like to be able to display guides for the tables that are inserted, not the borders themselves. I've seen other WYSIWYG editors do this.
Attached is a snapshot from one of these editors with the guides toggled on.
-
Jul 3, 2002, 08:07 #4
- Join Date
- Mar 2002
- Location
- Svíþjóð
- Posts
- 4,080
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
So, this is not what you want?
function toggle(objTable)
{
(objTable.getAttribute("border") == "0") ? objTable.setAttribute("border", "1") : objTable.setAttribute("border", "0");
}
-
Jul 3, 2002, 08:11 #5
- Join Date
- Mar 2002
- Location
- Svíþjóð
- Posts
- 4,080
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Maybe you could create layers with the same positions and sizes as the table cells and make them visible/hidden?
-
Jul 3, 2002, 16:26 #6
- Join Date
- Jan 2002
- Location
- London
- Posts
- 3,509
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
I suspect that you're using the MSHTML IE5+ DHTMLEdit control - if so, then do this (where EditLayer is the name of your WYSIWYG control):
Code:function ToggleShowBorders() { EditLayer.ShowBorders = !EditLayer.ShowBorders; }
MarcusJT
- former ASP web developer / former SPF "ASP Guru"
- *very* old blog with some useful ASP code
- Please think, Google, and search these forums before posting!
-
Jul 3, 2002, 17:02 #7
- Join Date
- Mar 2002
- Location
- Svíþjóð
- Posts
- 4,080
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Originally posted by M@rco
...the MSHTML IE5+ DHTMLEdit control
-
Jul 3, 2002, 17:14 #8
- Join Date
- Mar 2001
- Location
- Northwest Florida
- Posts
- 1,707
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Originally posted by M@rco
I suspect that you're using the MSHTML IE5+ DHTMLEdit control - if so, then do this (where EditLayer is the name of your WYSIWYG control):
Code:function ToggleShowBorders() { EditLayer.ShowBorders = !EditLayer.ShowBorders; }
I'll give it a try!
-
Jul 3, 2002, 17:23 #9
- Join Date
- Jan 2002
- Location
- London
- Posts
- 3,509
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Here you go Jofa! (and others?)
DHTML Editing Component FAQ
MSHTML Reference
Main MSDN nodeMarcusJT
- former ASP web developer / former SPF "ASP Guru"
- *very* old blog with some useful ASP code
- Please think, Google, and search these forums before posting!
Bookmarks