问题描述
我找到了很多,并得到了一个我在我的项目(Flex Web 应用程序)中使用的编辑器.
我从这个
谢谢.
我认为这是不可能的,因为 CKEditor 区域是在 swf 上绘制的.所以很遗憾,你什么也做不了.
看看你的 html 页面源代码,你就会明白我的意思.
我同意@fsbmain 关于使用 ExternalInterface
,但要显示 JavaScript 警报:
if(ExternalInterface.available){ExternalInterface.call('alert', '这里有一些消息!');}
编辑 2 :
要隐藏您的 CKEditor,您可以使用一个 JavaScript 函数,您可以通过 ExternalInterface
调用该函数:
JS:
然后在ActionScript端:
if(ExternalInterface.available){ExternalInterface.call('hideCKEditor');}Alert.show('你的消息在这里!', '警报框', 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 之上的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!