Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 9fcb99db

Von Sven Schöling vor etwa 1 Jahr hinzugefügt

  • ID 9fcb99dbce549d02f4f88bff633ff77bb5be2e5b
  • Vorgänger b651d5ef
  • Nachfolger 892c868e

ckeditor5: test page für developer Rechte

Unterschiede anzeigen:

SL/Controller/Test.pm
14 14
  $self->render(\$output, { type => 'text' });
15 15
}
16 16

  
17
sub action_ckeditor_test_page {
18
  my ($self) = @_;
19

  
20
  $self->render("test/ckeditor");
21
}
22

  
17 23
1;
menus/user/00-erp.yaml
1676 1676
  order: 400
1677 1677
  params:
1678 1678
    action: Project/test_page
1679
- parent: develop
1680
  id: ckeditor_test
1681
  name: CKEditor5 Test
1682
  access: developer
1683
  order: 450
1684
  params:
1685
    action: Test/ckeditor_test_page
1679 1686
- parent: develop
1680 1687
  id: js_tests
1681 1688
  name: JS Tests
templates/webpages/test/ckeditor.html
1
[% USE P %]
2

  
3
<h1>CKeditor</h1>
4

  
5
<h3>standard empty</h3>
6

  
7
[% P.textarea_tag('name1', "", class="texteditor") %]
8

  
9
<h3>prefilled</h3>
10

  
11
[% P.textarea_tag('name2', "<p>this is a text</p>", class="texteditor") %]
12

  
13
<h3>inside form (check if enter triggers form.submit)</h3>
14

  
15
<fieldset>
16
<form onsubmit="return alert('Submit was triggered');">
17
[% P.textarea_tag('name3', "<p>Try to hit enter here</p>", class="texteditor") %]
18
[% P.input_tag('name4', 'and here...') %]
19
</form>
20
</fieldset>
21

  
22
<h3>initial focus</h3>
23

  
24
[% P.textarea_tag('name4', "<p>this is a text</p>", class="texteditor texteditor-autofocus") %]
25

  
26
<h3>with custom width/height</h3>
27

  
28
[% P.textarea_tag('name5', "<p>this is a text</p>", style="width: 350px; height: 150px", class="texteditor") %]

Auch abrufbar als: Unified diff