<textarea id="{$wysiwygSelector}" class="wysiwygTextarea"
data-disable-attachments="true"
data-support-mention="true"
->{$comment->message}</textarea>
+>{$text}</textarea>
- {include file='messageFormTabsInline'}
+ {include file='messageFormTabsInline' wysiwygContainerID=$wysiwygSelector wysiwygSelector=$wysiwygSelector}
<div class="formSubmit">
<button type="button" class="button buttonPrimary" data-type="save" accesskey="s">{lang}wcf.global.button.submit{/lang}</button>
<button type="button" class="button" data-type="cancel">{lang}wcf.global.button.cancel{/lang}</button>
</div>
-{include file='wysiwyg' wysiwygSelector=$wysiwygSelector}
+ <script data-relocate="true">
+ require(['WoltLabSuite/Core/Component/Comment/Add'], ({ setCommentEditorFeatures }) => {
+ setCommentEditorFeatures(document.getElementById('{$wysiwygSelector}'));
+ });
+ </script>
+
+{include file='shared_wysiwyg' wysiwygSelector=$wysiwygSelector}
<textarea id="{$wysiwygSelector}" class="wysiwygTextarea"
data-disable-attachments="true"
data-support-mention="true"
->{$response->message}</textarea>
+>{$text}</textarea>
- {include file='messageFormTabsInline'}
+ {include file='messageFormTabsInline' wysiwygContainerID=$wysiwygSelector wysiwygSelector=$wysiwygSelector}
<div class="formSubmit">
<button type="button" class="button buttonPrimary" data-type="save" accesskey="s">{lang}wcf.global.button.submit{/lang}</button>
<button type="button" class="button" data-type="cancel">{lang}wcf.global.button.cancel{/lang}</button>
</div>
-{include file='wysiwyg' wysiwygSelector=$wysiwygSelector}
+ <script data-relocate="true">
+ require(['WoltLabSuite/Core/Component/Comment/Add'], ({ setCommentEditorFeatures }) => {
+ setCommentEditorFeatures(document.getElementById('{$wysiwygSelector}'));
+ });
+ </script>
+
+{include file='shared_wysiwyg' wysiwygSelector=$wysiwygSelector}
* @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
* @since 6.0
*/
-define(["require", "exports", "tslib", "../../Ajax", "../../Ui/Scroll", "../../Ui/Notification", "../../Language", "../../Event/Handler", "../../Dom/Util", "./GuestDialog", "../../Core", "../Ckeditor", "../Ckeditor/Event"], function (require, exports, tslib_1, Ajax_1, UiScroll, UiNotification, Language_1, EventHandler, Util_1, GuestDialog_1, Core, Ckeditor_1, Event_1) {
+define(["require", "exports", "tslib", "../../Ui/Scroll", "../../Ui/Notification", "../../Language", "../../Event/Handler", "../../Dom/Util", "../Ckeditor", "../Ckeditor/Event", "WoltLabSuite/Core/Api/Comments/CreateComment", "../GuestTokenDialog", "WoltLabSuite/Core/User"], function (require, exports, tslib_1, UiScroll, UiNotification, Language_1, EventHandler, Util_1, Ckeditor_1, Event_1, CreateComment_1, GuestTokenDialog_1, User_1) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
- exports.CommentAdd = void 0;
+ exports.setCommentEditorFeatures = exports.CommentAdd = void 0;
UiScroll = tslib_1.__importStar(UiScroll);
UiNotification = tslib_1.__importStar(UiNotification);
EventHandler = tslib_1.__importStar(EventHandler);
* @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
* @woltlabExcludeBundle tiny
*/
- define(["require", "exports", "tslib", "../Controller/Clipboard", "../Ui/Notification", "../Ui/Dialog", "../Event/Handler", "../Language", "../Ajax"], function (require, exports, tslib_1, Clipboard, UiNotification, UiDialog, EventHandler, Language, Ajax) {
+ define(["require", "exports", "tslib", "../Controller/Clipboard", "../Ui/Notification", "../Event/Handler", "../Language", "../Ajax", "WoltLabSuite/Core/Component/Dialog"], function (require, exports, tslib_1, Clipboard, UiNotification, EventHandler, Language_1, Ajax, Dialog_1) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
- exports.setMediaManager = exports.init = void 0;
+ exports.init = init;
+ exports.setMediaManager = setMediaManager;
Clipboard = tslib_1.__importStar(Clipboard);
UiNotification = tslib_1.__importStar(UiNotification);
- UiDialog = tslib_1.__importStar(UiDialog);
EventHandler = tslib_1.__importStar(EventHandler);
- Language = tslib_1.__importStar(Language);
Ajax = tslib_1.__importStar(Ajax);
let _mediaManager;
let _didInit = false;