javascript - Making a Page that uses x-editable into a static page -


so making angular-js based page entirely inline editable using x-editable.

  1. could make page static after clicking button.
  2. how post using ng-ckeditor

    <script>    var app = angular.module('myapp',['ngsanitize','xeditable','ngckeditor']);  </script> <h2 id="title" editable-text="title"><a ng-href={{link}} onaftersave="$http.post("$scope.thing")>{{title}}</a></h2> <p id ="descr ng-model="descr" ckeditor="editoroptions"></p> 

i want 1 page capable of saving , sent else view , not have option of editing.

example:

say page has 1 article title of "ex1" description of "this first draft"

i change title "ex2" , description "the second draft" using inline ckeditor.

i want save page (a simple ctrl-s) , send else can add article page.

the second person adds article title "art2" descr "this article is..." , changes first article title "art1"

now page done want save html file , send else final viewing , cannot inline-editing or anything.

how accomplish this?


Comments