Skip to content

Commit

Permalink
updates for new plaintext editor component
Browse files Browse the repository at this point in the history
  • Loading branch information
chrishokamp committed Feb 8, 2017
1 parent 2ba1677 commit 772268f
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,8 @@
<script src="scripts/typeahead/typeahead.js"></script>
<script src="scripts/directives/placeAfter.js"></script>

<script src="scripts/plaintextEditor/plaintextEditor.js"></script>

<script src="scripts/postEditor/posteditor.js"></script>
<script src="scripts/postEditor/posteditorTooltip.js"></script>

Expand Down
1 change: 1 addition & 0 deletions app/scripts/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ var App = window.App = angular.module('editorComponentsApp',
'angular-select-text',
'handycatConfig',
'handycat.typeaheads',
'handycat.editors',
'handycat.posteditors',
'handycat.trieAutocomplete'

Expand Down
14 changes: 14 additions & 0 deletions app/scripts/editArea/segmentArea/targetArea/target-area.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,20 @@
<!--ALL TARGET AREA COMPONENTS BELONG HERE-->
<!--The component that is currently active is controlled by widgets.activeComponent on the parent scope-->

<!-- PLAINTEXT -->
<div class="cssSlideUp"
ng-show="widgets.activeComponent === 'plaintextEditor'"
>
<plaintext-editor
target-segment="segment.target"
source-segment="segment.source"
source-lang="{{document.sourceLang}}"
target-lang="{{document.targetLang}}"
active-component="widgets.activeComponent"
is-active="isActive.active"
></plaintext-editor>
</div>

<!-- TYPEAHEAD -->
<div class="cssSlideUp"
ng-show="widgets.activeComponent === 'typeaheadEditor'"
Expand Down
6 changes: 6 additions & 0 deletions app/styles/partials/_translate.scss
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,9 @@
z-index: 100;
}

.bottom-whitespace {
position: relative;
height: 1200px;
width: 100%;
}

2 changes: 2 additions & 0 deletions app/views/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,8 @@
<script src="scripts/postEditor/posteditor.js"></script>
<script src="scripts/postEditor/posteditorTooltip.js"></script>

<script src="scripts/plaintextEditor/plaintextEditor.js"></script>

<script src="scripts/qeScore/qeScore.js"></script>

<!--COMPONENT MODULES-->
Expand Down

0 comments on commit 772268f

Please sign in to comment.