chore(ckeditor/include_note): remove debug logs

This commit is contained in:
Elian Doran
2026-04-11 12:35:01 +03:00
parent 49dc7135a7
commit a913d33a9e
3 changed files with 0 additions and 18 deletions

View File

@@ -14,15 +14,10 @@ export default class IncludeNoteBoxSizeDropdown extends Plugin {
const editor = this.editor;
const componentFactory = editor.ui.componentFactory;
console.log("[IncludeNoteBoxSizeDropdown] Initializing");
const itemDefinitions = this._getBoxSizeListItemDefinitions();
const command = editor.commands.get(BOX_SIZE_COMMAND_NAME) as Command & { value: BoxSizeValue | null };
console.log("[IncludeNoteBoxSizeDropdown] Command:", command);
componentFactory.add("includeNoteBoxSizeDropdown", _locale => {
console.log("[IncludeNoteBoxSizeDropdown] Creating dropdown component");
const dropdownView = createDropdown(editor.locale, DropdownButtonView);
dropdownView.buttonView.set({
withText: true,

View File

@@ -12,8 +12,6 @@ export default class IncludeNoteToolbar extends Plugin {
const editor = this.editor;
const widgetToolbarRepository = editor.plugins.get(WidgetToolbarRepository);
console.log("[IncludeNoteToolbar] Registering toolbar");
widgetToolbarRepository.register("includeNote", {
items: [
"includeNoteBoxSizeDropdown"
@@ -21,20 +19,11 @@ export default class IncludeNoteToolbar extends Plugin {
balloonClassName: "ck-toolbar-container include-note-toolbar",
getRelatedElement(selection) {
const selectedElement = selection.getSelectedElement();
console.log("[IncludeNoteToolbar] getRelatedElement called, selectedElement:", selectedElement);
if (selectedElement) {
console.log("[IncludeNoteToolbar] Element name:", selectedElement.name);
console.log("[IncludeNoteToolbar] Element classes:", selectedElement.getAttribute("class"));
console.log("[IncludeNoteToolbar] isWidget:", isWidget(selectedElement));
}
if (selectedElement && isIncludeNoteWidget(selectedElement)) {
console.log("[IncludeNoteToolbar] Found include note widget, returning element");
return selectedElement;
}
console.log("[IncludeNoteToolbar] No include note widget found");
return null;
}
});

View File

@@ -191,7 +191,6 @@ class IncludeNoteBoxSizeCommand extends Command {
declare value: BoxSizeValue | null;
override execute( options: { value: BoxSizeValue } ) {
console.log("[IncludeNoteBoxSizeCommand] execute called with:", options);
const model = this.editor.model;
const includeNoteElement = this._getSelectedIncludeNote();
@@ -207,7 +206,6 @@ class IncludeNoteBoxSizeCommand extends Command {
this.isEnabled = !!includeNoteElement;
this.value = includeNoteElement?.getAttribute( 'boxSize' ) as BoxSizeValue | null ?? null;
console.log("[IncludeNoteBoxSizeCommand] refresh - isEnabled:", this.isEnabled, "value:", this.value);
}
private _getSelectedIncludeNote() {