Allow for HTML tag input

malcomm - July 24, 2007 - 17:00
Project:Table Manager
Version:5.x-1.4
Component:User interface
Category:feature request
Priority:normal
Assigned:Unassigned
Status:closed
Description

I have a need to make TD text bold, a listing, ... etc. If the input is text - then it would be really nice to have HTML tags.

#1

pobster - July 24, 2007 - 17:04

Erm... Just use html tags then? You've access to 'input filters' else if you want something more permanent change the .css

Pobster

#2

malcomm - July 25, 2007 - 17:39

My apologies - I did not see the "input format" on the add/edit entry. Just to let you know - I was looking for a default setting. I think this could be a nice feature:

1) Have a default "Input Format" for a specific table
2) Have a default "Input Format" for a tablemanger (Tablemanager Settings)

#3

malcomm - July 25, 2007 - 17:56

Well I just tried this:

Column type: text
Data: <li><ul>one</ul><ul>two</ul><ul>three</ul></li>

Trying to edit this just showed the <li> (see screenshot). It would be really nice to have the text input fields be one of the nice drupal stretchy text input fields. This would be nice for just general input, but also editing.

Not sure about the output (see screenshot) - I suppose this might be some visual issues on my side. Just wanted to see if anyone else has issues as well???

Thanks!

AttachmentSize
table-manager-html-input-issues.png 10.38 KB

#4

pobster - July 26, 2007 - 21:01

The new version of Tablemanager allows for textarea fields, so this is already achievable.

I just tried your list item problem and yes, I have it too but determining where the problem is could be a pain... Tablemanager appears to store the correct data in the serialized array, eg:

a:3:{i:0;s:51:"<li>
<ul>one</ul>
<ul>two</ul>
<ul>three</ul>
</li>";i:1;s:0:"";i:2;s:0:"";}

Unfortunately as you can see, it 'tidys' the code, splitting it over separate lines. *This* is why when you edit it you can only see the <li> as it's only a single line textbox. The mystery is why theme_table doesn't just display what's passed to it? There doesn't appear to be anything strange in the code http://api.drupal.org/api/5/function/theme_table - it *must* be something in the Tablemanager module itself... I'll investigate...

Pobster
PS. "default input formats"? Not gonna happen... Sorry.

#5

pobster - August 25, 2009 - 17:11
Status:active» closed
 
 

Drupal is a registered trademark of Dries Buytaert.