You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
'<ul><li><p>Build headless editing primitives with a plugin stack that remains fully selected by the consumer.</p></li></ul>',
101
132
);
133
+
awaitalignRight.click();
134
+
awaitexpect(page.locator('pre')).toContainText(
135
+
'<ul><li style="text-align: right;"><p>Build headless editing primitives with a plugin stack that remains fully selected by the consumer.</p></li></ul>',
136
+
);
137
+
awaitalignLeft.click();
138
+
awaitexpect(page.locator('pre')).toContainText(
139
+
'<ul><li><p>Build headless editing primitives with a plugin stack that remains fully selected by the consumer.</p></li></ul>',
Copy file name to clipboardExpand all lines: apps/sandbox/src/app/sandbox-editor.ts
+3-1Lines changed: 3 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -10,6 +10,7 @@ import {
10
10
ListsPlugin,
11
11
RteContent,
12
12
RteEditor,
13
+
TextAlignPlugin,
13
14
createRteEditor,
14
15
TextFormattingKit,
15
16
}from'@angular-rte/editor';
@@ -70,10 +71,11 @@ import { SandboxToolbar } from './sandbox-toolbar';
70
71
exportclassSandboxEditor{
71
72
protectedreadonlyeditor=createRteEditor({
72
73
content:
73
-
'<h1><strong>Angular RTE</strong></h1><p>Build headless editing primitives with a plugin stack that remains fully selected by the consumer.</p><blockquote><p>Quote important passages without taking ownership away from the consuming app.</p></blockquote><p>Use the toolbar to shape content without surrendering UI ownership: try <em>italic</em>, <u>underline</u>, <s>strikethrough</s>, and <a href="https://angular.dev" target="_blank" rel="noopener noreferrer">links</a>.</p><pre><code class="language-typescript">import { createRteEditor } from "@angular-rte/editor"; const editor = createRteEditor({ plugins: [CodeBlockPlugin], }); editor.execute("setCodeBlockLanguage", "typescript");</code></pre><pre><code class="language-go">package main import "fmt" func main() { fmt.Println("Angular RTE") }</code></pre><ul><li><p>Compose plugins in TypeScript.</p></li><li><p>Keep toolbar markup in the consuming app.</p></li></ul><ol><li><p>Pick capabilities for the current product surface.</p></li><li><p>Render controls with Angular templates and rteCommand.</p></li></ol><p>Switch paragraphs into lists, nest items with Tab, and lift them back out with Shift+Tab.</p>',
74
+
'<h1><strong>Angular RTE</strong></h1><p style="text-align: center;">Build headless editing primitives with a plugin stack that remains fully selected by the consumer.</p><blockquote><p>Quote important passages without taking ownership away from the consuming app.</p></blockquote><p>Use the toolbar to shape content without surrendering UI ownership: try <em>italic</em>, <u>underline</u>, <s>strikethrough</s>, and <a href="https://angular.dev" target="_blank" rel="noopener noreferrer">links</a>.</p><pre><code class="language-typescript">import { createRteEditor } from "@angular-rte/editor"; const editor = createRteEditor({ plugins: [CodeBlockPlugin], }); editor.execute("setCodeBlockLanguage", "typescript");</code></pre><pre><code class="language-go">package main import "fmt" func main() { fmt.Println("Angular RTE") }</code></pre><ul><li><p>Compose plugins in TypeScript.</p></li><li><p>Keep toolbar markup in the consuming app.</p></li></ul><ol><li><p>Pick capabilities for the current product surface.</p></li><li><p>Render controls with Angular templates and rteCommand.</p></li></ol><p>Switch paragraphs into lists, nest items with Tab, and lift them back out with Shift+Tab.</p>',
0 commit comments