【问题】素材管理的编辑框长度比较短,随便插入一张图就比这个框大了,编辑起来非常不方便。【目的】请教如何将编辑框的长度变长?【思路】想通过油猴脚本来实现,或者其他更好的方法
【html】
<div id="edui1_iframeholder" class="edui-editor-iframeholder edui-default" style="overflow: hidden; height: 320px;"><iframe id="ueditor_0" width="100%" height="100%" frameborder="0" src="javascript:void(function(){document.open();document.domain="qq.com";document.write("<!DOCTYPE html><html xmlns='http://www.w3.org/1999/xhtml' class='view' ><head><style type='text/css'>.view{padding:0;word-wrap:break-word;cursor:text;height:90%;}
body{margin:8px;font-family:sans-serif;font-size:16px;}p{margin:5px 0;}</style><link rel='stylesheet' type='text/css' href='https://res.wx.qq.com/mpres/htmledition/ueditor/themes/iframe1fab4a.css'/></head><body class='view' ></body><script type='text/javascript' id='_initialScript'>setTimeout(function(){window.parent.UE.instants['ueditorInstant0']._setup(document);},0);var _tmpScript = document.getElementById('_initialScript');_tmpScript.parentNode.removeChild(_tmpScript);</script></html>");document.close();}())"></iframe></div>
【css】.edui-default .edui-editor-iframeholder {position: relative;height:1000px!important;}
---------------------------官方的编辑框---------------------------------
----------------------------想要达到的效果(变长)--------------------------------
您所使用的功能(油猴)其实质就是不使用原网站的样式,而使用您自己定义的新样式,以达到页面重拍的效果。感谢您所分享的使用经验。
希望我的回答对您有所帮助,如有疑问,欢迎继续咨询我们。追问
感谢你的回答,我的问题就是怎样实现新的样式