0
因此,我現在擁有的代碼是用於將文本粘貼到ckeditor中的代碼,然後當它們單擊提交時,它將識別某些字符並更改其字體大小。當文本顯示在ckeditor之外時,在正常的textarea中顯示,但字體大小的變化未顯示在ckeditor內部,這是有效的。我怎樣才能讓ckeditor識別字體和字體大小的變化?這裏是我的代碼:如何更改字體大小以顯示在ckeditor中
<script src="//cdn.ckeditor.com/4.6.2/full/ckeditor.js"></script>
</head>
<body>
<form onsubmit="event.preventDefault(); filterTextArea();">
<div name="space" id="space"> </div>
<textarea name="editor1" id="editor1" rows="10" cols="80" > </textarea> <br>
<div id="formbox"> <button action="submit" id = "submit" >WORDIPLY</button> </div>
<script>
CKEDITOR.replace('editor1', {
customConfig: 'www.wordiply.weebly.com/files/theme/ckeditor.js'
});
</script>
</body>
<body>
<script>
function filterTextArea(){
editor = CKEDITOR.instances.editor1;
var edata = editor.getData();
//CHANGE FONT OF CHARACTERS
editor.setData(data);
}
var config = {};
config.placeholder = 'some value';
CKEDITOR.replace("myeditor" , config, {
});
我敢肯定,我已經擁有了集成到編輯器 –
@CStrick,嗯。你仍然無法看到線內字體大小?我想知道是否有一些配置丟失... – Moose