 |
|
Code
<td bgcolor="#999999"><textarea cols="80" id="message" name="message" rows="10" <?=$objResult["message"];?> ></textarea>
ผมดึง <?=$objResult["message"];?> มาใส่ใน ckeditor แล้วมันจะมีเว้นวรรคกับ > ตามมาด้วย ทุกครั้งที่เรียกดึงข้อมมูลเมสเสจขึ้นมาต้องแกยังไงเหรอครับ
Code
<td bgcolor="#999999"><textarea cols="80" id="message" name="message" rows="10" <?=$objResult["message"];?> ></textarea>
<script type="text/javascript">
//<![CDATA[
CKEDITOR.replace( 'message',{
//skin : 'kama',
language : 'th',
//extraPlugins : 'uicolor',
//uiColor : '#006699',
height : 400,
width : 850,
toolbar :
[
['Source','-','Save','NewPage','Preview','-','Templates'],
['Cut','Copy','Paste','PasteText','PasteFromWord','-','Print', 'SpellChecker', 'Scayt'],
['Undo','Redo','-','Find','Replace','-','SelectAll','RemoveFormat'],
['Form', 'Checkbox', 'Radio', 'TextField', 'Textarea', 'Select', 'Button', 'ImageButton', 'HiddenField'],
'/',
['Bold','Italic','Underline','Strike','-','Subscript','Superscript'],
['NumberedList','BulletedList','-','Outdent','Indent','Blockquote'],
['JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock'],
['Link','Unlink','Anchor'],
['Image','Flash','Table','HorizontalRule','Smiley','SpecialChar','PageBreak'],
'/',
['Styles','Format','Font','FontSize'],
['TextColor','BGColor'],
['Maximize', 'ShowBlocks','-','About']
],
Tag : PHP, Ms Access, MySQL, HTML/CSS, JavaScript, CakePHP
|
|
 |
 |
 |
 |
Date :
2012-07-06 10:34:59 |
By :
clashhum |
View :
1043 |
Reply :
3 |
|
 |
 |
 |
 |
|
|
|
 |