简体   繁体   English

Tinymce添加链接弹出窗口

[英]Tinymce add link popup

I am using tinymce editor for one of my project. 我正在为我的项目之一使用tinymce编辑器。 Everything works fine, but I just need to change behavior of add link popup. 一切正常,但是我只需要更改添加链接弹出窗口的行为即可。

Actually, requirement is such that when a user clicks on addlink button from the editor, the popup window should be placed at specific place say 500px from top and 500px from left, that too of specific size ie 600*600 only. 实际上,要求是这样的:当用户单击编辑器中的addlink按钮时,弹出窗口应放置在特定的位置,例如顶部500px和左侧500px,也应该是特定大小,即600 * 600。

Also one more problem is when you are in full-screen mode( by pressing F11), the popup window, is of full width and height as that of screen( specifically on mozzila), whereas I need that popup of size 600*600 overlapping the main window. 还有一个问题是,当您处于全屏模式(按F11键)时,弹出窗口的宽度和高度与屏幕的宽度和高度相同(特别是在mozzila上),而我需要重叠大小为600 * 600的弹出窗口主窗口。 Now it opens a new tab in full-screen mode. 现在,它将以全屏模式打开一个新选项卡。

I looked into code of tinymce, but didn't get the file, where to customize the code. 我查看了tinymce的代码,但没有得到文件,无法在此处自定义代码。 I am using basic link popup. 我正在使用基本链接弹出窗口。

Here is my initialization code, 这是我的初始化代码,

<script type="text/javascript">
        tinyMCE.init({mode : "specific_textareas",
                    theme : "advanced",
                    editor_selector : "elm1", 
                    theme_advanced_buttons1 : "bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,|,bullist,numlist,|,link,unlink",
                    theme_advanced_buttons2 :"",
                    theme_advanced_toolbar_location : "top",
                    theme_advanced_toolbar_align : "left",
                    width: "100%",
                    skin : "cirkuit", 
                    relative_urls : false, 
                    convert_urls : false ,
                    oninit : "setPlainText",
                    plugins : "paste,style",
                    paste_remove_spans: true,
                    paste_remove_styles: true,
                    paste_strip_class_attributes: "all",
                    inline_styles : false,
                    content_css:"<?php echo base_url("assets/css/tiny_mce/custom_content.css");?>"
                });
     </script>

Any help for this?? 任何帮助吗?

Thanks 谢谢

Sorry for answering my own question but finally, I Solved the issue, I got to know with the plugin 'inlinepopups', and it solved the issue. 抱歉回答了我自己的问题,但最终,我解决了这个问题,开始了解插件“ inlinepopups”,它解决了问题。

-- Thanks - 谢谢

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM