CKEditor显示在所有内容flex之上 [英] CKEditor display on top of all the content flex

查看:165
本文介绍了CKEditor显示在所有内容flex之上的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我已经使用CKEditor从这个





感谢。

解决方案

我不认为这是可能的,因为CKEditor区域是绘制在swf。



看看你的HTML网页源代码,你会看到我的意思。



编辑:



我同意@fsbmain关于使用 ExternalInterface ,但显示JavaScript警报:

  if(ExternalInterface.available){
ExternalInterface.call alert','some message here!');
}

编辑2:
$ b

要隐藏您的CKEditor,您可以使用JavaScript函数,您可以通过 ExternalInterface 调用:



JS:

 < script type =text / javascript 
function hideCKEditor()
{
document.getElementById('ck0')。style.display ='none';
}
< / script>

然后在ActionScript端:

  if(ExternalInterface.available){
ExternalInterface.call('hideCKEditor');
}

Alert.show('Your message here!','Alert Box',mx.controls.Alert.OK);

希望可以帮助。


I have found the lot and got one editor which i use in my project (Flex Web application).

I have used CKEditor from this link.

<ckeditor:CKEditor id="editor1" width="100%" height="100%">
        <ckeditor:htmlText>
            <![CDATA[

            ]]>
        </ckeditor:htmlText>
</ckeditor:CKEditor>

It's working ok in my project. But, there is one issue i am facing.

Problem:
I have one alert message and Custom popup container. I want to display that both on top of the editor. But it hide behind the editor.

I want to display on top of that editor. How can i do this?

Currently look something like:

Thanks.

解决方案

I don't think that will be possible because the CKEditor area is drawn over the swf. So you can do, unfortunately, nothing.

Take a look on your html page source code and you'll see what I mean.

Edit :

I agree with @fsbmain about using ExternalInterface, but to show a JavaScript alert :

if(ExternalInterface.available){
    ExternalInterface.call('alert', 'some message here !');
}

Edit 2 :

To hide your CKEditor, you can use a JavaScript function which you can call via ExternalInterface :

JS :

<script type="text/javascript">     
    function hideCKEditor()
    {
        document.getElementById('ck0').style.display = 'none';
    }       
</script>

Then in the ActionScript side :

if(ExternalInterface.available){
    ExternalInterface.call('hideCKEditor');
}

Alert.show('Your message here !', 'Alert Box', mx.controls.Alert.OK);

Hope that can help.

这篇关于CKEditor显示在所有内容flex之上的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆