Sha256: 6ecee5301e19438f7e126d3a62d93f8574439491c2912222e0c62615c466a69e

Contents?: true

Size: 1.17 KB

Versions: 12

Compression:

Stored size: 1.17 KB

Contents

<script type="text/ng-template" id="promethee/components/text/edit/write">
  <div  ng-controller="TextController"
        ng-click="inspect(component, $event)"
        class=" promethee-edit__component
                promethee-edit__component--text">
    <div class="promethee-edit__component-selected" ng-class="{'promethee-edit__component-selected--visible': promethee.inspected === component}">
      <div class="promethee-edit__toolbar">
        Text
        <ng-include src="'promethee/write/toolbar'"></ng-include>
      </div>
      <div ng-show="promethee.inspected === component">
        <summernote config="options" ng-model="component.attributes.body"></summernote>
      </div>
      <div ng-hide="promethee.inspected === component">
        <div class="promethee-edit__wrapper" ng-bind-html="component.attributes.body | htmlSafe"></div>
      </div>
    </div>
  </div>
</script>

<script>
  promethee.controller('TextController', ['$scope', function($scope) {
    $scope.options = {
      toolbar: [
        ['headline', ['style']],
        ['style', ['bold', 'italic']],
        ['alignment', ['ul', 'ol', 'paragraph']],
        ['code', ['codeview']]
      ]
    };
  }]);
</script>

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
promethee-1.2.11 app/views/promethee/components/text/_edit.write.html.erb
promethee-1.2.10 app/views/promethee/components/text/_edit.write.html.erb
promethee-1.2.9 app/views/promethee/components/text/_edit.write.html.erb
promethee-1.2.8 app/views/promethee/components/text/_edit.write.html.erb
promethee-1.2.7 app/views/promethee/components/text/_edit.write.html.erb
promethee-1.2.6 app/views/promethee/components/text/_edit.write.html.erb
promethee-1.2.5 app/views/promethee/components/text/_edit.write.html.erb
promethee-1.2.4 app/views/promethee/components/text/_edit.write.html.erb
promethee-1.2.3 app/views/promethee/components/text/_edit.write.html.erb
promethee-1.2.2 app/views/promethee/components/text/_edit.write.html.erb
promethee-1.2.1 app/views/promethee/components/text/_edit.write.html.erb
promethee-1.2.0 app/views/promethee/components/text/_edit.write.html.erb