如何解决使用ckeditor从数据库修改多个图像fetech
我正在使用ckeditor将3张图像上传到数据库中,但是当我尝试使用相同的代码来更新图像时,这些图像仅从第一列的数据库工作中获取,而拒绝从数据库中获取数据。下一个图像列
我的代码
<script type='text/javascript' src='ckfinder/ckfinder.js'></script>
</head>
<body>
<p>
<textarea id='Photo2' name='Photo2' rows='10' cols='80'><? echo "$p_cats[Photo2]"; ?></textarea>
</p>
<script src='//cdn.ckeditor.com/4.5.6/standard-all/ckeditor.js'></script>
<script>
if ( typeof CKEDITOR !== 'undefined' ) {
CKEDITOR.addCss( 'img {max-width:100%; height: auto;}' );
var editor = CKEDITOR.replace( 'Photo2',{
extraPlugins: 'uploadimage,image2',removePlugins: 'image',height:350
} );
CKFinder.setupCKEditor( editor,'ckfinder/' ) ;
} else {
document.getElementById( 'description' ).innerHTML = '<div class=\"tip-a tip-a-alert\"></div>'
}
</script>
<tr>
<td width='28%'><strong>Photo1<br><br><center>
</td>
<td style='width: 108px' colspan='2'>
<head>
<script type='text/javascript' src='ckfinder/ckfinder.js'></script>
</head>
<body>
<p>
<textarea id='Photo1' name='Photo1' rows='10' cols='80'><? echo "$p_cats[Photo1]"; ?></textarea>
</p>
<script src='//cdn.ckeditor.com/4.5.6/standard-all/ckeditor.js'></script>
<script>
if ( typeof CKEDITOR !== 'undefined' ) {
CKEDITOR.addCss( 'img {max-width:100%; height: auto;}' );
var editor = CKEDITOR.replace( 'Photo1','ckfinder/' ) ;
} else {
document.getElementById( 'description' ).innerHTML = '<div class=\"tip-a tip-a-alert\"></div>'
}
break;
</script>
</body></td>
</tr>
</td>
</tr>
<tr>
<td width='28%'><strong>Photo2<br><br><center>
</td>
<td style='width: 108px' colspan='2'>
<head>
<script type='text/javascript' src='ckfinder/ckfinder.js'></script>
</head>
<body>
<p>
<textarea id='Photo2' name='Photo2' rows='10' cols='80'><? echo "$p_cats[Photo2]"; ?></textarea>
</p>
<script src='//cdn.ckeditor.com/4.5.6/standard-all/ckeditor.js'></script>
<script>
if ( typeof CKEDITOR !== 'undefined' ) {
CKEDITOR.addCss( 'img {max-width:100%; height: auto;}' );
var editor = CKEDITOR.replace( 'Photo2','ckfinder/' ) ;
} else {
document.getElementById( 'description' ).innerHTML = '<div class=\"tip-a tip-a-alert\"></div>'
}
</script>
</body></td>
</tr>
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。