Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove Telerik Controls in HTML Editor #3800

Closed
5 tasks done
SkyeHoefling opened this issue May 29, 2020 · 11 comments
Closed
5 tasks done

Remove Telerik Controls in HTML Editor #3800

SkyeHoefling opened this issue May 29, 2020 · 11 comments

Comments

@SkyeHoefling
Copy link
Contributor

Description of problem

In v10.0 of DNN the platform will be removing all instances of Telerik controls including the Telerik.Web.UI.dll from the bin directory. The HTML Editor takes a hard dependency on these controls through the deprecated web project which leverages the Telerik Controls. The entire Inline Editing toolbar for the HTML Editor module uses telerik controls. Those are not part of the CKEditor but Telerik.

The view code for inline editing

<DNN:DNNToolBarButton ControlAction="edit" ID="tbEdit" ToolTip="Edit" CssClass="eipbutton_edit" runat="server"/>
<DNN:DNNToolBarButton ControlAction="save" ID="tbSave" ToolTip="Save" CssClass="eipbutton_save" runat="server"/>
<DNN:DNNToolBarButton ControlAction="cancel" ID="tbCancel" ToolTip="Cancel" CssClass="eipbutton_cancel" runat="server"/>
<DNN:DNNToolBarButton ControlAction="bold" ID="tbBold" ToolTip="Bold" CssClass="eipbutton_bold" runat="server"/>
<DNN:DNNToolBarButton ControlAction="italic" ID="tbItalic" ToolTip="Italic" CssClass="eipbutton_italic" runat="server"/>
<DNN:DNNToolBarButton ControlAction="underline" ID="tbUnderline" ToolTip="Underline" CssClass="eipbutton_underline" runat="server"/>
<DNN:DNNToolBarButton ControlAction="justifyleft" ID="tbJustifyLeft" ToolTip="JustifyLeft" CssClass="eipbutton_justifyleft" runat="server"/>
<DNN:DNNToolBarButton ControlAction="justifycenter" ID="tbJustifyCenter" ToolTip="JustifyCenter" CssClass="eipbutton_justifycenter" runat="server"/>
<DNN:DNNToolBarButton ControlAction="justifyright" ID="tbJustifyRight" ToolTip="JustifyRight" CssClass="eipbutton_justifyright" runat="server"/>
<DNN:DNNToolBarButton ControlAction="insertorderedlist" ID="tbOrderedList" ToolTip="OrderedList" CssClass="eipbutton_orderedlist" runat="server"/>
<DNN:DNNToolBarButton ControlAction="insertunorderedlist" ID="tbUnorderedList" ToolTip="UnorderedList" CssClass="eipbutton_unorderedlist" runat="server"/>
<DNN:DNNToolBarButton ControlAction="outdent" ID="tbOutdent" ToolTip="Outdent" CssClass="eipbutton_outdent" runat="server"/>
<DNN:DNNToolBarButton ControlAction="indent" ID="tbIndent" ToolTip="Indent" CssClass="eipbutton_indent" runat="server"/>
<DNN:DNNToolBarButton ControlAction="createlink" ID="tbCreateLink" ToolTip="CreateLink" CssClass="eipbutton_createlink" runat="server"/>

The class definition for `DnnToolBarButton

public class DnnToolBarButton : RadToolBarButton

If these controls are not refactored prior to the v10 release inline editing will not function on any HTML Editor. Even if you use a custom HTML Editor Provider, the telerik controls are built right in to the view.

Description of solution

Remove all instances of telerik controls that are used in the HTML Editor Module

Description of alternatives considered

N/A

Screenshots

N/A

Additional context

N/A

Affected browser

  • Chrome
  • Firefox
  • Safari
  • Internet Explorer
  • Edge
@sleupold
Copy link
Contributor

One option to solve this would be using CKEditor 4 in inline mode

@valadas valadas modified the milestones: Future: Major, Future: Minor Jul 29, 2020
@cklenk
Copy link

cklenk commented Sep 23, 2020

Would this potentially fix the issue I have with #3999?

@SkyeHoefling
Copy link
Contributor Author

I don't think it would fix that. Your error message in #3999 cites a 404 error loading a js page. That appears to be an issue isolated to the Client Dependency Framework which minimizes the files and combines it into 1 js/css file

@valadas
Copy link
Contributor

valadas commented Oct 7, 2020

So interestingly InlineEditorEnabled is set to true by default on a clean install but inline editing does not show up, soooo what would be the plan here ? Do we simply kill the inline editing all together or what ?

@bdukes
Copy link
Contributor

bdukes commented Oct 7, 2020

I'm not seeing this on my test site. I looked at this in #4142, and wasn't able to reproduce an issue. I just removed Telerik DLLs from my local and I still get working inline editing.

Inline editing on default home page template

Am I missing something?

@bdukes
Copy link
Contributor

bdukes commented Oct 7, 2020

Those controls in the HTML module are from DotNetNuke.WebControls, not DotNetNuke.Web.Deprecated

<%@ Register TagPrefix="dnn" Namespace="DotNetNuke.UI.WebControls" Assembly="DotNetNuke.WebControls" %>

Which is apparently just a binary without source. 🤷🏻‍♂️

@SkyeHoefling
Copy link
Contributor Author

I really don't remember much about my research on this, it was quite some time ago. Looks like it is something we can close as it appears what I thought was being used is not being used.

@valadas
Copy link
Contributor

valadas commented Oct 8, 2020

@bdukes I am curious, how do you get inline editing working on current version ?

@bdukes
Copy link
Contributor

bdukes commented Oct 8, 2020

Nothing special, I just go into edit mode, and then when I mouse over the module content there's a pencil floating on the top left.
Default DNN home page in edit mode with pencil icon at top left of module

@valadas
Copy link
Contributor

valadas commented Oct 8, 2020

Oh, I kinda feel dumb now, I never used that lol. I thought it was only for the module title lol...

@bdukes
Copy link
Contributor

bdukes commented Oct 8, 2020

😃

There is also one for the module title (if your container uses the title). It's a lot more useful for editing the title. Since editing the content uses contenteditable, there's a lot you can't control markup-wise. It's once of those nice features that can also cause you a lot of trouble.

@bdukes bdukes closed this as completed Oct 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants