mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-06 18:21:39 +09:00
Replace xGetElementById() with document.getElementById() in CKEditor script
https://xetown.com/questions/1783129#comment_1783270
This commit is contained in:
parent
1014208e49
commit
b65c2b5c29
1 changed files with 4 additions and 4 deletions
|
|
@ -1,6 +1,6 @@
|
|||
function editorStartTextarea(editor_sequence, content_key, primary_key) {
|
||||
var obj = xGetElementById('editor_'+editor_sequence);
|
||||
var use_html = xGetElementById('htm_'+editor_sequence).value;
|
||||
var obj = document.getElementById('editor_'+editor_sequence);
|
||||
var use_html = document.getElementById('htm_'+editor_sequence).value;
|
||||
obj.form.setAttribute('editor_sequence', editor_sequence);
|
||||
|
||||
obj.style.width = '100%';
|
||||
|
|
@ -24,8 +24,8 @@ function editorStartTextarea(editor_sequence, content_key, primary_key) {
|
|||
}
|
||||
|
||||
function editorGetContentTextarea(editor_sequence) {
|
||||
var obj = xGetElementById('editor_'+editor_sequence);
|
||||
var use_html = xGetElementById('htm_'+editor_sequence).value;
|
||||
var obj = document.getElementById('editor_'+editor_sequence);
|
||||
var use_html = document.getElementById('htm_'+editor_sequence).value;
|
||||
var content = obj.value.trim();
|
||||
if(use_html) {
|
||||
if(use_html!='br') {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue