Project

General

Profile

Actions

Bug #77698

closed

Custom Plugin for RTE causes Error on Editor initialization

Added by Marco Dinnbier over 7 years ago. Updated almost 7 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
RTE (rtehtmlarea + ckeditor)
Target version:
-
Start date:
2016-08-30
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
7
PHP Version:
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

Description

I've tried to add a custom button to rtehtmlarea.

On initialization the RTE hangs with a 404 error for the required JavaScript File and RequireJS throws an error.

The Reason: The registerPlugin Method in Editor.js uses the following namespace for requirejs -> TYPO3/CMS/Rtehtmlarea/Plugins/<MyPluginname> instead of TYPO3/CMS/<MyPackagename>/Plugins/<MyPluginname>

https://git.typo3.org/Packages/TYPO3.CMS.git/blob/HEAD:/typo3/sysext/rtehtmlarea/Resources/Public/JavaScript/HTMLArea/Editor/Editor.js#l443

I would fix it, but I need to know what is the best way for getting the full Pluginnamespace or Packagename in this scope?

Actions

Also available in: Atom PDF