Opened 11 years ago
Last modified 8 years ago
#11701 confirmed Bug
Richcombo breaks on HTML entities in HTML formatted values — at Version 5
Reported by: | spuymore | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | General | Version: | 4.0 |
Keywords: | Cc: |
Description (last modified by )
- configure an editor with latest strinsert addon from https://github.com/57u/custom-dropdown-ckeditor4/commit/32bb75a5fc5129722ddd32637e8639be2735cbb5 (http://ckeditor.com/addon/strinsert is not up to date) using following settings:
config.extraPlugins = 'strinsert'; config.strinsert_strings = [{'name': 'test', 'value': 'html entities like <, > and & wont work'}];
- open the editor, select 'test' from the 'Insert' dropdown in the toolbar and you'll get a JavaScript error like:
- Chrome:
Uncaught TypeError: Cannot call method 'hasClass' of null ckeditor.js:746 Uncaught TypeError: Cannot call method 'hasClass' of null ckeditor.js:746 CKEDITOR.ui.listBlock.CKEDITOR.tools.createClass.proto.isMarked ckeditor.js:746 CKEDITOR.ui.listBlock.CKEDITOR.tools.createClass.proto.toggle ckeditor.js:744 (anonymous function) ckeditor.js:742 (anonymous function) ckeditor.js:27 CKEDITOR.tools.callFunction ckeditor.js:27 onclick
- IE:
Error: Unable to get property 'hasClass' of undefined or null reference
- Chrome:
Edit: Please see comment:5 for quick summary :)
Change History (5)
comment:1 Changed 11 years ago by
Version: | 4.3.3 → 4.3.4 |
---|
comment:2 Changed 11 years ago by
Summary: | Richcombo seems to break on html entities in values → Richcombo breaks on html entities in values |
---|---|
Version: | 4.3.4 → 4.3.5 (GitHub - master) |
comment:3 Changed 11 years ago by
Resolution: | → invalid |
---|---|
Status: | new → closed |
Version: | 4.3.5 (GitHub - master) |
comment:4 Changed 11 years ago by
Summary: | Richcombo breaks on html entities in values → Richcombo breaks on HTML entities in HTML formatted values |
---|
But that's exactly the point, I want to insert HTML, not text!
So please reopen considering I would want to insert HTML with HTML entities in it:
config.strinsert_strings = [{'name': 'test', 'value': '<div>html entities like <, > and & wont work</div>'}];
The above fails with given errors but HTML without entities works, e.g.:
config.strinsert_strings = [{'name': 'test', 'value': '<div>this html without entities inserts fine!</div>'}];
comment:5 Changed 11 years ago by
Description: | modified (diff) |
---|---|
Resolution: | invalid |
Status: | closed → reopened |
Version: | → 4.0 |
I want to insert HTML, not text!
Plugin name is kind of misleading.
You are right, when one wants to insert HTML with entities then dropdown breaks.
Problem can be reproduced in all browsers from CKEditor 3.0.
This is a DUP of #10638.
Please use
and insertText because you are not inserting HTML in this case.