Jemt / Fit.UI

Fit.UI is a JavaScript based UI framework built on Object Oriented principles
http://fitui.org
GNU Lesser General Public License v3.0
19 stars 7 forks source link

Input: Disabled DesignMode editor does not open links when clicked #151

Open FlowIT-JIT opened 2 years ago

FlowIT-JIT commented 2 years ago

There is a known bug/issue with CKEditor not opening links when editor is in ReadOnly mode.

var ed = new Fit.Controls.Input();
ed.DesignMode(true);
ed.Value("Hi, <a href='https://fitui.org'>Visit Fit.UI</a> today");
ed.Enabled(false);
ed.Render(document.body);

There is a bug report with a suggested work around here: https://dev.ckeditor.com/ticket/12133

We could either implement the work around, or fix the actual bug in CKEditor.

NOTICE: We must take the work around a bit further, as it should also work with tab navigation and the ENTER key.