...

View Full Version : text edit panel with include file



okeddy
11-10-2010, 01:46 PM
I have a text edit panel on a page which must have a .txt include file that can be edited by the user. It seems to work apart from some limitations on how many characters you can edit at a time (thats in IE) in Firefox there are little boxes showing aound the cursor, there is something going on which I don't understand, can anyone help?

<div id="TextEdit" class="editable" contenteditable="true" UNSELECTABLE="ON">
<?php include("select.txt"); ?>
</div>

.editable {
white-space:pre-line;
width:500px;
height:600px;
overflow:scroll;
overflow-x:hidden;
}

see what I mean here
https://docs.google.com/leaf?id=0B5c-qZPscnixM2FiNGViNzYtZTZjMS00ZWI3LWEwMzgtMDZlMjQwYzE1ZDhh&hl=en_GB

okeddy
11-10-2010, 06:17 PM
Figured it out the include file had table tr td etc

changed that for <p></p>

and the problem was gone :confused:



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum