0

这是编辑器http://redactorjs.com/

我正在使用所见即所得的编辑器,出于某种原因,它将默认文本转换为 jQuery2。这很愚蠢。有任何想法吗?

我用于管理面板的模板需要 jQuery 而不是 $ 用于所有 jQuery 命令。这和它有什么关系吗?我必须在 redactor.js 文件中将所有 $ 转换为 jQuery ...

例子:

我在默认情况下放入了一个 html 表,它只显示标签,其余部分都消失了,当我单击源时它只是这样说:

<h2 style=" text-align: left; ">What is Solavei?<br>
</h2>
<p>2</p>
<h2 style=" text-align: left; ">Why Partner with Us?<br>
</h2>
<p>2</p>
<h2 style=" text-align: left; ">Join Now!<br>
</h2>
<p>2</p>
<p>2</p>

这很奇怪,因为当它第一次加载时(不是在源代码视图中)它显示:

What is Solavei?

jQuery2

Why Partner with Us?

jQuery2

Join Now!

jQuery2

这是我通过 php 插入的表格(对不起,格式不好,我不想花很多时间在上面,因为它对响应并不重要......这不是它唯一的代码和)

<tbody class="wsite-multicol-tbody">
<tr class="wsite-multicol-tr">
<td class="wsite-multicol-col" style="width:32.183908045977%;padding:0 20px">
<h2 style=" text-align: left; ">What is Solavei?<br></h2> 
<div class="paragraph editable-text" style=" text-align: left; display: block; ">
<ul><li>A relationship driven company that offers unlimited talk, text, and internet over a nationwide 4G network for $49 per month with no contracts.</li>
<li>Using the power of social media and networking to allow their customers and partners to build an unbelievable monthly income simply by sharing the opportunity with others.</li>  
<li>A revolution that is offering millions of Americans a chance a true financial independence!</li><li><a title="" href="/about-solavei.html">
<span style="text-decoration: underline;">More...</span></a><br></li></ul></div>
</td><td class="wsite-multicol-col" style="width:34.48275862069%;padding:0 20px"><h2 style=" text-align: left; ">Why Partner with Us?<br></h2> 
<div class="paragraph editable-text" style=" text-align: left; display: block; "><ul>
<li>We are one of Solavei's fastest growing networking organizations.</li>
<li>We offer our members 100% support and access to the experience of thousands of experienced Solavei professionals.</li>
<li><span style="font-weight: bold;">We will help you build your own Solavei Network. </span>
<span style="font-style: italic;">Our success is dependent upon the success of our individual members. After you sign your first three new members, we will sign up three more for you!</span></li><li><span style=" font-style: italic;">
<a href="/about-us.html"><span style="text-decoration: underline;">More...</span></a>
<br></span></li></ul></div>  </td>
<td class="wsite-multicol-col" style="width:33.333333333333%;padding:0 20px">
<h2 style=" text-align: left; ">Join Now!<br></h2> 
<div class="paragraph editable-text" style=" text-align: left; display: block; "><a href="/join-now.html" title="">
Click here to join the Solavei Success Network. We will respond with an invitation into our lane within 24 hours.</a><br></div>  
<div><div class="wsite-image wsite-image-border-thin " style="padding-top:10px;padding-bottom:10px;margin-left:0;margin-right:0;text-align:center"> 
<a> <img src="/uploads/2/9/1/0/2910969/5542182_orig.jpg" alt="Picture" style="width:100%;max-width:150px"> </a> 
<div style="display:block;font-size:90%"></div> </div></div>  
</td></tr></tbody>
4

1 回答 1

0

jQuery 没有冲突的事情是原因。不要将 jQuery 与编辑器一起使用。使用 $。将所有 $ 转换为 jQuery 不起作用。

于 2012-07-27T01:38:39.400 回答