Skip to content

Commit

Permalink
Merge pull request #78 from lblod/feature/active-new-plugins
Browse files Browse the repository at this point in the history
activate new text plugins
  • Loading branch information
lagartoverde authored May 9, 2023
2 parents 864f1ca + 20e20e3 commit a1228dd
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
8 changes: 8 additions & 0 deletions app/controllers/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ import {
strikethrough,
strong,
underline,
subscript,
superscript,
} from '@lblod/ember-rdfa-editor/plugins/text-style';
import {
block_rdfa,
Expand Down Expand Up @@ -53,6 +55,8 @@ import { generateTemplate } from '../utils/generate-template';
import { getOwner } from '@ember/application';
import { linkPasteHandler } from '@lblod/ember-rdfa-editor/plugins/link';
import { citationPlugin } from '@lblod/ember-rdfa-editor-lblod-plugins/plugins/citation-plugin';
import { highlight } from '@lblod/ember-rdfa-editor/plugins/highlight/marks/highlight';
import { color } from '@lblod/ember-rdfa-editor/plugins/color/marks/color';

export default class EditController extends Controller {
@service store;
Expand Down Expand Up @@ -104,6 +108,10 @@ export default class EditController extends Controller {
strong,
underline,
strikethrough,
subscript,
superscript,
highlight,
color,
},
});

Expand Down
11 changes: 11 additions & 0 deletions app/templates/edit.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,16 @@
<Plugins::TextStyle::Italic @controller={{this.editor}} />
<Plugins::TextStyle::Strikethrough @controller={{this.editor}} />
<Plugins::TextStyle::Underline @controller={{this.editor}} />
<Plugins::TextStyle::Subscript @controller={{this.editor}}/>
<Plugins::TextStyle::Superscript @controller={{this.editor}}/>
<Plugins::TextStyle::Highlight
@controller={{this.editor}}
@defaultColor="#FFEA00"
/>
<Plugins::TextStyle::Color
@controller={{this.editor}}
@defaultColor="#000000"
/>
</Tb.Group>
<Tb.Group>
<Plugins::List::Unordered @controller={{this.editor}} />
Expand All @@ -39,6 +49,7 @@
</Tb.Group>
<Tb.Group>
<Plugins::Link::LinkMenu @controller={{this.editor}} />
<Plugins::Image::InsertMenu @controller={{this.editor}}/>
</Tb.Group>
<Tb.Group>
<Plugins::Table::TableMenu @controller={{this.editor}} />
Expand Down

0 comments on commit a1228dd

Please sign in to comment.