Comments (16)
WYSIWYG is not as easy as basic inline editing, especially if you gonna to release it for users/customer, because alot of testing for cross-browser functionalities (each major browser, each major operation system, each major update of depencies (libraries and etc)). Better looks for something like CKEditor inline editor mode, there is a angular wrapper for inline editor - at least i saw it somewhere!
from angular-xeditable.
good option!
@plandem could you share the link to ckeditor directive?
from angular-xeditable.
Well, here is it:
http://ericpanorel.net/2013/08/03/ckeditor-4-inline-mode-angularjs-directive/
i'm still new about angular, so i can't rate level of implementation.
P.S.: Here is official doc about it:
http://docs.ckeditor.com/#!/guide/dev_inline
from angular-xeditable.
to enable inline editing, you will not do alot from CKEditor/etc side. But if you want to bring some 'events' as angular style, then probably some work will be needed :)
from angular-xeditable.
ok, thanks, I will have a look!
from angular-xeditable.
Thanks guys - CKEditor was definitely good pointer - although I have not used it as form-editable control, I did use a directive on a stand-alone page to provide WYSIWYG editing using CKEditor and it's pretty straightforward
from angular-xeditable.
For what it's worth, this isn't that difficult to do. I used textAngular https://github.com/fraywing/textAngular with xeditable and it works great. The only changes I needed to make were:
- Change inputTpl to '' (I did it only for editableTextarea, but you can do it for whatever you like).
- Remove one of the x-editable styles that draws a box around the editor in your chosen theme (if applicable).
- For convenience sake, I added the submit and cancel buttons to textAngularTools, so that I could turn them off in xeditable and use them right in the textAngular toolbar with the others.
from angular-xeditable.
@ashernevins textAngular look very nice.
If you have time, it would be greate to you make PR with editable-wysiwig
directive..
from angular-xeditable.
@ashernevins : I think github removed your code when pasting, could you post your code again with correct markdown? Thanks!
from angular-xeditable.
@jonaswindey you can copy the xeditable editableTextArea module and just change this line to:
(call your directive as editableTextAngular)
directiveName: 'editableTextAngular',
inputTpl: '<div text-angular></div>',
and you can use the tag as <div editable-text-area> ... it will work.
from angular-xeditable.
@vitalets i could submit a PR but currently im not getting the textAngular styles correctly, once i figure out how to set those styles this could be reusable.
from angular-xeditable.
editable-wysiwig would be nice :-)
from angular-xeditable.
@vasya10 any luck getting the textAngular styles to work?
from angular-xeditable.
@ashernevins Any chance you could show your code for how you removed the buttons and added them as toolbars?
from angular-xeditable.
+1
An editable-wysiwig should be a must :)
I worked a little with textAngular and found some limitations. Just for the record, i am testing now ng-wysiwyg which - at first impression - seems to cover more options.
Thanks for the great work!
from angular-xeditable.
Closed as being too old
from angular-xeditable.
Related Issues (20)
- Is there a way to disable a checkboxe inside a checklist? HOT 6
- Bootstrap 4 Theme? HOT 2
- Use editable within form HOT 2
- using splice() instead of push to add new items in table HOT 7
- How to integrate ckeditor in x-editable angular HOT 6
- Radiolist doesn't support string as status.value
- Xeditable Redirection HOT 1
- Control deselects when navigating outside the area HOT 8
- Ui date picker change month closing inline edit automatically HOT 1
- Select doesn't support string as status.value HOT 5
- Select Option Click - Model getting closed automatically HOT 1
- $watch of nested directive is not triggered when form's onaftersave get called HOT 6
- the issue while the closing the input area when the input field was being in error or invalid state HOT 5
- How to save empty ng-tags-input as array? HOT 2
- How to change display value when editing form? HOT 8
- Does editable-checklist support e-name? HOT 4
- console.log still present HOT 5
- Checkbox doesn't support JSON objects HOT 1
- Editable number buttons are not responding in Firefox
- popover=true attribute conflicts with Popover API HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from angular-xeditable.