Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/inline components #284

Merged
merged 68 commits into from
Jun 22, 2022
Merged
Changes from 1 commit
Commits
Show all changes
68 commits
Select commit Hold shift + click to select a range
192ba7b
initial experimental version of inline-components
elpoelma May 20, 2022
52006bc
added option to add dynamic attributes to inline-component and rewrot…
elpoelma May 20, 2022
ac0849b
added support for properties and nested components
elpoelma May 20, 2022
208f8bf
removed second image
elpoelma May 23, 2022
15986e8
added support for inline components in html export writer
elpoelma May 23, 2022
02f49d6
remove image component
elpoelma May 23, 2022
05d9e45
rewrote how matching works with inline components, a base matcher has…
elpoelma May 23, 2022
4d3cb62
start using web components in order to more easily define inline comp…
elpoelma May 24, 2022
d10a2fd
rewrote inline-component models in order to get it working with ember…
elpoelma May 30, 2022
940931d
removed unnecessay components and added support for ember comp proper…
elpoelma May 30, 2022
908ea9c
ember inline components and props are now preserved through applicati…
elpoelma May 30, 2022
087d03d
got temporary solution working for collapsible content in components
elpoelma May 31, 2022
c7a4ed9
add br after having inserted inline component
elpoelma May 31, 2022
a7b6105
renamed inline component and added trailing linebreak after component
elpoelma May 31, 2022
97993af
fixed issue with whitespaces in ember hbs and created initial regulat…
elpoelma May 31, 2022
1108168
replaced attachment content by dummy content
elpoelma May 31, 2022
13bcc17
removed unnecessary extractchild method
elpoelma May 31, 2022
35b0582
moved inline css to external css file
elpoelma May 31, 2022
30cd0ef
added rdf type to regulatory attachment component
elpoelma May 31, 2022
1f8ea92
first steps to get exportable component state working
elpoelma May 31, 2022
0f87e8f
got exportable state working
elpoelma Jun 1, 2022
63fb37b
added the option to provide a static version of the component used in…
elpoelma Jun 1, 2022
adb10d2
added generic parameter for state
elpoelma Jun 1, 2022
7722cd6
removed some unnecessary imports
elpoelma Jun 1, 2022
e6f0f8a
add support for handlebars syntax for the static versions of components
elpoelma Jun 1, 2022
fdf754c
remove unused imports and replaced buttons by links
elpoelma Jun 1, 2022
b529338
added handlebars-loader
elpoelma Jun 1, 2022
3aebd8e
Initial commit
elpoelma Jun 7, 2022
e1f74ad
Update LICENSE
elpoelma Jun 7, 2022
20a97d6
Merge branch 'master' of https://github.com/lblod/ember-rdfa-editor-i…
elpoelma Jun 7, 2022
dac59a5
fix import issues
elpoelma Jun 7, 2022
3bf1926
moved tracked built ins dep
elpoelma Jun 7, 2022
69716a1
extracted sample inline components to seperate repo
elpoelma Jun 7, 2022
8ae2634
added controller to inlinecomponents
elpoelma Jun 8, 2022
0985e04
fix issue when creating inline-component-model
elpoelma Jun 8, 2022
e7df487
fix issue in writer and reader for inline components
elpoelma Jun 8, 2022
fdffb94
added function to utils which determines total content of model-element
elpoelma Jun 8, 2022
d4bcf2d
fix in getTextContent
elpoelma Jun 8, 2022
cfdd8a4
do not execute model read when event has happened inside an inline co…
elpoelma Jun 9, 2022
22f94f7
when writing a selection, scroll its anchornode into view
elpoelma Jun 9, 2022
1b0d817
add boolean to write function which determines whether you want to sc…
elpoelma Jun 9, 2022
d953753
modified write in controller
elpoelma Jun 9, 2022
7ad4da7
adjust controller interface
elpoelma Jun 9, 2022
d3c75ad
add additional read to insert html command to ensure rdfa attributes …
elpoelma Jun 9, 2022
94d8d76
move read out of change callback
elpoelma Jun 9, 2022
8e67aa8
remove read call after insert html
elpoelma Jun 9, 2022
b6d87ee
added option to not create snapshot when inserting inline component
elpoelma Jun 10, 2022
005241f
implemented clone method for inline component in order to correctly s…
elpoelma Jun 10, 2022
f5f6f2c
moved inline component reader specifics to seperate class
elpoelma Jun 10, 2022
0adf83b
Expose create model element
lagartoverde Jun 10, 2022
6ea4def
Merge branch 'feature/expose-create-model-element' into feature/inlin…
elpoelma Jun 10, 2022
713db8b
fix issue in adjacent text writer
elpoelma Jun 10, 2022
6047a15
when anchornode of selection is text node, scroll the parent element …
elpoelma Jun 10, 2022
58a494b
add command which is responsible for removing a component
elpoelma Jun 10, 2022
a3fbfc6
register remove component command
elpoelma Jun 10, 2022
bc330d4
added controller to inline component spec
elpoelma Jun 10, 2022
c7b09b9
fix issues in controller and component command
elpoelma Jun 10, 2022
458afa4
merged the renderFromSpec methods
elpoelma Jun 13, 2022
7e7115d
Revert "Initial commit"
elpoelma Jun 13, 2022
91bf51c
removed unnecessary imports and methods
elpoelma Jun 13, 2022
1bdb42a
converted render method to a normal function which takes a component …
elpoelma Jun 15, 2022
eaf1d11
made an abstract field from the matcher in the spec
elpoelma Jun 15, 2022
fbefa1b
removed base inline component class and replaced it by a component co…
elpoelma Jun 15, 2022
efdfd15
fix typing issue
elpoelma Jun 15, 2022
bfc0b92
fix where node was not incluided in activecomponententry
elpoelma Jun 15, 2022
45729a1
added model getter to component controller
elpoelma Jun 15, 2022
8177287
update insert component command so it works with non collapsed select…
elpoelma Jun 15, 2022
e7e2504
updated shiftedVisually so it works correctly with inline components
elpoelma Jun 15, 2022
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
Prev Previous commit
Next Next commit
register remove component command
elpoelma committed Jun 10, 2022
commit a3fbfc6ed888025faaefaa87a1e24c918c49481f
2 changes: 2 additions & 0 deletions addon/utils/ce/raw-editor.ts
Original file line number Diff line number Diff line change
@@ -72,6 +72,7 @@ import { InternalInlineComponentSpec } from '@lblod/ember-rdfa-editor/model/inli
import InsertComponentCommand from '@lblod/ember-rdfa-editor/commands/insert-component-command';
import { EditorPlugin } from '../editor-plugin';
import { createLogger, Logger } from '../logging-utils';
import RemoveComponentCommand from '@lblod/ember-rdfa-editor/commands/remove-component-command';

export interface RawEditorProperties {
baseIRI: string;
@@ -209,6 +210,7 @@ export default class RawEditor {
this.registerCommand(new AddMarkToSelectionCommand(this.model));
this.registerCommand(new RemoveMarkFromSelectionCommand(this.model));
this.registerCommand(new InsertComponentCommand(this.model));
this.registerCommand(new RemoveComponentCommand(this.model));
this.registerMark(highlightMarkSpec);

this.model.read(true, true);