Some strange things with Classic Editor
-
Hi,
When using Classic Editor, I encounter some strange things, as below:
- The “text” tab seems not be the HTML source code. Sometimes when I input HTML entities, such as <br/> and ;nbsp;, then save, then these entities will disappear and replaced with line break or space. So, how to input HTML source directly?
- Sometimes, the editor will refuse my changes. For example, I input the following in text:
-
then save it, then in the “Visual” tab, there will be ” – “. Then if I switch back to “Text” and then “Visual tab, the first two spaces will disappear and become “- “. Very strange.
3. I input the following codes in “text” tab:
<a class="btn" href="javascript:;" onclick="CopyCurrentPostURL();">Copy Link</a><div id="inlinemsg" style="color: red; display: inline-block;"></div>
I use “inline-block” in hoping the message will appear as the same line as the previous <a> tag(a button). However, after saving, if I switch to “Visual” and then back to “text”, then the code will become:
<a class="btn">Copy Link</a> <div id="inlinemsg" style="color: red; display: inline-block;"> </div>
Some attributes in the <a> tag are removed. And div tag has been moved to the new line. Why?
4. Even if I input the following line in “text” and do not switch to “Visual” and back:
<a class="btn" href="javascript:;" onclick="CopyCurrentPostURL();">Copy Link</a><div id="inlinemsg" style="color: red; display: inline-block;"></div>
After publishing, the text is not changed. But the final HTML page will add <p></p> around the <a> tag, always making it to be in the different line as the inline message. Why?
I make a test page at https://www.datanumen.com/blogs/zh-hans/test-button/ which shows the issue.
- The topic ‘Some strange things with Classic Editor’ is closed to new replies.