The current media implementation is heavily flawed sincde the HTML-code and not the necessary media tokens are stored.
This heavily reduces the usability of the integration e.g. changes in file display formatters won't be propagated and so on.
The library.js already provides the necessary functions (attach / detach) to replace the HTML-Code with the appropriate media tokens.
Implement the attach / detach functions as neccesary.
By the way: With this the attached patch you'll be able to insert videos and other stuff as well since in the wysiwyg editor you'll see the placeholder but the output will be the in media configured embedding code.
User interface changes
Original report by hctom
I am desperately trying to get the media module integration to work, but the editor content always contains HTML tags insted of media tokens.
As far as I investigated, the "attach" and "detach" methods in plugins/media/library.js are never called... but those are the ones that take care of the token rendering.
So am I doing something wrong or is this currently not really working?! I am using CKEditor 7.x-1.8 and Media 7.x-1.0.
I'd appreciate any help.
Thanx in advance & best regards
|#120||media-add-ckeditor-support-1504696-120.patch||22.25 KB||Devin Carlson|
PASSED: [[SimpleTest]]: [MySQL] 154 pass(es).
[ View ]
|#120||ckeditor-accomodate-latest-media-changes-1504696-120.patch||17.81 KB||Devin Carlson|
FAILED: [[SimpleTest]]: [MySQL] Unable to apply patch ckeditor-accomodate-latest-media-changes-1504696-120.patch. Unable to apply patch. See the log in the details link for more information.
[ View ]