css - 给PHP后台替换编辑器,换了代码没作用。

WBOY
Release: 2016-06-06 20:22:47
Original
1160 people have browsed it

thinkphp的框架。
A处编辑器:
css - 给PHP后台替换编辑器,换了代码没作用。

A处代码:

<code><td colspan="2">
<label for="description" class="control-label x100">介绍:</label>
<div style="display: inline-block; vertical-align: middle;">
<textarea name="description" rows="6" cols="60">{$Rs.description}</textarea>
</div>
</td>
</code>
Copy after login
Copy after login

B处编辑器:

css - 给PHP后台替换编辑器,换了代码没作用。

B处代码:

<code><td colspan="2">
<label for="content" class="control-label x100">介绍:</label>
<div style="display: inline-block; vertical-align: middle;"><textarea name="content" data-toggle="kindeditor" data-minheight="150" data-items="fontname, fontsize, |, forecolor, hilitecolor, bold, italic, underline, removeformat, |, justifyleft, justifycenter, justifyright, insertorderedlist, insertunorderedlist, |, emoticons, image, link">{$Rs.content}</textarea></div>
</td>
</code>
Copy after login
Copy after login

现在想A处用B处的编辑器方式..
我把A处的代码换成B处这种形式,进入后台发现这一块变成空白了。
还请PHP大神指教下。

回复内容:

thinkphp的框架。
A处编辑器:
css - 给PHP后台替换编辑器,换了代码没作用。

A处代码:

<code><td colspan="2">
<label for="description" class="control-label x100">介绍:</label>
<div style="display: inline-block; vertical-align: middle;">
<textarea name="description" rows="6" cols="60">{$Rs.description}</textarea>
</div>
</td>
</code>
Copy after login
Copy after login

B处编辑器:

css - 给PHP后台替换编辑器,换了代码没作用。

B处代码:

<code><td colspan="2">
<label for="content" class="control-label x100">介绍:</label>
<div style="display: inline-block; vertical-align: middle;"><textarea name="content" data-toggle="kindeditor" data-minheight="150" data-items="fontname, fontsize, |, forecolor, hilitecolor, bold, italic, underline, removeformat, |, justifyleft, justifycenter, justifyright, insertorderedlist, insertunorderedlist, |, emoticons, image, link">{$Rs.content}</textarea></div>
</td>
</code>
Copy after login
Copy after login

现在想A处用B处的编辑器方式..
我把A处的代码换成B处这种形式,进入后台发现这一块变成空白了。
还请PHP大神指教下。

tp不熟悉,是不是缺少的js文件引用或方法调用
对比看一下

需要引入js、css,并且初始化
参考demo

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!