English 中文(简体)
Telerik RadEditor for MOSS - How do I Suppress min-width inline CSS?
原标题:Telerik RadEditor for MOSS - How do I suppress min-width inline CSS?

I m与MOSS的RadEditor有问题,我真的会同这个问题的根源。 我试图利用火焰探测,以发现在什么地方发生任何min星式的CSS环境,而搜索却空洞,但我知道,由于下载的网页标记没有这种星号,所以情况发生。

我认为,“Telerik”控制报章之一是,在编辑的顶级上,即矿主、矿主。 这造成了我网页上的布局问题。 我的问题是,为什么这样做? 更重要的是,我如何防止这种情况发生?

<div style="height: 300px; width: 100%; min-height: 300px; min-width: 1133px;"
 class="RadEditor Default reWrapper ms-input">
最佳回答

最后,我 throw倒了一条压倒一切的文字,这里需要的是你。

// Hack/Fix for Telerik editor controls, this removes the strange inline css property min-width that is being set somewhere deep in the Telerik scripts.

$(document).ready(
    function() {
        var items = $(".RadEditor").filter("div");
        items.each(function(index) {
            var that = $(this);
            if (that.css("min-width")) {
                that.css("min-width", "inherit");
            }
        });
    }
);
问题回答

编辑上添加了黑白血管。 AFAIK没有办法阻止他们到场,除非你凌驾 Java的Script。 然而,我并不认为这将有助于,因为风格显然与编辑规模有关,如果你去除,控制视像可能会打破。

你应努力通过修改你的网页布局来解决这一问题。 例如,MOSS的网页通常以立克式方式提供,添加有效的X维射式照相机,应更好地改变。

在利用javascript/jQuery纠正这一问题时,越是行不通,越是资源密集,就越能界定最初的风格(在RadEditor之前)。 大部分使用案例不会受到如此大的影响,但我已经看到,使用以下方法将负荷时间减少30%:

<style>
  div.RadEditor {
    min-width: inherit !important;
  }
</style>

欢乐!

我认为,你可以缩小这一差距。 仅经测试即可......

  $( .RadEditor ).css( width , auto );




相关问题
selected text in iframe

How to get a selected text inside a iframe. I my page i m having a iframe which is editable true. So how can i get the selected text in that iframe.

How to fire event handlers on the link using javascript

I would like to click a link in my page using javascript. I would like to Fire event handlers on the link without navigating. How can this be done? This has to work both in firefox and Internet ...

How to Add script codes before the </body> tag ASP.NET

Heres the problem, In Masterpage, the google analytics code were pasted before the end of body tag. In ASPX page, I need to generate a script (google addItem tracker) using codebehind ClientScript ...

Clipboard access using Javascript - sans Flash?

Is there a reliable way to access the client machine s clipboard using Javascript? I continue to run into permissions issues when attempting to do this. How does Google Docs do this? Do they use ...

javascript debugging question

I have a large javascript which I didn t write but I need to use it and I m slowely going trough it trying to figure out what does it do and how, I m using alert to print out what it does but now I ...

Parsing date like twitter

I ve made a little forum and I want parse the date on newest posts like twitter, you know "posted 40 minutes ago ","posted 1 hour ago"... What s the best way ? Thanx.

热门标签