Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
48 commits
Select commit Hold shift + click to select a range
6d1599a
feat(new-block-editor): add new block editor library with initial con…
rjvelazco Mar 26, 2026
6b9eedc
refactor(Block Editor): update configuration and dependencies and add…
rjvelazco Apr 8, 2026
7e193ef
feat(new-block-editor): add interaction preferences and upload placeh…
rjvelazco Apr 8, 2026
9d014aa
fix(toolbar): change emoji picker trigger from click to mousedown event
rjvelazco Apr 8, 2026
37a8a7e
fix(toolbar): prevent default behavior and close emoji picker if alre…
rjvelazco Apr 8, 2026
3317167
feat: add contentlet node
rjvelazco Apr 9, 2026
a2553f1
refactor(new-block-editor): reorganize component structure and update…
rjvelazco Apr 9, 2026
c01e884
feat(new-block-editor): enhance slash menu functionality with improve…
rjvelazco Apr 9, 2026
77fd1d1
feat(new-block-editor): add dotCMS image and video search functionali…
rjvelazco Apr 9, 2026
0093e51
feat(new-block-editor): integrate PrimeNG DataView for image and vide…
rjvelazco Apr 10, 2026
cc9fe17
Merge branch 'main' into refactor-dotcms-block-editor
rjvelazco Apr 13, 2026
b783bc4
feat(new-block-editor): enhance editor functionality
rjvelazco Apr 13, 2026
363f667
feat(new-block-editor): add text image wrap and image property
rjvelazco Apr 13, 2026
2b72b03
feat(new-block-editor): enhance block editor with new grid functional…
rjvelazco Apr 13, 2026
bc10a12
feat(Block Edito): Grid block, Control Value Accesor, selected style …
rjvelazco Apr 15, 2026
bb9378d
refactor(new-block-editor): consolidate grid functionality into a sin…
rjvelazco Apr 15, 2026
7defbd0
feat(new-block-editor): enhance editor with new porting checklist, im…
rjvelazco Apr 21, 2026
bc6d442
feat(new-block-editor): integrate language support and enhance conten…
rjvelazco Apr 22, 2026
f5cf57a
feat(new-block-editor): enhance editor with demo content and new tool…
rjvelazco Apr 22, 2026
6dbdd61
docs(new-block-editor): add guidelines for immutable TipTap node name…
rjvelazco Apr 22, 2026
50a6932
feat(new-block-editor): update styles and enhance media handling with…
rjvelazco Apr 22, 2026
4417857
feat(new-block-editor): implement selection preservation feature duri…
rjvelazco Apr 22, 2026
e561e6e
refactor(settings): remove unused hooks and clean up configuration fo…
rjvelazco Apr 22, 2026
b4e066d
feat(new-block-editor): enhance image handling with improved data man…
rjvelazco Apr 23, 2026
03fe36e
feat(new-block-editor): refactor dialog system for improved architect…
rjvelazco Apr 23, 2026
93edb3b
fix(new-block-editor): clean up imports and enhance component structure
rjvelazco Apr 23, 2026
714f4e3
refactor(new-block-editor): standardize node imports and improve code…
rjvelazco Apr 23, 2026
88385c0
feat(new-block-editor): enhance video handling with additional metada…
rjvelazco Apr 23, 2026
a31d90a
Merge branch 'main' into refactor-dotcms-block-editor
rjvelazco Apr 23, 2026
19a28e5
refactor(new-block-editor): update component imports and enhance styling
rjvelazco Apr 23, 2026
454b451
feat(material-icons): introduce Material Symbols Outlined font and up…
rjvelazco Apr 23, 2026
3b743e7
Merge branch 'main' into refactor-dotcms-block-editor
rjvelazco Apr 27, 2026
f32e8fd
feat(editor): enhance DotCMS editor with JSON handling and UI improve…
rjvelazco Apr 27, 2026
46d3731
refactor(editor-dialog): enhance focus handling and simplify dialog c…
rjvelazco Apr 27, 2026
a261300
feat(editor): enhance contentlet handling with new data structure
rjvelazco Apr 27, 2026
91cebde
feat(editor): refactor contentlet handling with new Angular node view
rjvelazco Apr 27, 2026
8c4eea7
feat(editor): introduce new dialog components for enhanced media hand…
rjvelazco Apr 27, 2026
cfca7d3
feat(editor): add contentlet component for enhanced node view
rjvelazco Apr 27, 2026
b7a4de4
feat(editor): enhance slash menu with improved scrolling behavior
rjvelazco Apr 27, 2026
7aa0da6
feat(editor): introduce AI content generation feature
rjvelazco Apr 27, 2026
81a2430
feat(editor): implement block-target highlighting for toolbar interac…
rjvelazco Apr 27, 2026
05109d3
refactor(editor): remove hardcoded base URL and authorization token
rjvelazco Apr 27, 2026
6ad4d5d
feat(editor): enhance block gutter behavior with scroll handling
rjvelazco Apr 27, 2026
8bf5b41
feat(editor): improve block gutter positioning with auto-update and e…
rjvelazco Apr 28, 2026
983cf86
feat(editor): add Markdown copy and paste functionality
rjvelazco Apr 28, 2026
18a1c52
Merge branch 'main' into refactor-dotcms-block-editor
rjvelazco Apr 28, 2026
4e9c8d3
fix(editor): update panel class for fullscreen layout and add tooltip…
rjvelazco Apr 28, 2026
0699a59
refactor(editor): enhance block gutter functionality with improved ev…
rjvelazco Apr 28, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions core-web/.claude/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
}
}
},
"env": {
"CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS": "1"
},
"enabledPlugins": {
"nx@nx-claude-plugins": true
}
Expand Down
39 changes: 24 additions & 15 deletions core-web/apps/dotcms-block-editor/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,19 @@
"tags": ["skip:test", "skip:lint"],
"targets": {
"build": {
"executor": "@angular-devkit/build-angular:browser-esbuild",
"executor": "@angular/build:application",
"outputs": ["{options.outputPath.base}"],
"options": {
"outputPath": "dist/apps/dotcms-block-editor",
"baseHref": "./",
"outputPath": {
"base": "dist/apps/dotcms-block-editor",
"browser": ""
},
"index": "apps/dotcms-block-editor/src/index.html",
"main": "apps/dotcms-block-editor/src/main.ts",
"polyfills": "apps/dotcms-block-editor/src/polyfills.ts",
"browser": "apps/dotcms-block-editor/src/main.ts",
"polyfills": ["apps/dotcms-block-editor/src/polyfills.ts"],
"tsConfig": "apps/dotcms-block-editor/tsconfig.app.json",
"inlineStyleLanguage": "css",
"assets": [
"apps/dotcms-block-editor/src/favicon.ico",
"apps/dotcms-block-editor/src/assets"
Expand All @@ -33,24 +39,29 @@
"includePaths": ["libs/dotcms-scss/angular"]
},
"allowedCommonJsDependencies": ["lodash.isequal", "date-fns"],
"vendorChunk": true,
"extractLicenses": false,
"buildOptimizer": false,
"sourceMap": true,
"optimization": false,
"namedChunks": true
},
"configurations": {
"development": {
"optimization": false,
"sourceMap": true,
"namedChunks": true,
"extractLicenses": false
},
"localhost": {
"sourceMap": true,
"optimization": false,
"watch": true
"optimization": false
},
"tomcat": {
"outputPath": "../../tomcat9/webapps/ROOT/dotcms-block-editor",
"outputPath": {
"base": "../../tomcat9/webapps/ROOT/dotcms-block-editor",
"browser": ""
},
"sourceMap": true,
"optimization": false,
"watch": true
"optimization": false
},
"production": {
"fileReplacements": [
Expand All @@ -64,8 +75,6 @@
"sourceMap": false,
"namedChunks": false,
"extractLicenses": false,
"vendorChunk": false,
"buildOptimizer": true,
"budgets": [
{
"type": "initial",
Expand All @@ -85,7 +94,7 @@
"serve": {
"executor": "@angular/build:dev-server",
"options": {
"buildTarget": "dotcms-block-editor:build"
"buildTarget": "dotcms-block-editor:build:development"
},
"configurations": {
"production": {
Expand Down Expand Up @@ -113,7 +122,7 @@
"main": "apps/dotcms-block-editor/src/test.ts",
"tsConfig": "apps/dotcms-block-editor/tsconfig.spec.json",
"karmaConfig": "apps/dotcms-block-editor/karma.conf.js",
"polyfills": "apps/dotcms-block-editor/src/polyfills.ts",
"polyfills": ["apps/dotcms-block-editor/src/polyfills.ts"],
"styles": [],
"scripts": [],
"assets": []
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<dot-block-editor />
<dot-block-editor [value]="demoContent" />
9 changes: 7 additions & 2 deletions core-web/apps/dotcms-block-editor/src/app/app.component.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,16 @@
import { Component } from '@angular/core';

import { DotCMSEditorComponent } from '@dotcms/new-block-editor';

import { EDITOR_DEMO_CONTENT } from './editor-demo-content';

@Component({
selector: 'dotcms-root',
templateUrl: './app.component.html',
styleUrls: [],
standalone: false
imports: [DotCMSEditorComponent],
standalone: true
})
export class AppComponent {
title = 'dotcms-block-editor';
protected readonly demoContent = EDITOR_DEMO_CONTENT;
}
27 changes: 27 additions & 0 deletions core-web/apps/dotcms-block-editor/src/app/app.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
import Lara from '@primeuix/themes/lara';

import { provideHttpClient } from '@angular/common/http';
import { ApplicationConfig, provideBrowserGlobalErrorListeners } from '@angular/core';
import { provideAnimationsAsync } from '@angular/platform-browser/animations/async';

import { providePrimeNG } from 'primeng/config';

/**
* PrimeNG is required for components used inside `@dotcms/new-block-editor` (e.g. DataView in
* image/video dotCMS pickers). Theme + cssLayer order must match `apps/dotcms-block-editor/src/styles.css`.
*/
export const appConfig: ApplicationConfig = {
providers: [
provideBrowserGlobalErrorListeners(),
provideHttpClient(),
provideAnimationsAsync(),
providePrimeNG({
theme: {
preset: Lara,
options: {
darkModeSelector: '.dark'
}
}
})
]
};
53 changes: 0 additions & 53 deletions core-web/apps/dotcms-block-editor/src/app/app.module.ts

This file was deleted.

41 changes: 41 additions & 0 deletions core-web/apps/dotcms-block-editor/src/app/editor-demo-content.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
/** Default HTML shown when the editor loads (demo / onboarding). */
export const EDITOR_DEMO_CONTENT = `
<h1>Block Editor</h1>
<p>Welcome! Type <strong>/</strong> anywhere to open the block menu and insert content.</p>

<h2>Text blocks</h2>
<p>Regular paragraph text. You can write <strong>bold</strong>, <em>italic</em>, and <code>inline code</code>.</p>
<blockquote><p>A blockquote stands out from the rest of the content — great for callouts or citations.</p></blockquote>
<pre><code>const greet = (name: string) => \`Hello, \${name}!\`;
console.log(greet('World'));</code></pre>

<h2>Lists</h2>
<ul>
<li>Bullet item one</li>
<li>Bullet item two</li>
<li>Bullet item three</li>
</ul>
<ol>
<li>First ordered item</li>
<li>Second ordered item</li>
<li>Third ordered item</li>
</ol>

<h2>Links</h2>
<p>Click once to select a link, double-click to edit it. Try it: <a href="https://tiptap.dev">Tiptap docs</a> or <a href="https://angular.dev">Angular docs</a>. You can also paste a URL directly and it will auto-link.</p>

<h2>Table</h2>
<table>
<thead>
<tr><th>Feature</th><th>Status</th><th>Notes</th></tr>
</thead>
<tbody>
<tr><td>Slash menu</td><td>✅ Done</td><td>Type / to trigger</td></tr>
<tr><td>Drag &amp; drop</td><td>✅ Done</td><td>Grab the handle on the left</td></tr>
<tr><td>Tables</td><td>✅ Done</td><td>Resizable columns</td></tr>
<tr><td>Links</td><td>✅ Done</td><td>Autolink + dialog</td></tr>
<tr><td>Images</td><td>✅ Done</td><td>URL or file upload</td></tr>
<tr><td>Video</td><td>✅ Done</td><td>URL or file upload</td></tr>
</tbody>
</table>
`;
7 changes: 6 additions & 1 deletion core-web/apps/dotcms-block-editor/src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,14 @@
<head>
<meta charset="utf-8" />
<title>DotBlockEditor</title>
<base href="/" />
<base href="./" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="icon" type="image/x-icon" href="favicon.ico" />
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link
href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200&display=swap"
rel="stylesheet" />
</head>
<body>
<dotcms-root></dotcms-root>
Expand Down
9 changes: 4 additions & 5 deletions core-web/apps/dotcms-block-editor/src/main.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
import { enableProdMode } from '@angular/core';
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
import { bootstrapApplication } from '@angular/platform-browser';

import { AppModule } from './app/app.module';
import { AppComponent } from './app/app.component';
import { appConfig } from './app/app.config';
import { environment } from './environments/environment';

if (environment.production) {
enableProdMode();
}

platformBrowserDynamic()
.bootstrapModule(AppModule)
.catch((err) => console.error(err));
bootstrapApplication(AppComponent, appConfig).catch((err) => console.error(err));
6 changes: 1 addition & 5 deletions core-web/apps/dotcms-block-editor/src/styles.css
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
@import 'tailwindcss';
@import 'tailwindcss-primeui';

.p-dialog-mask.p-component-overlay.p-dialog-mask-scrollblocker {
background-color: transparent;
backdrop-filter: none;
}
@plugin "@tailwindcss/typography";
6 changes: 5 additions & 1 deletion core-web/apps/dotcms-block-editor/tsconfig.app.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,11 @@
"types": [],
"target": "ES2022",
"useDefineForClassFields": false,
"moduleResolution": "bundler"
"module": "preserve",
"moduleResolution": "bundler",
"resolvePackageJsonExports": true,
"incremental": true,
"esModuleInterop": true
},
"files": ["src/main.ts", "src/polyfills.ts"],
"exclude": ["**/*.stories.ts", "**/*.stories.js"]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,32 @@ import { FormBuilder, FormGroup } from '@angular/forms';

import { catchError, take, takeUntil, tap } from 'rxjs/operators';

// Services
import { getEditorBlockOptions } from '@dotcms/block-editor';
import { DotHttpErrorManagerService, DotMessageService } from '@dotcms/data-access';
import { DotCMSContentTypeField, DotDialogActions, DotFieldVariable } from '@dotcms/dotcms-models';

import { DotFieldVariablesService } from '../fields/dot-content-type-fields-variables/services/dot-field-variables.service';

const BLOCK_OPTIONS: { label: string; code: string }[] = [
{ label: 'AI Content', code: 'aiContentPrompt' },
{ label: 'AI Image', code: 'aiImagePrompt' },
{ label: 'Blockquote', code: 'blockquote' },
{ label: 'Code Block', code: 'codeBlock' },
{ label: 'Contentlet', code: 'dotContent' },
{ label: 'Grid (2 columns)', code: 'gridBlock' },
{ label: 'Heading 1', code: 'heading1' },
{ label: 'Heading 2', code: 'heading2' },
{ label: 'Heading 3', code: 'heading3' },
{ label: 'Heading 4', code: 'heading4' },
{ label: 'Heading 5', code: 'heading5' },
{ label: 'Heading 6', code: 'heading6' },
{ label: 'Horizontal Line', code: 'horizontalRule' },
{ label: 'Image', code: 'image' },
{ label: 'List Ordered', code: 'orderedList' },
{ label: 'List Unordered', code: 'bulletList' },
{ label: 'Table', code: 'table' },
{ label: 'Video', code: 'video' }
];

/* Uncomment this when Content Assets variable is ready
const BLOCK_EDITOR_ASSETS = [
{ label: 'Youtube Videos', code: 'videos'},
Expand Down Expand Up @@ -54,7 +73,7 @@ export class DotBlockEditorSettingsComponent implements OnInit, OnDestroy, OnCha
allowedBlocks: {
label: 'Allowed Blocks',
placeholder: 'Select Blocks',
options: getEditorBlockOptions(),
options: BLOCK_OPTIONS,
key: 'allowedBlocks',
variable: null
}
Expand Down
Binary file not shown.
1 change: 1 addition & 0 deletions core-web/apps/dotcms-ui/src/style.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
@import 'tailwindcss';
@import 'tailwindcss-primeui';
@plugin "@tailwindcss/typography";
@import './daisyui-theme.css';

:root {
Expand Down
8 changes: 0 additions & 8 deletions core-web/libs/dotcms-scss/angular/styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -106,14 +106,6 @@ However this is for the dragula we use in the angular components the one in the
user-select: none !important;
}

code {
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shared global code CSS removed affecting other consumers

Medium Severity

The global code element styling (color, background, padding, font-family, line-break) was removed from the shared styles.scss in libs/dotcms-scss/angular/. This is a shared stylesheet imported by multiple applications, not just the block editor. Removing this rule may break code element rendering across all consuming apps that relied on this global style.

Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit 77fd1d1. Configure here.

color: $color-accessible-text-purple !important;
background-color: $color-accessible-text-purple-bg;
padding: $spacing-0 $spacing-1;
font-family: $font-code;
line-break: anywhere;
}

.dot-mask {
background-color: transparent;
backdrop-filter: none;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
[languageId]="$languageId()"
[formControlName]="field.variable"
[contentlet]="$contentlet()"
[hasFieldError]="fieldHasError"
[hasError]="fieldHasError"
[field]="field" />
</dot-card-field-content>
</dot-card-field>
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { ChangeDetectionStrategy, Component, computed, inject, input } from '@angular/core';
import { ControlContainer, ReactiveFormsModule } from '@angular/forms';

import { BlockEditorModule } from '@dotcms/block-editor';
import { DotCMSContentlet, DotCMSContentTypeField } from '@dotcms/dotcms-models';
import { DotCMSEditorComponent } from '@dotcms/new-block-editor';

import { DotEditContentStore } from '../../store/edit-content.store';
import { DotCardFieldContentComponent } from '../dot-card-field/components/dot-card-field-content.component';
Expand All @@ -18,7 +18,7 @@ import { BaseWrapperField } from '../shared/base-wrapper-field';
DotCardFieldContentComponent,
DotCardFieldLabelComponent,

BlockEditorModule
DotCMSEditorComponent
],
templateUrl: './dot-edit-content-block-editor.component.html',
changeDetection: ChangeDetectionStrategy.OnPush,
Expand Down
Loading
Loading