我在一页中得到 3 个 ckeditor textareas。问题是我希望其中一个文本区域的大小与其他文本区域的两倍相同。我找不到如何仅调整一个 textarea 的大小。
<script type="text/javascript">
CKEDITOR.config.height='600px';
</script>
Run Code Online (Sandbox Code Playgroud)
工作正常,但它改变了所有的文本区域。我也试过
<script type="text/javascript">
CKEDITOR.replace('Resolution',{
height : '400px',
});
</script>
Run Code Online (Sandbox Code Playgroud)
但这不起作用......我试图更改我的 config.js 文件,但仍然没有。如果我输入我的 config.js
CKEDITOR.editorConfig = function( config ) {
config.width = '1000px';
config.height = '700px';
};
Run Code Online (Sandbox Code Playgroud)
它不起作用。
总结一下:如何使用 ID 调整 textarea 的大小?
我们正在使用String的replaceAll方法,我们不能替换{在任何字符串中.我们的例子:
试过:
"some { string".replaceAll("{", "other string");
Run Code Online (Sandbox Code Playgroud)
错误如下:
java.util.regex.PatternSyntaxException:发生非法重复
对任何想法开放!也许有一个解决方法?!