? Success

User tests: Successful: Unsuccessful:

avatar astridx
astridx
10 Feb 2019

Pull Request for Issue #23775

Summary of Changes

Up to we set the readonly mode for the editor codemirror fix to nocursor

$options->readOnly = 'nocursor';

Codemirror offers the readonly mode true where focusing is allowed: https://codemirror.net/doc/manual.html. In the mode true you can copy and past text.

I added the possibility to set a special mode for readonly.

Testing Instructions

  1. Open the view templates in template manager administrator/index.php?option=com_templates&view=templates

  2. Open the template cassiopeia.

  3. Open the tab Create Overrides

  4. Click on com_content and then on article to create an override for com_content view article

  5. Open the tab Editor and open the just created override. For this you have to click on the left folder-tree on com_content, then on article and after that on default.php. Check if the switcher show original is active. See attached picture.

  6. See that it is not possible to copy text from the original file in the editor with readonly mode to the clipboard.
    templates customise cassiopeia rsfd administration 2

  7. Apply this patch and check again. Now it is possible to copy text to the clipboard.

Documentation Changes Required

Yes.

avatar astridx astridx - open - 10 Feb 2019
avatar astridx astridx - change - 10 Feb 2019
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 10 Feb 2019
Category Administration com_templates Libraries Front End Plugins
avatar astridx astridx - change - 10 Feb 2019
Title
Make the comparable read-only original file copyable as well
[4.0] Make readonly-mode for codemirror editable
avatar astridx astridx - change - 10 Feb 2019
Title
Make the comparable read-only original file copyable as well
[4.0] Make readonly-mode for codemirror editable
avatar astridx astridx - edited - 10 Feb 2019
avatar astridx astridx - change - 10 Feb 2019
Labels Added: ?
avatar astridx astridx - change - 8 Jul 2019
Status Pending Closed
Closed_Date 0000-00-00 00:00:00 2019-07-08 14:48:09
Closed_By astridx
avatar astridx astridx - close - 8 Jul 2019

Add a Comment

Login with GitHub to post a comment