Opened 8 years ago

Last modified 8 years ago

#14739 confirmed Bug

APPHOST9602 Error when using CKEditor in native Windows App

Reported by: Brandon Owned by:
Priority: Normal Milestone:
Component: General Version: 4.0
Keywords: Cc: bstaley0@…

Description

Details

In my particular instance I am using Cordova 6.0.0. Running the application in the browser does not produce any issues but when you compile it to a Windows app you get:

 APPHOST9602: 'javascript:' is an invalid attribute value and will be ignored.  Don’t use 'javascript:' URIs in the local context.

I should also note that text entry and most buttons become disabled.

As you probably know this is because the buttons in the toolbar use anchor tags with href attributes like:

href="javascript:void('something')"

Here is the native security policy for Windows applications

There is another issue open on stackoverflow that references the same thing but for ionic framework

Steps to reproduce

  1. Create a hybrid application
  2. Compile it to Windows
  3. Run to see issues about javascript:void in href

Expected result

No errors and full functionality.

Actual result

Buttons and text entry are not disabled and buttons work as expected.

Other details (browser, OS, CKEditor version, installed plugins)

  • Windows 10
  • Cordova 6.0.0
  • VS 2015 Update 3
  • CKEditor 4.5.9

Change History (4)

comment:1 Changed 8 years ago by Jakub Ś

Keywords: UI Toolbar Href APPHOST9602 HybridApps Cordova Ionic WindowsApps removed

comment:2 Changed 8 years ago by Brandon

Sorry, the actual results should be 'Buttons and text entry are disabled and do not function'.

comment:3 Changed 8 years ago by Jakub Ś

Component: UI : ToolbarGeneral
Status: newconfirmed
Version: 4.5.94.0

The links you have mentioned point out that javascript:void works fine in web context but not in local context. CKEditor 4.x was designed to work in browsers (web contentx) and not apps (local context).
This is something we can work on in the future (thus I will confirm this ticket) but is not on our high priority list.

comment:4 Changed 8 years ago by Brandon

Great, thanks for taking this in.

Note: See TracTickets for help on using tickets.
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy